:root {
  --bg: #f2f8fd;
  --bg-alt: rgba(255, 255, 255, .38);
  --panel: rgba(255, 255, 255, .62);
  --panel-solid: #ffffff;
  --ink: #0a1a2c;
  --soft: #44607c;
  --muted: #7590ab;
  --line: rgba(140, 186, 226, .45);
  --edge: rgba(255, 255, 255, .95);
  --ice: #5cc8f5;
  --deep: #1d6fe0;
  --accent: #1867d2;
  --accent-ink: #ffffff;
  --glow: rgba(92, 200, 245, .2);
  --flake: rgba(120, 180, 230, .55);
  --shadow: rgba(30, 90, 150, .28);
  --sky1: rgba(125, 211, 252, .38);
  --sky2: rgba(186, 230, 253, .55);
  --sky3: rgba(165, 180, 252, .22);
  --radius: 18px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #040b16;
    --bg-alt: rgba(120, 190, 255, .025);
    --panel: rgba(16, 38, 64, .5);
    --panel-solid: #0c1d33;
    --ink: #e8f5ff;
    --soft: #a6c0d9;
    --muted: #6d89a6;
    --line: rgba(125, 200, 255, .16);
    --edge: rgba(190, 232, 255, .12);
    --accent: #7dd3fc;
    --glow: rgba(92, 200, 245, .14);
    --flake: rgba(235, 248, 255, .75);
    --shadow: rgba(0, 0, 0, .5);
    --sky1: rgba(45, 212, 191, .16);
    --sky2: rgba(56, 130, 246, .2);
    --sky3: rgba(139, 92, 246, .14);
  }
}
:root[data-theme="dark"] {
  --bg: #040b16;
  --bg-alt: rgba(120, 190, 255, .025);
  --panel: rgba(16, 38, 64, .5);
  --panel-solid: #0c1d33;
  --ink: #e8f5ff;
  --soft: #a6c0d9;
  --muted: #6d89a6;
  --line: rgba(125, 200, 255, .16);
  --edge: rgba(190, 232, 255, .12);
  --accent: #7dd3fc;
  --glow: rgba(92, 200, 245, .14);
  --flake: rgba(235, 248, 255, .75);
  --shadow: rgba(0, 0, 0, .5);
  --sky1: rgba(45, 212, 191, .16);
  --sky2: rgba(56, 130, 246, .2);
  --sky3: rgba(139, 92, 246, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 700px at 88% -12%, var(--sky1), transparent 62%),
    radial-gradient(900px 640px at -12% 18%, var(--sky2), transparent 62%),
    radial-gradient(900px 700px at 50% 112%, var(--sky3), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
body > * { position: relative; z-index: 1; }
body > .nav { position: sticky; z-index: 10; }
a { color: var(--accent); }
img, svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -1px 0 var(--edge); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font: 700 20px/1 "Space Grotesk", "Inter", sans-serif; letter-spacing: -.01em; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--accent-ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn-primary { background: linear-gradient(135deg, #8be0ff, var(--ice) 35%, var(--deep)); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 10px 26px -10px var(--deep); text-shadow: 0 1px 1px rgba(10,60,130,.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px var(--deep); }
.btn-ghost { color: var(--ink); background: var(--panel); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--edge), 0 14px 34px -22px var(--shadow);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.btn-ghost:hover { border-color: var(--ice); }
.nav .btn { padding: 9px 16px; font-size: 14px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, var(--glow), transparent 65%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); background: var(--glow); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--edge); }
h1 { font: 700 clamp(40px, 6vw, 64px)/1.04 "Space Grotesk", "Inter", sans-serif; letter-spacing: -.03em; margin: 20px 0 20px; }
h1 .grad { background: linear-gradient(110deg, var(--deep) 0%, var(--ice) 30%, #d9f4ff 45%, var(--ice) 60%, var(--deep) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 9s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 30px 40px, var(--flake), transparent 70%), radial-gradient(1.5px 1.5px at 120px 90px, var(--flake), transparent 70%),
    radial-gradient(2.5px 2.5px at 180px 170px, var(--flake), transparent 70%), radial-gradient(1.5px 1.5px at 70px 200px, var(--flake), transparent 70%),
    radial-gradient(3px 3px at 60px 120px, var(--flake), transparent 70%), radial-gradient(2px 2px at 260px 30px, var(--flake), transparent 70%),
    radial-gradient(2.5px 2.5px at 300px 260px, var(--flake), transparent 70%);
  background-size: 220px 220px, 220px 220px, 220px 220px, 220px 220px, 340px 340px, 340px 340px, 340px 340px;
  animation: snow 26s linear infinite;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
@keyframes snow { to { background-position: 40px 440px, 40px 440px, 40px 440px, 40px 440px, -40px 680px, -40px 680px, -40px 680px; } }
.lede { font-size: 20px; color: var(--soft); max-width: 560px; margin: 0 0 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { justify-self: center; width: 100%; max-width: 360px; position: relative; }
.hero-art .flake-bg { position: absolute; inset: -18%; width: 136%; height: auto; color: var(--ice); opacity: .22; filter: none;
  animation: spin 140s linear infinite; }
.hero-art .kite { position: relative; }
.sparkle { transform-box: fill-box; transform-origin: center; animation: twinkle 3.2s ease-in-out infinite; }
.sparkle.s2 { animation-delay: 1.6s; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-art .kite { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(37, 99, 235, .28)) drop-shadow(0 0 22px rgba(125, 211, 252, .35)); animation: drift 7s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .kite, .hero-art .flake-bg, .sparkle, h1 .grad, .hero::after { animation: none; } .card:hover { transform: none; } }

/* sections */
section { padding: 88px 0; }
.alt { background: linear-gradient(180deg, var(--bg-alt), transparent); border-top: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--edge); }
h2 { font: 700 clamp(30px, 4vw, 40px)/1.1 "Space Grotesk", "Inter", sans-serif; letter-spacing: -.02em; margin: 0 0 12px; }
.section-lede { color: var(--soft); font-size: 18px; max-width: 620px; margin: 0 0 44px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--edge), 0 14px 34px -22px var(--shadow);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-radius: var(--radius); padding: 28px; transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--ice); }
.card h3 { font: 600 20px/1.25 "Space Grotesk", "Inter", sans-serif; margin: 16px 0 8px; }
.card p { margin: 0; color: var(--soft); font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--glow), transparent); border: 1px solid var(--line); color: var(--accent); box-shadow: inset 0 1px 0 var(--edge); }
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--edge), 0 14px 34px -22px var(--shadow);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.step::before { counter-increment: s; content: "0" counter(s); font: 700 14px/1 "Space Grotesk", sans-serif;
  color: var(--accent); letter-spacing: .1em; }
.step h3 { font: 600 20px/1.25 "Space Grotesk", "Inter", sans-serif; margin: 14px 0 8px; }
.step p { margin: 0; color: var(--soft); font-size: 16px; }

.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.promise div { padding: 18px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--edge), 0 14px 34px -22px var(--shadow);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); font-weight: 500; font-size: 15px; }
.promise b { display: block; font: 700 18px/1.2 "Space Grotesk", sans-serif; color: var(--accent); margin-bottom: 4px; }

.contact { text-align: center; }
.contact .box { background: linear-gradient(160deg, #0d3b6b, #071a31 62%, #050f1f); color: #e8f5ff; border-radius: 26px; padding: 64px 32px;
  position: relative; overflow: hidden; border: 1px solid rgba(125, 211, 252, .25); box-shadow: inset 0 1px 0 rgba(190, 232, 255, .25), 0 30px 60px -30px rgba(7, 26, 49, .7); }
.contact .box::before { content: ""; position: absolute; inset: -40% -10% auto -10%; height: 90%;
  background: radial-gradient(60% 50% at 30% 60%, rgba(45, 212, 191, .28), transparent 70%), radial-gradient(50% 45% at 70% 50%, rgba(125, 211, 252, .3), transparent 70%),
    radial-gradient(40% 40% at 55% 70%, rgba(139, 92, 246, .22), transparent 70%); filter: blur(10px); }
.contact .box::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1.5px 1.5px at 40px 50px, #fff, transparent 70%), radial-gradient(1px 1px at 150px 120px, #fff, transparent 70%),
    radial-gradient(2px 2px at 90px 170px, #fff, transparent 70%), radial-gradient(1px 1px at 210px 30px, #fff, transparent 70%);
  background-size: 240px 200px; }
.contact h2 { color: #fff; position: relative; }
.contact p { color: #a9bbd0; font-size: 18px; max-width: 540px; margin: 0 auto 28px; position: relative; }
.contact .btn { position: relative; }
.mail { display: block; margin-top: 16px; color: #7dd3fc; font-weight: 500; position: relative; text-decoration: none; }

footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); text-decoration: none; margin-left: 18px; }
footer a:hover { color: var(--ink); }

/* legal pages */
.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 800px; padding: 48px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--edge), 0 14px 34px -22px var(--shadow);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
@media (max-width: 600px) { .legal .wrap { padding: 28px 20px; border-radius: 18px; margin: 0 12px; } }
.legal h1 { font-size: clamp(34px, 5vw, 44px); margin-top: 0; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--soft); }
.legal .updated { color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
  .hero { padding: 64px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; max-width: 96px; justify-self: start; }
  .hero-art .kite { filter: drop-shadow(0 12px 18px rgba(37, 99, 235, .25)); }
  .grid3, .steps { grid-template-columns: 1fr; }
  .promise { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .promise { grid-template-columns: 1fr; }
  .lede { font-size: 18px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
  footer a { margin: 0 18px 0 0; }
}

/* AI tools pages */
.tools-hero { padding: 72px 0 40px; }
.tools-hero h1 { font-size: clamp(34px, 5vw, 52px); margin: 18px 0 16px; max-width: 820px; }
.tools-hero .lede { max-width: 760px; }
.crumb { display: inline-block; margin-bottom: 18px; color: var(--soft); text-decoration: none; font-size: 15px; }
.crumb:hover { color: var(--ink); }
.fine { color: var(--muted); font-size: 14px; max-width: 760px; margin: 0; }
.tools-list { padding: 24px 0 72px; }
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tool { background: var(--panel); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--edge), 0 14px 34px -22px var(--shadow);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--accent); background: var(--glow); padding: 4px 10px; border-radius: 999px; }
.tool h3 { font: 600 21px/1.25 "Space Grotesk", "Inter", sans-serif; margin: 14px 0 8px; }
.tool h3 a { color: var(--ink); text-decoration: none; }
.tool h3 a:hover { color: var(--accent); }
.tool h3 span { color: var(--muted); font-size: 15px; }
.tool p { color: var(--soft); font-size: 16px; margin: 0 0 16px; }
.tool dl { margin: auto 0 0; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.tool dl div { display: grid; grid-template-columns: 80px 1fr; gap: 10px; font-size: 14px; }
.tool dt { color: var(--muted); font-weight: 500; }
.tool dd { margin: 0; color: var(--ink); }
.skip { margin-top: 24px; padding: 20px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--edge), 0 14px 34px -22px var(--shadow);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.skip b { font: 600 17px/1.3 "Space Grotesk", sans-serif; }
.skip p { color: var(--soft); margin: 6px 0 0; font-size: 16px; }
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ind { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--edge), 0 14px 34px -22px var(--shadow);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-radius: var(--radius); padding: 26px; transition: border-color .15s ease, transform .15s ease; }
.ind:hover { border-color: var(--ice); transform: translateY(-2px); }
.ind h3 { font: 600 22px/1.2 "Space Grotesk", "Inter", sans-serif; color: var(--ink); margin: 0 0 8px; }
.ind p { color: var(--soft); font-size: 15px; margin: 0 0 16px; }
.ind span { color: var(--accent); font-weight: 600; font-size: 15px; }
@media (max-width: 860px) { .tools-grid, .ind-grid { grid-template-columns: 1fr; } .tools-hero { padding: 48px 0 28px; } }
