:root {
    color-scheme: dark;
    --ink: #f4f8fb;
    --muted: #94a6b5;
    --canvas: #05090d;
    --surface: #0a1118;
    --surface-2: #0d1720;
    --line: rgba(159, 201, 226, .16);
    --line-strong: rgba(131, 214, 255, .34);
    --cyan: #64d8ff;
    --blue: #287cff;
    --amber: #ffba5c;
    --success: #65e1ad;
    --danger: #ff7b82;
    --radius: 22px;
    --shell: min(1180px, calc(100% - 40px));
    --shadow: 0 30px 90px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 280px;
    background: var(--canvas);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.ambient {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(5, 9, 13, .98) 0%, rgba(5, 9, 13, .89) 43%, rgba(5, 9, 13, .35) 100%),
        image-set(url('/assets/api-signal-bg-v1.avif') type('image/avif'), url('/assets/api-signal-bg-v1.webp') type('image/webp')) center top / cover no-repeat;
}
.ambient::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(104, 204, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(104, 204, 255, .035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
}
.ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 10%, transparent 0, rgba(5, 9, 13, .1) 28%, var(--canvas) 78%);
}

.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; color: #041018; background: var(--cyan); border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.site-header {
    width: var(--shell);
    height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: .83rem; font-weight: 800; letter-spacing: .16em; white-space: nowrap; }
.brand b { color: var(--cyan); font-weight: 800; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-strong); transform: rotate(45deg); background: rgba(40, 124, 255, .12); }
.brand-mark span { width: 10px; height: 10px; border: 2px solid var(--cyan); border-left-color: transparent; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); color: #becbd5; font-size: .85rem; font-weight: 650; }
.site-nav a { transition: color .25s ease; }
.site-nav a:hover { color: #fff; }
.site-nav .nav-cta { padding: 10px 16px; border: 1px solid var(--line-strong); color: var(--cyan); }

.hero { min-height: 700px; padding: 92px 0 80px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(330px, .68fr); gap: clamp(40px, 8vw, 110px); align-items: center; }
.eyebrow { margin: 0 0 20px; display: flex; align-items: center; gap: 11px; color: var(--cyan); text-transform: uppercase; letter-spacing: .17em; font-size: .72rem; font-weight: 800; }
.eyebrow span { width: 26px; height: 1px; background: currentColor; box-shadow: 0 0 10px currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 26px; font-size: clamp(3.1rem, 6.8vw, 6.25rem); line-height: .93; letter-spacing: -.065em; max-width: 920px; }
h1 > span, h1 em { display: block; }
h1 em { color: transparent; -webkit-text-stroke: 1px rgba(196, 227, 242, .72); font-style: normal; }
.hero-lead { max-width: 630px; color: #aebdca; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 50px; border: 1px solid transparent; border-radius: 2px; padding: 13px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; cursor: pointer; font-size: .87rem; font-weight: 800; transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(100, 216, 255, .38); outline-offset: 3px; }
.button-primary { color: #031017; background: linear-gradient(110deg, var(--cyan), #8ee7ff); box-shadow: 0 12px 35px rgba(35, 170, 227, .2); }
.button-primary:hover { box-shadow: 0 16px 45px rgba(35, 170, 227, .32); }
.button-ghost { color: #d6e2ea; background: rgba(9, 18, 25, .62); border-color: var(--line-strong); }
.button-light { color: #071018; background: white; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 35px; color: #8193a1; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-proof span { display: flex; align-items: center; gap: 7px; }
.hero-proof i { width: 5px; height: 5px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }

.signal-panel { position: relative; min-height: 440px; padding: 20px; border: 1px solid var(--line-strong); background: linear-gradient(145deg, rgba(10, 20, 29, .88), rgba(4, 9, 13, .58)); box-shadow: var(--shadow); backdrop-filter: blur(16px); overflow: hidden; }
.signal-panel::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(132, 205, 239, .09); pointer-events: none; }
.signal-panel::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .4; animation: scan 5s linear infinite; }
.panel-top { display: flex; justify-content: space-between; color: #8093a2; font: 700 .66rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .13em; }
.live-dot { color: var(--success); }
.live-dot::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.signal-orbit { height: 312px; display: grid; place-items: center; position: relative; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(100, 216, 255, .22); }
.ring-one { width: 220px; height: 220px; border-style: dashed; animation: rotate 22s linear infinite; }
.ring-two { width: 160px; height: 160px; border-color: rgba(255, 186, 92, .28); animation: rotate 14s linear infinite reverse; }
.orbit-core { width: 92px; height: 92px; display: grid; place-items: center; transform: rotate(45deg); border: 1px solid var(--cyan); background: radial-gradient(circle, rgba(100, 216, 255, .3), rgba(40, 124, 255, .06)); box-shadow: 0 0 45px rgba(48, 171, 255, .28), inset 0 0 25px rgba(48, 171, 255, .16); }
.orbit-core span { width: 28px; height: 28px; background: var(--cyan); box-shadow: 0 0 24px var(--cyan); }
.panel-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.panel-metrics div { padding: 12px; border-top: 1px solid var(--line); }
.panel-metrics small { display: block; color: #6f8291; font-size: .55rem; letter-spacing: .12em; }
.panel-metrics strong { display: block; margin-top: 4px; font: 700 .8rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }

.ticker { overflow: hidden; border-block: 1px solid var(--line); background: rgba(7, 13, 18, .86); }
.ticker div { width: max-content; min-width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: space-around; gap: 28px; padding-inline: 24px; color: #8b9ba7; font-size: .67rem; font-weight: 800; letter-spacing: .17em; }
.ticker i { width: 4px; height: 4px; background: var(--amber); transform: rotate(45deg); }
.section { padding-block: clamp(80px, 10vw, 140px); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; column-gap: 60px; align-items: end; }
.section-heading .eyebrow { grid-column: 1 / -1; }
h2 { margin-bottom: 0; font-size: clamp(2.3rem, 4.8vw, 4.6rem); line-height: 1.02; letter-spacing: -.055em; }
.section-heading > p:last-child { max-width: 440px; margin: 0; color: var(--muted); }
.feature-grid { margin-top: 58px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; }
.feature-card { min-height: 285px; padding: clamp(24px, 4vw, 42px); position: relative; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(13, 23, 32, .92), rgba(7, 13, 18, .78)); overflow: hidden; transition: transform .35s ease, border-color .35s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.feature-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -100px; bottom: -100px; border: 1px solid rgba(100, 216, 255, .1); border-radius: 50%; box-shadow: 0 0 0 32px rgba(100, 216, 255, .03), 0 0 0 64px rgba(100, 216, 255, .02); }
.feature-wide { grid-row: span 2; min-height: 584px; display: flex; flex-direction: column; justify-content: flex-end; }
.feature-index { position: absolute; top: 24px; right: 26px; color: #5f7484; font: 700 .68rem/1 ui-monospace, monospace; }
.feature-symbol { width: 54px; height: 54px; margin-bottom: auto; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--cyan); font-size: 1.8rem; }
.feature-card h3 { margin: 22px 0 10px; font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -.03em; }
.feature-card p { max-width: 450px; margin-bottom: 0; color: var(--muted); }
.code-line { margin-top: 30px; padding: 16px; border: 1px solid var(--line); background: #050a0e; color: #8fa3b2; font: .76rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.code-line span { color: var(--success); font-weight: 800; }

.key-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 10vw, 120px); align-items: center; }
.key-copy > p:not(.eyebrow) { margin: 24px 0; color: var(--muted); }
.text-link { color: var(--cyan); font-size: .84rem; font-weight: 750; }
.key-console { padding: clamp(22px, 4vw, 42px); border: 1px solid var(--line-strong); background: rgba(8, 15, 21, .92); box-shadow: var(--shadow); }
.console-bar { margin-bottom: 34px; padding-bottom: 14px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); color: #6e8493; font: 700 .62rem/1 ui-monospace, monospace; letter-spacing: .13em; }
.key-console label, .purchase-form label { display: block; margin-bottom: 9px; color: #c9d4dc; font-size: .78rem; font-weight: 750; }
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input, select { width: 100%; min-height: 52px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); background: #050a0e; }
input::placeholder { color: #536775; }
.toggle-key { margin: 14px 0 0 !important; display: flex !important; align-items: center; gap: 9px; color: #8194a2 !important; font-weight: 500 !important; cursor: pointer; }
.toggle-key input { width: 16px; min-height: 16px; accent-color: var(--cyan); }
.status-box { margin-top: 22px; padding: 15px 16px; border-left: 2px solid #526775; color: #8da0ae; background: rgba(255, 255, 255, .025); font-size: .84rem; overflow-wrap: anywhere; }
.status-box.success { border-color: var(--success); color: var(--success); }
.status-box.error { border-color: var(--danger); color: #ffabb0; }
.status-box.loading { border-color: var(--cyan); color: var(--cyan); }
.cta-band { margin-bottom: 100px; padding: clamp(35px, 6vw, 70px); display: flex; align-items: end; justify-content: space-between; gap: 40px; border: 1px solid rgba(100, 216, 255, .4); background: linear-gradient(120deg, rgba(16, 84, 118, .75), rgba(9, 29, 43, .92)); box-shadow: var(--shadow); }
.cta-band h2 { font-size: clamp(2.1rem, 4vw, 4rem); }
.site-footer { min-height: 150px; padding-block: 34px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 30px; border-top: 1px solid var(--line); color: #6e808e; font-size: .75rem; }
.site-footer p { margin: 0; }

/* Loja */
.store-hero { padding: 78px 0 54px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; }
.store-hero h1 { font-size: clamp(3rem, 6vw, 5.8rem); }
.store-summary { padding: 26px; border-left: 1px solid var(--line-strong); background: rgba(6, 13, 18, .55); }
.store-summary p { margin: 0; color: var(--muted); }
.store-summary strong { display: block; margin-top: 18px; color: var(--success); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.plans { padding-bottom: 70px; }
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.plan { min-height: 200px; padding: 25px; border: 1px solid var(--line); background: rgba(8, 15, 21, .84); cursor: pointer; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.plan:hover, .plan.selected { transform: translateY(-4px); border-color: var(--cyan); background: rgba(11, 28, 39, .96); }
.plan small { color: #6f8493; font-size: .62rem; letter-spacing: .12em; }
.plan strong { display: block; margin: 16px 0 4px; font-size: 2rem; letter-spacing: -.04em; }
.plan span { color: var(--muted); font-size: .82rem; }
.plan.featured { position: relative; border-color: rgba(255, 186, 92, .55); }
.plan.featured::before { content: "MAIS ESCOLHIDO"; position: absolute; top: -1px; right: -1px; padding: 5px 8px; color: #1c1103; background: var(--amber); font-size: .54rem; font-weight: 900; letter-spacing: .1em; }
.purchase-layout { padding: 40px 0 120px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 18px; align-items: start; }
.purchase-guide, .purchase-card { border: 1px solid var(--line); background: rgba(7, 14, 20, .93); }
.purchase-guide { padding: clamp(24px, 4vw, 38px); }
.purchase-guide h2 { font-size: 2rem; }
.guide-step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; margin-top: 26px; }
.guide-step > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--cyan); font: 700 .68rem/1 ui-monospace, monospace; }
.guide-step h3 { margin: 1px 0 5px; font-size: .94rem; }
.guide-step p { margin: 0; color: var(--muted); font-size: .8rem; }
.purchase-card { padding: clamp(24px, 5vw, 50px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.purchase-card h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.purchase-card > p { color: var(--muted); }
.purchase-form { margin-top: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-help { margin: 8px 0 0; color: #718593; font-size: .72rem; }
.key-mode { margin: 16px 0 0; padding: 14px; border: 1px solid var(--line); color: #98aab6; background: rgba(255, 255, 255, .02); font-size: .8rem; }
.key-mode.new { border-color: rgba(255, 186, 92, .4); color: #ffd293; }
.key-mode.renewal { border-color: rgba(101, 225, 173, .42); color: var(--success); }
.requirements { margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; }
.requirements li { color: #738794; font-size: .72rem; }
.requirements li::before { content: "○"; margin-right: 7px; color: #536875; }
.requirements li.met { color: var(--success); }
.requirements li.met::before { content: "●"; color: var(--success); }
.purchase-submit { width: 100%; margin-top: 24px; }
.purchase-submit:disabled { cursor: wait; opacity: .65; transform: none; }
.legal-note { margin: 15px 0 0; color: #6c7f8d; text-align: center; font-size: .67rem; }

dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 1px solid var(--line-strong); border-radius: 0; color: var(--ink); background: #081119; box-shadow: 0 35px 100px #000; overflow: auto; }
dialog::backdrop { background: rgba(1, 5, 8, .82); backdrop-filter: blur(8px); }
.dialog-inner { padding: clamp(24px, 5vw, 44px); }
.dialog-head { display: flex; justify-content: space-between; gap: 25px; align-items: start; }
.dialog-head h2 { font-size: 2rem; }
.icon-button { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; }
.dialog-summary { margin-top: 25px; padding: 18px; border: 1px solid var(--line); background: #050a0e; }
.dialog-summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .8rem; }
.dialog-summary dt { color: #718593; }
.dialog-summary dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.pix-box { margin-top: 25px; text-align: center; }
.pix-box img { width: min(270px, 80%); padding: 12px; background: white; }
.pix-code { margin: 16px 0; padding: 13px; border: 1px solid var(--line); color: #9fb0bc; background: #050a0e; font: .7rem/1.45 ui-monospace, monospace; overflow-wrap: anywhere; text-align: left; }
.countdown { color: var(--amber); font: 700 .78rem/1.4 ui-monospace, monospace; }
.hidden { display: none !important; }
.admin-main { padding-block: 80px 120px; }
.admin-main > div:first-child { margin-bottom: 45px; }
.admin-main h1 { font-size: clamp(3rem, 7vw, 6rem); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-grid .purchase-card h2 { margin-bottom: 10px; font-size: 2rem; }
.admin-grid .purchase-card label { margin-top: 26px; }
.success-main { min-height: 100dvh; padding-block: 60px; display: grid; place-items: center; }
.success-card { width: min(720px, 100%); }
.success-card h1 { font-size: clamp(3rem, 8vw, 6rem); }
.success-card .button { margin-top: 28px; }

.reveal { animation: reveal .75s cubic-bezier(.2,.8,.2,1) both; }
.delay-1 { animation-delay: .13s; }
.delay-2 { animation-delay: .25s; }
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes scan { from { top: 0; } to { top: 100%; } }

@media (max-width: 940px) {
    :root { --shell: min(100% - 32px, 760px); }
    .hero { min-height: auto; grid-template-columns: minmax(0, 1fr); padding-top: 70px; }
    .hero-copy { min-width: 0; }
    .signal-panel { min-height: 390px; }
    .section-heading, .key-section, .store-hero, .purchase-layout { grid-template-columns: minmax(0, 1fr); }
    .section-heading > p:last-child { margin-top: 24px; }
    .key-section { gap: 45px; }
    .plans-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer { grid-template-columns: 1fr 1fr; }
    .site-footer p:nth-child(2) { display: none; }
}

@media (max-width: 680px) {
    :root { --shell: calc(100% - 24px); --radius: 16px; }
    .ambient { background-position: 62% top; }
    .site-header { height: 72px; }
    .site-nav > a:not(.nav-cta) { display: none; }
    .site-nav .nav-cta { padding: 9px 11px; font-size: .72rem; }
    .brand { font-size: .69rem; letter-spacing: .11em; }
    .brand-mark { width: 26px; height: 26px; }
    .hero { padding: 62px 0; gap: 46px; }
    h1 { font-size: clamp(2.8rem, 15.5vw, 4.4rem); }
    h1 { line-height: 1.03; }
    .hero-actions, .hero-actions .button { width: 100%; }
    .hero-proof { gap: 12px 18px; }
    .signal-panel { min-height: 350px; }
    .signal-orbit { height: 240px; }
    .ring-one { width: 180px; height: 180px; }
    .ring-two { width: 128px; height: 128px; }
    .panel-metrics div { padding: 9px 4px; }
    .ticker div { justify-content: flex-start; overflow: hidden; }
    .section { padding-block: 78px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-wide { min-height: 390px; grid-row: auto; }
    .field-row { grid-template-columns: 1fr; }
    .cta-band { margin-bottom: 60px; align-items: stretch; flex-direction: column; }
    .site-footer { grid-template-columns: 1fr; gap: 16px; }
    .store-hero { padding: 60px 0 42px; gap: 25px; }
    .plans-grid { grid-template-columns: 1fr 1fr; }
    .plan { min-height: 165px; padding: 20px 15px; }
    .plan strong { font-size: 1.55rem; }
    .form-grid, .requirements { grid-template-columns: 1fr; }
    .dialog-actions { flex-direction: column-reverse; }
    .dialog-actions .button { width: 100%; }
    .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
    .site-nav .nav-cta { display: none; }
    .plans-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (prefers-contrast: more) {
    :root { --line: rgba(210, 237, 250, .45); --line-strong: rgba(124, 221, 255, .75); --muted: #bdcbd4; }
}
