:root {
  --ink-strong: #111827;
  --ink-body: #1f2937;
  --ink-soft: #6b7280;
  --paper: #edf1f8;
  --paper-warm: #f5f8ff;
  --line: rgba(17, 24, 39, 0.1);
  --line-strong: rgba(17, 24, 39, 0.2);
  --accent: #1a2d4a;
  --accent-deep: #243d62;
  --mint: #e8f0fe;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 34px rgba(17, 24, 39, 0.12);
  --shadow-card: 0 10px 28px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--ink-body);
  background:
    radial-gradient(1200px 680px at 8% -6%, rgba(26, 45, 74, 0.14), transparent 58%),
    radial-gradient(1000px 520px at 95% 0%, rgba(137, 171, 227, 0.22), transparent 52%),
    linear-gradient(180deg, #f4f7fc 0%, #eef3fb 50%, #e8eef7 100%);
  line-height: 1.6;
}

.landing {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 22px 64px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(245, 248, 255, 0.86);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-strong);
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(24, 20, 22, 0.2);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 12px;
  background: rgba(232, 240, 254, 0.66);
}

.link-btn,
.cta-btn,
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  transition: all 140ms ease;
}

.link-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--ink-body);
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 600;
}

.link-btn:hover {
  border-color: rgba(26, 45, 74, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
}

.top-nav .cta-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 0.86rem;
  box-shadow: none;
}

.cta-btn,
.outline-btn {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
}

.cta-btn {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 7px 20px rgba(176, 74, 47, 0.27);
}

.cta-btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-1px);
}

.outline-btn {
  color: var(--ink-strong);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line-strong);
}

.outline-btn:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 32px;
  align-items: center;
  margin-top: 44px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.hero h1 {
  margin: 10px 0 14px;
  color: var(--ink-strong);
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: clamp(2.05rem, 4.9vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-copy {
  margin: 0;
  max-width: 54ch;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-panel {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68));
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.2deg);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 12px -16px;
  height: 22px;
  border-radius: 99px;
  background: rgba(26, 45, 74, 0.14);
  filter: blur(14px);
  z-index: -1;
}

.note-preview {
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  overflow: hidden;
  background: #f8fbff;
}

.note-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: #eff4fc;
}

.note-preview-body {
  margin: 0;
  padding: 14px;
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 0.83rem;
  line-height: 1.64;
  color: #334155;
}

.features {
  margin-top: 58px;
}

.features h2,
.how-it-works h2 {
  margin: 0 0 14px;
  color: var(--ink-strong);
  font-family: "Inter", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 18px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.87), rgba(255, 255, 255, 0.62));
  box-shadow: var(--shadow-card);
}

.feature-card h3 {
  margin: 0 0 8px;
  color: var(--ink-strong);
  font-size: 1.04rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
}

.how-it-works {
  margin-top: 54px;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step {
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.5);
}

.step strong {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ink-strong);
}

.footer-cta {
  margin-top: 56px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(130deg, rgba(26, 45, 74, 0.12), rgba(255, 255, 255, 0.74));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-cta p {
  margin: 0;
  font-size: 1.02rem;
  max-width: 58ch;
}

.legal-links {
  margin: 16px 0 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.legal-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.legal-links a:hover {
  text-decoration: underline;
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 520ms ease forwards;
}

.fade-up:nth-child(2) { animation-delay: 70ms; }
.fade-up:nth-child(3) { animation-delay: 140ms; }
.fade-up:nth-child(4) { animation-delay: 210ms; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-panel {
    transform: rotate(0deg);
  }

  .features-grid,
  .workflow {
    grid-template-columns: 1fr 1fr;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .landing {
    padding: 16px 14px 44px;
  }

  .top-nav {
    border-radius: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    border-radius: 10px;
  }

  .nav-links .link-btn,
  .nav-links .cta-btn {
    flex: 1 1 calc(50% - 6px);
  }

  .features-grid,
  .workflow {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .cta-btn,
  .hero-actions .outline-btn {
    flex: 1 1 auto;
  }
}
