:root {
  color-scheme: dark;
  --bg: #080b12;
  --bg-soft: #0d111a;
  --surface: rgba(16, 22, 34, .86);
  --surface-solid: #101722;
  --surface-2: #151d2b;
  --surface-3: #1a2434;
  --text: #f4f7fb;
  --muted: #98a5b8;
  --muted-2: #738096;
  --line: rgba(151, 169, 197, .16);
  --line-strong: rgba(151, 169, 197, .28);
  --blue: #2563eb;
  --blue-2: #4f83ff;
  --cyan: #2dd4bf;
  --violet: #8b5cf6;
  --amber: #f59e0b;
  --rose: #fb7185;
  --green: #34d399;
  --shadow: 0 30px 80px rgba(0, 0, 0, .38);
  --shadow-soft: 0 16px 42px rgba(0, 0, 0, .2);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1220px;
  --header-h: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fb;
  --bg-soft: #eef2f8;
  --surface: rgba(255, 255, 255, .88);
  --surface-solid: #ffffff;
  --surface-2: #f4f6fa;
  --surface-3: #e9eef6;
  --text: #101827;
  --muted: #5d6878;
  --muted-2: #7b8798;
  --line: rgba(28, 46, 75, .12);
  --line-strong: rgba(28, 46, 75, .22);
  --shadow: 0 30px 80px rgba(43, 59, 82, .16);
  --shadow-soft: 0 16px 42px rgba(43, 59, 82, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% -5%, rgba(37, 99, 235, .16), transparent 31rem),
    radial-gradient(circle at 88% 8%, rgba(45, 212, 191, .1), transparent 27rem),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open, body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
::selection { background: rgba(45, 212, 191, .28); color: var(--text); }
:focus-visible { outline: 3px solid rgba(45, 212, 191, .7); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 112px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section-muted { background: linear-gradient(180deg, transparent, rgba(101, 123, 157, .055) 15%, rgba(101, 123, 157, .055) 85%, transparent); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--cyan); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 9px; background: currentColor; box-shadow: 0 0 16px currentColor; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .7fr); align-items: end; gap: 56px; margin-bottom: 46px; }
.section-head.one { grid-template-columns: minmax(0, 760px); }
.section-title { margin: 12px 0 0; max-width: 820px; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.04; letter-spacing: -.045em; }
.section-copy { margin: 0; color: var(--muted); font-size: 1.04rem; }
.gradient-text { background: linear-gradient(100deg, #71a3ff 3%, var(--cyan) 47%, #af8cff 95%); color: transparent; -webkit-background-clip: text; background-clip: text; }
.dim { color: var(--muted); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 80; height: var(--header-h); border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, box-shadow .25s; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 84%, transparent); border-color: var(--line); backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 8px 28px rgba(0, 0, 0, .12); }
.nav-wrap { width: min(calc(100% - 32px), 1320px); height: 100%; margin: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; font-weight: 850; letter-spacing: -.03em; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 8px 28px rgba(37, 99, 235, .3); }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word small { color: var(--muted-2); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin: auto; }
.mobile-controls { display: none; }
.main-nav a { padding: 9px 11px; color: var(--muted); border-radius: 10px; font-size: 14px; font-weight: 650; transition: color .2s, background .2s; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); background: rgba(120, 146, 187, .1); }
.nav-actions { display: flex; align-items: center; gap: 7px; }
.icon-btn, .lang-select, .mobile-toggle { min-width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; transition: border .2s, color .2s, transform .2s, background .2s; }
.icon-btn:hover, .mobile-toggle:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg, .mobile-toggle svg { width: 18px; height: 18px; }
.lang-select { width: 60px; padding: 0 8px; color: var(--text); font-size: 12px; font-weight: 800; appearance: none; text-align: center; }
.btn { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 12px; font-weight: 760; letter-spacing: -.01em; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, opacity .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: linear-gradient(115deg, var(--blue), #4d74ee 58%, var(--violet)); box-shadow: 0 12px 32px rgba(37, 99, 235, .3); }
.btn-primary:hover { box-shadow: 0 16px 38px rgba(37, 99, 235, .4); }
.btn-secondary { color: var(--text); background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.btn-ghost { color: var(--muted); background: transparent; border-color: var(--line); }
.btn-small { min-height: 38px; padding: 0 13px; font-size: 13px; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.mobile-toggle { display: none; }
.auth-slot { position: relative; min-width: 98px; display: flex; justify-content: flex-end; }
.auth-skeleton { width: 102px; height: 40px; border-radius: 12px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 240% 100%; animation: shimmer 1.4s infinite; }
.user-button { height: 42px; max-width: 192px; padding: 3px 9px 3px 4px; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--surface); color: var(--text); display: flex; align-items: center; gap: 8px; cursor: pointer; }
.user-button img, .avatar-fallback { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: white; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.user-meta { min-width: 0; text-align: left; line-height: 1.2; }
.user-meta strong, .user-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.user-meta strong { font-size: 12px; max-width: 103px; }
.user-meta small { color: var(--cyan); font-size: 10px; margin-top: 3px; }
.user-chevron { width: 14px; color: var(--muted); transition: transform .2s; }
.user-button[aria-expanded="true"] .user-chevron { transform: rotate(180deg); }
.user-menu { position: absolute; right: 0; top: calc(100% + 12px); width: 255px; padding: 9px; border: 1px solid var(--line-strong); border-radius: 16px; background: color-mix(in srgb, var(--surface-solid) 94%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: .18s ease; }
.user-menu.open { opacity: 1; visibility: visible; transform: none; }
.user-menu-head { padding: 10px 11px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-menu-head strong, .user-menu-head span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-head span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.user-menu a, .user-menu button { width: 100%; min-height: 40px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; font-size: 13px; font-weight: 650; }
.user-menu a:hover, .user-menu button:hover { background: var(--surface-2); color: var(--text); }
.user-menu svg { width: 16px; }
.user-menu .danger { color: var(--rose); border-top: 1px solid var(--line); margin-top: 5px; border-radius: 0 0 9px 9px; }

/* Hero */
.hero { min-height: 850px; padding: 150px 0 90px; display: grid; align-items: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent 76%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.hero-orb.one { width: 520px; height: 520px; right: -150px; top: 40px; background: radial-gradient(circle, rgba(37,99,235,.16), transparent 66%); }
.hero-orb.two { width: 340px; height: 340px; left: 30%; bottom: -130px; background: radial-gradient(circle, rgba(139,92,246,.11), transparent 66%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(420px, .9fr) minmax(580px, 1.15fr); gap: 58px; align-items: center; }
.hero-badge { width: fit-content; display: flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 7px 11px 7px 8px; border: 1px solid rgba(45, 212, 191, .25); border-radius: 999px; background: rgba(45, 212, 191, .07); color: #80eadc; font-size: 12px; font-weight: 750; }
.hero-badge-dot { width: 23px; height: 23px; border-radius: 50%; background: rgba(45, 212, 191, .14); display: grid; place-items: center; }
.hero-badge-dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s infinite; }
.hero h1 { margin: 0; max-width: 680px; font-size: clamp(3.15rem, 5.8vw, 6.25rem); line-height: .94; letter-spacing: -.065em; font-weight: 880; }
.hero-copy { max-width: 650px; margin: 25px 0 0; color: var(--muted); font-size: clamp(1.03rem, 1.55vw, 1.22rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 27px; color: var(--muted); font-size: 12px; font-weight: 650; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg { width: 15px; color: var(--cyan); }
.studio-window { position: relative; min-width: 0; border: 1px solid var(--line-strong); border-radius: 21px; background: #090e17; box-shadow: 0 45px 110px rgba(0,0,0,.55), 0 0 0 1px rgba(37,99,235,.07), 0 0 90px rgba(37,99,235,.12); overflow: hidden; transform: perspective(1400px) rotateY(-2deg) rotateX(1.5deg); }
[data-theme="light"] .studio-window { background: #0a101b; }
.studio-top { height: 43px; padding: 0 13px; border-bottom: 1px solid #202a3b; display: flex; align-items: center; justify-content: space-between; color: #71809a; font-size: 10px; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #29364b; }
.window-dots i:nth-child(1) { background: #ff6b6b; } .window-dots i:nth-child(2) { background: #f5c451; } .window-dots i:nth-child(3) { background: #49ca7d; }
.studio-online { display: flex; align-items: center; gap: 7px; color: #6ddfce; }
.studio-online i { width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 10px var(--cyan); }
.studio-body { min-height: 470px; display: grid; grid-template-columns: 44px 1fr 235px; }
.studio-rail { padding: 15px 0; border-right: 1px solid #202a3b; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rail-icon { width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; color: #65738b; }
.rail-icon.active { background: rgba(37,99,235,.18); color: #6f9cff; }
.rail-icon svg { width: 15px; }
.studio-main { min-width: 0; display: grid; grid-template-rows: 35px 1fr 130px; }
.tabs { border-bottom: 1px solid #202a3b; display: flex; overflow: hidden; }
.tab { min-width: 120px; padding: 0 13px; display: flex; align-items: center; gap: 7px; border-right: 1px solid #202a3b; color: #6d7b91; font-size: 10px; }
.tab.active { color: #dce5f4; background: #0d1420; }
.code-area { display: grid; grid-template-columns: 38px 1fr; padding: 18px 0; color: #8290a6; font: 11px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow: hidden; }
.line-nos { text-align: right; padding-right: 10px; color: #344158; user-select: none; }
.code-lines { white-space: nowrap; }
.code-lines .kw { color: #c084fc; } .code-lines .fn { color: #60a5fa; } .code-lines .str { color: #5eead4; } .code-lines .cm { color: #536078; }
.code-active { display: block; margin-left: -5px; padding-left: 5px; background: linear-gradient(90deg, rgba(37,99,235,.15), transparent); border-left: 2px solid #3b82f6; }
.terminal { border-top: 1px solid #202a3b; background: #080d16; padding: 10px 14px; color: #8795aa; font: 10px/1.75 ui-monospace, monospace; }
.terminal-head { display: flex; gap: 14px; margin-bottom: 7px; color: #526177; text-transform: uppercase; font-size: 8px; letter-spacing: .1em; }
.terminal-head b { color: #d1d9e5; border-bottom: 1px solid #d1d9e5; }
.term-prompt { color: #56dac8; } .term-ok { color: #53d487; }
.agent-panel { min-width: 0; border-left: 1px solid #202a3b; background: #0b111c; display: flex; flex-direction: column; }
.agent-head { height: 46px; padding: 0 13px; border-bottom: 1px solid #202a3b; display: flex; align-items: center; justify-content: space-between; color: #d7e0ed; font-size: 10px; font-weight: 750; }
.agent-head span { color: #55dfcc; display: flex; align-items: center; gap: 5px; font-size: 8px; }
.agent-scroll { flex: 1; padding: 13px; display: flex; flex-direction: column; gap: 10px; }
.agent-msg { padding: 10px; border: 1px solid #253149; border-radius: 10px; background: #101827; color: #a9b5c8; font-size: 9px; line-height: 1.55; }
.agent-msg.user { background: rgba(37,99,235,.13); border-color: rgba(59,130,246,.35); }
.tool-row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 7px; padding: 8px; border: 1px solid #243047; border-radius: 9px; color: #9cabc0; font-size: 8px; }
.tool-row i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #62e0cf; background: rgba(45,212,191,.09); font-style: normal; }
.tool-row em { color: #4fdb8b; font-style: normal; }
.approval { margin-top: auto; padding: 10px; border-top: 1px solid #202a3b; }
.approval-card { padding: 9px; border: 1px solid rgba(245,158,11,.3); background: rgba(245,158,11,.06); border-radius: 9px; color: #e2cfaa; font-size: 8px; }
.approval-actions { display: flex; gap: 5px; margin-top: 7px; }
.approval-actions span { padding: 4px 7px; border-radius: 5px; background: #2563eb; color: white; }
.approval-actions span:last-child { background: #172033; color: #99a6ba; }
.local-pill { position: absolute; right: -18px; bottom: -19px; padding: 11px 14px; border: 1px solid rgba(45,212,191,.32); border-radius: 14px; background: rgba(8,15,24,.92); box-shadow: var(--shadow-soft); color: #b8c7d9; font-size: 11px; backdrop-filter: blur(12px); }
.local-pill strong { color: #67e5d4; }

/* Hero com captura real do aplicativo */
.hero-product-shot { position: relative; margin: 0; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--surface-solid); box-shadow: 0 32px 90px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.025) inset; overflow: hidden; transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); transform-origin: center left; }
.hero-product-shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 80px rgba(37,99,235,.12) inset; pointer-events: none; }
.hero-shot-bar { min-height: 46px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); color: var(--muted-2); font-size: 10px; font-weight: 720; }
.hero-shot-live { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.hero-shot-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(52,211,153,.75); }
.hero-product-shot > img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top; background: #edf0f7; }
.hero-product-shot figcaption { min-height: 52px; padding: 0 16px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.hero-product-shot figcaption > span { padding: 5px 8px; border: 1px solid rgba(37,99,235,.28); border-radius: 7px; color: #7da3ff; background: rgba(37,99,235,.08); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.hero-product-shot figcaption strong { color: var(--text); font-weight: 680; }

/* Marquee / tags */
.provider-wrap { border-block: 1px solid var(--line); background: rgba(111, 132, 166, .035); overflow: hidden; }
.provider-label { text-align: center; margin: 0 0 22px; color: var(--muted-2); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.providers { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.provider { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 720; }
.provider.cortex { color: #78a3ff; border-color: rgba(37,99,235,.3); background: rgba(37,99,235,.08); }
.provider.local { color: #68ddcd; border-color: rgba(45,212,191,.3); background: rgba(45,212,191,.07); }

/* Capabilities */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento-card { position: relative; min-height: 250px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface-solid) 80%, transparent)); box-shadow: var(--shadow-soft); overflow: hidden; transition: transform .3s, border-color .3s; }
.bento-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.bento-card.wide { grid-column: span 7; min-height: 340px; }
.bento-card.medium { grid-column: span 5; min-height: 340px; }
.bento-card.third { grid-column: span 4; }
.bento-card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -100px; bottom: -120px; background: radial-gradient(circle, var(--glow, rgba(37,99,235,.15)), transparent 65%); pointer-events: none; }
.feature-icon { width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--tone, var(--blue)) 32%, transparent); border-radius: 13px; display: grid; place-items: center; color: var(--tone, var(--blue-2)); background: color-mix(in srgb, var(--tone, var(--blue)) 9%, transparent); }
.feature-icon svg { width: 21px; }
.bento-card h3 { margin: 20px 0 8px; font-size: 1.3rem; letter-spacing: -.03em; }
.bento-card p { max-width: 500px; margin: 0; color: var(--muted); font-size: 14px; }
.mini-code { margin-top: 24px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #090e17; font: 10px/1.65 ui-monospace, monospace; color: #8694aa; }
.mini-code .green { color: #5eead4; } .mini-code .violet { color: #c084fc; }
.step-list { margin-top: 23px; display: grid; gap: 8px; }
.step { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface-solid) 70%, transparent); font-size: 11px; color: var(--muted); }
.step i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: rgba(52,211,153,.09); color: var(--green); font-style: normal; font-size: 10px; }
.control-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; }
.control-pills span, .control-pills a { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 10px; font-weight: 700; }
.control-pills span:nth-child(1) { color: #a78bfa; background: rgba(139,92,246,.08); }
.control-pills span:nth-child(2) { color: #60a5fa; background: rgba(37,99,235,.08); }
.control-pills span:nth-child(3) { color: #5eead4; background: rgba(45,212,191,.08); }

/* Screens */
.screens-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 24px; }
.screen-tab { min-height: 39px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; }
.screen-tab.active { color: var(--text); border-color: rgba(37,99,235,.42); background: rgba(37,99,235,.1); }
.screen-frame { position: relative; min-height: 520px; margin: 0; padding: 10px; border: 1px solid var(--line-strong); border-radius: 24px; background: radial-gradient(circle at 50% 10%, rgba(37,99,235,.13), transparent 34rem), linear-gradient(145deg, var(--surface-2), var(--surface-solid)); box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden; }
.screen-frame img { display: block; width: 100%; height: auto; max-height: 760px; border-radius: 15px; object-fit: contain; object-position: top center; background: #070b12; box-shadow: 0 18px 55px rgba(0,0,0,.28); transition: opacity .18s ease, transform .25s ease; }
.screen-frame[data-orientation="landscape"] img { aspect-ratio: 16/10; object-fit: cover; }
.screen-frame[data-orientation="portrait"] { padding: 28px; }
.screen-frame[data-orientation="portrait"] img { width: min(100%, 420px); aspect-ratio: 9/16; }
.screen-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.screen-meta strong { color: var(--text); }
.screen-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-2); }

/* Local/cloud */
.local-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr); gap: 70px; align-items: center; }
.local-copy h2 { margin: 12px 0 20px; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.055em; }
.local-copy > p { color: var(--muted); font-size: 1.04rem; }
.check-list { list-style: none; padding: 0; margin: 27px 0 0; display: grid; gap: 11px; }
.check-list li { display: flex; gap: 10px; color: var(--muted); font-size: 14px; }
.check-list svg { flex: 0 0 auto; width: 18px; color: var(--cyan); margin-top: 3px; }
.network { position: relative; min-height: 440px; display: grid; place-items: center; }
.network::before { content: ""; position: absolute; inset: 18% 8%; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 80px rgba(37,99,235,.12) inset; }
.network-line { position: absolute; left: 26%; right: 26%; top: 50%; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet)); box-shadow: 0 0 22px rgba(37,99,235,.65); }
.node { position: absolute; width: 172px; min-height: 148px; padding: 20px; border: 1px solid var(--line-strong); border-radius: 23px; background: var(--surface-solid); box-shadow: var(--shadow); z-index: 1; }
.node.local { left: 5%; top: 31%; } .node.cloud { right: 5%; top: 31%; }
.node-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; }
.node.local .node-icon { color: var(--cyan); background: rgba(45,212,191,.1); } .node.cloud .node-icon { color: #8aabff; background: rgba(37,99,235,.1); }
.node-icon svg { width: 22px; }
.node strong { display: block; margin-top: 15px; font-size: 14px; }
.node span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.route-switch { position: relative; z-index: 2; width: 122px; height: 122px; border: 1px solid rgba(37,99,235,.4); border-radius: 50%; background: radial-gradient(circle, #152b57, #0c1423 70%); color: white; display: grid; place-items: center; text-align: center; box-shadow: 0 0 70px rgba(37,99,235,.28); font-size: 11px; font-weight: 800; }
.route-switch::after { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(45,212,191,.4); border-radius: 50%; animation: spin 12s linear infinite; }
.network-badge { position: absolute; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 720; }
.network-badge.one { top: 10%; left: 35%; } .network-badge.two { bottom: 12%; left: 39%; }

/* Apps */
.apps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.app-card { position: relative; min-height: 420px; padding: 32px; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-soft); }
.app-card.windows { background: radial-gradient(circle at 90% 10%, rgba(37,99,235,.2), transparent 16rem), var(--surface); }
.app-card.android { background: radial-gradient(circle at 90% 10%, rgba(45,212,191,.16), transparent 16rem), var(--surface); }
.app-top { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.app-logo { width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 15px; display: grid; place-items: center; background: var(--surface-solid); }
.app-logo svg { width: 27px; }
.version-badge { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: 700 10px ui-monospace, monospace; }
.app-card h3 { margin: 24px 0 5px; font-size: 1.8rem; letter-spacing: -.04em; }
.app-sub { color: var(--muted); margin: 0; }
.app-features { list-style: none; padding: 0; margin: 25px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.app-features li { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.app-features svg { width: 14px; color: var(--cyan); }
.app-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.requirements { display: block; margin-top: 12px; color: var(--muted-2); font-size: 10px; }

/* Plans */
.plans-toolbar { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); }
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.plan-card { position: relative; padding: 25px 22px 22px; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); display: flex; flex-direction: column; min-height: 500px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.plan-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.plan-card.featured { border-color: rgba(37,99,235,.55); box-shadow: 0 22px 60px rgba(37,99,235,.15); background: radial-gradient(circle at 80% 0, rgba(37,99,235,.18), transparent 14rem), var(--surface); }
.plan-label { min-height: 24px; align-self: flex-start; padding: 4px 8px; border-radius: 7px; background: rgba(37,99,235,.1); color: #78a2ff; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.plan-label.free { color: var(--cyan); background: rgba(45,212,191,.08); }
.plan-card h3 { margin: 17px 0 4px; font-size: 1.24rem; }
.plan-price { margin: 7px 0 3px; display: flex; align-items: baseline; gap: 4px; }
.plan-price strong { font-size: 2.35rem; letter-spacing: -.055em; }
.plan-price span { color: var(--muted); font-size: 11px; }
.plan-quota { color: var(--muted); font-size: 11px; margin-bottom: 18px; }
.plan-features { list-style: none; padding: 18px 0; margin: 0 0 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; flex: 1; }
.plan-features li { display: flex; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.plan-features svg { width: 14px; flex: 0 0 auto; color: var(--cyan); margin-top: 1px; }
.plan-skeleton { min-height: 500px; border-radius: 21px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 240% 100%; animation: shimmer 1.4s infinite; }
.plan-error { grid-column: 1/-1; padding: 20px; border: 1px solid rgba(251,113,133,.28); border-radius: 14px; background: rgba(251,113,133,.07); color: var(--rose); }

/* Updates */
.updates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.update-card { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); overflow: hidden; }
.update-meta { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.update-platform { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.update-platform i { width: 30px; height: 30px; border-radius: 9px; background: rgba(37,99,235,.1); color: var(--blue-2); display: grid; place-items: center; font-style: normal; }
.update-version { color: var(--cyan); font: 750 11px ui-monospace, monospace; }
.update-card h3 { margin: 22px 0 8px; font-size: 1.35rem; }
.update-card p { margin: 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.update-link { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--blue-2); font-size: 12px; font-weight: 750; }

/* Account teaser and CTA */
.account-panel { padding: 42px; border: 1px solid var(--line-strong); border-radius: 28px; background: radial-gradient(circle at 80% 10%, rgba(139,92,246,.15), transparent 24rem), radial-gradient(circle at 15% 100%, rgba(45,212,191,.1), transparent 22rem), var(--surface); box-shadow: var(--shadow); display: grid; grid-template-columns: .9fr 1.1fr; gap: 55px; align-items: center; }
.account-copy h2 { margin: 12px 0 15px; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.04; letter-spacing: -.05em; }
.account-copy p { color: var(--muted); }
.account-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.dashboard-mini { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--bg) 78%, transparent); }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.dash-head strong { font-size: 12px; }
.dash-head span { color: var(--cyan); font-size: 9px; }
.dash-plan { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.dash-plan-top { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.dash-plan-top span { color: var(--muted); }
.usage-bar { height: 6px; margin-top: 13px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.usage-bar i { display: block; width: 38%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 9px; }
.dash-stat { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.dash-stat strong { display: block; font-size: 16px; }
.dash-stat span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }

/* FAQ/footer */
.faq { max-width: 900px; margin: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; padding: 22px 4px; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; font-weight: 740; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -7px 0 22px; padding-right: 42px; color: var(--muted); font-size: 14px; }
.final-cta { padding: 70px 30px; text-align: center; border: 1px solid var(--line-strong); border-radius: 30px; background: radial-gradient(circle at 50% 130%, rgba(37,99,235,.24), transparent 32rem), var(--surface); box-shadow: var(--shadow); }
.final-cta h2 { max-width: 760px; margin: 0 auto 14px; font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1; letter-spacing: -.06em; }
.final-cta p { max-width: 630px; margin: 0 auto 27px; color: var(--muted); }
.footer { padding: 54px 0 34px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 45px; }
.footer-brand p { max-width: 300px; color: var(--muted); font-size: 12px; }
.footer-col strong { display: block; margin-bottom: 13px; font-size: 12px; }
.footer-col a { display: block; padding: 4px 0; color: var(--muted); font-size: 12px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 10px; }

/* Inner pages */
.inner-main { min-height: 100vh; padding-top: var(--header-h); }
.api-hero { padding: 90px 0 70px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 82% 0, rgba(45,212,191,.12), transparent 29rem), radial-gradient(circle at 30% -20%, rgba(37,99,235,.18), transparent 36rem); }
.api-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .72fr); gap: 56px; align-items: center; }
.api-hero h1 { max-width: 790px; margin: 15px 0 20px; font-size: clamp(3rem, 6vw, 6.2rem); line-height: .94; letter-spacing: -.065em; }
.api-hero p { max-width: 700px; margin: 0; color: var(--muted); font-size: 1.1rem; }
.api-endpoint-card { padding: 24px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.api-endpoint-card > small { color: var(--cyan); font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.api-endpoint-card > code { display: block; overflow-wrap: anywhere; margin: 10px 0; color: var(--text); font-size: 14px; }
.api-endpoint-card > button, .api-code-card header button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-2); color: var(--text); cursor: pointer; }
.api-endpoint-card > div { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.api-endpoint-card > div strong { color: var(--text); }
.api-doc-grid { display: grid; grid-template-columns: 210px minmax(0, 820px); gap: 68px; justify-content: center; align-items: start; }
.api-doc-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.api-doc-nav strong { padding: 7px 9px; font-size: 12px; }
.api-doc-nav a { padding: 7px 9px; border-radius: 8px; color: var(--muted); font-size: 13px; }
.api-doc-nav a:hover { background: var(--surface-2); color: var(--text); }
.api-doc-content { min-width: 0; }
.api-doc-content > section { padding: 0 0 68px; scroll-margin-top: calc(var(--header-h) + 28px); }
.api-doc-content > section + section { padding-top: 62px; border-top: 1px solid var(--line); }
.api-doc-content h2 { margin: 8px 0 12px; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.045em; }
.api-doc-content p { color: var(--muted); }
.api-doc-content a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }
.api-step { color: var(--cyan); font: 800 11px/1 ui-monospace, monospace; letter-spacing: .1em; }
.api-steps, .api-security { padding-left: 22px; color: var(--muted); }
.api-steps li, .api-security li { margin: 9px 0; padding-left: 5px; }
.api-notice { display: grid; gap: 4px; margin-top: 20px; padding: 15px 17px; border: 1px solid rgba(245,158,11,.28); border-radius: 13px; background: rgba(245,158,11,.07); color: #e6c27d; }
.api-notice span { color: var(--muted); font-size: 13px; }
.api-notice.neutral { border-color: rgba(37,99,235,.28); background: rgba(37,99,235,.07); color: #83a7ff; }
.api-code-card { margin-top: 18px; border: 1px solid var(--line-strong); border-radius: 15px; background: #080d16; overflow: hidden; box-shadow: var(--shadow-soft); }
.api-code-card header { min-height: 45px; padding: 0 12px 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #202a3b; color: #91a0b7; font-size: 12px; }
.api-code-card pre { margin: 0; padding: 18px; overflow: auto; color: #c9d4e5; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.api-route { display: grid; grid-template-columns: 54px minmax(0, auto) 1fr; gap: 12px; align-items: center; margin-top: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.api-route > span { color: #53d487; font: 850 11px/1 ui-monospace, monospace; }
.api-route > span.post { color: #7da3ff; }
.api-route p { margin: 0; font-size: 13px; }
.api-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.api-feature-grid article { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.api-feature-grid h3, .api-feature-grid p { margin: 0; }
.api-feature-grid p { margin-top: 5px; font-size: 13px; }
.page-hero { padding: 92px 0 52px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 70% -20%, rgba(37,99,235,.16), transparent 34rem); }
.page-hero h1 { margin: 13px 0 14px; font-size: clamp(2.8rem, 6vw, 5.7rem); line-height: .98; letter-spacing: -.06em; }
.page-hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.account-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.account-nav { position: sticky; top: calc(var(--header-h) + 24px); padding: 11px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.account-nav a { min-height: 41px; padding: 0 11px; border-radius: 9px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; font-weight: 700; }
.account-nav a:hover, .account-nav a.active { color: var(--text); background: var(--surface-2); }
.account-nav svg { width: 15px; }
.account-content { min-width: 0; max-width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.account-state { min-height: 360px; padding: 38px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); display: grid; place-items: center; text-align: center; }
.account-state .spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--blue-2); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 15px; }
.account-state h2 { margin: 0 0 7px; }
.account-state p { max-width: 480px; color: var(--muted); margin: 0 0 20px; }
.account-card { min-width: 0; max-width: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-soft); }
.account-card-head { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 20px; }
.account-card-head h2 { margin: 0; font-size: 1.25rem; }
.account-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.status-chip { padding: 5px 8px; border-radius: 7px; color: var(--green); background: rgba(52,211,153,.09); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.profile-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.profile-avatar { width: 62px; height: 62px; border-radius: 18px; object-fit: cover; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.profile-info strong, .profile-info span { display: block; }
.profile-info strong { font-size: 1.08rem; }
.profile-info span { color: var(--muted); font-size: 12px; }
.account-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.account-grid > .account-card { grid-column: span 6; }
.account-grid > .account-card.full { grid-column: 1/-1; }
.active-plan { padding: 22px; border: 1px solid rgba(37,99,235,.35); border-radius: 16px; background: radial-gradient(circle at 95% 0, rgba(37,99,235,.18), transparent 15rem), var(--surface-2); }
.active-plan-name { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.active-plan-name strong { font-size: 1.55rem; }
.active-plan-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 18px; }
.active-plan-meta div { padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.active-plan-meta span, .active-plan-meta strong { display: block; }
.active-plan-meta span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.active-plan-meta strong { margin-top: 3px; font-size: 12px; }
.usage-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.usage-box { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.usage-box > span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.usage-number { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-top: 5px; }
.usage-number strong { font-size: 1.25rem; }
.usage-number small { color: var(--muted); font-size: 9px; }
.usage-box .usage-bar { margin-top: 9px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.data-table th { color: var(--muted-2); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.data-table td strong { color: var(--text); }
.empty-state { padding: 25px; text-align: center; color: var(--muted); font-size: 12px; border: 1px dashed var(--line-strong); border-radius: 13px; }
.notice { padding: 12px 14px; border: 1px solid rgba(45,212,191,.25); border-radius: 11px; color: var(--muted); background: rgba(45,212,191,.05); font-size: 11px; }
.notice.warning { border-color: rgba(245,158,11,.28); background: rgba(245,158,11,.05); }
.modal-backdrop { position: fixed; inset: 0; z-index: 120; padding: 20px; display: grid; place-items: center; background: rgba(2,5,10,.72); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: .2s; }
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal { width: min(100%, 540px); max-height: min(760px, calc(100vh - 40px)); overflow-y: auto; padding: 28px; border: 1px solid var(--line-strong); border-radius: 23px; background: var(--surface-solid); box-shadow: var(--shadow); transform: translateY(12px) scale(.98); transition: .2s; }
.modal-backdrop.open .modal { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.modal-head h2 { margin: 0; }
.modal-close { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; }
.checkout-summary { padding: 17px; margin: 20px 0; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.checkout-summary div { display: flex; justify-content: space-between; gap: 15px; }
.checkout-summary div + div { margin-top: 7px; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pay-method { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: transparent; color: var(--text); cursor: pointer; text-align: left; }
.pay-method.selected { border-color: var(--blue); background: rgba(37,99,235,.08); }
.update-list { display: grid; gap: 18px; }
.release { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); display: grid; grid-template-columns: 180px 1fr; gap: 32px; }
.release-side strong, .release-side span { display: block; }
.release-side strong { font-size: 1.55rem; }
.release-side span { color: var(--muted); font-size: 11px; }
.release-body h2 { margin: 0 0 10px; }
.release-body p { color: var(--muted); font-size: 14px; }
.release-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* Toast */
.toast-region { position: fixed; z-index: 200; right: 18px; bottom: 18px; display: grid; gap: 8px; width: min(360px, calc(100% - 36px)); }
.toast { padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-solid); box-shadow: var(--shadow); color: var(--text); font-size: 12px; animation: toast-in .25s ease; }
.toast.error { border-color: rgba(251,113,133,.35); }

/* Back to top */
.back-to-top { position: fixed; z-index: 70; right: calc(env(safe-area-inset-right) + 18px); bottom: calc(env(safe-area-inset-bottom) + 18px); min-height: 48px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 15px; background: color-mix(in srgb, var(--surface-solid) 92%, transparent); color: var(--text); box-shadow: var(--shadow-soft); backdrop-filter: blur(18px) saturate(150%); display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; cursor: pointer; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px) scale(.94); transition: opacity .2s, visibility .2s, transform .2s, border-color .2s, background .2s; }
.back-to-top.visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.back-to-top:hover { border-color: rgba(45,212,191,.45); background: var(--surface-solid); }
.back-to-top svg { width: 17px; height: 17px; color: var(--cyan); }
.toast-region { transition: bottom .2s ease; }
.back-to-top-visible .toast-region { bottom: max(82px, calc(env(safe-area-inset-bottom) + 82px)); }

@keyframes pulse { 0%,100% { transform: scale(.9); opacity: .6; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -240% 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

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

@media (max-width: 1120px) {
  .main-nav a { padding-inline: 7px; font-size: 12px; }
  .hero-grid { grid-template-columns: minmax(350px, .82fr) minmax(510px, 1.18fr); gap: 35px; }
  .studio-body { grid-template-columns: 40px 1fr 205px; }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .container { width: min(calc(100% - 30px), var(--max)); }
  .site-header { height: calc(var(--header-h) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .nav-wrap { width: calc(100% - 24px); }
  .site-header .brand { min-height: 44px; }
  .main-nav { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 0; padding: 24px; background: color-mix(in srgb, var(--bg) 97%, transparent); backdrop-filter: blur(20px); display: flex; flex-direction: column; align-items: stretch; gap: 4px; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .2s; }
  body.menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { min-height: 48px; padding: 0 15px; display: flex; align-items: center; font-size: 15px; }
  .mobile-controls { display: flex; align-items: center; gap: 9px; padding: 16px 14px; margin-top: 9px; border-top: 1px solid var(--line); }
  .mobile-controls .lang-select { width: 82px; }
  .mobile-toggle { display: inline-grid; }
  .nav-actions { margin-left: auto; }
  .nav-actions .lang-select, .nav-actions > .icon-btn { display: none; }
  .auth-slot { margin-left: auto; }
  .icon-btn, .lang-select, .mobile-toggle { min-width: 44px; height: 44px; }
  .user-button { height: 44px; }
  .auth-slot .btn-small { min-height: 44px; }
  .screen-tab { min-height: 44px; }
  .inner-main { padding-top: calc(var(--header-h) + env(safe-area-inset-top)); }
  .hero { min-height: auto; padding-top: calc(125px + env(safe-area-inset-top)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy-col { text-align: center; }
  .hero-badge, .hero-actions, .hero-proof { margin-inline: auto; justify-content: center; }
  .hero h1, .hero-copy { margin-inline: auto; }
  .studio-window { width: min(100%, 760px); margin: 15px auto 0; transform: none; }
  .hero-product-shot { width: min(100%, 860px); margin: 15px auto 0; transform: none; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .bento-card.wide, .bento-card.medium { grid-column: span 6; }
  .bento-card.third { grid-column: span 6; }
  .local-grid { grid-template-columns: 1fr; gap: 20px; }
  .local-copy { text-align: center; }
  .check-list { max-width: 600px; margin-inline: auto; text-align: left; }
  .account-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 2; }
  .account-shell { grid-template-columns: 1fr; }
  .api-hero-grid, .api-doc-grid { grid-template-columns: 1fr; }
  .api-doc-nav { position: static; grid-template-columns: repeat(3, 1fr); }
  .account-nav { position: static; display: flex; overflow-x: auto; }
  .account-nav a { flex: 0 0 auto; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .section { padding: 68px 0; }
  .section-tight { padding: 44px 0; }
  .section-head { gap: 14px; margin-bottom: 30px; }
  .section-title { font-size: clamp(2.05rem, 10.5vw, 2.8rem); line-height: 1.02; }
  .section-copy { font-size: .94rem; }
  .hero { padding: calc(100px + env(safe-area-inset-top)) 0 58px; }
  .hero-grid { gap: 36px; }
  .hero-copy-col { text-align: left; }
  .hero-badge, .hero-actions, .hero-proof, .hero h1, .hero-copy { margin-inline: 0; justify-content: flex-start; }
  .hero-badge { max-width: 100%; margin-bottom: 18px; font-size: 10.5px; line-height: 1.3; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.35rem); line-height: .96; text-wrap: balance; }
  .hero-copy { margin-top: 19px; font-size: .98rem; line-height: 1.58; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 24px; }
  .hero-actions .btn { width: 100%; min-height: 48px; padding-inline: 11px; font-size: 13px; line-height: 1.2; text-align: center; }
  .hero-proof { flex-wrap: nowrap; justify-content: flex-start; gap: 8px; margin-top: 19px; padding-bottom: 5px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .hero-proof::-webkit-scrollbar { display: none; }
  .hero-proof > span { flex: 0 0 auto; min-height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); scroll-snap-align: start; font-size: 10.5px; }
  .user-meta, .user-chevron { display: none; }
  .icon-btn, .lang-select, .mobile-toggle { min-width: 44px; height: 44px; }
  .user-button { height: 44px; padding-right: 4px; }
  .user-button img, .avatar-fallback { width: 36px; height: 36px; }
  .auth-slot { min-width: auto; }
  .user-menu { position: fixed; top: calc(var(--header-h) + env(safe-area-inset-top) - 2px); right: 12px; width: min(300px, calc(100vw - 24px)); }
  .auth-skeleton { width: 42px; }
  .brand-word small { display: none; }
  .studio-window { width: 100%; margin-top: 0; border-radius: 18px; }
  .hero-product-shot { width: 100%; margin-top: 0; border-radius: 18px; }
  .hero-shot-bar { min-height: 42px; padding-inline: 11px; }
  .hero-shot-bar > span:last-child { display: none; }
  .hero-product-shot figcaption { min-height: 58px; align-items: flex-start; padding-block: 11px; line-height: 1.4; }
  .studio-top { height: 40px; padding-inline: 11px; }
  .studio-body { min-height: 0; display: block; }
  .studio-rail { display: none; }
  .studio-main { grid-template-rows: 32px 185px 92px; }
  .tab { min-width: 108px; font-size: 9px; }
  .code-area { padding-top: 12px; font-size: 8.5px; line-height: 1.6; }
  .terminal { padding: 8px 11px; font-size: 8.5px; line-height: 1.6; }
  .agent-panel { position: static; width: auto; height: auto; border: 0; border-top: 1px solid #202a3b; border-radius: 0; box-shadow: none; overflow: visible; }
  .agent-head { height: 38px; }
  .agent-scroll { padding: 9px; gap: 6px; }
  .agent-msg { padding: 8px 9px; font-size: 8.5px; }
  .agent-msg:not(.user) { display: none; }
  .tool-row { min-height: 34px; padding: 6px 7px; font-size: 8px; }
  .approval { padding: 9px; }
  .approval-card { padding: 8px; }
  .local-pill { position: static; display: flex; flex-wrap: wrap; gap: 4px; right: auto; bottom: auto; padding: 10px 12px; border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
  .provider-label { margin-bottom: 16px; line-height: 1.5; }
  .providers { flex-wrap: nowrap; justify-content: flex-start; gap: 8px; padding: 2px 1px 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .providers::-webkit-scrollbar { display: none; }
  .provider { flex: 0 0 auto; min-height: 38px; display: inline-flex; align-items: center; scroll-snap-align: start; }
  .bento { gap: 12px; }
  .bento-card { min-height: auto; padding: 22px; border-radius: 18px; }
  .bento-card.wide, .bento-card.medium, .bento-card.third { grid-column: 1/-1; min-height: auto; }
  .bento-card h3 { margin-top: 17px; }
  .mini-code { max-width: 100%; overflow-x: auto; }
  .screens-tabs { flex-wrap: nowrap; gap: 7px; margin-bottom: 17px; padding-bottom: 5px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .screens-tabs::-webkit-scrollbar { display: none; }
  .screen-tab { flex: 0 0 auto; min-height: 44px; scroll-snap-align: start; }
  .screen-frame { min-height: 0; padding: 5px; border-radius: 18px; }
  .screen-frame img { border-radius: 13px; }
  .screen-frame[data-orientation="portrait"] { padding: 14px; }
  .screen-frame[data-orientation="portrait"] img { width: min(100%, 390px); max-height: none; }
  .screen-meta { gap: 8px; margin-top: 13px; font-size: 12px; line-height: 1.5; }
  .local-copy h2 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .network { min-height: 300px; transform: none; margin-inline: 0; }
  .network::before { inset: 14% 1%; }
  .network-line { left: 20%; right: 20%; }
  .node { width: min(38vw, 132px); min-height: 112px; padding: 14px; border-radius: 18px; }
  .node.local { left: 0; } .node.cloud { right: 0; }
  .node-icon { width: 35px; height: 35px; border-radius: 10px; }
  .node strong { margin-top: 10px; font-size: 12px; }
  .node span { font-size: 9px; }
  .route-switch { width: 78px; height: 78px; font-size: 9px; }
  .network-badge { font-size: 8px; }
  .network-badge.one { top: 5%; left: 24%; } .network-badge.two { bottom: 6%; left: 22%; }
  .apps-grid, .updates-grid { grid-template-columns: 1fr; }
  .app-card { min-height: auto; padding: 22px; border-radius: 20px; }
  .app-features { grid-template-columns: 1fr; }
  .app-actions { display: grid; grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(86vw, 340px); gap: 12px; margin: 0 -16px 0 0; padding: 4px 16px 20px 0; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-width: none; }
  .plans-grid::-webkit-scrollbar { display: none; }
  .plans-grid > * { scroll-snap-align: start; }
  .plan-card { min-height: 470px; padding: 23px 20px 20px; }
  .plan-skeleton { min-height: 470px; }
  .screen-meta { flex-direction: column; }
  .account-panel { padding: 27px 20px; gap: 30px; }
  .account-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .account-actions .btn { padding-inline: 10px; font-size: 13px; }
  .dash-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-stat { min-width: 0; padding: 10px 8px; }
  .dash-stat strong { font-size: 13px; overflow-wrap: anywhere; }
  .faq summary { min-height: 58px; padding-block: 17px; align-items: center; }
  .final-cta { padding: 52px 20px; border-radius: 22px; }
  .final-cta h2 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .footer-col:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .page-hero { padding: 64px 0 38px; }
  .api-hero { padding: 62px 0 44px; }
  .api-hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .api-endpoint-card { padding: 18px; }
  .api-doc-grid { gap: 34px; }
  .api-doc-nav { display: none; }
  .api-doc-content > section { padding-bottom: 46px; }
  .api-doc-content > section + section { padding-top: 44px; }
  .api-route { grid-template-columns: 48px minmax(0, 1fr); }
  .api-route p { grid-column: 1 / -1; }
  .api-feature-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: clamp(2.35rem, 12vw, 3.3rem); line-height: 1; }
  .page-hero p { font-size: .98rem; }
  .account-shell { gap: 16px; }
  .account-nav { margin-inline: -1px; padding: 7px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav a { min-height: 44px; scroll-snap-align: start; }
  .account-content, .account-grid { gap: 12px; }
  .account-grid > .account-card { grid-column: 1/-1; }
  .account-card { padding: 19px; border-radius: 17px; }
  .account-state { min-height: 300px; padding: 25px 18px; }
  .usage-cards { grid-template-columns: 1fr; }
  .active-plan-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .active-plan { padding: 18px; }
  .active-plan-meta div { min-width: 0; padding: 9px 7px; }
  .active-plan-meta strong { overflow-wrap: anywhere; }
  .profile-row { grid-template-columns: auto 1fr; }
  .profile-row .btn { grid-column: 1/-1; }
  .release { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .modal-backdrop { padding: 0; place-items: end center; }
  .modal { width: 100%; max-height: calc(100dvh - 18px); padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  .modal-close { width: 44px; height: 44px; flex: 0 0 auto; }
  .back-to-top { right: calc(env(safe-area-inset-right) + 12px); bottom: calc(env(safe-area-inset-bottom) + 12px); width: 50px; min-height: 50px; padding: 0; justify-content: center; border-radius: 16px; }
  .back-to-top span { display: none; }
  .back-to-top svg { width: 20px; height: 20px; }
  .back-to-top-visible .toast-region { bottom: max(74px, calc(env(safe-area-inset-bottom) + 74px)); }
}

@media (max-width: 440px) {
  .brand-word { display: none; }
  .nav-actions { gap: 4px; }
  .studio-window { margin-inline: 0; width: 100%; }
  .terminal { font-size: 8px; }
  .final-cta { padding: 50px 18px; }
}

@media (max-width: 350px) {
  .hero-actions, .account-actions { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
  .studio-top > span:not(.studio-online) { display: none; }
  .network-badge { display: none; }
  .active-plan-meta { grid-template-columns: 1fr; }
}

/* Paginas legais */
.legal-meta { margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.legal-meta strong { color: var(--text); font-weight: 700; }
.legal-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.legal-toc a { padding: 7px 10px; border-radius: 9px; color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.legal-toc a:hover { color: var(--text); background: var(--surface-2); }
.legal-doc { min-width: 0; max-width: 760px; }
.legal-sec { scroll-margin-top: calc(var(--header-h) + 20px); padding: 0 0 34px; }
.legal-sec + .legal-sec { border-top: 1px solid var(--line); padding-top: 34px; }
.legal-sec h2 { margin: 0 0 16px; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.2; letter-spacing: -.02em; }
.legal-body p { margin: 0 0 15px; color: var(--muted); font-size: 1rem; line-height: 1.72; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body ul { margin: 0 0 15px; padding-left: 20px; display: grid; gap: 9px; }
.legal-body li { color: var(--muted); font-size: 1rem; line-height: 1.65; }
.legal-body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal-official { margin: 0 0 26px; color: var(--muted-2); font-size: 12.5px; }
.legal-others { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.legal-others strong { display: block; margin-bottom: 12px; font-size: 13px; }
.legal-others-links { display: flex; flex-wrap: wrap; gap: 9px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-legal a { color: var(--muted-2); }
.footer-legal a:hover { color: var(--text); }

@media (max-width: 900px) {
  .legal-shell { grid-template-columns: 1fr; gap: 26px; }
  .legal-toc { position: static; max-height: none; }
}

/* 31/08/2026 — faixa "baixar agora" com o sistema detectado.
   Fica ACIMA da grade e não a substitui: quem está num sistema e quer baixar
   para outro (o caso de quem usa o computador do trabalho) continua vendo todas
   as opções logo abaixo. Some sozinha se a detecção não tiver certeza. */
.baixar-agora{display:flex;align-items:center;justify-content:space-between;gap:18px;
  flex-wrap:wrap;margin:0 0 22px;padding:18px 22px;border-radius:16px;
  background:linear-gradient(120deg,rgba(37,99,235,.10),rgba(45,212,191,.10));
  border:1px solid var(--line,#e5e7eb)}
.baixar-agora[hidden]{display:none}
.baixar-agora .ba-txt{display:flex;flex-direction:column;gap:3px;min-width:0}
.baixar-agora .ba-eyebrow{font-size:11.5px;text-transform:uppercase;letter-spacing:.09em;
  font-weight:700;color:var(--accent-ink,#0f766e)}
.baixar-agora strong{font-size:19px;letter-spacing:-.2px}
.baixar-agora small{font-size:13px;color:var(--muted,#6b7280)}
.baixar-agora .btn{white-space:nowrap}
@media(max-width:560px){.baixar-agora{padding:16px}.baixar-agora .btn{width:100%;text-align:center}}
