:root {
  --bg: #09090b;
  --surface: #111114;
  --surface-2: #16161a;
  --fg: #f2f2f5;
  --muted: #9a9aa6;
  --line: #222229;
  --accent: #7cf0b4;
  --accent-2: #5bc8f5;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fg); text-decoration-color: var(--muted); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -0.04em; }
.logo span { color: var(--accent); }
.logo:hover { color: var(--fg); }
nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
nav a { color: var(--muted); text-decoration: none; transition: color .15s; }
nav a:hover { color: var(--fg); }
nav .nav-cta { color: var(--fg); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .15s, background .15s; }
nav .nav-cta:hover { border-color: #3a3a44; background: var(--surface-2); color: var(--fg); }

main { flex: 1; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 150px 0 130px; }
.glow {
  position: absolute; inset: -40% -10% auto -10%; height: 680px; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 55% at 30% 50%, rgba(124, 240, 180, 0.16), transparent 70%),
    radial-gradient(ellipse 45% 50% at 70% 40%, rgba(91, 200, 245, 0.12), transparent 70%);
  filter: blur(10px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 40% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 40% 30%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(46px, 9vw, 92px); line-height: 1.0; letter-spacing: -0.045em; font-weight: 800; }
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); max-width: 600px; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  background: var(--fg); color: var(--bg); text-decoration: none;
  font-weight: 600; font-size: 15px; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { background: #fff; color: var(--bg); transform: translateY(-1px); box-shadow: 0 8px 30px rgba(124, 240, 180, 0.18); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--fg); border-color: #3a3a44; box-shadow: none; }

/* Sections */
.section { padding: 96px 0; }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 8px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: #34343d; }
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 22px;
  display: grid; place-items: center; color: var(--accent);
  background: rgba(124, 240, 180, 0.08); border: 1px solid rgba(124, 240, 180, 0.18);
}
.icon svg { width: 22px; height: 22px; }
.step .num {
  display: block; font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 22px;
  background: linear-gradient(180deg, var(--fg), #4a4a55);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Principles */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.principles { list-style: none; display: grid; gap: 0; }
.principles li { display: flex; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.check {
  flex: none; width: 28px; height: 28px; border-radius: 50%; margin-top: 2px;
  display: grid; place-items: center; color: var(--bg); background: var(--accent);
}
.check svg { width: 16px; height: 16px; }
.principles h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.principles p { color: var(--muted); font-size: 15px; }

/* CTA */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 72px 24px; border-radius: 28px; border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(124, 240, 180, 0.14), transparent 70%),
    var(--surface);
}
.cta h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.035em; }
.cta p { color: var(--muted); font-size: 17px; margin: 12px auto 32px; max-width: 460px; }

/* Docs (support / privacy) */
.doc { padding: 80px 0 110px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 8px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 44px; }
.doc h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin: 40px 0 12px; }
.doc p, .doc li { color: #c9c9d2; margin-bottom: 12px; }
.doc ul { padding-left: 22px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }
footer .links { display: flex; gap: 24px; }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 8px; }
  .section { padding: 72px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 96px 0 80px; }
  nav { gap: 14px; }
  nav a:not(.nav-cta) { display: none; }
  .card { padding: 24px; }
  .cta { padding: 56px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}

/* Blinking caret in hero */
.caret {
  display: inline-block; width: 0.07em; height: 0.82em; margin-left: 0.08em;
  vertical-align: -0.04em; border-radius: 2px;
  background: var(--accent-2);
  box-shadow: 0 0 18px rgba(91, 200, 245, 0.55);
  animation: caret-blink 1.05s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

/* "What we build" illustrated cards */
.vcard { padding: 0; overflow: hidden; }
.vcard .body { padding: 24px 28px 28px; }
.visual {
  position: relative; height: 210px; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(124, 240, 180, 0.10), transparent 70%),
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 28px 28px,
    #0d0d10;
}
.visual > * { transition: transform .45s cubic-bezier(.2,.7,.2,1); }

/* Phone */
.phone {
  position: absolute; left: 50%; top: 34px; width: 128px; height: 240px; margin-left: -64px;
  border-radius: 26px; border: 1px solid #34343d;
  background: linear-gradient(180deg, #1b1b20, #121215);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), inset 0 0 0 4px #0d0d10;
  padding: 30px 16px 0;
}
.notch { position: absolute; top: 11px; left: 50%; width: 36px; height: 9px; margin-left: -18px; border-radius: 9px; background: #000; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.apps i { display: block; aspect-ratio: 1; border-radius: 6px; }
.a1 { background: linear-gradient(135deg, #7cf0b4, #3fb987); }
.a2 { background: linear-gradient(135deg, #5bc8f5, #2f86c4); }
.a3 { background: #2a2a31; }
.a4 { background: linear-gradient(135deg, #3a3a44, #24242a); }
.vcard:hover .phone { transform: translateY(-10px); }

/* Desktop window */
.window {
  position: absolute; left: 28px; right: -30px; top: 36px; height: 200px;
  border-radius: 12px; border: 1px solid #34343d;
  background: linear-gradient(180deg, #19191e, #121215);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.bar { display: flex; gap: 6px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a44; }
.bar i:first-child { background: #ff5f57; opacity: .8; }
.bar i:nth-child(2) { background: #febc2e; opacity: .8; }
.bar i:nth-child(3) { background: #28c840; opacity: .8; }
.code { padding: 16px 18px; display: grid; gap: 10px; }
.code span { display: block; height: 7px; border-radius: 4px; }
.c1 { background: rgba(124, 240, 180, .75); }
.c2 { background: rgba(91, 200, 245, .7); }
.c3 { background: #33333b; }
.vcard:hover .window { transform: translate(-8px, -6px); }

/* Layer stack */
.stack { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.layer {
  position: absolute; width: 130px; height: 130px; left: -65px; top: -65px;
  border-radius: 18px; border: 1px solid #3a3a44;
  background: rgba(22, 22, 26, .85);
  transform: rotateX(58deg) rotateZ(45deg);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.l3 { transform: translateY(38px) rotateX(58deg) rotateZ(45deg); opacity: .7; }
.l2 { transform: translateY(8px) rotateX(58deg) rotateZ(45deg); }
.l1 {
  transform: translateY(-22px) rotateX(58deg) rotateZ(45deg);
  border-color: rgba(124, 240, 180, .6);
  background: linear-gradient(135deg, rgba(124, 240, 180, .35), rgba(91, 200, 245, .25));
  box-shadow: 0 0 40px rgba(124, 240, 180, .25);
}
.vcard:hover .l3 { transform: translateY(50px) rotateX(58deg) rotateZ(45deg); }
.vcard:hover .l1 { transform: translateY(-36px) rotateX(58deg) rotateZ(45deg); }

@media (prefers-reduced-motion: reduce) {
  .visual > *, .layer { transition: none; }
}
