/* =========================================================
   tech.yaml — main stylesheet
   Brand: black + yellow. Change colours in the tokens below.
   ========================================================= */

/* ---------- Theme tokens (dark is the brand default) ---------- */
:root {
  --bg: #0a0a0b;
  --bg-alt: #101012;
  --surface: #151517;
  --surface-2: #1c1c20;
  --border: #2a2a2f;
  --text: #f4f4f5;
  --text-muted: #a8a8b0;
  --accent: #ffc20e;              /* brand yellow: fills, buttons, highlights */
  --accent-strong: #ffd23f;
  --accent-text: #ffc20e;         /* yellow used as text/lines (darker in light mode) */
  --accent-ink: #111111;          /* text on yellow */
  --accent-soft: rgba(255, 194, 14, 0.12);
  --glow: rgba(255, 194, 14, 0.35);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --whatsapp: #25d366;
  --grid-line: rgba(255, 255, 255, 0.045);

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --font-script: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fafaf7; --bg-alt: #f2f1ec; --surface: #ffffff; --surface-2: #f6f5f0;
    --border: #e4e2da; --text: #111111; --text-muted: #55555c;
    --accent-strong: #f0b400; --accent-text: #8a6100;
    --accent-soft: rgba(255, 194, 14, 0.18); --glow: rgba(255, 194, 14, 0.4);
    --shadow: 0 20px 50px rgba(20, 20, 20, 0.08); --grid-line: rgba(0, 0, 0, 0.05);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #fafaf7; --bg-alt: #f2f1ec; --surface: #ffffff; --surface-2: #f6f5f0;
  --border: #e4e2da; --text: #111111; --text-muted: #55555c;
  --accent-strong: #f0b400; --accent-text: #8a6100;
  --accent-soft: rgba(255, 194, 14, 0.18); --glow: rgba(255, 194, 14, 0.4);
  --shadow: 0 20px 50px rgba(20, 20, 20, 0.08); --grid-line: rgba(0, 0, 0, 0.05);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font-sans); font-size: 1rem; line-height: 1.65;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.hl { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.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: absolute; left: 12px; top: -60px; z-index: 300; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--accent-ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.section { position: relative; padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
@media (min-width: 900px) { .section { padding: 112px 0; } }

.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 b { color: var(--accent-text); font-weight: 800; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--text-muted);
}
.eyebrow::before { content: ""; width: 30px; height: 4px; border-radius: 4px; background: var(--accent); }
.lead { font-size: 1.08rem; color: var(--text-muted); }

/* ---------- Logo (SVG recreation of the brand mark) ---------- */
.logo { display: inline-flex; color: var(--text); text-decoration: none; line-height: 0; }
.logo:hover { color: var(--text); }
.logo-svg { height: 42px; width: auto; overflow: visible; }
.logo-lg .logo-svg { height: 64px; }
.lg-text { font-family: var(--font-head); font-weight: 800; font-size: 54px; fill: currentColor; letter-spacing: -1px; }
.lg-dot { fill: var(--accent); }
.lg-line { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s .25s var(--ease) forwards; }
.lg-node, .lg-bar { fill: currentColor; }
.lg-node { transform-box: fill-box; transform-origin: center; animation: pop .5s 1.2s var(--ease) both; }
.lg-bar { transform-box: fill-box; transform-origin: left; animation: grow .7s .9s var(--ease) both; }
.lg-hatch path { fill: var(--accent); animation: hatch .4s var(--ease) both; }
.lg-hatch path:nth-child(1) { animation-delay: 1.3s; }
.lg-hatch path:nth-child(2) { animation-delay: 1.4s; }
.lg-hatch path:nth-child(3) { animation-delay: 1.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hatch { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -8px var(--glow); }
.btn-primary:hover { color: var(--accent-ink); box-shadow: 0 14px 34px -8px var(--glow); }
.btn-primary::after {           /* shine sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-outline { border-color: var(--border); color: var(--text); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-outline:hover { border-color: var(--accent); color: var(--text); }
.btn-whatsapp { background: var(--whatsapp); color: #062b14; box-shadow: 0 8px 24px -10px rgba(37, 211, 102, .6); }
.btn-whatsapp:hover { color: #062b14; background: #34df74; }
.btn-block { width: 100%; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .88rem; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.nav-menu { display: none; }
.nav-list { list-style: none; display: flex; gap: 2px; }
.nav-list a {
  position: relative; display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text-muted); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  transition: color .2s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-list a:hover, .nav-list a.active { color: var(--text); }
.nav-list a:hover::after, .nav-list a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer;
  transition: border-color .2s, transform .3s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle:active { transform: rotate(30deg); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
}
.header-cta { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }

@media (max-width: 1023px) {
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg);
    border-bottom: 1px solid var(--border); padding: 12px 16px 22px; box-shadow: var(--shadow);
  }
  .nav-menu.open { display: block; animation: menuIn .3s var(--ease); }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 14px 12px; font-size: 1.05rem; }
  .nav-list a::after { display: none; }
  .nav-menu .btn { margin-top: 12px; width: 100%; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (min-width: 1024px) {
  .nav-menu { display: flex; align-items: center; }
  .nav-menu .btn, .menu-toggle { display: none; }
  .header-cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 80px; overflow: hidden; isolation: isolate; }
@media (min-width: 1024px) { .hero { padding: 64px 0 130px; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; } }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute; width: 640px; height: 640px; right: -180px; top: -120px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%); opacity: .45;
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.12) translate(-20px, 20px); opacity: .3; } }
.corner { position: absolute; width: 0; height: 0; }
.corner-tl { top: 0; left: 0; border-top: 110px solid var(--accent); border-right: 110px solid transparent; }
.corner-br { right: 0; bottom: 0; border-bottom: 90px solid var(--accent); border-left: 90px solid transparent; }
.corner-line { position: absolute; top: 0; left: 0; width: 260px; height: 2px; background: var(--border); transform-origin: left top; transform: translate(150px, 0) rotate(135deg); }
@media (max-width: 640px) { .corner-tl { border-top-width: 56px; border-right-width: 56px; } .corner-br, .corner-line { display: none; } }
.circuit { position: absolute; left: 0; bottom: 30px; width: 100%; height: 80px; color: var(--border); }
.circuit .trace { fill: none; stroke: currentColor; stroke-width: 1.5; }
.circuit .pulse { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 60 1400; animation: travel 6s linear infinite; }
.circuit .pulse.two { animation-delay: -3s; animation-duration: 7.5s; }
@keyframes travel { from { stroke-dashoffset: 1460; } to { stroke-dashoffset: 0; } }

.hero-inner { position: relative; display: grid; gap: 44px; align-items: center; width: 100%; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 40px; } }
.hero-copy { position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px;
  border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: .85rem; color: var(--text-muted); margin-bottom: 18px;
}
.badge .ping { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.badge .ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
.brand-line { font-family: var(--font-head); font-weight: 600; color: var(--text); margin-bottom: 12px; font-size: 1.05rem; }
.brand-line b { color: var(--accent-text); font-weight: 800; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 560px; margin-bottom: 30px; }
.ideas {
  position: absolute; right: 0; top: -4px; transform: rotate(-12deg); pointer-events: none;
  font-family: var(--font-script); font-weight: 700; font-size: 1.8rem; line-height: .9; color: var(--accent-text); text-align: center;
}
.ideas svg { width: 92px; height: 14px; margin: 4px auto 0; color: var(--accent); }
@media (max-width: 1023px) { .ideas { display: none; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .cta-row .btn { flex: 0 0 auto; } }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--text-muted); font-size: .92rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--accent-text); flex: none; }

/* Hero entrance */
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero-copy > *:nth-child(6) { animation-delay: .4s; }
.hero-copy > *:nth-child(7) { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Hero visual: code card + phone + floating chips */
.hero-visual { position: relative; animation: rise 1s .3s var(--ease) both; }
@media (min-width: 1024px) { .hero-visual { min-height: 540px; } }

.code-card {
  --code-bg: #0e0e10; --code-border: #2a2a2f; --code-text: #f4f4f5;
  --code-key: #e9e9ec; --code-str: #ffd66b; --code-comment: #8a8a93; --code-accent: #ffc20e;
  position: relative; background: var(--code-bg); border: 1px solid var(--code-border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--code-text);
}
.code-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--code-accent), transparent); }
@media (min-width: 1024px) { .hero-visual .code-card { width: 72%; margin-top: 30px; } }
.code-card-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--code-border); }
.code-card-bar .dots { display: flex; gap: 6px; }
.code-card-bar .dots span { width: 11px; height: 11px; border-radius: 50%; }
.code-card-bar .dots span:nth-child(1) { background: #ff5f57; }
.code-card-bar .dots span:nth-child(2) { background: #febc2e; }
.code-card-bar .dots span:nth-child(3) { background: #28c840; }
.code-card-bar .filename { font-family: var(--font-mono); font-size: .8rem; color: var(--code-comment); margin-left: 8px; }
.code-card pre { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--font-mono); font-size: .88rem; line-height: 1.8; }
@media (min-width: 480px) { .code-card pre { font-size: .95rem; padding: 22px 26px; } }
.code-card .k { color: var(--code-key); }
.code-card .s { color: var(--code-str); }
.code-card .c { color: var(--code-comment); }
.code-card .a { color: var(--code-accent); }
.code-card .ln { display: inline-block; opacity: 0; animation: typeIn .35s var(--ease) forwards; animation-delay: calc(.7s + var(--i) * .16s); }
@keyframes typeIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.cursor { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.18em; background: var(--code-accent); margin-left: 3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.phone {
  display: none; position: absolute; right: 0; top: 0; width: 240px; aspect-ratio: 9 / 18.5;
  padding: 10px; border-radius: 40px; background: #050506; border: 1px solid #2c2c31;
  box-shadow: 0 30px 70px rgba(0,0,0,.55), inset 0 0 0 2px #17171a;
  animation: floatY 7s ease-in-out infinite;
}
@media (min-width: 1024px) { .phone { display: block; } }
@keyframes floatY { 0%, 100% { transform: rotate(5deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-14px); } }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; margin-left: -38px; background: #000; border-radius: 20px; z-index: 2; }
.phone-screen {
  height: 100%; border-radius: 31px; padding: 46px 14px 14px; overflow: hidden; color: #f4f4f5;
  background: radial-gradient(120% 60% at 80% 0%, rgba(255,194,14,.14), transparent 60%), #121214;
  display: flex; flex-direction: column; gap: 10px; font-size: .72rem; line-height: 1.4;
}
.ph-hello { margin: 0; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: #9a9aa3; }
.ph-title { margin: -6px 0 2px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.ph-card { border-radius: 16px; padding: 12px; background: linear-gradient(135deg, #ffc20e, #ff9f0e); color: #111; }
.ph-card span { font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.ph-card strong { display: block; font-family: var(--font-head); font-size: 1.1rem; margin: 2px 0 4px; }
.ph-card svg { width: 100%; height: 30px; }
.ph-card polyline { fill: none; stroke: #111; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s 1.2s var(--ease) forwards; }
.ph-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-mini, .ph-item { background: #1b1b1f; border: 1px solid #26262b; border-radius: 12px; padding: 9px 10px; }
.ph-mini span { display: block; font-size: .54rem; color: #9a9aa3; text-transform: uppercase; letter-spacing: .08em; }
.ph-mini b { font-family: var(--font-head); font-size: .88rem; }
.ph-mini b::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; margin-right: 6px; vertical-align: middle; animation: blink 1.6s steps(1) infinite; }
.ph-item { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.ph-item i { width: 22px; height: 22px; border-radius: 7px; background: rgba(255,194,14,.14); border: 1px solid rgba(255,194,14,.45); flex: none; }
.ph-item small { display: block; font-weight: 400; color: #9a9aa3; font-size: .54rem; }
.ph-nav { margin-top: auto; display: flex; justify-content: space-around; align-items: center; padding: 10px; border-radius: 14px; background: #1b1b1f; }
.ph-nav i { width: 6px; height: 6px; border-radius: 50%; background: #4a4a52; }
.ph-nav i:first-child { width: 22px; border-radius: 4px; background: #ffc20e; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border);
  font-family: var(--font-head); font-weight: 700; font-size: .76rem; letter-spacing: .08em;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.5);
}
.chip span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); }
.chip svg { width: 15px; height: 15px; }
@media (min-width: 1024px) {
  .chips { position: absolute; inset: 0; margin: 0; pointer-events: none; }
  .chip { position: absolute; animation: floatChip 6s ease-in-out infinite; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .chip:nth-child(1) { left: 6%; top: 0; }
  .chip:nth-child(2) { left: 34%; top: 0; animation-delay: -1.5s; }
  .chip:nth-child(3) { left: 2%; top: 82%; animation-delay: -3s; }
  .chip:nth-child(4) { left: 30%; top: 90%; animation-delay: -4.5s; }
  .chip:nth-child(5) { right: 4%; top: 92%; animation-delay: -2.2s; }
}
@keyframes floatChip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Marquee band ---------- */
.marquee-wrap { position: relative; z-index: 2; overflow: hidden; padding: 18px 0; margin-top: -28px; }
.marquee {
  overflow: hidden; background: var(--accent); color: #111; transform: rotate(-1.6deg);
  margin: 0 -20px; padding: 14px 0; box-shadow: 0 10px 40px -10px var(--glow);
}
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { list-style: none; display: flex; align-items: center; flex: none; }
.marquee li { display: flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.marquee li::after { content: "✦"; font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid { gap: 20px; } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--accent-soft), transparent 45%);
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 24px 50px -24px var(--glow); }
.card:hover::before { opacity: 1; }
.card p { color: var(--text-muted); }

.icon-box {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; margin-bottom: 20px;
  border: 2px solid var(--accent); color: var(--accent-text); background: var(--accent-soft);
  transition: transform .5s var(--ease), background-color .3s, color .3s;
}
.icon-box svg { width: 26px; height: 26px; }
.card:hover .icon-box { transform: rotate(-8deg) scale(1.06); background: var(--accent); color: var(--accent-ink); }
.card-num { position: absolute; top: 20px; right: 22px; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--border); transition: color .3s; }
.card:hover .card-num { color: color-mix(in srgb, var(--accent) 45%, transparent); }
.card-tag { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); margin-left: 4px; vertical-align: 3px; font-family: var(--font-head); }
.subline { font-size: .8rem; color: var(--text-muted); margin: -6px 0 10px; font-weight: 600; }
.subline span { color: var(--accent-text); padding: 0 4px; }
.check-list { list-style: none; display: grid; gap: 9px; }
.check-list li { position: relative; padding-left: 26px; font-size: .94rem; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 13px; height: 7px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg); }
.service-card.featured { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }

/* ---------- Process ---------- */
.steps { list-style: none; position: relative; display: grid; gap: 18px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps::before, .steps::after { content: ""; position: absolute; top: 48px; left: 10%; right: 10%; height: 2px; z-index: 0; }
  .steps::before { background: var(--border); }
  .steps::after { background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .3s; }
  .steps.visible::after { transform: scaleX(1); }
}
.step { z-index: 1; }
.step-num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-family: var(--font-head); font-weight: 800; margin-bottom: 18px;
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--border);
}
.step-tag { font-family: var(--font-mono); font-size: .78rem; color: var(--accent-text); display: block; margin-bottom: 6px; }
.step p { margin: 0; }

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 36px; }
@media (min-width: 1000px) { .why-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; } }
.feature-list { list-style: none; display: grid; gap: 10px; }
.feature { display: flex; gap: 16px; padding: 16px; border-radius: var(--radius-sm); border: 1px solid transparent; transition: background-color .3s, border-color .3s, transform .4s var(--ease); }
.feature:hover { background: var(--surface); border-color: var(--border); transform: translateX(6px); }
.feature .icon-box { margin: 0; width: 48px; height: 48px; flex: none; }
.feature .icon-box svg { width: 22px; height: 22px; }
.feature:hover .icon-box { background: var(--accent); color: var(--accent-ink); }
.feature h3 { margin-bottom: 4px; }
.feature p { margin: 0; color: var(--text-muted); }
.founder-card { padding: 30px; }
@media (min-width: 1000px) { .founder-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.founder-card::after { content: ""; position: absolute; top: 0; right: 0; border-top: 64px solid var(--accent); border-left: 64px solid transparent; }
.founder-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.avatar { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #0a0a0b; color: #fff; border: 3px solid var(--accent); font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; flex: none; }
.avatar-logo { border: 0; background: none; }
.avatar-logo img { width: 100%; height: 100%; border-radius: 50%; }
.founder-head h3 { margin: 0; }
.founder-head p { margin: 0; font-size: .88rem; font-family: var(--font-mono); color: var(--text-muted); }
.founder-sign { font-family: var(--font-script); font-weight: 700; font-size: 1.9rem; color: var(--accent-text); margin: 4px 0 16px; line-height: 1; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .price-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .price-grid { grid-template-columns: repeat(4, 1fr); } }
.price-card { display: flex; flex-direction: column; overflow: visible; }
.price-card.popular { border: 2px solid var(--accent); box-shadow: 0 24px 60px -30px var(--glow); }
.price-label { font-family: var(--font-head); font-size: .72rem; font-weight: 700; color: var(--accent-text); text-transform: uppercase; letter-spacing: .2em; margin-bottom: 6px; }
.price { margin: 10px 0 6px; }
.price .from { display: block; font-size: .74rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.price .amount { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; }
.price .amount-sm { font-size: 1.6rem; display: block; line-height: 1.6; }
.price .per { color: var(--text-muted); font-weight: 600; }
.price-card .check-list { margin: 16px 0 26px; flex: 1; }
.pill { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-family: var(--font-head); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.note { font-size: .88rem; color: var(--text-muted); margin-top: 28px; text-align: center; }

/* ---------- Work ---------- */
.work-card { display: flex; flex-direction: column; }
.work-thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); margin-bottom: 20px; overflow: hidden;
  background: linear-gradient(135deg, #17171a, #0c0c0d); border: 1px solid var(--border);
  display: grid; place-items: center; font-family: var(--font-mono); color: #a8a8b0; font-size: .88rem; text-align: center; padding: 12px;
}
.work-thumb::before { content: ""; position: absolute; top: 0; left: 0; border-top: 46px solid var(--accent); border-right: 46px solid transparent; transition: border-width .5s var(--ease); }
.work-card:hover .work-thumb::before { border-top-width: 72px; border-right-width: 72px; }
.work-thumb .browser { position: absolute; top: 10px; right: 12px; display: flex; gap: 5px; }
.work-thumb .browser i { width: 8px; height: 8px; border-radius: 50%; background: #3a3a40; }
.work-card.placeholder { border-style: dashed; background: transparent; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 800; font-family: var(--font-head); padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 12px; width: fit-content; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.4s steps(1) infinite; }
.work-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tag { font-family: var(--font-mono); font-size: .74rem; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--border); color: var(--text-muted); }

/* ---------- Tech ---------- */
.tech-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 900px; margin: 0 auto; }
.tech-list li { font-family: var(--font-mono); font-size: .95rem; padding: 12px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.tech-list li:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 30px -14px var(--glow); }
.tech-list li::before { content: "- "; color: var(--accent-text); }

/* ---------- Let's build together ---------- */
.build { text-align: center; overflow: hidden; }
.brush { position: relative; display: inline-block; margin: 0 auto 44px; padding: 10px 44px 18px; }
.brush svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); z-index: 0; overflow: visible; }
.brush svg path { transform-origin: left center; transform: scaleX(0); transition: transform 1s var(--ease) .1s; }
.brush.visible svg path { transform: scaleX(1); }
.brush h2 { position: relative; z-index: 1; margin: 0; font-family: var(--font-script); font-weight: 700; font-size: clamp(2.5rem, 9vw, 4.2rem); color: #111; letter-spacing: 0; line-height: 1.1; transform: rotate(-3deg); }
.build-steps { list-style: none; display: grid; gap: 14px; max-width: 940px; margin: 0 auto 36px; }
@media (min-width: 760px) { .build-steps { grid-template-columns: repeat(3, 1fr); gap: 0; } .build-steps li + li { border-left: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); } }
.build-steps li { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 18px; text-align: left; font-family: var(--font-head); font-weight: 600; line-height: 1.3; }
.build-steps svg { width: 42px; height: 42px; color: var(--accent-text); flex: none; }
.motto { font-family: var(--font-head); color: var(--text-muted); font-size: .95rem; margin-top: 22px; }
.motto .arr { color: var(--accent-text); padding: 0 4px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color .3s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 64px 20px 22px; position: relative; font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background-color: var(--accent-soft);
  background-image: linear-gradient(var(--accent-text), var(--accent-text)), linear-gradient(var(--accent-text), var(--accent-text));
  background-size: 12px 2px, 2px 12px; background-position: center; background-repeat: no-repeat;
  transition: transform .35s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: var(--radius-sm); }
.faq-body { padding: 0 22px 20px; color: var(--text-muted); animation: fadeDown .35s var(--ease); }
.faq-body p { margin: 0; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 36px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; } }
.contact-methods { list-style: none; display: grid; gap: 12px; margin: 26px 0; }
.contact-method { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: border-color .3s, transform .4s var(--ease); }
.contact-method:hover { border-color: var(--accent); color: var(--text); transform: translateX(6px); }
.contact-method .icon-box { margin: 0; width: 44px; height: 44px; flex: none; border-width: 1.5px; }
.contact-method .icon-box svg { width: 20px; height: 20px; }
.contact-method small { display: block; color: var(--text-muted); font-size: .78rem; }
.contact-method .v { font-weight: 700; word-break: break-word; }
.form-card { padding: 28px; }
.form-card:hover { transform: none; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field .opt { color: var(--text-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: #e5484d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.form-status.show { display: block; animation: fadeDown .35s var(--ease); }
.form-status.success { background: var(--accent-soft); border: 1px solid var(--accent); }
.form-status.error { background: rgba(229, 72, 77, .1); border: 1px solid #e5484d; }
.form-small { font-size: .84rem; color: var(--text-muted); margin: 0; }

/* ---------- Footer (always brand-dark) ---------- */
.site-footer { position: relative; overflow: hidden; background: #070708; color: #e9e9ec; border-top: 1px solid #1f1f23; padding: 64px 0 28px; font-size: .95rem; }
.site-footer::after { content: ""; position: absolute; right: 0; bottom: 0; border-bottom: 80px solid #ffc20e; border-left: 80px solid transparent; }
.site-footer .logo { color: #fff; }
.site-footer .lg-dot, .site-footer .lg-hatch path { fill: #ffc20e; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-grid h2 { font-size: .76rem; color: #a8a8b0; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid a { color: #e9e9ec; text-decoration: none; transition: color .2s; }
.footer-grid a:hover { color: #ffc20e; }
.footer-grid p { color: #a8a8b0; }
.footer-grid .tagline { margin-top: 18px; }
.footer-grid .tagline b { color: #ffc20e; }
.footer-bottom { position: relative; z-index: 1; margin-top: 44px; padding-top: 20px; border-top: 1px solid #1f1f23; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; color: #8a8a93; font-size: .86rem; padding-right: 70px; }
.footer-bottom p { margin: 0; }
.site-footer .motto { margin: 0; color: #8a8a93; font-size: .86rem; }
.site-footer .motto .arr { color: #ffc20e; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 150; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--whatsapp); color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.35); transition: transform .3s var(--ease);
  animation: waIn .6s 1.2s var(--ease) both;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whatsapp); animation: ring 2.4s ease-out 2s infinite; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
@keyframes waIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
@media (min-width: 768px) { .wa-float { right: 24px; bottom: 24px; } }

/* ---------- 404 ---------- */
.notfound { position: relative; overflow: hidden; min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 56px 0; text-align: center; isolation: isolate; }
.notfound .code-card { text-align: left; max-width: 460px; margin: 0 auto 32px; }
.notfound .cta-row { justify-content: center; }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .card.reveal.visible { transition: opacity .8s var(--ease) calc(var(--d, 0) * 90ms), transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .lg-line, .ph-card polyline { stroke-dashoffset: 0; }
  .marquee-track, .cursor, .circuit .pulse, .phone, .chip { animation: none !important; }
  .card:hover, .btn:hover { transform: none; }
}
