:root {
  --navy: #0c1f4d;
  --navy-soft: #1a3370;
  --ink: #12141a;
  --muted: #5c6370;
  --line: #e3e6ee;
  --bg: #f4f5f8;
  --surface: #ffffff;
  --coral: #ff6a45;
  --blue: #2563eb;
  --focus: #1d4ed8;
  --shadow: 0 18px 50px rgba(12, 31, 77, 0.12);
  --radius: 18px;
  --header-h: 72px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 10px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.center {
  text-align: center;
}

.center .section-lead {
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px rgba(12, 31, 77, 0.18);
}

.btn-primary:hover {
  background: var(--navy-soft);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: #fff;
  box-shadow: 0 6px 16px rgba(12, 31, 77, 0.08);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(244, 245, 248, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--navy);
  background: #fff;
}

.nav-cta {
  margin-left: 8px;
  min-height: 40px;
  padding: 8px 16px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
  margin: 0 auto;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.hero {
  padding: 48px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--navy);
}

.hero p.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 28px;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 12% 10% 8%;
  background:
    radial-gradient(circle at 30% 40%, rgba(46, 196, 255, 0.18), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(255, 106, 69, 0.14), transparent 50%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}

.device {
  position: relative;
  width: min(100%, 280px);
  margin: 0;
  background: #1c1c1e;
  border-radius: 28px;
  padding: 8px;
  box-shadow: var(--shadow);
}

.device img {
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 2220;
  object-fit: contain;
  object-position: top center;
  border-radius: 20px;
  background: #f4f5f8;
}

.device-label {
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  height: 540px;
}

.hero-stage .device {
  position: absolute;
  width: 230px;
}

.hero-stage .d-main {
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 250px;
  z-index: 3;
}

.hero-stage .d-left {
  left: 0;
  bottom: 36px;
  transform: rotate(-8deg);
  z-index: 2;
  width: 190px;
}

.hero-stage .d-right {
  right: 0;
  bottom: 36px;
  transform: rotate(8deg);
  z-index: 2;
  width: 190px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
  justify-items: center;
}

.preview-item {
  width: min(100%, 280px);
}

.preview-item .device {
  transition: transform 0.35s ease;
}

.preview-item:hover .device {
  transform: translateY(-6px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(12, 31, 77, 0.08);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--navy);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--line);
}

.step-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 8px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.about-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px;
}

.about-panel p {
  color: var(--muted);
  margin: 0 0 14px;
}

.about-panel p:last-child {
  margin-bottom: 0;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.download {
  background: var(--navy);
  color: #fff;
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
}

.download h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 12px;
}

.download p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.78);
}

.download .btn-primary {
  background: #fff;
  color: var(--navy);
  box-shadow: none;
}

.download .btn-primary:hover {
  background: #eef4ff;
}

.page-hero {
  padding: 40px 0 8px;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 8px;
  color: var(--navy);
}

.page-hero p {
  margin: 0 0 12px;
  color: var(--muted);
}

.prose {
  max-width: 42rem;
  padding-bottom: 80px;
}

.prose h2 {
  font-size: 1.2rem;
  margin: 32px 0 10px;
}

.prose p,
.prose li {
  color: #3a404c;
}

.prose ul {
  padding-left: 1.2rem;
}

.placeholder {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: #eceff5;
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

.contact-card {
  max-width: 36rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  margin: 24px 0 80px;
}

.contact-card a {
  color: var(--blue);
  font-weight: 600;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  background: #eef0f5;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 32px;
}

.footer-brand p {
  color: var(--muted);
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-content: flex-start;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--navy);
}

.footer-copy {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .about-panel,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-stage {
    min-height: 0;
    height: auto;
  }

  .hero-stage {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 12px 0 0;
  }

  .hero-stage .device,
  .hero-stage .d-main,
  .hero-stage .d-left,
  .hero-stage .d-right {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: min(100%, 260px);
  }

  .hero-stage .d-left,
  .hero-stage .d-right {
    display: none;
  }

  .preview-grid,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .about-panel,
  .download {
    padding: 28px 20px;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 4px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 10px;
  }

  .nav-cta {
    margin: 8px 0 0;
    width: 100%;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .preview-item,
  .preview-item .device {
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
