/* Upesi AI — landing page */
:root {
  --ink: #050d18;
  --ink-2: #0a1c30;
  --ink-3: #0f2840;
  --line: rgba(140, 186, 220, 0.16);
  --text: #eaf2fc;
  --muted: #a3b7cf;
  --heading: #fff;
  --text-soft: #d7e4f3;
  --surface: rgba(255, 255, 255, .03);
  --surface-2: rgba(5, 13, 24, .55);
  --band: rgba(10, 24, 48, .6);
  --card: rgba(10, 24, 48, .75);
  --tint: rgba(255, 255, 255, .06);
  --nav-bg: rgba(10, 30, 52, .72);
  --shadow: rgba(0, 0, 0, .35);
  --accent-ink: #5ac4fc;   /* blue used as text/strokes */
  --g1: #5ac4fc; --g2: #38d3f8; /* brand text gradient */
  --accent: #2fa6f3;
  --dot: rgba(90, 196, 252, .32);
  --cyan: #38d3f8;
  --blue: #2fa6f3;
  --gold: #f7b731;
  --rose: #fb7185;
  --radius: 18px;
  --max: 1200px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
/* light palette: chosen from the system setting or the nav toggle (see the head script) */
:root[data-mode="light"] {
  --ink: #f6f9fc;
  --ink-2: #ffffff;
  --ink-3: #eef4fa;
  --line: rgba(15, 45, 90, 0.12);
  --text: #0b203a;
  --muted: #4a5e78;
  --heading: #071830;
  --text-soft: #2c425e;
  --surface: #ffffff;
  --surface-2: #f3f7fc;
  --band: #ffffff;
  --card: #ffffff;
  --tint: rgba(15, 45, 90, .05);
  --nav-bg: rgba(255, 255, 255, .8);
  --shadow: rgba(15, 45, 90, .10);
  --accent-ink: #0a72b5;
  --g1: #0a72b5; --g2: #029bc7;
  --accent: #0b8ad6;
  --dot: rgba(11, 138, 214, .28);
  --cyan: #029bc7;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
code { font-size: .88em; background: rgba(56, 211, 248, .12); color: #bff0ff; padding: .1em .4em; border-radius: 6px; }
[data-mode="light"] code { color: #076885; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #050d18; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-primary { background: linear-gradient(135deg, #2fa6f3, #0a72b5); color: #fff; box-shadow: 0 8px 28px rgba(11, 138, 214, .3); }
.btn-light { background: #fff; color: #0b203a; box-shadow: 0 6px 0 rgba(255, 255, 255, .12), 0 12px 30px rgba(0, 0, 0, .35); }
.btn-outline { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(5, 13, 24, .35); }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
[data-mode="light"] .btn-light { background: #0b203a; color: #fff; box-shadow: 0 12px 30px rgba(11, 32, 58, .22); }
[data-mode="light"] .btn-outline { border-color: rgba(11, 32, 58, .3); color: var(--heading); background: rgba(255, 255, 255, .7); }
[data-mode="light"] .btn-outline:hover { border-color: var(--heading); background: #fff; }
[data-mode="light"] .btn-ghost { color: var(--heading); border-color: rgba(11, 32, 58, .22); }

/* announcement */
.announce { background: linear-gradient(90deg, #0b233d, #123a5a 50%, #0b233d); text-align: center; font-size: .95rem; padding: 9px 16px; }
[data-mode="light"] .announce { background: linear-gradient(90deg, #e0f2fb, #dff5fe 50%, #e0f2fb); }
.announce p { margin: 0; }
.announce a { color: var(--heading); font-weight: 600; }
.pill-new { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; margin-right: 6px; vertical-align: 1px; }

/* nav */
.nav-wrap { position: sticky; top: 12px; z-index: 50; padding: 0 16px; margin-top: 16px; }
.nav {
  max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 24px;
  padding: 12px 14px 12px 24px; border-radius: 999px;
  background: var(--nav-bg); border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 10px 40px var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); text-decoration: none; font-weight: 800; font-size: 1.55rem; letter-spacing: -0.03em; }
.brand b { background: linear-gradient(135deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 1px; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0 auto; padding: 0; order: 1; }
.nav-links a { color: var(--text-soft); text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: 10px; }
.nav-links a:hover { color: var(--heading); background: var(--tint); }
.mode-btn { order: 2; flex: none; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--heading); cursor: pointer; transition: background .2s; }
.mode-btn:hover { background: var(--tint); }
.mode-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mode-btn .i-sun { display: none; }
[data-mode="dark"] .mode-btn .i-sun { display: block; }
[data-mode="dark"] .mode-btn .i-moon { display: none; }
.nav-cta { display: flex; gap: 10px; order: 3; }
.nav-cta-m { display: none; }
.menu-btn { display: none; margin-left: 6px; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--heading); margin: 5px auto; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* hero */
.hero { position: relative; min-height: calc(100vh - 40px); margin-top: -84px; padding: 150px 0 80px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
/* dot grid: a quiet "data" texture behind the headline, faded out well before the question cards.
   Static (no animation), so it costs nothing per frame. */
.hero-dots { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) 1.1px, transparent 1.6px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 46% 72% at 14% 62%, #000 0, transparent 78%);
  mask-image: radial-gradient(ellipse 46% 72% at 14% 62%, #000 0, transparent 78%); }
.hero-glow { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(60% 50% at 15% 60%, rgba(14, 113, 190, .35), transparent 70%),
  radial-gradient(40% 40% at 85% 20%, rgba(56, 211, 248, .12), transparent 70%),
  linear-gradient(180deg, #06192e 0%, var(--ink) 100%); }
[data-mode="light"] .hero-glow { background:
  radial-gradient(60% 50% at 15% 60%, rgba(33, 168, 240, .14), transparent 70%),
  radial-gradient(40% 40% at 85% 20%, rgba(56, 211, 248, .14), transparent 70%),
  linear-gradient(180deg, #e6f4fc 0%, var(--ink) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.kicker { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 300; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; margin: 0 0 .1em;
  background: linear-gradient(90deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 { font-size: clamp(3.2rem, 8.6vw, 7rem); font-weight: 800; letter-spacing: -0.045em; line-height: .98; margin-bottom: .35em; }
.h1-main { background: linear-gradient(100deg, #fff 30%, #9aabbf 95%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; display: inline-block; }
[data-mode="light"] .h1-main { background-image: linear-gradient(100deg, #071830 30%, #4f6682 95%); }
.meaning { margin: -.2em 0 .9em; font-size: 1.02rem; color: var(--text-soft); }
.meaning dfn { font-style: italic; font-weight: 600; color: var(--accent-ink); margin-right: .2em; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--text-soft); max-width: 36em; }
.lead strong { color: var(--heading); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero-ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.hero-ticks li::before { content: "✓"; color: var(--accent-ink); font-weight: 800; margin-right: 8px; }

/* hero carousel */
.hero-cards { position: relative; height: 560px; display: flex; align-items: center; justify-content: center;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%); }
.card-track { position: relative; width: min(470px, 100%); height: 100%; }
.qa-card {
  position: absolute; left: 0; right: 0; top: 50%;
  padding: 20px 22px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(10, 23, 44, .92), rgba(6, 15, 30, .92));
  border: 1px solid rgba(150, 208, 245, .28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .9s;
  will-change: transform, opacity;
}
[data-mode="light"] .qa-card { background: linear-gradient(160deg, #fff, #f6faff); border-color: rgba(15, 45, 90, .12); box-shadow: 0 20px 50px rgba(15, 45, 90, .12); }
.qa-card header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.who { color: var(--muted); font-size: .95rem; margin-right: 4px; }
.tag { font-size: .74rem; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: #d6e1f0; }
.tag-sw { background: rgba(247, 183, 49, .16); color: #ffd77a; }
.tag-fc { background: rgba(56, 211, 248, .16); color: #9fe7ff; }
.tag-an { background: rgba(251, 113, 133, .16); color: #ffb0bd; }
.tag-hot { background: rgba(14, 191, 233, .18); color: #a5edff; }
.tag-db { background: rgba(148, 168, 184, .18); color: #d3dee6; }
.tag-why { background: rgba(33, 168, 240, .2); color: #a9dfff; }
.tag-seg { background: rgba(56, 211, 248, .16); color: #9fe7ff; }
[data-mode="light"] .tag { background: rgba(15, 45, 90, .06); color: #34485f; }
[data-mode="light"] .tag-sw { background: rgba(247, 183, 49, .2); color: #8a5a00; }
[data-mode="light"] .tag-fc { background: rgba(56, 211, 248, .16); color: #076885; }
[data-mode="light"] .tag-an { background: rgba(251, 113, 133, .16); color: #be123c; }
[data-mode="light"] .tag-hot { background: rgba(14, 191, 233, .16); color: #037ba1; }
[data-mode="light"] .tag-seg { background: rgba(56, 211, 248, .16); color: #076885; }
[data-mode="light"] .tag-db { background: rgba(100, 116, 139, .14); color: #334655; }
[data-mode="light"] .tag-why { background: rgba(33, 168, 240, .14); color: #0a72b5; }
.q { font-size: 1.22rem; font-weight: 600; color: var(--heading); margin: 0 0 14px; }
.qa-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a-chip { background: rgba(190, 231, 255, .9); color: #0a72b5; font-weight: 600; font-size: .9rem; padding: 7px 14px; border-radius: 99px; }
.a-warn { background: rgba(254, 236, 186, .95); color: #8a4b05; }
[data-mode="light"] .a-chip { background: #e0f2fc; }
[data-mode="light"] .a-warn { background: #fdf0cc; }
.go { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2fa6f3, #0a72b5); color: #fff; font-size: 1.15rem; }
.card-dots { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.card-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: transform .3s, background .3s; }
[data-mode="light"] .card-dots i { background: rgba(15, 45, 90, .22); }
.card-dots i.on { background: var(--cyan); transform: scale(1.8); }

/* stats */
.stats { border-block: 1px solid var(--line); background: var(--band); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 22px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; white-space: nowrap; font-size: clamp(1.5rem, 2.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fff, #b9cde6); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-mode="light"] .stat strong { background-image: linear-gradient(90deg, #071830, #4f6682); }
.stat span { color: var(--muted); font-size: .95rem; }

/* sections */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head h2, .langs h2, .contact h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.eyebrow { display: inline-block; color: var(--accent-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; margin-bottom: 14px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* screens */
.screen-controls { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.seg { display: inline-flex; padding: 4px; background: var(--tint); border: 1px solid var(--line); border-radius: 12px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 8px 18px; border-radius: 9px; cursor: pointer; min-height: 40px; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: #fff; color: #0b203a; }
[data-mode="light"] .seg button[aria-selected="true"], [data-mode="light"] .seg button[aria-pressed="true"] { background: #0b203a; color: #fff; }
.devices { position: relative; max-width: 1080px; margin: 0 auto; padding-right: 7%; }
.laptop-screen { border-radius: 16px 16px 0 0; padding: 12px 12px 0; background: #1a2740; border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0; box-shadow: 0 40px 120px rgba(20, 159, 240, .25); }
[data-mode="light"] .laptop-screen { box-shadow: 0 40px 100px rgba(15, 111, 170, .2); }
.laptop-screen img { border-radius: 6px 6px 0 0; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #0d1a30; }
.laptop-base { height: 18px; margin: 0 -5%; background: linear-gradient(180deg, #c7d3e2, #7d879f); border-radius: 0 0 22px 22px; position: relative; }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 16%; height: 7px; background: #5c6680; border-radius: 0 0 10px 10px; }
.laptop, .phone { margin: 0; }
.phone { position: absolute; right: 0; bottom: -40px; width: 24%; min-width: 150px; }
.phone-screen { border-radius: 36px; padding: 10px; background: #0c1426; border: 2px solid #3a4b66; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
[data-mode="light"] .phone-screen { box-shadow: 0 30px 70px rgba(15, 45, 90, .3); }
.phone-screen img { border-radius: 27px; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: #0d1a30; }
.devices img { transition: opacity .35s; }
.devices img.fading { opacity: 0; }
.screen-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 70px; }

/* how */
.how { background: linear-gradient(180deg, transparent, rgba(16, 39, 80, .35), transparent); }
[data-mode="light"] .how { background: linear-gradient(180deg, transparent, rgba(33, 168, 240, .07), transparent); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-n { display: block; font-weight: 800; font-size: 2.6rem; letter-spacing: -0.04em; line-height: 1; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--g2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 1.4rem; }
.steps p { color: var(--muted); margin: 0; }
.steps strong { color: var(--heading); }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); border: 1px solid var(--line); transition: border-color .3s, transform .3s; }
[data-mode="light"] .feature { background: #fff; box-shadow: 0 6px 24px rgba(15, 45, 90, .05); }
.feature:hover { border-color: rgba(33, 168, 240, .45); transform: translateY(-4px); }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; }
.f-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(33, 168, 240, .1); border: 1px solid rgba(33, 168, 240, .3); }
.f-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.advanced { margin-top: 80px; padding: 48px; border-radius: 28px; position: relative; overflow: hidden;
  background: radial-gradient(80% 100% at 100% 0, rgba(33, 168, 240, .22), transparent 60%), radial-gradient(60% 80% at 0 100%, rgba(56, 211, 248, .14), transparent 60%), var(--ink-2);
  border: 1px solid rgba(100, 189, 240, .25); }
[data-mode="light"] .advanced { background: radial-gradient(80% 100% at 100% 0, rgba(33, 168, 240, .12), transparent 60%), radial-gradient(60% 80% at 0 100%, rgba(56, 211, 248, .12), transparent 60%), #fff; border-color: rgba(33, 168, 240, .2); }
.adv-head { max-width: 680px; margin-bottom: 36px; }
.adv-head h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.adv-head p { color: var(--muted); }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 99px; background: rgba(247, 183, 49, .15); color: #ffd77a; border: 1px solid rgba(247, 183, 49, .35); margin-bottom: 16px; }
[data-mode="light"] .badge { color: #8a5a00; }
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.adv { padding: 26px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.adv-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 260px 1fr; column-gap: 28px; align-items: center; }
.adv-wide .adv-art { grid-row: span 2; margin: 0; }
.adv h4 { font-size: 1.25rem; margin-bottom: .4em; }
.adv p { color: var(--muted); margin: 0; }
.adv .adv-fact { margin-top: 14px; color: var(--text-soft); font-size: .93rem; }
.adv-fact b { color: var(--accent-ink); }
.adv-art { width: 100%; height: 80px; margin-bottom: 18px; }
.adv-art .past { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.adv-art .fut { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 6 6; }
.adv-art .band { fill: rgba(33, 168, 240, .16); }
.adv-art .hot { fill: var(--rose); filter: drop-shadow(0 0 8px rgba(251, 113, 133, .8)); }
.adv-art .dots circle { fill: var(--accent); opacity: .85; }
.adv-art .d2 circle { fill: var(--cyan); }
.adv-art .d3 circle { fill: var(--gold); }
.adv-art .b1 { fill: #0a72b5; } .adv-art .b2 { fill: var(--cyan); } .adv-art .b3 { fill: var(--blue); } .adv-art .b4 { fill: var(--gold); } .adv-art .b5 { fill: var(--rose); }
.adv-art .node { fill: var(--cyan); }
.adv-art .link { fill: none; stroke: rgba(56, 211, 248, .5); stroke-width: 1.5; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.why-num { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 10px;
  background: linear-gradient(90deg, var(--gold), #ffe29a); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-mode="light"] .why-num { background-image: linear-gradient(90deg, #b45309, #d97706); }
.why-card h3 { font-size: 1.2rem; }
.why-card p { color: var(--muted); margin: 0; }
.calc { margin-top: 40px; display: grid; grid-template-columns: 1.2fr 1fr; border-radius: 24px; overflow: hidden; border: 1px solid rgba(100, 189, 240, .25); }
.calc-in { padding: 36px; background: var(--ink-2); }
.calc-in h3 { font-size: 1.5rem; }
.calc-in label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; margin-top: 22px; }
.calc-in output { color: var(--accent-ink); font-weight: 800; }
.calc-in input[type="range"] { width: 100%; margin-top: 10px; accent-color: var(--accent); height: 28px; }
.calc-out { padding: 36px; background: linear-gradient(160deg, #0f345c, #0a213d); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
[data-mode="light"] .calc-out { background: linear-gradient(160deg, #e3f3fc, #d4edfa); }
.calc-out div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.calc-out span { color: var(--text-soft); }
.calc-out strong { font-size: 1.7rem; font-weight: 800; color: var(--heading); }
.calc-out div:nth-child(2) strong { color: var(--accent-ink); }
.fine { color: var(--muted); font-size: .82rem; margin: 6px 0 0; }

/* languages */
.langs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.langs p { color: var(--muted); font-size: 1.08rem; }
.langs strong { color: var(--heading); }
.lang-demo { margin-top: 26px; padding: 24px; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); }
.lang-demo .seg { margin-bottom: 18px; }
.bubble { padding: 14px 18px; border-radius: 18px; max-width: 92%; margin-bottom: 12px; font-size: 1rem; transition: opacity .3s; }
.bubble.you { margin-left: auto; background: #0b8ad6; color: #fff; border-bottom-right-radius: 6px; }
.bubble.ai { background: var(--tint); color: var(--text-soft); border-bottom-left-radius: 6px; }
.bubble b { color: var(--accent-ink); }
.bubble.fading { opacity: 0; }
.interop { padding: 34px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.interop h3 { font-size: 1.35rem; }
.chips { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips li { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.chips b { display: block; color: var(--heading); }
.chips span { color: var(--muted); font-size: .88rem; }

/* security */
.security { background: radial-gradient(70% 60% at 50% 0, rgba(33, 168, 240, .08), transparent 70%); }
.pipeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: p; }
.pipeline > li { position: relative; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.pipeline > li::after { content: ""; position: absolute; top: 46px; right: -21px; width: 22px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.pipeline > li:nth-child(3n)::after { display: none; }
.p-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(33, 168, 240, .1); border: 1px solid rgba(33, 168, 240, .3); margin-bottom: 16px; }
.p-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pipeline h3 { font-size: 1.15rem; }
.pipeline ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .96rem; }
.pipeline ul li { padding-left: 22px; position: relative; margin-top: 8px; }
.pipeline ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(33, 168, 240, .6); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.12rem; padding: 18px 40px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; color: var(--accent-ink); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; }

/* contact */
.contact-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding: 56px; border-radius: 30px;
  background: radial-gradient(70% 120% at 0 0, rgba(56, 211, 248, .18), transparent 60%), radial-gradient(70% 120% at 100% 100%, rgba(33, 168, 240, .3), transparent 60%), var(--ink-2);
  border: 1px solid rgba(100, 189, 240, .3); }
[data-mode="light"] .contact-card { background: radial-gradient(70% 120% at 0 0, rgba(56, 211, 248, .14), transparent 60%), radial-gradient(70% 120% at 100% 100%, rgba(33, 168, 240, .16), transparent 60%), #fff; border-color: rgba(33, 168, 240, .2); }
.contact-card > div > p { color: var(--text-soft); font-size: 1.1rem; }
.contact-list { font-style: normal; display: grid; gap: 12px; }
.contact-list a, .contact-list p { display: block; margin: 0; padding: 16px 20px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--heading); text-decoration: none; font-weight: 600; font-size: 1.08rem; transition: border-color .2s; overflow-wrap: anywhere; }
.contact-list a:hover { border-color: var(--accent); }
.contact-list span { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0 40px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer .brand { font-size: 1.25rem; }

/* whatsapp fab */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #2fa6f3, #0a72b5); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(11, 138, 214, .45); transition: transform .2s; }
/* pulse ring: transform + opacity only, so it runs on the compositor without restyling the page */
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #0b8ad6; z-index: -1; animation: wa-pulse 2.6s ease-out infinite; will-change: transform, opacity; }
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab:hover { transform: scale(1.08); }
.wa-tip { position: absolute; right: 72px; white-space: nowrap; background: #fff; color: #0b203a; font-weight: 600; font-size: .9rem; padding: 7px 12px; border-radius: 10px; box-shadow: 0 6px 20px rgba(15, 45, 90, .15); opacity: 0; transform: translateX(8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.wa-fab:hover .wa-tip, .wa-fab:focus-visible .wa-tip { opacity: 1; transform: none; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.45); opacity: 0; } }

/* responsive */
@media (max-width: 1100px) {
  .nav-links a { padding: 8px 10px; }
  .nav-cta .btn-ghost { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .menu-btn { display: block; order: 3; }
  .mode-btn { margin-left: auto; }
  .nav { border-radius: 22px; flex-wrap: wrap; padding: 10px 10px 10px 18px; gap: 0; }
  .nav-cta { display: none; }
  .nav-links { display: none; flex-direction: column; width: 100%; margin: 10px 0 4px; gap: 2px; order: 5; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 14px; }
  .nav-cta-m { display: block; margin-top: 8px; }
  .nav-cta-m .btn { width: 100%; }
  .hero { min-height: auto; padding: 140px 0 60px; }
  /* stacked layout: the cards sit below the text, so the dots sit behind the text and fade out downwards */
  .hero-dots { -webkit-mask-image: radial-gradient(ellipse 85% 40% at 20% 32%, #000 0, transparent 78%); mask-image: radial-gradient(ellipse 85% 40% at 20% 32%, #000 0, transparent 78%); }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-cards { height: 420px; }
  .card-dots { right: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps, .feature-grid { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline > li::after { display: none; }
  .langs-grid, .calc, .contact-card { grid-template-columns: 1fr; }
  .langs-grid { gap: 40px; }
}
@media (max-width: 640px) {
  .section { padding: 76px 0; }
  .announce { font-size: .85rem; }
  .brand { font-size: 1.35rem; }
  .hero-cards { height: 380px; }
  .q { font-size: 1.05rem; }
  .a-chip { font-size: .8rem; }
  .steps, .feature-grid, .adv-grid, .why-grid, .pipeline, .chips { grid-template-columns: 1fr; }
  .adv-wide { grid-template-columns: 1fr; }
  .advanced { padding: 26px 18px; }
  .calc-in, .calc-out, .contact-card { padding: 26px 20px; }
  .devices { padding-right: 0; padding-bottom: 0; }
  .phone { position: relative; right: auto; bottom: auto; width: 62%; margin: 28px auto 0; }
  .screen-note { margin-top: 24px; }
  .stat { padding: 24px 16px; }
  .stat strong { font-size: 1.35rem; }
  .hero-ctas .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
