:root {
  --ink: #14201c;
  --ink-soft: #2a3a34;
  --paper: #f3efe6;
  --sand: #e7e0d2;
  --line: #cfc6b6;
  --accent: #0f766e;
  --accent-deep: #0b5a54;
  --glow: #d8f3ef;
  --danger-mute: #8a5a3c;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(15, 118, 110, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(216, 243, 239, 0.7), transparent 50%),
    linear-gradient(180deg, #f7f3ea 0%, var(--paper) 40%, #ebe4d7 100%);
  min-height: 100vh;
  line-height: 1.5;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top,
main,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.top-nav {
  display: flex;
  gap: 1.25rem;
}

.top-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.top-nav a:hover {
  color: var(--accent-deep);
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  min-height: calc(100vh - 5rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 3rem;
}

.brand-mark {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--accent-deep);
  letter-spacing: -0.02em;
  animation: rise 0.8s ease both;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  animation: rise 0.9s 0.08s ease both;
}

.lede {
  margin: 1.1rem 0 0;
  max-width: 28rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
  animation: rise 1s 0.14s ease both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise 1s 0.22s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #f7f3ea;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-disabled {
  background: var(--sand);
  color: #7a7367;
  cursor: not-allowed;
}

.hero-visual {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float-in 1.1s 0.18s ease both;
}

.desk {
  width: min(100%, 460px);
  background: linear-gradient(160deg, #1a2b26 0%, #243833 55%, #1c2925 100%);
  border-radius: 18px;
  padding: 1rem;
  color: #e8f2ef;
  box-shadow: 0 30px 60px rgba(20, 32, 28, 0.22);
  transform: perspective(900px) rotateY(-6deg) rotateX(4deg);
}

.desk-rail {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 42px;
  float: left;
  margin-right: 0.85rem;
  padding-top: 0.3rem;
}

.desk-rail .dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.desk-rail .dot:nth-child(3) {
  background: rgba(94, 234, 212, 0.35);
}

.desk-main {
  overflow: hidden;
  display: grid;
  gap: 0.75rem;
}

.pane {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem;
}

.pane-label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.65rem;
}

.file-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.file-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5eead4;
}

.file-row em {
  font-style: normal;
  font-size: 0.72rem;
  opacity: 0.55;
}

.bubble {
  display: inline-block;
  margin: 0.35rem 0;
  padding: 0.55rem 0.75rem;
  border-radius: 12px 12px 12px 4px;
  background: rgba(94, 234, 212, 0.18);
  font-size: 0.86rem;
  max-width: 95%;
}

.bubble-alt {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px 12px 4px 12px;
  margin-left: 1.5rem;
}

.band {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.band p {
  margin: 1rem auto 0;
  color: var(--ink-soft);
  max-width: 36rem;
}

.features,
.download {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 4rem;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  border-top: 1px solid var(--line);
}

.feature-list li {
  padding: 1.25rem 0.25rem 0;
  border-top: 3px solid var(--accent);
}

.feature-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.feature-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.dl-item {
  padding: 1.35rem 1.2rem 1.4rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.dl-item h3 {
  margin: 0;
  font-size: 1.2rem;
}

.dl-meta {
  margin: 0.35rem 0 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.hint {
  margin: 0.85rem 0 0;
  color: var(--danger-mute);
  font-size: 0.8rem;
  line-height: 1.4;
}

.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.foot strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
}

.foot-links a {
  color: var(--ink-soft);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-visual {
    order: -1;
    min-height: 280px;
  }

  .desk {
    transform: none;
  }

  .feature-list,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .top-nav {
    display: none;
  }
}
