/* ============================================================
   AUTHDESK PUBLIC THEME — shared design system for public pages
   Matches the landing page (index.php) design language.
   Load AFTER bootstrap.min.css (if the page uses Bootstrap).
============================================================ */

:root {
    --bg: #06080d;
    --bg-2: #0a0d15;
    --panel: #0d1220;
    --panel-2: #0b101c;
    --line: rgba(255, 255, 255, 0.08);
    --line-soft: rgba(255, 255, 255, 0.05);
    --text: #f2f5fb;
    --muted: #97a1b6;
    --muted-2: #5d6b85;
    --accent: #4f7cff;
    --accent-soft: #7da2ff;
    --emerald: #10b981;
    --mint: #34d399;
    --violet: #8b5cf6;
    --amber: #f59e0b;
    --gold: #fbbf24;
    --red: #f87171;

    --g-accent: linear-gradient(110deg, #9db9ff 0%, #4f7cff 45%, #a78bfa 100%);
    --g-fintech: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    --g-verification: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    --g-automobile: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --g-company: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --g-support: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    --g-custom: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);

    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

    --header-h: 78px;
    --container: 1240px;
    --radius-lg: 28px;
    --radius-md: 18px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html, body { overflow-x: clip; }

body {
    font-family: var(--font-body) !important;
    background: var(--bg) !important;
    color: var(--text) !important;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 50% at 50% -10%, rgba(37, 99, 235, 0.16) 0%, transparent 60%),
        radial-gradient(40% 40% at 100% 30%, rgba(139, 92, 246, 0.07) 0%, transparent 60%),
        var(--bg);
}

::selection { background: rgba(79, 124, 255, 0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1d2435; border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2a3450; }

a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: #fff; text-decoration: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.ad-container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 40px);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--text); }

.display-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--text);
}
.display-title em, .ad-h2 em {
    font-style: normal;
    background: var(--g-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ad-h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
}
.ghost-text { color: transparent; -webkit-text-stroke: 1.5px rgba(242, 245, 251, 0.65); }
.section-sub { color: var(--muted); font-size: 1.08rem; max-width: 620px; margin-top: 1.4rem; }
.mono-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Split-text wrappers (added by JS) */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.wi { display: inline-block; will-change: transform; }

/* ---------- Chapter headers + connectors ---------- */
.chapter { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.6rem; font-family: var(--font-mono); }
.chapter-no { font-size: 0.8rem; color: var(--accent-soft); }
.chapter-rule { flex: 0 1 180px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.chapter-rule i {
    position: absolute; inset: 0; display: block;
    background: linear-gradient(90deg, var(--accent), rgba(79, 124, 255, 0));
    transform: scaleX(0); transform-origin: left center;
}
.chapter-label { font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }

.connector { width: 1px; height: clamp(80px, 12vh, 130px); margin-inline: auto; background: var(--line-soft); position: relative; overflow: hidden; }
.connector i {
    position: absolute; inset: 0; display: block;
    background: linear-gradient(180deg, var(--accent), rgba(79, 124, 255, 0.1));
    transform: scaleY(0); transform-origin: top center;
}

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1200; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; width: 100%; background: var(--g-accent); transform: scaleX(0); transform-origin: left center; }

.ad-section { padding-block: clamp(90px, 11vw, 150px); position: relative; }

/* ---------- Header / nav ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 900;
    transition: transform 0.5s var(--ease-out), background 0.35s, border-color 0.35s;
    border-bottom: 1px solid transparent;
    background: transparent;
}
.site-header.is-stuck {
    background: rgba(6, 8, 13, 0.72);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--line-soft);
}
.site-header.is-hidden { transform: translateY(-110%); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand img { height: 34px; width: auto; filter: brightness(0) invert(1); }

.main-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.main-nav a {
    font-family: var(--font-mono);
    font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted);
    padding: 0.4rem 0;
    position: relative;
    transition: color 0.3s;
}
.main-nav a sup { color: var(--accent); font-size: 0.85em; margin-right: 0.35em; }
.main-nav a::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 100%; height: 1px; background: var(--accent-soft);
    transform: scaleX(0); transform-origin: right center;
    transition: transform 0.4s var(--ease-out);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); transform-origin: left center; }
.main-nav a.is-active { color: var(--text); }

.header-cta { display: flex; align-items: center; gap: 0.7rem; }

.nav-burger {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 50%;
    position: relative;
    z-index: 960;
    cursor: pointer;
    padding: 0;
}
.nav-burger span { position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: var(--text); transition: transform 0.35s var(--ease-out); }
.nav-burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 3.5px)); }
.nav-burger span:nth-child(2) { transform: translate(-50%, calc(-50% + 3.5px)); }
body.menu-open .nav-burger span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 850;
    background:
        radial-gradient(70% 50% at 80% 0%, rgba(37, 99, 235, 0.18) 0%, transparent 60%),
        #05070c;
    display: flex; flex-direction: column; justify-content: center;
    padding: 7rem 9vw 3.5rem;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.7s var(--ease-out);
    visibility: hidden;
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0% 0); visibility: visible; }
.mobile-menu nav a {
    display: flex; align-items: baseline; gap: 1rem;
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(1.8rem, 7.5vw, 3rem);
    line-height: 1.4; letter-spacing: -0.02em;
    color: var(--text);
    opacity: 0; transform: translateY(36px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.mobile-menu nav a sup { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); }
body.menu-open .mobile-menu nav a { opacity: 1; transform: translateY(0); }
body.menu-open .mobile-menu nav a:nth-child(1) { transition-delay: 0.16s; }
body.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: 0.22s; }
body.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: 0.28s; }
body.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: 0.34s; }
body.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: 0.40s; }
body.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: 0.46s; }
.mobile-menu-foot { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 0.8rem; opacity: 0; transition: opacity 0.5s 0.5s; }
body.menu-open .mobile-menu-foot { opacity: 1; }

/* ---------- Buttons ---------- */
.btn-ad {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-display); font-weight: 600;
    font-size: 0.95rem; letter-spacing: 0.01em;
    padding: 0.9rem 1.7rem; border-radius: 999px;
    transition: box-shadow 0.35s, background 0.35s, border-color 0.35s, color 0.35s;
    will-change: transform;
    white-space: nowrap;
    border: 0;
    cursor: pointer;
    text-decoration: none !important;
}
.btn-ad i { font-size: 1.2em; }
.btn-ad-solid {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff !important;
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.7);
}
.btn-ad-solid:hover { box-shadow: 0 16px 40px -10px rgba(37, 99, 235, 0.9); color: #fff; }
.btn-ad-ghost {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text) !important;
}
.btn-ad-ghost:hover { border-color: rgba(125, 162, 255, 0.6); background: rgba(79, 124, 255, 0.1); }
.btn-ad-lg { padding: 1.1rem 2.2rem; font-size: 1.05rem; }
.btn-ad-sm { padding: 0.62rem 1.25rem; font-size: 0.85rem; }
.btn-ad .arr { transition: transform 0.35s var(--ease-out); }
.btn-ad:hover .arr { transform: translateX(5px); }

/* ---------- Chips / badges ---------- */
.chip {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-family: var(--font-mono); font-size: 0.65rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 0.32rem 0.7rem; border-radius: 999px;
    border: 1px solid; white-space: nowrap;
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-live { color: var(--mint); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.07); }
.chip-beta { color: var(--gold); border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.07); }
.chip-new  { color: var(--accent-soft); border-color: rgba(125, 162, 255, 0.4); background: rgba(79, 124, 255, 0.09); }

.pulse-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: pulse-ring 2.2s ease-out infinite;
    flex: none;
}
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
    70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- Panels / cards ---------- */
.glass-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background:
        radial-gradient(110% 130% at 0% 0%, rgba(79, 124, 255, 0.08) 0%, transparent 55%),
        linear-gradient(160deg, #0d1322, #090d16);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 162, 255, 0.6), transparent);
}

.cell-grid {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.cell-grid > * { background: var(--bg-2); }

.spot { background: var(--bg-2); padding: clamp(1.8rem, 3vw, 2.8rem); position: relative; overflow: hidden; }
.spot::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(99, 139, 255, 0.1), transparent 65%);
    opacity: 0; transition: opacity 0.4s;
    pointer-events: none;
}
.spot:hover::after { opacity: 1; }
.spot-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: grid; place-items: center;
    font-size: 1.7rem; color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.7);
}
.spot h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.01em; margin-bottom: 0.7rem; }
.spot p { color: var(--muted); font-size: 0.95rem; line-height: 1.75; margin-bottom: 0; }
.spot-no { position: absolute; top: 1.6rem; right: 1.8rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--muted-2); }

/* ---------- Bootstrap form re-skin (auth & contact pages) ---------- */
.form-label { font-family: var(--font-mono); font-size: 0.68rem !important; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted) !important; font-weight: 500 !important; margin-bottom: 0.55rem; }

.form-control, .form-select, textarea.form-control {
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid var(--line) !important;
    border-radius: 12px !important;
    color: var(--text) !important;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    box-shadow: none;
}
.form-control::placeholder, textarea.form-control::placeholder { color: var(--muted-2) !important; }
.form-control:focus, .form-select:focus, textarea.form-control:focus {
    background: rgba(79, 124, 255, 0.05) !important;
    border-color: rgba(125, 162, 255, 0.65) !important;
    box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.12) !important;
    color: var(--text) !important;
}
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2397a1b6'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.9rem center !important;
    background-size: 14px !important;
}
.form-select option { background: var(--panel); color: var(--text); }

.input-group-text {
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid var(--line) !important;
    color: var(--muted) !important;
    border-radius: 0 12px 12px 0 !important;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
}
.input-group-text:hover { color: var(--accent-soft) !important; }
.input-group .form-control { border-right: 0 !important; border-radius: 12px 0 0 12px !important; }
.input-group .form-control ~ .form-control { border-radius: 0 !important; border-left: 1px dashed var(--line) !important; }
.input-group .btn { border-radius: 0 !important; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; }
.input-group .btn:last-child, .input-group .input-group-text:last-child { border-radius: 0 12px 12px 0 !important; }

/* Solid-color bootstrap buttons used inside flows (OTP / verify / payment) */
.btn-danger {
    background: linear-gradient(135deg, #f87171, #dc2626) !important;
    border: none !important;
    color: #fff !important;
}
.btn-info {
    background: linear-gradient(135deg, #22d3ee, #0891b2) !important;
    border: none !important;
    color: #fff !important;
}
.btn-success {
    background: linear-gradient(135deg, #34d399, #059669) !important;
    border: none !important;
    color: #fff !important;
}
.btn-success.btn-lg, .btn-danger.btn-lg, .btn-info.btn-lg { border-radius: 999px !important; font-family: var(--font-display); font-weight: 600; }

.form-check-input {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    cursor: pointer;
}
.form-check-input:checked { background-color: var(--accent) !important; border-color: var(--accent) !important; }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.18); border-color: rgba(125, 162, 255, 0.6); }
.form-check-label { color: var(--muted); cursor: pointer; }

/* Bootstrap button bridge: keep .btn-primary working but skin it */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    padding: 0.85rem 1.9rem;
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.7) !important;
    transition: box-shadow 0.35s, opacity 0.3s;
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(37, 99, 235, 0.9) !important; }
.btn-primary:disabled { opacity: 0.55; }

.btn-outline-primary, .btn-light, .btn-outline-light, .btn-secondary {
    border-radius: 999px !important;
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--text) !important;
}
.btn-outline-primary:hover, .btn-light:hover, .btn-outline-light:hover, .btn-secondary:hover {
    border-color: rgba(125, 162, 255, 0.6) !important;
    background: rgba(79, 124, 255, 0.1) !important;
    color: #fff !important;
}

/* Alerts (injected by page JS — keep classes, re-skin) */
.alert { border-radius: 12px !important; border: 1px solid !important; font-size: 0.92rem; }
.alert-success { background: rgba(52, 211, 153, 0.08) !important; border-color: rgba(52, 211, 153, 0.35) !important; color: var(--mint) !important; }
.alert-danger  { background: rgba(248, 113, 113, 0.08) !important; border-color: rgba(248, 113, 113, 0.35) !important; color: var(--red) !important; }
.alert-info    { background: rgba(79, 124, 255, 0.08) !important; border-color: rgba(125, 162, 255, 0.4) !important; color: var(--accent-soft) !important; }
.alert-warning { background: rgba(251, 191, 36, 0.08) !important; border-color: rgba(251, 191, 36, 0.35) !important; color: var(--gold) !important; }

/* OTP inputs */
.otp-input {
    width: 50px; height: 54px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1.4rem; font-weight: 500;
    margin: 0 4px;
    border-radius: 12px !important;
}
.otp-input:focus { transform: scale(1.06); }

/* ---------- Auth split layout ---------- */
.auth-shell {
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    position: relative;
}
.auth-side {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-h) + 40px) clamp(40px, 6vw, 90px) 60px;
}
/* Per-panel grid/orbs removed: the site-wide ambient 3D background now
   provides the atmosphere for the whole viewport. Keeping them created a
   hard seam + blue glow down the page centre (the auth-side/auth-panel
   boundary), so they are hidden here. */
.auth-side .bg-grid, .auth-side .auth-orb { display: none; }
.auth-side .bg-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 95% 80% at 40% 35%, #000 25%, transparent 75%);
    mask-image: radial-gradient(ellipse 95% 80% at 40% 35%, #000 25%, transparent 75%);
}
.auth-orb { position: absolute; border-radius: 50%; filter: blur(95px); pointer-events: none; }
.auth-orb-a { width: 480px; height: 480px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 65%); }
.auth-orb-b { width: 420px; height: 420px; bottom: -180px; left: -130px; background: radial-gradient(circle, rgba(34, 211, 238, 0.22) 0%, transparent 65%); }
.auth-side-inner { position: relative; z-index: 2; max-width: 560px; }
.auth-side h1 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2.6rem, 4.2vw, 4.2rem);
    line-height: 1.02; letter-spacing: -0.03em;
    margin: 1.6rem 0;
}
.auth-side p.lead-sub { color: var(--muted); font-size: 1.05rem; line-height: 1.75; max-width: 460px; }
.auth-ticks { margin-top: 2.6rem; display: grid; gap: 0.95rem; }
.auth-ticks li {
    display: flex; align-items: center; gap: 0.8rem;
    font-family: var(--font-mono); font-size: 0.78rem;
    letter-spacing: 0.1em; color: var(--muted);
    list-style: none;
}
.auth-ticks li i { color: var(--mint); font-size: 1.1rem; }

.auth-panel {
    display: flex; align-items: center; justify-content: center;
    padding: calc(var(--header-h) + 30px) clamp(18px, 4vw, 48px) 50px;
}
.auth-card { width: min(440px, 100%); padding: clamp(1.8rem, 3vw, 2.8rem); }
.auth-card .auth-head { text-align: center; margin-bottom: 1.8rem; }
.auth-card .auth-head h4 {
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.7rem; letter-spacing: -0.02em;
    margin: 0 0 0.4rem;
}
.auth-card .auth-head p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.auth-foot-link { text-align: center; color: var(--muted); font-size: 0.9rem; }
.auth-foot-link a { color: var(--accent-soft); font-weight: 500; }
.auth-foot-link a:hover { color: #fff; }

@media (max-width: 1099px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-side { display: none; }
}

/* ---------- Document pages (policies) ---------- */
.doc-hero { padding: calc(var(--header-h) + clamp(50px, 9vh, 110px)) 0 clamp(36px, 6vh, 70px); }
.doc-body { max-width: 800px; padding-bottom: clamp(90px, 12vh, 150px); }
.doc-body h2, .doc-body h3, .doc-body h5 {
    font-family: var(--font-display); font-weight: 600;
    letter-spacing: -0.01em;
    margin: 2.4rem 0 0.9rem;
}
.doc-body h2 { font-size: 1.6rem; }
.doc-body h3, .doc-body h5 { font-size: 1.25rem; }
.doc-body p, .doc-body li { color: var(--muted); line-height: 1.85; }
.doc-body ul, .doc-body ol { padding-left: 1.3rem; }
.doc-body li { margin-bottom: 0.5rem; }
.doc-body li::marker { color: var(--accent-soft); }
.doc-body strong, .doc-body b { color: var(--text); }
.doc-body hr { border-color: var(--line); opacity: 1; }

/* ---------- Compact footer ---------- */
.site-footer-min {
    border-top: 1px solid var(--line-soft);
    padding: 1.6rem 0;
    position: relative;
    z-index: 2;
}
.site-footer-min .ad-container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.8rem 1.6rem; }
.site-footer-min p { margin: 0; color: var(--muted-2); font-size: 0.84rem; }
.site-footer-min nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.site-footer-min a { color: var(--muted-2); font-size: 0.84rem; transition: color 0.3s; }
.site-footer-min a:hover { color: var(--text); }

/* ---------- Full footer (content pages) ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding-top: clamp(60px, 8vw, 100px); position: relative; overflow: hidden; }
.foot-name {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(3rem, 11vw, 9rem);
    line-height: 0.95; letter-spacing: -0.04em;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.06) 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    user-select: none;
    margin-bottom: clamp(2.6rem, 5vw, 4.5rem);
    overflow-wrap: anywhere;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 4rem); padding-bottom: 3.5rem; }
.foot-grid h5 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1.4rem; font-weight: 500; }
.foot-about p { color: var(--muted); font-size: 0.95rem; line-height: 1.8; max-width: 320px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid ul li { margin-bottom: 0.85rem; }
.foot-grid ul a { color: var(--muted); font-size: 0.95rem; transition: color 0.3s, padding-left 0.3s var(--ease-out); }
.foot-grid ul a:hover { color: var(--text); padding-left: 6px; }
.foot-contact li { display: flex; gap: 0.7rem; align-items: baseline; color: var(--muted); font-size: 0.92rem; margin-bottom: 0.9rem; }
.foot-contact li i { color: var(--accent-soft); flex-shrink: 0; transform: translateY(2px); }
.foot-legal { border-top: 1px solid var(--line-soft); padding-block: 1.8rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.85rem; color: var(--muted-2); }
.foot-legal p { margin: 0; }
.foot-legal nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.foot-legal a { color: var(--muted-2); transition: color 0.3s; }
.foot-legal a:hover { color: var(--text); }

/* ---------- Partner tiles ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.partner {
    height: 112px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    display: grid; place-items: center;
    padding: 1.2rem;
    transition: border-color 0.35s, background 0.35s, transform 0.35s var(--ease-out);
}
.partner:hover { border-color: rgba(125, 162, 255, 0.4); background: rgba(255, 255, 255, 0.045); transform: translateY(-5px); }
.partner img {
    max-height: 44px; max-width: 80%; object-fit: contain;
    filter: grayscale(1) brightness(2.1);
    opacity: 0.65;
    transition: filter 0.35s, opacity 0.35s;
}
.partner:hover img { filter: grayscale(0) brightness(1); opacity: 1; }
@media (max-width: 560px) { .partner-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Stats ---------- */
.stats-grid {
    margin-top: 3rem;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.stat { background: var(--bg-2); padding: clamp(1.6rem, 3vw, 2.8rem) clamp(1.2rem, 2.4vw, 2.4rem); }
.stat-value {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2.2rem, 4.6vw, 4rem);
    line-height: 1; letter-spacing: -0.03em;
    display: flex; align-items: baseline; gap: 0.1em;
    background: linear-gradient(180deg, #ffffff 20%, rgba(255, 255, 255, 0.45));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.stat-suffix { font-size: 0.42em; color: var(--accent-soft); -webkit-text-fill-color: var(--accent-soft); }
.stat-cap { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text); }
@media (max-width: 560px) { .stats-grid { grid-template-columns: 1fr; } }

/* ---------- Cursor + grain ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 4000; border-radius: 50%; pointer-events: none; display: none; }
.cursor-dot { width: 6px; height: 6px; background: #fff; margin: -3px 0 0 -3px; }
.cursor-ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: width 0.3s, height 0.3s, margin 0.3s, border-color 0.3s, background-color 0.3s;
}
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { display: block; }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
body.has-cursor .cursor-ring.is-hover {
    width: 62px; height: 62px; margin: -31px 0 0 -31px;
    border-color: rgba(125, 162, 255, 0.9);
    background: rgba(79, 124, 255, 0.08);
}

.grain {
    position: fixed; top: -100%; left: -100%;
    width: 300%; height: 300%;
    z-index: 2500; pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain-jitter 7s steps(10) infinite;
}
@keyframes grain-jitter {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-4%, 3%); }
    40% { transform: translate(3%, -4%); }
    60% { transform: translate(-3%, -2%); }
    80% { transform: translate(4%, 2%); }
}

/* ---------- Page hero (content pages) ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(60px, 11vh, 130px)) 0 clamp(50px, 8vh, 90px); position: relative; overflow: hidden; }
.page-hero .bg-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 15%, #000 25%, transparent 72%);
    mask-image: radial-gradient(ellipse 90% 75% at 50% 15%, #000 25%, transparent 72%);
}
.page-hero .ad-container { position: relative; z-index: 2; }

/* ---------- Misc ---------- */
.text-muted, .text-secondary { color: var(--muted) !important; }
.card { background: transparent; border: 0; }
.spinner-border-sm { width: 1rem; height: 1rem; border-width: 0.15em; }

@media (max-width: 1023px) {
    .main-nav { display: none; }
    .nav-burger { display: block; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .foot-grid { grid-template-columns: 1fr; }
    .otp-input { width: 42px; height: 46px; font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
    .grain { animation: none !important; }
    .adk-bg { display: none !important; }
}

/* ============================================================
   Site-wide ambient 3D background (Three.js canvas)
============================================================ */
.adk-bg {
    position: fixed; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.4s var(--ease-out);
    -webkit-mask-image: radial-gradient(125% 95% at 50% 0%, #000 28%, rgba(0,0,0,0.5) 72%, transparent 100%);
    mask-image: radial-gradient(125% 95% at 50% 0%, #000 28%, rgba(0,0,0,0.5) 72%, transparent 100%);
}
.adk-bg.is-ready { opacity: 1; }

/* Keep all real content above the ambient canvas */
main, .site-footer, .site-footer-min, .auth-shell, .doc-hero { position: relative; z-index: 1; }

/* HUD corner ticks on prominent glass panels (FUI cue) */
.glass-card { position: relative; }
.glass-card > .hud-tick { position: absolute; width: 14px; height: 14px; border: 1px solid rgba(34, 211, 238, 0.5); pointer-events: none; z-index: 2; }
.glass-card > .hud-tick.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.glass-card > .hud-tick.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
