:root {
  --bg: #090c11;
  --bg-elevated: #0e131a;
  --surface: rgba(17, 23, 31, 0.82);
  --surface-strong: #121923;
  --line: rgba(255, 255, 255, 0.09);
  --line-bright: rgba(124, 242, 181, 0.28);
  --text: #f4f7f9;
  --muted: #a4afb9;
  --muted-strong: #c8d0d7;
  --mint: #7cf2b5;
  --mint-deep: #4fd993;
  --blue: #74b8ff;
  --violet: #c4a7ff;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
  --radius: 28px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 22% -8%, rgba(116, 184, 255, 0.08), transparent 32rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { position: relative; padding: 112px 0; }
.section-compact { padding: 72px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; color: #09100d; background: var(--mint); border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(9, 12, 17, 0.7);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}
.site-header.scrolled { border-color: var(--line); background: rgba(9, 12, 17, 0.92); }
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 0.98rem; letter-spacing: -0.01em; }
.brand img { border-radius: 10px; }
.brand strong { font-weight: 750; }
.primary-nav { display: flex; align-items: center; gap: 30px; color: var(--muted-strong); font-size: 0.9rem; font-weight: 650; }
.primary-nav a { transition: color 160ms ease; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--text); }
.primary-nav .nav-cta { padding: 9px 16px; color: #0b1510; background: var(--mint); border-radius: 999px; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.nav-toggle span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 4px 0; background: var(--text); border-radius: 2px; }

.hero { min-height: calc(100vh - 76px); display: grid; align-items: center; overflow: hidden; padding-top: 84px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr); align-items: center; gap: 84px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-label { margin: 0 0 16px; color: var(--mint); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow span { width: 7px; height: 7px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 18px var(--mint); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 24px; font-size: clamp(3.1rem, 6.4vw, 6.4rem); line-height: 0.98; letter-spacing: -0.064em; font-weight: 780; }
h1 em { color: transparent; background: linear-gradient(92deg, var(--mint), var(--blue) 65%, var(--violet)); background-clip: text; -webkit-background-clip: text; font-style: normal; }
h2 { margin-bottom: 22px; font-size: clamp(2.25rem, 4.1vw, 4rem); line-height: 1.04; letter-spacing: -0.048em; }
h3 { margin-bottom: 12px; font-size: 1.15rem; line-height: 1.25; }
.hero-lead { max-width: 670px; margin-bottom: 34px; color: var(--muted-strong); font-size: clamp(1.02rem, 1.7vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 21px; border: 1px solid transparent; border-radius: 14px; font-size: 0.92rem; font-weight: 800; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .primary-nav a:focus-visible, .brand:focus-visible { outline: 3px solid rgba(116, 184, 255, 0.5); outline-offset: 4px; }
.button-primary { color: #08120d; background: linear-gradient(135deg, var(--mint), #9ff7ca); box-shadow: 0 14px 40px rgba(124, 242, 181, 0.16); }
.button-secondary { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 30px 0 0; list-style: none; color: var(--muted); font-size: 0.8rem; }
.hero-tags li { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.025); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.hero-glow-one { width: 520px; height: 520px; right: -180px; top: -130px; background: radial-gradient(circle, rgba(124, 242, 181, 0.12), transparent 68%); }
.hero-glow-two { width: 520px; height: 520px; left: 36%; bottom: -310px; background: radial-gradient(circle, rgba(116, 184, 255, 0.08), transparent 68%); }

.product-media { position: relative; min-height: 610px; display: grid; place-items: center; }
.phone-frame { position: relative; z-index: 2; width: min(100%, 330px); aspect-ratio: 0.49; padding: 13px; border: 1px solid rgba(255,255,255,0.19); border-radius: 52px; background: linear-gradient(145deg, #222b36, #0b0f15 42%); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.07); transform: rotate(3deg); }
.phone-frame::after { content: ""; position: absolute; inset: 12px; border-radius: 40px; border: 1px solid rgba(255,255,255,0.05); pointer-events: none; }
.phone-sensor { position: absolute; z-index: 4; top: 22px; left: 50%; width: 72px; height: 20px; transform: translateX(-50%); border-radius: 999px; background: #07090d; }
.media-placeholder { height: 100%; display: grid; place-content: center; justify-items: center; padding: 28px; text-align: center; border-radius: 40px; background: radial-gradient(circle at 50% 34%, rgba(124,242,181,0.14), transparent 27%), linear-gradient(160deg, #101720, #080b10); overflow: hidden; }
.media-placeholder img { margin-bottom: 24px; border-radius: 22px; box-shadow: 0 20px 50px rgba(0,0,0,0.36); }
.media-placeholder p { margin-bottom: 3px; font-weight: 800; }
.media-placeholder span { color: var(--muted); font-size: 0.78rem; }
.media-orbit { position: absolute; width: 460px; aspect-ratio: 1; border: 1px solid rgba(124,242,181,0.12); border-radius: 50%; box-shadow: inset 0 0 90px rgba(124,242,181,0.04); }
.media-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--muted-strong); border: 1px solid var(--line); border-radius: 13px; background: rgba(14,19,26,0.9); box-shadow: 0 18px 40px rgba(0,0,0,0.24); backdrop-filter: blur(12px); font-size: 0.78rem; font-weight: 700; }
.media-chip span { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px rgba(124,242,181,0.8); }
.media-chip-build { top: 23%; left: 0; }
.media-chip-device { right: -5%; bottom: 25%; }
.media-chip-device span { background: var(--blue); box-shadow: 0 0 12px rgba(116,184,255,0.8); }

.intro { border-block: 1px solid var(--line); background: rgba(255,255,255,0.012); }
.intro-grid { display: grid; grid-template-columns: 0.52fr 1.48fr; gap: 70px; align-items: start; }
.intro-grid h2 { max-width: 800px; margin-bottom: 16px; font-size: clamp(2rem, 3.4vw, 3.2rem); }
.intro-grid p:last-child { max-width: 740px; color: var(--muted); font-size: 1.02rem; }
.section-heading { max-width: 730px; margin-bottom: 48px; }
.section-heading p:last-child { max-width: 640px; color: var(--muted); }
.section-heading-centered { margin-inline: auto; text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { min-height: 235px; padding: 29px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(150deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)); transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--line-bright); background: linear-gradient(150deg, rgba(124,242,181,0.055), rgba(255,255,255,0.018)); }
.feature-card p { margin-bottom: 0; color: var(--muted); font-size: 0.92rem; }
.feature-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 28px; color: var(--mint); border: 1px solid rgba(124,242,181,0.22); border-radius: 13px; background: rgba(124,242,181,0.07); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; font-weight: 900; }

.workflow-section { border-block: 1px solid var(--line); background: #0b0f15; }
.workflow { display: grid; grid-template-columns: repeat(6, 1fr); padding: 0; margin: 64px 0 0; list-style: none; }
.workflow li { position: relative; min-height: 155px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border: 1px solid var(--line); border-right: 0; background: rgba(255,255,255,0.018); }
.workflow li:first-child { border-radius: 20px 0 0 20px; }
.workflow li:last-child { border-right: 1px solid var(--line); border-radius: 0 20px 20px 0; }
.workflow li:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; right: -13px; top: 50%; width: 26px; height: 26px; display: grid; place-items: center; transform: translateY(-50%); color: var(--mint); background: #0b0f15; }
.workflow span { color: var(--mint); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.74rem; }
.workflow strong { font-size: 0.9rem; }

.screenshot-track { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 15px; overflow-x: auto; padding: 4px 2px 18px; scrollbar-width: thin; scrollbar-color: rgba(124,242,181,0.35) transparent; }
.screenshot-card { min-width: 200px; margin: 0; }
.screenshot-placeholder { aspect-ratio: 0.51; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 27px; background: radial-gradient(circle at 50% 35%, rgba(116,184,255,0.09), transparent 30%), var(--surface); text-align: center; }
.screenshot-placeholder img { width: 58px; border-radius: 13px; opacity: 0.55; }
.screenshot-placeholder span { max-width: 150px; color: var(--muted); font-size: 0.7rem; }
.screenshot-card figcaption { padding: 13px 6px 0; color: var(--muted-strong); font-size: 0.86rem; font-weight: 750; }

.split-card, .cloud-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.split-card { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 60px; align-items: center; padding: clamp(30px, 6vw, 72px); }
.split-card p:last-child, .cloud-card p:last-child { max-width: 650px; margin-bottom: 0; color: var(--muted); }
.ecosystem-visual { min-height: 280px; display: grid; place-items: center; align-content: center; gap: 17px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(circle, rgba(124,242,181,0.07), transparent 65%); }
.ecosystem-visual span { min-width: 150px; padding: 11px 17px; border: 1px solid var(--line-bright); border-radius: 999px; background: rgba(124,242,181,0.05); text-align: center; font-size: 0.86rem; font-weight: 800; }
.ecosystem-visual i { width: 1px; height: 18px; background: linear-gradient(var(--mint), var(--blue)); }
.cloud-section { padding-top: 24px; }
.cloud-card { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; padding: clamp(28px, 5vw, 58px); }
.cloud-mark { width: 82px; height: 82px; display: grid; place-items: center; color: var(--blue); border: 1px solid rgba(116,184,255,0.22); border-radius: 22px; background: rgba(116,184,255,0.07); font-size: 2rem; }
.download-section { padding-top: 64px; }
.download-card { overflow: hidden; padding: clamp(50px, 8vw, 94px) 30px; border: 1px solid var(--line-bright); border-radius: 34px; background: radial-gradient(circle at 50% 0%, rgba(124,242,181,0.16), transparent 42%), linear-gradient(160deg, #121a23, #0b1016); text-align: center; box-shadow: var(--shadow); }
.download-card > img { margin: 0 auto 25px; border-radius: 20px; box-shadow: 0 18px 45px rgba(0,0,0,0.34); }
.download-card h2 { max-width: 720px; margin-inline: auto; }
.download-card > p:not(.section-label) { color: var(--muted); }
.download-button { margin-top: 17px; }
.download-button[aria-disabled="true"] { cursor: not-allowed; opacity: 0.72; }
.download-card small { display: block; margin-top: 13px; color: var(--muted); }

.site-footer { padding: 60px 0 26px; border-top: 1px solid var(--line); background: #07090d; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; }
.footer-grid p { margin: 16px 0 0; color: var(--muted); font-size: 0.87rem; }
.footer-grid nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; color: var(--muted-strong); font-size: 0.84rem; font-weight: 650; }
.footer-grid nav a:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 44px; margin-top: 44px; color: #707c87; border-top: 1px solid var(--line); font-size: 0.74rem; }

.legal-main { min-height: 68vh; }
.legal-hero { padding: 92px 0 52px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { max-width: 900px; margin-bottom: 16px; font-size: clamp(2.8rem, 6vw, 5rem); }
.legal-hero p { max-width: 650px; color: var(--muted); }
.legal-content { max-width: 820px; padding-block: 72px 110px; }
.legal-content h2 { margin-top: 48px; margin-bottom: 14px; font-size: 1.45rem; letter-spacing: -0.02em; }
.legal-content p, .legal-content li { color: var(--muted-strong); }
.legal-content ul { padding-left: 20px; }
.legal-meta { color: var(--muted); font-size: 0.82rem; }
.contact-card { padding: 30px; margin-top: 34px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.contact-card strong { display: block; margin-bottom: 8px; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 540ms ease, transform 540ms ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 72px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-tags { justify-content: center; }
  .product-media { min-height: 560px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .workflow li, .workflow li:first-child, .workflow li:last-child { min-height: 125px; border: 1px solid var(--line); border-radius: 16px; }
  .workflow li:not(:last-child)::after { display: none; }
  .split-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 82px 0; }
  .section-compact { padding: 58px 0; }
  .nav-shell { min-height: 68px; }
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; inset: 68px 14px auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(12,16,22,0.98); box-shadow: var(--shadow); }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 13px 14px; }
  .primary-nav .nav-cta { margin-top: 6px; text-align: center; }
  h1 { font-size: clamp(2.55rem, 11.5vw, 3.2rem); }
  h2 { font-size: clamp(2.05rem, 9.5vw, 3rem); }
  .hero { min-height: auto; padding-top: 76px; }
  .hero-lead { font-size: 1rem; }
  .hero .eyebrow { display: flex; justify-content: center; font-size: 0.7rem; white-space: normal; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .product-media { min-height: 485px; }
  .phone-frame { width: 250px; border-radius: 42px; }
  .media-placeholder, .phone-frame::after { border-radius: 32px; }
  .media-orbit { width: 340px; }
  .media-chip-build { left: 0; }
  .media-chip-device { right: 0; }
  .intro-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .cloud-card { grid-template-columns: 1fr; }
  .cloud-mark { width: 64px; height: 64px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid nav { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .brand span { font-size: 0.9rem; }
  .workflow { grid-template-columns: 1fr; }
  .workflow li { min-height: 100px; }
  .media-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
