:root {
  --navy: #0B2A4A;
  --navy-deep: #06182C;
  --navy-soft: #132235;
  --orange: #FF6B00;
  --orange-soft: #FFF1E6;
  --ice: #F4F7FA;
  --line: #E1E7EF;
  --line-dark: #C9D3DF;
  --muted: #6A7B8F;
  --ink: #132235;
  --white: #fff;
  --r: 10px;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --shadow: 0 18px 40px -20px rgba(11, 42, 74, 0.35);
  --glow: 0 0 28px -6px rgba(255, 107, 0, .75);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; font-weight: 900; }

/* ---------- Shared bits ---------- */
.mono-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .14em;
  color: var(--orange); text-transform: uppercase; direction: ltr;
  margin-bottom: 16px;
}
.sep { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); display: inline-block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--white); box-shadow: var(--glow); }
.btn-primary:hover { background: #e85f00; box-shadow: 0 0 40px -4px rgba(255,107,0,.95); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }
.btn-small { padding: 10px 18px; font-size: .95rem; background: var(--orange); color: var(--white); box-shadow: var(--glow); }
.btn-small:hover { background: #e85f00; }
.btn-block { width: 100%; margin-top: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 5vw;
  background: #06182C;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--white);
}
.logo img { height: 40px; width: auto; }
.main-nav { display: flex; gap: 24px; margin-inline-start: auto; }
.main-nav a {
  font-weight: 500; font-size: .95rem; color: #C9D6E6;
  position: relative; transition: color .2s ease;
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .3s ease;
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  min-height: calc(100vh - 70px);
  padding: 90px 5vw 110px;
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 107, 0, .22), transparent 42%),
    radial-gradient(circle at 5% 95%, rgba(127, 178, 255, .2), transparent 45%),
    linear-gradient(165deg, #0B2A4A 0%, #06182C 70%);
  color: var(--white);
  overflow: hidden;
}
/* tech grid floor */
.hero::before {
  content: ""; position: absolute; inset: -20% -10% 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(127, 178, 255, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 178, 255, .13) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(600px) rotateX(58deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 20%, transparent 75%);
  -webkit-mask-image: linear-gradient(to top, #000 20%, transparent 75%);
  animation: gridMove 14s linear infinite;
}
.net-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
}
/* slow light sweep, reads as a scanning screen */
.hero-scan {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: linear-gradient(180deg, transparent 0%, rgba(127, 178, 255, .08) 50%, transparent 100%);
  height: 30%; top: -30%;
  animation: scan 7s ease-in-out infinite;
}

.hero-copy > * + * { margin-top: 22px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); letter-spacing: -.025em; }
.h1-line { display: block; }
.h1-line.accent {
  color: var(--orange);
  text-shadow: 0 0 40px rgba(255, 107, 0, .45);
}
.lead { font-size: 1.12rem; color: #C9D6E6; max-width: 35em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .mono-label { color: #FFB27A; margin-bottom: 0; }
.hero .mono-label .sep { background: #FFB27A; }

.tagline {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; direction: ltr;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; color: #9FB3C8;
}
.tagline li { padding: 6px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); }
.tagline li.ai { color: var(--orange); border-color: rgba(255,107,0,.5); }

.hero-visual { position: relative; }
.flow-svg { width: 100%; height: auto; }
.flow-line { fill: none; stroke: url(#lineGrad); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 10; opacity: .85; animation: dash 2.4s linear infinite; }
.flow-line-2 { stroke: rgba(127, 178, 255, .55); }
.node circle { fill: rgba(19, 34, 53, .9); stroke: rgba(255,255,255,.28); stroke-width: 2; }
.node text { fill: var(--white); font: 700 18px 'Heebo', sans-serif; text-anchor: middle; }
.node-core circle { fill: var(--orange); stroke: rgba(255, 220, 190, .6); stroke-width: 6; animation: pulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.packet { fill: var(--orange); filter: drop-shadow(0 0 8px var(--orange)); }
.packet-b { fill: #7FB2FF; filter: drop-shadow(0 0 8px #7FB2FF); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--r);
  background: rgba(255, 255, 255, .96); color: var(--navy);
  box-shadow: var(--shadow); font-weight: 500; font-size: .95rem;
  animation: float 5s ease-in-out infinite;
}
.float-card-1 { top: 4%; inset-inline-end: 0; }
.float-card-2 { bottom: 6%; inset-inline-start: 0; animation-delay: -2.5s; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2DBE7E; box-shadow: 0 0 0 4px rgba(45, 190, 126, .2); }
.dot-orange { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 107, 0, .2); }

.scroll-cue {
  position: absolute; bottom: 26px; inset-inline-start: 50%; transform: translateX(50%);
  width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.35); border-radius: 12px;
}
.scroll-cue span {
  position: absolute; top: 6px; inset-inline-start: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--orange);
  animation: cue 1.8s ease-in-out infinite;
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden; background: var(--orange); color: var(--white);
  padding: 16px 0; direction: ltr;
}
.ticker-track {
  display: flex; gap: 22px; align-items: center; width: max-content;
  font-family: var(--mono); font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
  animation: ticker 28s linear infinite;
}
.ticker-track span { white-space: nowrap; }
.ticker-track i { width: 7px; height: 7px; border-radius: 50%; background: var(--navy-deep); }

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px 5vw; }
.section-head { max-width: 780px; margin: 0 auto 60px; text-align: center; }
.section-head .mono-label { justify-content: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 16px; letter-spacing: -.015em; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head .note { font-size: .9rem; margin-top: 12px; opacity: .85; }

/* ---------- Calculator ---------- */
.calc-section {
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 48px,
    var(--ice);
}
.calc-card {
  display: grid; grid-template-columns: 1.2fr 1fr;
  max-width: 1040px; margin: 0 auto; overflow: hidden;
  background: var(--white); border-radius: 16px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.calc-inputs { padding: 46px; display: grid; gap: 32px; }
.field { display: grid; gap: 8px; }
.field-label { font-weight: 700; font-size: 1.05rem; }
.field small { color: var(--muted); font-size: .88rem; }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row output {
  min-width: 100px; text-align: center; font-family: var(--mono); font-weight: 700; font-size: 1.05rem;
  color: var(--orange); padding: 6px 10px; border: 1px solid var(--line-dark); border-radius: 8px;
}
input[type="range"] { flex: 1; accent-color: var(--orange); height: 6px; }

.calc-result {
  padding: 46px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: var(--white);
}
.calc-result::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) .6px, transparent .7px);
  background-size: 18px 18px;
}
.calc-result > * { position: relative; z-index: 1; }
.result-label { color: #8FA3BA; margin-bottom: 8px; }
.result-label::before { display: none; }
.result-money {
  font-size: clamp(2.8rem, 5vw, 3.8rem); font-weight: 900; color: var(--orange);
  margin: 4px 0 24px; letter-spacing: -.02em; text-shadow: 0 0 30px rgba(255,107,0,.35);
}
.result-money .cur { font-size: .6em; }
.result-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result-meta div { padding: 16px; border-radius: var(--r); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255,255,255,.08); }
.result-meta strong { display: block; font-family: var(--mono); font-size: 1.6rem; font-weight: 700; }
.result-meta span { font-size: .86rem; color: #C9D6E6; }

/* ---------- Before / After ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1040px; margin: 0 auto; }
.ba-card { padding: 36px; border-radius: 16px; border: 1px solid var(--line); background: var(--white); }
.ba-card h3 { font-size: 1.5rem; margin-bottom: 18px; }
.ba-card ul { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; }
.ba-card li { padding-inline-start: 26px; position: relative; }
.ba-card li::before { content: ""; position: absolute; inset-inline-start: 0; top: .65em; width: 10px; height: 10px; border-radius: 50%; }
.ba-before { background: #FBFCFE; }
.ba-before li::before { background: #B9C5D3; }
.ba-after { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: var(--white); border-color: var(--navy); box-shadow: var(--shadow); }
.ba-after li::before { background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.bars { display: grid; gap: 12px; }
.bars span { position: relative; display: block; height: 34px; border-radius: 8px; background: #E1E7EF; overflow: hidden; }
.ba-after .bars span { background: rgba(255,255,255,.12); }
.bars span::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w);
  background: #9AAABB; border-radius: 8px; transform-origin: right; transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.ba-after .bars span::before { background: linear-gradient(90deg, var(--orange), #FF9A4D); }
.bars em {
  position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); z-index: 1;
  font-style: normal; font-family: var(--mono); font-size: .78rem; font-weight: 700; color: var(--navy);
}
.ba-after .bars em { color: var(--white); }
.bars span.in::before { transform: scaleX(1); }

/* ---------- Systems ---------- */
.systems-section { background: var(--white); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; max-width: 1100px; margin: 0 auto; }
.card {
  position: relative; padding: 32px; border-radius: 14px;
  background: var(--ice); border: 1px solid transparent; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.card::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px;
  background: var(--orange); transform: scaleY(0); transform-origin: top; transition: transform .4s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-dark); box-shadow: var(--shadow); background: var(--white); }
.card:hover::before { transform: scaleY(1); }
.card-num { display: inline-block; margin-bottom: 18px; font-family: var(--mono); font-weight: 700; font-size: 1.1rem; color: var(--orange); }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; max-width: 1100px; margin: 0 auto; }
.service {
  display: flex; align-items: center; justify-content: center; min-height: 86px; padding: 18px;
  border-radius: var(--r); border: 1px solid var(--line-dark); background: var(--white);
  font-weight: 700; text-align: center;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.service:hover { background: var(--navy); color: var(--white); transform: translateY(-3px); box-shadow: var(--shadow); }
.service-ai { background: var(--orange); border-color: var(--orange); color: var(--white); box-shadow: var(--glow); }
.service-ai:hover { background: var(--navy); border-color: var(--navy); }

/* ---------- Process ---------- */
.process-section { background: var(--ice); }
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  max-width: 1100px; margin: 0 auto; position: relative;
}
.steps::before {
  /* connector line with nodes, same motif as the letterhead */
  content: ""; position: absolute; top: 22px; inset-inline: 10%; height: 2px;
  background: linear-gradient(90deg, var(--line-dark), var(--navy) 60%, var(--orange));
  opacity: .6;
}
.step { padding: 30px; background: var(--white); border-radius: 14px; position: relative; border: 1px solid var(--line); }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 50%; background: var(--navy); color: var(--white); font-family: var(--mono); font-weight: 700;
  box-shadow: 0 0 0 6px var(--ice);
}
.step:last-child .step-num { background: var(--orange); box-shadow: 0 0 0 6px var(--ice), var(--glow); }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--ice); border-radius: var(--r); padding: 18px 22px; border: 1px solid transparent; }
.faq details[open] { border-color: var(--line-dark); background: var(--white); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-family: var(--mono); font-size: 1.4rem; line-height: 1; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-section {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
}
.contact-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) .6px, transparent .7px);
  background-size: 22px 22px;
}
.contact-wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; max-width: 1100px; margin: 0 auto; align-items: start; }
.contact-section .mono-label { color: #FFB27A; }
.contact-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 14px; }
.contact-copy > p { color: #C9D6E6; }
.contact-details { list-style: none; margin-top: 28px; display: grid; gap: 12px; font-size: 1.05rem; }
.contact-details a:hover { color: var(--orange); }
.contact-form {
  display: grid; gap: 16px; padding: 34px; border-radius: 16px;
  background: var(--white); color: var(--navy); box-shadow: 0 30px 60px -25px rgba(0,0,0,.5);
}
.contact-form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-dark); background: var(--ice); color: var(--navy);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; background: var(--white); }
.form-status { min-height: 1.4em; font-weight: 700; color: #1E8E5A; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy-deep); color: var(--white); }
.site-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.09) .6px, transparent .7px);
  background-size: 16px 16px;
}
.footer-bar { height: 5px; background: linear-gradient(to left, var(--orange) 0 30%, transparent 30%); }
.footer-in {
  position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px;
  padding: 30px 5vw;
}
.footer-claim { direction: ltr; text-align: right; }
.footer-claim strong { font-size: 1.15rem; letter-spacing: .01em; }
.footer-claim strong span { color: var(--orange); }
.footer-claim small { display: block; margin-top: 4px; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: #8FA3BA; }
.footer-chips { display: flex; gap: 10px; flex-wrap: wrap; direction: ltr; }
.footer-chips span {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  font-family: var(--mono); font-size: .82rem; border: 1px solid rgba(255,255,255,.18); border-radius: var(--r);
}
.footer-chips i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.whatsapp-float {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-radius: 999px; background: #25D366; color: var(--white); font-weight: 700;
  box-shadow: 0 12px 28px -10px rgba(37, 211, 102, .8);
}
.whatsapp-float:hover { transform: translateY(-2px); }
.wa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); animation: pulse 1.6s ease-in-out infinite; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .08s; }
.hero .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(4) { transition-delay: .24s; }
.hero .reveal:nth-child(5) { transition-delay: .32s; }
.card.reveal.visible:hover { transform: translateY(-6px); }

/* ---------- Keyframes ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes dash { to { stroke-dashoffset: -36; } }
@keyframes gridMove { to { background-position: 0 56px; } }
@keyframes scan { 0% { top: -30%; } 100% { top: 110%; } }
@keyframes ticker { to { transform: translateX(50%); } }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; min-height: auto; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .calc-card, .ba-grid, .contact-wrap { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .site-header { justify-content: space-between; }
  .calc-inputs, .calc-result, .ba-card, .contact-form { padding: 28px; }
}
@media (max-width: 560px) {
  .section { padding: 84px 16px; }
  .hero { padding-inline: 16px; }
  .hero h1 { font-size: 2.6rem; }
  .float-card { font-size: .8rem; padding: 9px 12px; }
  .result-meta { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-header { padding-inline: 16px; }
  .logo img { height: 34px; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .bars span::before { transform: scaleX(1); }
}
