/* ESN Software: dark, equator-line identity. Tokens first; components below. */
:root {
  color-scheme: dark;
  --abyss: #071420;
  --deep: #0d2131;
  --deeper: #0a1a28;
  --line: #1c3a4f;
  --glacier: #e8f2f5;
  --mist: #93aebb;
  --tide: #34d1bf;
  --tide-ink: #04201d;
  --equator: #f2b544;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  accent-color: var(--tide);
  scrollbar-color: #2a4a60 var(--abyss);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; overflow-x: clip; background: var(--abyss); color: var(--glacier); font: 17px/1.62 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--tide); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
.muted { color: var(--mist); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--tide); color: var(--tide-ink); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--equator); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-solid { background: var(--tide); color: var(--tide-ink); }
.btn-solid:hover { background: #5fe0d1; }
.btn-solid:disabled { background: #24414f; color: var(--mist); cursor: not-allowed; }
.btn-line { border-color: #3b6377; color: var(--glacier); }
.btn-line:hover { border-color: var(--tide); }
.btn-text { color: var(--tide); padding-inline: 6px; }
.btn-wa { background: #25d366; color: #052b14; margin-top: 26px; }
.btn-wa svg { width: 22px; height: 22px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; padding: 14px var(--gutter); background: color-mix(in srgb, var(--abyss) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--glacier); text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -0.01em; }
.mark { width: 30px; height: 30px; color: var(--glacier); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a, .lang { color: var(--mist); text-decoration: none; font-size: 15px; }
.nav a:hover, .lang:hover { color: var(--glacier); }
.lang { margin-left: 6px; }
@media (max-width: 900px) { .nav { display: none; } .lang { margin-left: auto; } }
@media (max-width: 420px) { .top { gap: 12px; } .brand { font-size: 17px; } .mark { width: 26px; height: 26px; } .btn-sm { padding: 9px 14px; } }

/* ---------- hero: the equator ---------- */
.hero { position: relative; max-width: var(--wrap); margin: 0 auto; padding: clamp(44px, 6.5vw, 84px) var(--gutter) 0; display: grid; grid-template-rows: auto auto auto; }
.hero::before { content: ''; position: absolute; inset: 0 -40vw; z-index: -1; background:
  radial-gradient(50% 60% at 78% 62%, rgba(52, 209, 191, .13), transparent 70%),
  radial-gradient(40% 40% at 10% 30%, rgba(242, 181, 68, .06), transparent 70%); }
.hero h1 { font-size: clamp(40px, 5.8vw, 76px); font-weight: 620; font-variation-settings: 'opsz' 96; max-width: 15ch; letter-spacing: -0.018em; line-height: 1.04; }
.hero .lead { margin-top: 26px; max-width: 56ch; font-size: clamp(17px, 1.6vw, 20px); color: #b9cdd6; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.equator { position: relative; height: 1px; margin: clamp(44px, 5.5vw, 64px) calc(-1 * var(--gutter)) 0; }
.equator::before { content: ''; position: absolute; left: -40vw; right: -40vw; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--equator) 18%, var(--equator) 82%, transparent); box-shadow: 0 0 18px rgba(242, 181, 68, .55); transform-origin: left center; }
.lat { position: absolute; right: var(--gutter); top: -30px; font-size: 14px; color: var(--equator); letter-spacing: .02em; }
.hero-visual { position: relative; height: clamp(230px, 34vw, 430px); overflow: hidden; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.hero-visual .hb { position: absolute; left: var(--gutter); right: 18%; top: 34px; }
.hero-visual .hp { position: absolute; right: 6%; top: 10px; width: clamp(120px, 17vw, 210px); }
@media (prefers-reduced-motion: no-preference) {
  .equator::before { animation: draw 1.4s cubic-bezier(.6, 0, .2, 1) both; }
  .lat { animation: fade .6s 1.2s both; }
  .hero-visual > * { animation: rise 1s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-visual .hb { animation-delay: 1.05s; }
  .hero-visual .hp { animation-delay: 1.3s; }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }

/* ---------- device frames ---------- */
.browser { margin: 0; border-radius: 14px; overflow: hidden; background: #0f2638; border: 1px solid #24465c; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.browser .bar { display: flex; gap: 7px; padding: 11px 14px; background: #10293b; border-bottom: 1px solid #1f3e52; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2b4c61; }
.phone { margin: 0; padding: 7px; border-radius: 30px; background: #0b1722; border: 1px solid #2a4658; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.phone img { border-radius: 23px; }

/* ---------- sections ---------- */
.sec { max-width: var(--wrap); margin: 0 auto; padding: clamp(80px, 11vw, 140px) var(--gutter) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -0.025em; }
.sec-head p { margin-top: 16px; color: var(--mist); font-size: 18px; max-width: 60ch; }

/* products: alternating rows, not identical cards */
.product { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.product.flip .product-copy { order: 2; }
.product h3 { font-size: clamp(30px, 3.4vw, 44px); margin-top: 10px; }
.status { display: inline-flex; align-items: center; gap: 9px; color: var(--mist); font-size: 14.5px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tide); box-shadow: 0 0 0 4px rgba(52, 209, 191, .16); }
.summary { margin-top: 14px; font-size: 19px; color: #c7d8df; max-width: 46ch; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: #b9cdd6; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .72em; width: 14px; height: 2px; background: var(--equator); }
.links { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 28px; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; padding: 0 0 9%; max-width: 420px; margin-inline: auto; }
.phones .p2 { transform: translateY(12%); }
.browsers { position: relative; padding-bottom: 60px; }
.browsers .p3 { position: absolute; width: 27%; right: -4%; bottom: 0; }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .product.flip .product-copy { order: 0; }
  .browsers .p3 { right: 0; }
}

/* services: expandable rows */
.services { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service summary { list-style: none; display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1.25fr) 20px; gap: 18px; align-items: center; padding: 22px 4px; cursor: pointer; }
.service summary::-webkit-details-marker { display: none; }
.ico { width: 26px; height: 26px; fill: none; stroke: var(--tide); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s-name { font: 600 clamp(19px, 2vw, 23px)/1.2 var(--display); }
.s-short { color: var(--mist); }
.chev { width: 12px; height: 12px; border-right: 2px solid var(--mist); border-bottom: 2px solid var(--mist); transform: rotate(45deg); justify-self: end; margin-top: -6px; transition: transform .2s; }
details[open] > summary .chev { transform: rotate(225deg); margin-top: 4px; }
.service summary:hover .s-name { color: var(--tide); }
.service ul { margin: -4px 0 0; padding: 0 0 24px 48px; columns: 2; column-gap: 40px; color: #b9cdd6; }
.service li { break-inside: avoid; margin-bottom: 8px; }
details::details-content { interpolate-size: allow-keywords; overflow: clip; }
details:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) { details::details-content { transition: block-size .25s ease, content-visibility .25s allow-discrete; } }
@media (max-width: 720px) {
  .service summary { grid-template-columns: 26px minmax(0, 1fr) 16px; }
  .s-short { grid-column: 2 / 3; grid-row: 2; font-size: 15px; }
  .service ul { columns: 1; padding-left: 44px; }
}

/* process: a real sequence on the equator */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; position: relative; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: linear-gradient(90deg, var(--equator), rgba(242, 181, 68, .2)); }
.steps li { counter-increment: s; position: relative; padding-top: 58px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--abyss); border: 2px solid var(--equator); color: var(--equator); font: 700 17px/1 var(--display); }
.steps h3 { font-size: 21px; }
.steps p { margin-top: 8px; color: var(--mist); font-size: 16px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { left: 19px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--equator), rgba(242, 181, 68, .2)); }
  .steps li { padding: 4px 0 0 62px; }
}
.stack { margin-top: clamp(56px, 7vw, 80px); }
.stack h3 { font-size: 20px; color: var(--mist); font-weight: 600; }
.stack ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stack li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15.5px; color: #c7d8df; }

/* estimator */
.estimator { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px 40px; align-items: start; }
.estimator fieldset { grid-column: 1; border: 0; padding: 0; margin: 0; }
.estimator legend { font: 600 20px/1.2 var(--display); margin-bottom: 14px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opts span { display: block; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 12px; color: #c7d8df; font-size: 15.5px; transition: border-color .15s, background-color .15s; }
.opts input:hover + span { border-color: #3b6377; }
.opts input:checked + span { border-color: var(--tide); background: rgba(52, 209, 191, .1); color: var(--glacier); }
.opts input:focus-visible + span { outline: 2px solid var(--equator); outline-offset: 2px; }
.result { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 100px; background: var(--deep); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.result h3 { font-size: 22px; margin-bottom: 14px; }
#est-out { min-height: 120px; margin-bottom: 20px; }
#est-out .level { font: 700 26px/1.1 var(--display); color: var(--tide); }
#est-out .meter { height: 6px; border-radius: 6px; background: #17344a; margin: 12px 0; overflow: hidden; }
#est-out .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--tide), var(--equator)); border-radius: 6px; transition: width .35s; }
#est-out ul { margin: 12px 0 0; padding-left: 18px; color: #b9cdd6; font-size: 15.5px; }
@media (max-width: 860px) { .estimator { grid-template-columns: 1fr; } .result { grid-column: 1; grid-row: auto; position: static; } }

/* faq */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 4px; cursor: pointer; font: 600 19px/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { padding: 0 4px 22px; color: #b9cdd6; max-width: 70ch; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); padding-bottom: clamp(80px, 10vw, 120px); }
.contact h2 { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -0.025em; }
.contact-copy p { margin-top: 16px; color: var(--mist); font-size: 18px; max-width: 42ch; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; background: var(--deep); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 32px); }
.contact-form label { display: grid; gap: 7px; font-size: 14.5px; color: var(--mist); }
.contact-form .wide { grid-column: 1 / -1; }
.contact > *, .contact-form > * { min-width: 0; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--glacier); background: var(--deeper); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--tide); outline: none; }
.contact-form .check { display: flex; gap: 10px; align-items: flex-start; color: #b9cdd6; }
.contact-form .check input { margin-top: 4px; width: 18px; height: 18px; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-status { min-height: 24px; color: var(--mist); }
.form-status.ok { color: var(--tide); }
.form-status.err { color: #ff9b8a; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact-form { grid-template-columns: 1fr; } }

/* footer, floating WhatsApp, docs */
.foot { border-top: 1px solid var(--line); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gutter) 56px; display: grid; gap: 12px; color: var(--mist); }
.foot .small { font-size: 14px; }
.foot a { color: var(--mist); }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #052b14; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.wa-float svg { width: 30px; height: 30px; }
.doc { max-width: 760px; margin: 0 auto; padding: 60px var(--gutter) 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc p { color: #c7d8df; }
.doc .btn { margin-top: 36px; }
