/* =========================================================
   HAIGA Systems — global styles
   ========================================================= */
:root {
  --bg: #06080c;
  --bg-2: #0b0f16;
  --surface: #0f141d;
  --surface-2: #151b26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2f7;
  --muted: #8a94a6;
  --dim: #5b6576;
  --accent: #2ee6c5;
  --accent-2: #4d7cfe;
  --accent-3: #a78bfa;
  --wa: #25d366;
  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent-3) 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max: 1240px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--accent); color: #031512; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* grain + grid backdrop */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

/* cursor glow */
.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 230, 197, 0.10), transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  transition: opacity .3s;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
  will-change: transform;
}
.btn-primary { background: var(--accent); color: #03140f; box-shadow: 0 0 0 0 rgba(46, 230, 197, .5); }
.btn-primary:hover { box-shadow: 0 10px 40px -8px rgba(46, 230, 197, .7); }
.btn-ghost { border: 1px solid var(--line-strong); background: rgba(255,255,255,.02); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%;
  transform: translateX(-50%);
  width: min(var(--max), calc(100% - 32px));
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.nav.scrolled {
  background: rgba(10, 13, 19, .72);
  border-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; }
.brand img { width: 34px; height: auto; filter: brightness(0) invert(1); }
.brand small { font-weight: 400; color: var(--muted); letter-spacing: .1em; font-size: .7rem; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: .92rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.06); }
.nav .btn { padding: 10px 18px; }
.nav-right { display: flex; align-items: center; gap: 8px; }

/* language switcher */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.03);
  font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .06em;
  transition: background .2s, border-color .2s;
}
.lang-btn:hover, .lang.open .lang-btn { background: rgba(255,255,255,.08); border-color: var(--accent); }
.lang-btn svg { width: 16px; height: 16px; color: var(--accent); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px;
  padding: 6px; border-radius: 16px;
  background: rgba(15,20,29,.96); border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; font-size: .92rem; color: var(--muted); text-align: left;
  transition: background .2s, color .2s;
}
.lang-menu button:hover { background: rgba(255,255,255,.06); color: var(--text); }
.lang-menu button.active { color: var(--accent); background: rgba(46,230,197,.08); }
.lang-menu button.active::after { content: "✓"; margin-left: auto; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); }
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--text); margin: 4px auto; transition: transform .3s; }

@media (max-width: 920px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open { border-radius: 24px; background: rgba(10,13,19,.95); flex-wrap: wrap; border-color: var(--line); }
  .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; padding: 12px 0 6px; order: 3; }
  .nav.open .nav-links a { display: block; padding: 12px 10px; font-size: 1.05rem; }
  .nav.open .nav-toggle span:first-child { transform: translateY(2.75px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
}

/* ---------- sections ---------- */
section { position: relative; padding: 120px 0; }
.section-head { display: grid; gap: 18px; margin-bottom: 56px; max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- hero ---------- */
.hero, .page-hero { position: relative; }
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
#flow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 200px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero h1 { margin: 22px 0 26px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero .lead { opacity: 0; animation: fade 1s .5s var(--ease) forwards; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; opacity: 0; animation: fade 1s .65s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.typer { color: var(--accent); border-right: 2px solid var(--accent); padding-right: 4px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { border-color: transparent; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.03);
  font-size: .85rem; color: var(--muted);
  opacity: 0; animation: fade 1s .1s var(--ease) forwards;
}
.hero-badge b { background: rgba(46,230,197,.14); color: var(--accent); border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: .75rem; }

.hero-emblem { position: relative; aspect-ratio: 1; display: grid; place-items: center; opacity: 0; animation: fade 1.4s .4s var(--ease) forwards; }
.hero-emblem img { width: 58%; filter: brightness(0) invert(1) drop-shadow(0 0 40px rgba(46,230,197,.35)); position: relative; z-index: 2; transition: transform .2s linear; }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-strong); animation: spin 40s linear infinite; }
.orbit:nth-child(2) { inset: 12%; border-style: dashed; border-color: rgba(46,230,197,.25); animation-duration: 28s; animation-direction: reverse; }
.orbit:nth-child(3) { inset: 24%; border-color: rgba(77,124,254,.25); animation-duration: 18s; }
.orbit i {
  position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 18px var(--accent);
}
.orbit:nth-child(3) i { background: var(--accent-2); box-shadow: 0 0 18px var(--accent-2); }
.orbit-tag {
  position: absolute; z-index: 3;
  padding: 8px 14px; border-radius: 12px;
  background: rgba(15,20,29,.85); border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  font-size: .8rem; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.orbit-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.orbit-tag:nth-of-type(1) { top: 8%; left: -6%; }
.orbit-tag:nth-of-type(2) { top: 44%; right: -10%; animation-delay: -2s; }
.orbit-tag:nth-of-type(3) { bottom: 6%; left: 4%; animation-delay: -4s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 80px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hero-stats div { background: rgba(8,11,16,.8); padding: 24px; backdrop-filter: blur(6px); }
.hero-stats strong { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; display: block; line-height: 1.1; }
.hero-stats span { color: var(--muted); font-size: .88rem; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-emblem { max-width: 340px; margin: 20px auto 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .orbit-tag:nth-of-type(2) { right: -4%; }
  .orbit-tag:nth-of-type(1) { left: 0; }
}

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-size: 1.5rem; color: var(--dim); display: flex; align-items: center; gap: 56px; white-space: nowrap; transition: color .3s; }
.marquee-track span:hover { color: var(--text); }
.marquee-track span::after { content: "✦"; color: var(--accent); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- systems tabs ---------- */
.sys-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; width: fit-content; background: var(--bg-2); position: relative; }
.sys-tab {
  position: relative; z-index: 1;
  padding: 10px 20px; border-radius: 999px; font-weight: 500; font-size: .93rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px; transition: color .3s;
}
.sys-tab svg { width: 18px; height: 18px; }
.sys-tab.active { color: #03140f; }
.sys-tab-pill { position: absolute; top: 6px; left: 0; height: calc(100% - 12px); border-radius: 999px; background: var(--accent); transition: all .5s var(--ease); z-index: 0; }

.sys-panel { display: none; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.sys-panel.active { display: grid; animation: fade .7s var(--ease); }
.sys-panel h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 14px 0 16px; }
.sys-panel .lead { font-size: 1.02rem; }
.feat-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 4px; }
.feat-list li {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start;
  padding: 12px 14px; border-radius: 12px; transition: background .3s;
}
.feat-list li:hover { background: rgba(255,255,255,.04); }
.feat-list li i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(46,230,197,.1); color: var(--accent); font-style: normal; }
.feat-list li i svg { width: 16px; height: 16px; }
.feat-list b { display: block; font-weight: 600; font-size: .98rem; }
.feat-list small { color: var(--muted); font-size: .88rem; }

/* mock dashboard */
.mock {
  position: relative;
  border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 40px 120px -40px rgba(46,230,197,.25), 0 0 0 1px rgba(0,0,0,.4) inset;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .3s var(--ease);
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3140; }
.mock-bar i:first-child { background: #ff5f57; } .mock-bar i:nth-child(2) { background: #febc2e; } .mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar span { margin-left: 10px; }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi small { color: var(--muted); font-size: .72rem; display: block; }
.kpi strong { font-family: var(--font-display); font-size: 1.35rem; }
.kpi em { font-style: normal; font-size: .72rem; color: var(--accent); margin-left: 6px; }
.panel-box { background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.panel-box h5 { margin: 0 0 10px; font-size: .78rem; color: var(--muted); font-weight: 500; display: flex; justify-content: space-between; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }

/* trucking map */
.map { position: relative; height: 210px; border-radius: 10px; overflow: hidden; background:
  radial-gradient(circle at 30% 40%, rgba(77,124,254,.12), transparent 50%),
  repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,.03) 22px 23px),
  repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.03) 22px 23px), #0a0e15; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.route { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 6 6; animation: dash 1.2s linear infinite; }
.route.b { stroke: var(--accent-2); }
@keyframes dash { to { stroke-dashoffset: -24; } }
.truck-dot { fill: #fff; filter: drop-shadow(0 0 6px var(--accent)); }
.fleet-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: .8rem; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.fleet-row:last-child { border: 0; }
.status { font-size: .68rem; padding: 3px 8px; border-radius: 999px; font-weight: 600; }
.s-go { background: rgba(46,230,197,.14); color: var(--accent); }
.s-wait { background: rgba(254,188,46,.14); color: #febc2e; }
.s-done { background: rgba(77,124,254,.16); color: #8aa6ff; }
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar > b { display: block; height: 100%; border-radius: inherit; background: var(--grad); width: 0; transition: width 1.6s var(--ease); }
.sys-panel.active .bar > b { width: var(--w); }

/* freight timeline */
.ship-steps { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; margin: 8px 0 4px; }
.ship-steps::before { content: ""; position: absolute; top: 13px; left: 10%; right: 10%; height: 2px; background: var(--line-strong); }
.ship-steps::after { content: ""; position: absolute; top: 13px; left: 10%; height: 2px; width: 0; background: var(--grad); transition: width 2s .3s var(--ease); }
.sys-panel.active .ship-steps::after { width: 48%; }
.ship-steps div { text-align: center; font-size: .7rem; color: var(--muted); position: relative; z-index: 1; }
.ship-steps div i { width: 28px; height: 28px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-strong); font-style: normal; font-size: .8rem; }
.ship-steps div.done i { border-color: var(--accent); background: rgba(46,230,197,.15); color: var(--accent); }
.ship-steps div.now i { border-color: var(--accent-2); box-shadow: 0 0 0 6px rgba(77,124,254,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(77,124,254,.05); } }
.doc-chip { display: inline-flex; gap: 6px; align-items: center; font-size: .72rem; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); margin: 0 6px 6px 0; }
.doc-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.doc-chip.pending::before { background: #febc2e; }

/* wms bins */
.bins { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.bins span { aspect-ratio: 1; border-radius: 4px; background: rgba(46,230,197,var(--o, .1)); transition: transform .2s, background .3s; }
.bins span:hover { transform: scale(1.35); background: var(--accent-2); }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; }
.chart-bars span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(to top, rgba(77,124,254,.3), var(--accent-2)); height: 0; transition: height 1.2s var(--ease); }
.sys-panel.active .chart-bars span { height: var(--h); }

/* website mock */
.browser { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0a0d13; }
.browser .url { margin: 10px; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.05); font-size: .72rem; color: var(--muted); }
.wf { padding: 14px; display: grid; gap: 10px; }
.wf-hero { height: 90px; border-radius: 10px; background: linear-gradient(120deg, rgba(46,230,197,.25), rgba(77,124,254,.25), rgba(167,139,250,.25)); background-size: 200% 200%; animation: shimmer 6s ease infinite; display: grid; align-content: center; padding: 0 16px; gap: 6px; }
.wf-hero b { display: block; height: 10px; width: 55%; border-radius: 4px; background: rgba(255,255,255,.7); }
.wf-hero b + b { width: 35%; background: rgba(255,255,255,.35); }
@keyframes shimmer { 50% { background-position: 100% 50%; } }
.wf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wf-cards i { height: 54px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.ring { --p: 0; width: 56px; height: 56px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255,255,255,.07) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; }
.scores small { font-size: .68rem; color: var(--muted); }

@media (max-width: 920px) {
  .sys-panel, .sys-panel.active { grid-template-columns: 1fr; }
  .sys-tabs { border-radius: 20px; width: 100%; }
  .sys-tab-pill { display: none; }
  .sys-tab.active { background: var(--accent); }
  .split { grid-template-columns: 1fr; }
}

/* ---------- AI / WhatsApp ---------- */
.ai-section { background: radial-gradient(ellipse at 80% 50%, rgba(37,211,102,.08), transparent 60%); }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.phone {
  width: min(360px, 100%); margin-inline: auto;
  border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #1f2633, #0b0e14);
  border: 1px solid var(--line-strong);
  box-shadow: 0 60px 120px -40px rgba(37,211,102,.35);
  position: relative;
}
.phone-screen { border-radius: 34px; overflow: hidden; background: #0b141a; height: 600px; display: flex; flex-direction: column; }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 34px 16px 12px; background: #1f2c34; }
.wa-head .av { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.wa-head .av img { width: 26px; }
.wa-head b { font-size: .95rem; display: block; line-height: 1.2; }
.wa-head small { font-size: .72rem; color: var(--wa); }
.wa-body {
  flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px;
  background-color: #0b141a;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 18px 18px;
  scrollbar-width: none;
}
.wa-body::-webkit-scrollbar { display: none; }
.msg { max-width: 82%; padding: 8px 11px 6px; border-radius: 10px; font-size: .85rem; line-height: 1.45; position: relative; animation: pop .35s var(--ease); white-space: pre-line; }
.msg time { display: block; text-align: right; font-size: .62rem; color: rgba(255,255,255,.45); margin-top: 2px; }
.msg.bot { background: #1f2c34; align-self: flex-start; border-top-left-radius: 2px; }
.msg.user { background: #005c4b; align-self: flex-end; border-top-right-radius: 2px; }
.msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; } .msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; transform: translateY(-2px); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.wa-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px 14px; background: #0b141a; border-top: 1px solid rgba(255,255,255,.05); }
.wa-quick button { font-size: .76rem; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(37,211,102,.4); color: var(--wa); transition: background .2s; }
.wa-quick button:hover { background: rgba(37,211,102,.12); }
.wa-quick button:disabled { opacity: .4; cursor: default; }

.auto-list { display: grid; gap: 14px; margin-top: 32px; }
.auto-item { display: flex; gap: 16px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.02); transition: border-color .3s, transform .3s var(--ease); }
.auto-item:hover { border-color: rgba(37,211,102,.4); transform: translateX(6px); }
.auto-item i { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(37,211,102,.12); color: var(--wa); }
.auto-item i svg { width: 22px; height: 22px; }
.auto-item b { display: block; margin-bottom: 2px; }
.auto-item p { color: var(--muted); font-size: .92rem; }
@media (max-width: 920px) { .ai-grid { grid-template-columns: 1fr; } .phone-screen { height: 540px; } }

/* automation flow */
.flow { margin-top: 90px; padding: 34px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.flow-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.flow-nodes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.flow-node { position: relative; text-align: center; padding: 0 8px; }
.flow-node .n { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-strong); transition: all .4s var(--ease); position: relative; z-index: 1; }
.flow-node .n svg { width: 26px; height: 26px; color: var(--muted); transition: color .4s; }
.flow-node b { font-size: .92rem; display: block; }
.flow-node small { font-size: .8rem; color: var(--muted); }
.flow-node:not(:last-child)::after { content: ""; position: absolute; top: 32px; left: calc(50% + 40px); right: calc(-50% + 40px); height: 2px; background: var(--line-strong); }
.flow-node.lit .n { border-color: var(--accent); background: rgba(46,230,197,.12); box-shadow: 0 0 30px rgba(46,230,197,.35); transform: translateY(-4px); }
.flow-node.lit .n svg { color: var(--accent); }
.flow-node.lit:not(:last-child)::after { background: var(--grad); }
@media (max-width: 760px) {
  .flow-nodes { grid-template-columns: 1fr; gap: 22px; }
  .flow-node { display: grid; grid-template-columns: 64px 1fr; gap: 16px; text-align: left; align-items: center; }
  .flow-node .n { margin: 0; }
  .flow-node:not(:last-child)::after { top: 64px; left: 31px; right: auto; width: 2px; height: 22px; }
}

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden;
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(46,230,197,.12), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-strong); }
.card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(46,230,197,.1); color: var(--accent); margin-bottom: 22px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
.card-big { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.big-num { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); font-weight: 600; line-height: 1; }
@media (max-width: 920px) { .bento { grid-template-columns: 1fr 1fr; } .span-2, .span-3, .span-4 { grid-column: span 2; } .card-big { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .span-2, .span-3, .span-4 { grid-column: span 1; } }

/* ---------- portfolio ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filters button { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .9rem; color: var(--muted); transition: all .3s; }
.filters button.active, .filters button:hover { color: #03140f; background: var(--accent); border-color: var(--accent); }
.port-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface);
  transition: transform .5s var(--ease), opacity .4s, border-color .3s;
}
.project.hide { display: none; }
.project:hover { border-color: var(--line-strong); }
.project-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; display: grid; place-items: center; }
.project-thumb .ph { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.project:hover .project-thumb .ph { transform: scale(1.07); }
.project-thumb .ph-label { position: relative; z-index: 1; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; text-align: center; padding: 0 20px; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.project-thumb .open { position: absolute; z-index: 2; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; transform: scale(0) rotate(-45deg); transition: transform .4s var(--ease); }
.project:hover .open { transform: scale(1) rotate(0); }
.project-info { padding: 20px 22px 24px; }
.project-info .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.project-info .tags span { font-size: .72rem; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--muted); }
.project-info h4 { font-size: 1.15rem; margin-bottom: 6px; }
.project-info p { color: var(--muted); font-size: .9rem; }
.ph-1 { background: radial-gradient(circle at 20% 20%, #2ee6c5 0%, transparent 45%), radial-gradient(circle at 80% 80%, #4d7cfe 0%, transparent 50%), #0b1220; }
.ph-2 { background: radial-gradient(circle at 70% 30%, #4d7cfe 0%, transparent 50%), radial-gradient(circle at 20% 90%, #a78bfa 0%, transparent 45%), #0d0f1f; }
.ph-3 { background: radial-gradient(circle at 30% 70%, #f59e0b 0%, transparent 45%), radial-gradient(circle at 80% 20%, #ef4444 0%, transparent 45%), #1a0f0b; }
.ph-4 { background: radial-gradient(circle at 50% 50%, #25d366 0%, transparent 50%), #07160e; }
.ph-5 { background: radial-gradient(circle at 80% 70%, #a78bfa 0%, transparent 45%), radial-gradient(circle at 10% 10%, #ec4899 0%, transparent 45%), #150b18; }
.ph-6 { background: radial-gradient(circle at 30% 30%, #2ee6c5 0%, transparent 40%), radial-gradient(circle at 70% 80%, #f59e0b 0%, transparent 45%), #0a1512; }
.ph::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; }
@media (max-width: 920px) { .port-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .port-grid { grid-template-columns: 1fr; } }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 4.5rem; font-weight: 700; line-height: 1; position: absolute; right: 14px; top: 8px; color: rgba(255,255,255,.04); transition: color .4s; }
.step:hover::before { color: rgba(46,230,197,.18); }
.step b { display: block; font-family: var(--font-display); font-size: 1.2rem; margin: 40px 0 8px; }
.step p { color: var(--muted); font-size: .92rem; }
.step .bar-top { position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--grad); transition: width .8s var(--ease); }
.step:hover .bar-top { width: 100%; }
@media (max-width: 920px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- CTA / contact ---------- */
.cta-box {
  position: relative; overflow: hidden;
  border-radius: 32px; padding: clamp(32px, 6vw, 72px);
  background: linear-gradient(135deg, #0e1a1f, #0d1122 60%, #160f24);
  border: 1px solid var(--line-strong);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.cta-box::before { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(46,230,197,.18), transparent 60%); pointer-events: none; }
.cta-box .watermark { position: absolute; right: -60px; bottom: -80px; width: 380px; opacity: .05; filter: brightness(0) invert(1); pointer-events: none; }
.contact-lines { display: grid; gap: 12px; margin-top: 32px; }
.contact-lines a { display: flex; align-items: center; gap: 12px; color: var(--muted); transition: color .2s; }
.contact-lines a:hover { color: var(--text); }
.contact-lines svg { width: 20px; height: 20px; color: var(--accent); }
form.contact { display: grid; gap: 14px; position: relative; z-index: 1; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 22px 16px 10px; border-radius: 14px;
  background: rgba(0,0,0,.25); border: 1px solid var(--line-strong); color: var(--text);
  font: inherit; font-size: .95rem; outline: none; transition: border-color .2s, background .2s;
  appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field label { position: absolute; left: 16px; top: 16px; color: var(--muted); font-size: .95rem; pointer-events: none; transition: all .2s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: rgba(0,0,0,.4); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { top: 7px; font-size: .7rem; color: var(--accent); letter-spacing: .04em; }
.field select option { background: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { display: none; }
.chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .85rem; color: var(--muted); transition: all .2s; }
.chips input:checked + span { background: rgba(46,230,197,.14); border-color: var(--accent); color: var(--accent); }
.form-note { font-size: .85rem; color: var(--accent); min-height: 1.2em; }
@media (max-width: 920px) { .cta-box { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-grid h6 { font-family: var(--font-display); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 16px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--muted); font-size: .93rem; transition: color .2s; }
.foot-grid a:hover { color: var(--accent); }
.foot-grid p { color: var(--muted); font-size: .93rem; margin-top: 16px; max-width: 34ch; }
.foot-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 17vw, 15rem); line-height: .8; letter-spacing: -.04em; text-align: center; margin: 64px 0 24px; background: linear-gradient(180deg, rgba(255,255,255,.12), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--dim); font-size: .85rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: span 2; } }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(37,211,102,.6); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.4s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; transition: opacity .6s .2s, visibility .6s .2s; }
.loader img { width: 90px; filter: brightness(0) invert(1); animation: loaderPulse 1.2s ease-in-out infinite; }
.loader.done { opacity: 0; visibility: hidden; }
@keyframes loaderPulse { 50% { opacity: .4; transform: scale(.94); } }

/* =========================================================
   Founders page
   ========================================================= */
.page-hero { padding: 180px 0 60px; text-align: center; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); margin: 20px auto 22px; max-width: 14ch; }
.page-hero .lead { margin-inline: auto; }
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.founder {
  position: relative; border-radius: 28px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transform-style: preserve-3d; transition: transform .2s linear, border-color .3s;
}
.founder:hover { border-color: rgba(46,230,197,.35); }
.founder-photo { position: relative; aspect-ratio: 4/4.2; overflow: hidden; display: grid; place-items: center; }
.founder-photo img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.founder:hover .founder-photo img.photo { transform: scale(1.05); }
.founder-photo .initials { font-family: var(--font-display); font-size: clamp(5rem, 12vw, 9rem); font-weight: 700; letter-spacing: -.04em; position: relative; z-index: 1; color: rgba(255,255,255,.9); }
.founder-photo .bg { position: absolute; inset: 0; }
.founder-photo .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, var(--surface)); }
.f1 .bg { background: radial-gradient(circle at 30% 30%, rgba(46,230,197,.55), transparent 55%), radial-gradient(circle at 80% 70%, rgba(77,124,254,.5), transparent 55%), #0b1220; }
.f2 .bg { background: radial-gradient(circle at 70% 30%, rgba(77,124,254,.55), transparent 55%), radial-gradient(circle at 20% 80%, rgba(167,139,250,.5), transparent 55%), #100d22; }
.founder-photo .tag { position: absolute; z-index: 2; left: 20px; top: 20px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); font-size: .75rem; border: 1px solid var(--line-strong); }
.founder-body { padding: 8px 32px 32px; }
.founder-body h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.founder-body .role { color: var(--accent); font-weight: 500; margin: 6px 0 18px; display: block; }
.founder-body p { color: var(--muted); margin-bottom: 14px; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.skills span { font-size: .8rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: all .3s; }
.socials a:hover { background: var(--accent); color: #03140f; border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.quote-block { text-align: center; max-width: 900px; margin-inline: auto; }
.quote-block blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1.2; letter-spacing: -.02em; }
.quote-block cite { display: block; margin-top: 24px; color: var(--muted); font-style: normal; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .founders, .values { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
