/* Real Tech — tema escuro (padrão) */
:root {
  color-scheme: dark;
  --bg: #040c22;
  --bg-alt: #061230;
  --surface: rgba(11, 26, 60, .72);
  --surface-solid: #0b1a3c;
  --ink: #eaf3ff;
  --ink-2: #c3d3ec;
  --muted: #8ea3c4;
  --line: rgba(16, 183, 216, .16);
  --line-2: rgba(255, 255, 255, .08);
  --cyan: #10b7d8;
  --blue: #3b6cf6;
  --navy: #2c479a;
  --grad: linear-gradient(90deg, var(--cyan), var(--blue));
  --code-bg: #020817;
  --input: #0f2148;
  --nav-bg: rgba(4, 12, 34, .78);
  --shadow: rgba(0, 0, 0, .45);
  --grid-op: .5;
  --radius: 18px;
  --wrap: 1200px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
/* tema claro */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f7fc;
  --bg-alt: #e9f0f9;
  --surface: rgba(255, 255, 255, .85);
  --surface-solid: #ffffff;
  --ink: #061331;
  --ink-2: #2a3a5c;
  --muted: #56688a;
  --line: rgba(44, 71, 154, .16);
  --line-2: rgba(6, 19, 49, .08);
  --cyan: #0a9bbb;
  --blue: #2c55d6;
  --code-bg: #061331;
  --input: #eef3fa;
  --nav-bg: rgba(243, 247, 252, .82);
  --shadow: rgba(6, 19, 49, .1);
  --grid-op: .7;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .4s, color .4s; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); max-width: 20ch; text-wrap: balance; }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.lead { font-size: 1.3rem; color: var(--ink); line-height: 1.45; letter-spacing: -0.01em; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.label { font-family: var(--mono); font-size: .78rem; color: var(--cyan); letter-spacing: .02em; margin-bottom: 18px; display: block; }
.mono { font-family: var(--mono); }
.link { color: var(--cyan); font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* grid de fundo */
.grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grid-op);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 25%, transparent 75%);
}
.grid-bg--bottom { mask-image: radial-gradient(ellipse 70% 70% at 30% 90%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 90%, #000 20%, transparent 70%); }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 12px; font: 500 .98rem var(--sans); border: 1px solid transparent; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s, color .25s, background .25s; white-space: nowrap; }
.btn span { transition: transform .25s; }
.btn:hover span { transform: translateX(3px); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 0 0 1px rgba(16,183,216,.35), 0 10px 36px rgba(16,183,216,.22); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(16,183,216,.6), 0 14px 46px rgba(16,183,216,.38); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* logos por tema */
.logo--light { display: none; }
:root[data-theme="light"] .logo--dark { display: none; }
:root[data-theme="light"] .logo--light { display: block; }

/* NAV */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.is-scrolled { background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand .logo { height: 30px; width: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: .93rem; color: var(--ink-2); }
.nav__links a:hover { color: var(--cyan); }
.nav__parent { font-family: var(--mono); font-size: .82rem; padding-left: 26px; border-left: 1px solid var(--line); }
.theme-toggle { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; transition: border-color .3s, color .3s; }
.theme-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav__toggle span { width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu { display: flex; flex-direction: column; padding: 8px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.mobile-menu a:not(.btn) { padding: 12px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line-2); }
.mobile-menu .btn { margin-top: 14px; }
.mobile-menu[hidden] { display: none; }

/* HERO */
.hero { position: relative; isolation: isolate; padding: 150px 0 0; overflow: hidden; }
.hero__glow { position: absolute; z-index: -1; width: 900px; height: 900px; right: -300px; top: -380px; border-radius: 50%; background: radial-gradient(circle, rgba(16,183,216,.3), rgba(44,71,154,.22) 40%, transparent 68%); filter: blur(40px); pointer-events: none; animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-80px, 60px); } }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__text { display: grid; gap: 26px; justify-items: start; }
.chip { display: inline-flex; align-items: center; gap: 10px; font: .8rem var(--mono); color: var(--ink-2); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); transition: border-color .3s; }
.chip:hover { border-color: var(--cyan); }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(16,183,216,.18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(16,183,216,.05); } }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); letter-spacing: -0.045em; line-height: 1; max-width: 13ch; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 48ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* editor */
.editor { background: var(--code-bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px var(--shadow), 0 0 80px rgba(16,183,216,.08); color: #c9dbf5; }
.editor__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(16,183,216,.16); }
.editor__bar i { width: 10px; height: 10px; border-radius: 50%; background: #1c2a4a; }
.editor__tab { margin-left: 12px; font: .76rem var(--mono); color: #eaf3ff; padding: 4px 10px; border-radius: 6px; background: rgba(16,183,216,.1); }
.editor__code { margin: 0; padding: 22px 22px 22px 10px; font: .88rem/1.85 var(--mono); overflow-x: auto; }
.editor__code .ln { display: inline-block; width: 2.4em; text-align: right; margin-right: 1.2em; color: #3a4c72; user-select: none; }
.editor__code .k { color: #c792ea; }
.editor__code .s { color: #7dd3a8; }
.editor__code .f { color: #10b7d8; }
.editor__code .v { color: #f6c177; }
.editor__code .c { color: #5c7099; font-style: italic; }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px; margin-left: 4px; background: #10b7d8; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.editor__status { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid rgba(16,183,216,.16); font: .72rem var(--mono); color: #8ea3c4; background: rgba(16,183,216,.04); }
.editor__status .push { margin-left: auto; color: #10b7d8; }
.editor__status .ok { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #34d399; margin-right: 6px; }

/* strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 96px; border-block: 1px solid var(--line); }
.strip div { padding: 30px 0; display: grid; gap: 4px; }
.strip div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.strip strong { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.strip span { color: var(--muted); font-size: .9rem; }

/* SECTIONS */
.section { position: relative; isolation: isolate; padding: 120px 0; overflow: hidden; }
.section--alt { background: var(--bg-alt); }
.head { margin-bottom: 56px; }
.head .muted { max-width: 54ch; margin-top: 20px; font-size: 1.08rem; }

.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: end; }
.about__body { display: grid; gap: 20px; color: var(--muted); justify-items: start; }

/* serviços */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc { background: var(--bg-alt); padding: 34px; display: grid; gap: 10px; align-content: start; transition: background .3s; position: relative; }
.svc:hover { background: var(--surface-solid); }
.svc::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--grad); transition: width .5s ease; }
.svc:hover::after { width: 100%; }
.svc p { color: var(--muted); }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(16,183,216,.1); border: 1px solid rgba(16,183,216,.3); color: var(--cyan); margin-bottom: 14px; }
.icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* cases */
.cases { display: grid; gap: 28px; }
.case { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); transition: border-color .3s; }
.case:hover { border-color: rgba(16,183,216,.45); }
.case--rev .case__img { order: 2; }
.case__img { border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; background: #fff; }
.case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.case:hover .case__img img { transform: scale(1.03); }
.case__body { display: grid; gap: 12px; padding-right: 24px; }
.case--rev .case__body { padding: 0 0 0 24px; }
.case__body .label { margin: 0; }
.case h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.case p { color: var(--muted); max-width: 46ch; }
.pills { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { font: .76rem var(--mono); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.timeline li { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 18px; align-content: start; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -17px; width: 18px; height: 1px; background: var(--cyan); opacity: .6; }
.t-n { font: 500 .8rem var(--mono); color: var(--cyan); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(16,183,216,.4); background: rgba(16,183,216,.08); }
.timeline h3 { margin-bottom: 8px; }
.timeline p { color: var(--muted); font-size: .96rem; }

/* qualidade */
.quality { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.quality__lead { margin-top: 22px; max-width: 46ch; font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.checks li { display: flex; gap: 16px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line); font-size: 1.1rem; letter-spacing: -0.01em; }
.checks li:first-child { border-top: 1px solid var(--line); }
.checks i { flex: none; width: 24px; height: 24px; border-radius: 7px; background: rgba(16,183,216,.12); border: 1px solid rgba(16,183,216,.4); position: relative; }
.checks i::after { content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid var(--cyan); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* modelos */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.model { position: relative; padding: 34px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; align-content: start; transition: transform .35s, border-color .3s; }
.model:hover { transform: translateY(-4px); border-color: rgba(16,183,216,.45); }
.model p { color: var(--muted); }
.model--feat { border-color: rgba(16,183,216,.5); box-shadow: 0 0 0 1px rgba(16,183,216,.2), 0 20px 60px rgba(16,183,216,.1); }
.badge { position: absolute; top: 18px; right: 18px; font: .7rem var(--mono); color: var(--cyan); padding: 3px 9px; border-radius: 999px; background: rgba(16,183,216,.12); }

/* contato */
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: start; }
.contact__info { display: grid; gap: 22px; }
.contact__info .muted { font-size: 1.1rem; max-width: 40ch; }
.channels { display: grid; gap: 12px; margin-top: 12px; max-width: 420px; }
.channels a { display: grid; gap: 2px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; transition: border-color .3s; overflow-wrap: anywhere; }
.channels a:hover { border-color: var(--cyan); }
.channels small { font: .72rem var(--mono); color: var(--cyan); text-transform: uppercase; letter-spacing: .06em; }

.form { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 22px; padding: 34px; display: grid; gap: 16px; box-shadow: 0 30px 80px var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.form input:not([type="checkbox"]), .form select, .form textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--input); border: 1px solid transparent; border-radius: 10px; padding: 12px 14px; width: 100%; transition: border-color .2s; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { margin-top: 3px; accent-color: var(--cyan); }
.form .check a { text-decoration: underline; }
.form__ok { background: rgba(16,183,216,.1); border: 1px solid rgba(16,183,216,.3); padding: 14px 16px; border-radius: 10px; font-size: .95rem; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; color: var(--muted); font-size: .94rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { display: grid; gap: 14px; max-width: 360px; }
.footer__brand .logo { height: 30px; width: auto; }
.footer__brand a { color: var(--cyan); }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px 28px; align-content: start; }
.footer__links a:hover { color: var(--cyan); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: .84rem; }
.footer__bottom .mono { color: var(--cyan); }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.35); transition: transform .3s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* responsivo */
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .theme-toggle { margin-left: auto; }
  .nav__toggle { display: flex; }
  .hero__inner, .about, .quality, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .services, .models { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline li::after { display: none; }
  .case, .case--rev { grid-template-columns: 1fr; gap: 24px; }
  .case--rev .case__img { order: 0; }
  .case__body, .case--rev .case__body { padding: 0 8px 8px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip div:nth-child(3) { padding-left: 0; border-left: 0; }
  .strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 84px 0; }
  .hero { padding-top: 120px; }
  .hero__actions, .hero__actions .btn { width: 100%; }
  .editor__code { font-size: .7rem; padding: 16px 14px 16px 4px; }
  .editor__code .ln { width: 1.6em; margin-right: .8em; }
  .chip__extra { display: none; }
  .editor__status span:nth-child(3) { display: none; }
  .strip { margin-top: 64px; }
  .services, .models, .timeline, .form__row { grid-template-columns: 1fr; }
  .svc, .model { padding: 26px; }
  .case { padding: 14px; border-radius: 20px; }
  .form { padding: 22px; }
  .head { margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
