:root {
    --bg-dark: #0a0a0c;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.5);
    --secondary: #9333ea;
    --accent: #22d3ee;
    --border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* High Contrast Mode */
.high-contrast body, .high-contrast .glass-card, .high-contrast .section, .high-contrast .list-row {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}
.high-contrast .btn, .high-contrast .form-control {
  border-color: #fff !important;
  color: #fff !important;
}

.canvas-border {
  border: 1px solid rgba(255,255,255,0.2);
}
.thumb-img {
  width: 120px;
  height: auto;
  border: 1px solid rgba(255,255,255,0.2);
}

/* --- Background Effects --- */
.bg-noise {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.glow-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.glow-1 { top: -200px; left: -200px; background: var(--primary); }
.glow-2 { bottom: -200px; right: -200px; background: var(--secondary); animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, 50px); }
}

/* --- Typography & Utilities --- */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.is-hidden { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section { padding: 6rem 0; }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }

/* --- Components --- */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover { background: #4338ca; transform: translateY(-2px); }

.btn-secondary { background: var(--bg-card); color: white; border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--text-muted); }

.btn-outline { background: transparent; border: 1px solid var(--border); color: white; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: white; }

.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-full { width: 100%; }
.btn-sm { padding: 0.55rem 0.85rem; font-size: 0.9rem; }

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: 0.3s;
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.preview-frame {
    width: 100%;
    height: 360px;
    border: 1px solid #e5e7eb;
    background: #0f0f13;
}

.trust-shell {
    margin-top: 1.5rem;
}

.trust-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trust-banner {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    color: #cbd5e1;
}

.trust-hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 1rem;
}

.trust-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    padding: 1rem 1.1rem;
}

.trust-report {
    padding: 1.1rem 1.15rem;
}

.trust-report-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.trust-report-title h4 {
    margin-bottom: 0.25rem;
}

.trust-report-qty .trust-score-value {
    font-size: 1.2rem;
}

.trust-report-coach {
    margin-top: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #e2e8f0;
}

.trust-report-topwork {
    margin-top: 0.8rem;
}

.trust-report-section {
    margin-top: 0.8rem;
}

.trust-report-block {
    margin-top: 0.2rem;
}

.trust-report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
}

.trust-report-col h5 {
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.6rem;
    color: #e2e8f0;
}

.trust-card h3,
.trust-card h4 {
    margin-bottom: 0.65rem;
}

.trust-card h4,
.trust-panel-box h5 {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.trust-muted {
    color: #94a3b8;
}

.trust-kv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.trust-kv div {
    min-width: 0;
}

.trust-kv label,
.trust-mini-metric label {
    display: block;
    color: #94a3b8;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.2rem;
}

.trust-kv strong,
.trust-mini-metric strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    color: #f8fafc;
    overflow-wrap: anywhere;
}

.trust-score-block {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.trust-score-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.trust-score-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.trust-score-label {
    font-size: 0.88rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.trust-band {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.trust-band.is-green {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.3);
}

.trust-band.is-blue {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}

.trust-band.is-amber {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.3);
}

.trust-band.is-red {
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.25);
}

.trust-band.is-slate {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.2);
}

.trust-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.trust-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.95), rgba(34, 197, 94, 0.95));
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.trust-executive-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.5));
}

.trust-executive-card .trust-score-value {
    font-size: 2.15rem;
}

.trust-mini-metric {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.trust-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.trust-timeline-step {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.trust-timeline-arrow {
    color: #64748b;
}

.trust-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.trust-disclosure {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.trust-disclosure > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.9rem 1rem;
}

.trust-disclosure > summary::-webkit-details-marker {
    display: none;
}

.trust-disclosure-body {
    padding: 0 1rem 1rem;
}

.trust-table {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.trust-table-head,
.trust-table-summary {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(120px, 0.8fr) minmax(140px, 0.9fr);
    gap: 0.75rem;
    align-items: center;
}

.trust-table-head {
    padding: 0.4rem 0.1rem;
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.trust-quantity-row {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.trust-quantity-row > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.95rem 1rem;
}

.trust-quantity-row > summary::-webkit-details-marker {
    display: none;
}

.trust-quantity-panel {
    padding: 0 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.trust-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.trust-panel-box {
    padding: 0.8rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.trust-panel-box h5 {
    margin-bottom: 0.55rem;
}

.trust-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.trust-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.trust-list-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.trust-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trust-list-item strong {
    display: block;
}

.trust-subtext {
    color: #94a3b8;
    font-size: 0.86rem;
}

.trust-review-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.9rem;
}

.trust-review-actions .btn {
    min-width: 132px;
}

.trust-why {
    margin-top: 0.55rem;
    color: #cbd5e1;
}

.trust-why summary {
    cursor: pointer;
    color: #93c5fd;
}

.trust-empty {
    color: #94a3b8;
    padding: 0.5rem 0;
}

.inspector-row.is-focus {
    outline: 1px solid rgba(96, 165, 250, 0.8);
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.08);
    transition: background 0.2s ease;
}

/* --- Header --- */
.glass-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--nav-height);
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.05em; }

nav ul { display: flex; gap: 2rem; }
nav a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
nav a:hover { color: white; }

.cta-group { display: flex; gap: 1rem; align-items: center; }
.nav-toggle { display: none; }
.mobile-nav { display: none; }

/* --- Hero --- */
.hero {
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 6rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.cta-row { display: flex; gap: 1rem; }

/* --- Features --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-icon { font-size: 2.5rem; margin-bottom: 1.5rem; }
.feature-card h3 { margin-bottom: 1rem; }
.feature-card p { color: var(--text-muted); }

/* --- Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.15);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-header { margin-bottom: 2rem; text-align: center; }
.pricing-header p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }

.price {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
}
.price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }

.features-list li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.features-list li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
}

/* --- Contact --- */
.contact-box { max-width: 700px; margin: 0 auto; padding: 3rem; text-align: center; }
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
}

/* --- Dashboard --- */
.dashboard-container {
    padding-top: calc(var(--nav-height) + 2rem);
    min-height: 100vh;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}
.full-width { grid-column: 1 / -1; }

.license-key {
    font-family: 'Courier New', monospace;
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    color: var(--accent);
    font-size: 1.25rem;
    letter-spacing: 1px;
    word-break: break-all;
}

.quick-actions li { margin-bottom: 1rem; }
.quick-actions a { color: var(--text-main); display: flex; align-items: center; gap: 0.5rem; }
.quick-actions a:hover { color: var(--primary); }

.activation-steps {
    list-style: decimal;
    margin-left: 1.5rem;
    margin-top: 1.5rem;
    color: var(--text-muted);
}
.activation-steps li { margin-bottom: 0.75rem; }
.activation-steps strong { color: white; }

.status-text { margin-top: 12px; opacity: 0.85; }
.subtle-text { opacity: 0.85; }
.subtle-text-tight { opacity: 0.85; margin-top: -6px; }
.btn-margin-top { margin-top: 1.5rem; }

.card-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.section-block { margin-top: 14px; }
.section-block h4 { margin-bottom: 8px; }

.muted-block { opacity: 0.9; }
.list-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0;
    align-items: center;
}

.billing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.billing-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.page-top { padding-top: calc(var(--nav-height) + 2.5rem); }
.glass-card-compact { padding: 24px; }
.mt-18 { margin-top: 18px; }
.fineprint { margin-top: 14px; opacity: 0.75; font-size: 0.95em; overflow-wrap: anywhere; word-break: break-word; }
.muted-block, .status-text { overflow-wrap: anywhere; word-break: break-word; }
.license-key { overflow-wrap: anywhere; word-break: break-word; }
code { overflow-wrap: anywhere; word-break: break-word; }

.beta-banner { padding-top: calc(var(--nav-height) + 1rem); padding-bottom: 2rem; }
.beta-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; align-items: start; }
.beta-text h2 { margin-bottom: 0.5rem; }
.beta-form .form-control { margin-bottom: 10px; }
.consent-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.consent-row input[type="checkbox"] { width: 18px; height: 18px; }
.beta-card .card-actions-row { align-items: center; }
.incentives { margin-top: 10px; opacity: 0.9; }
.incentives li { margin: 6px 0; }

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.is-open {
    display: flex;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    width: 100%;
    max-width: 400px;
    position: relative;
    padding: 2.5rem;
    background: #0f0f13; /* Solid background for legibility */
    border: 1px solid var(--border);
}

.modal-wide {
    max-width: 760px;
}

.device-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.device-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.device-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.device-name {
    font-weight: 700;
}

.device-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 420px;
}

.device-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.modal-box h2 { text-align: center; margin-bottom: 2rem; }

.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }
.auth-switch a { color: var(--primary); font-weight: 600; }

.close-modal {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.close-modal:hover { color: white; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.bbox-stage {
    position: relative;
    width: 100%;
    max-height: 70vh;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.bbox-stage img {
    display: block;
    width: 100%;
    height: auto;
}

.bbox-highlight {
    position: absolute;
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15);
    border-radius: 6px;
    pointer-events: none;
}

.inspector-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 10px;
    align-items: start;
}

.inspector-row strong { font-weight: 700; }
.inspector-meta { color: var(--text-muted); font-size: 0.9rem; }
.inspector-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.inspector-pill { display: inline-flex; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 0.85rem; }
.inspector-pill.confirmed { border-color: rgba(34, 197, 94, 0.5); color: rgba(34, 197, 94, 1); }
.inspector-pill.corrected { border-color: rgba(245, 158, 11, 0.55); color: rgba(245, 158, 11, 1); }
.inspector-pill.rejected { border-color: rgba(239, 68, 68, 0.55); color: rgba(239, 68, 68, 1); }
.inspector-pill.stale { border-color: rgba(148, 163, 184, 0.55); color: rgba(148, 163, 184, 1); }

/* --- Mobile --- */
@media (max-width: 768px) {
    :root { --nav-height: 64px; }

    .container { padding: 0 1rem; }
    .section { padding: 3.5rem 0; }
    .glass-card { padding: 1.25rem; }

    .glass-header { height: auto; padding: 0.75rem 0; }
    .header-content { flex-wrap: wrap; gap: 0.75rem; }
    .logo { font-size: 1.25rem; }

    .nav-toggle { display: inline-flex; padding: 0.65rem 1rem; }
    .header-content nav { display: none; }
    .header-content #auth-buttons,
    .header-content #user-menu { display: none; }

    .mobile-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 0.75rem 1rem 1rem;
        background: rgba(10, 10, 12, 0.96);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        max-height: calc(100vh - 72px);
        overflow: auto;
    }
    body.nav-open .mobile-nav { display: block; }
    .mobile-nav nav { display: block; width: 100%; }
    .mobile-nav nav ul { display: flex; flex-direction: column; gap: 0.75rem; }
    .mobile-nav nav a { font-size: 1rem; color: var(--text-main); }
    .mobile-nav .cta-group { display: flex; flex-direction: column; gap: 0.75rem; align-items: stretch; width: 100%; margin-top: 0.75rem; }
    .mobile-nav .cta-group .btn { width: 100%; }
    .mobile-nav .user-greeting { padding: 0.5rem 0.25rem; }

    .hero {
        padding-top: calc(var(--nav-height) + 2rem);
        padding-bottom: 3.5rem;
        min-height: auto;
    }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.05rem; margin-bottom: 1.75rem; }

    .cta-row { flex-direction: column; width: 100%; }
    .btn-lg { width: 100%; }

    .section-title { margin-bottom: 2.5rem; }
    .section-title h2 { font-size: 2rem; }
    .section-title p { font-size: 1rem; }

    .grid-3 { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }

    .contact-box { padding: 1.5rem; }

    .beta-banner { padding-top: calc(var(--nav-height) + 0.5rem); }
    .beta-card { display: grid !important; grid-template-columns: 1fr !important; gap: 1rem; overflow: hidden; }
    .beta-text { text-align: left; }
    .beta-text h2 { font-size: 1.9rem; }
    .beta-form { width: 100%; max-width: 100%; }
    .beta-form .form-control { font-size: 16px; }
    .beta-form .card-actions-row { flex-direction: column; align-items: stretch; }
    .beta-form .card-actions-row .btn { width: 100%; }
    .consent-row { align-items: flex-start; }
    .consent-row span { font-size: 0.95rem; line-height: 1.3; }

    .dashboard-header { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .dashboard-grid { grid-template-columns: 1fr; }

    .billing-grid { grid-template-columns: 1fr; }
    .list-row { flex-direction: column; align-items: flex-start; }
    .trust-hero,
    .trust-table-head,
    .trust-table-summary {
        grid-template-columns: 1fr;
    }
    .trust-score-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .trust-timeline {
        flex-direction: column;
        align-items: stretch;
    }

    .device-row { flex-direction: column; align-items: stretch; }
    .device-sub { max-width: 100%; }

    .preview-frame { height: 260px; }

    .modal-box { padding: 1.5rem; max-height: 90vh; overflow: auto; }
}

@media (max-width: 420px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .logo { font-size: 1.15rem; }
}
