/* ═══════════════════════════════════════════════════════════════════════════════
   DexCue Design System — 2026
   Inspired by Apple, Linear, Vercel, X — precision dark theme
   ═══════════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800;14..32,900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────────── */

:root {
    /* Backgrounds */
    --bg-root: #09090b;
    --bg-elevated: #0f0f12;
    --bg-surface: rgba(255, 255, 255, 0.035);
    --bg-surface-solid: #141417;
    --bg-surface-hover: rgba(255, 255, 255, 0.06);
    --bg-subtle: rgba(255, 255, 255, 0.025);
    --bg-card: rgba(255, 255, 255, 0.028);

    /* Text */
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #63637a;
    --text-inverted: #09090b;

    /* Borders */
    --border-default: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.13);
    --border-active: rgba(255, 255, 255, 0.20);

    /* Accent */
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-muted: rgba(99, 102, 241, 0.14);
    --accent-subtle: rgba(99, 102, 241, 0.07);

    /* Semantic */
    --success: #34d399;
    --success-muted: rgba(52, 211, 153, 0.12);
    --success-border: rgba(52, 211, 153, 0.22);
    --warning: #fbbf24;
    --warning-muted: rgba(251, 191, 36, 0.12);
    --warning-border: rgba(251, 191, 36, 0.22);
    --danger: #f87171;
    --danger-muted: rgba(248, 113, 113, 0.10);
    --danger-border: rgba(248, 113, 113, 0.22);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', ui-monospace, monospace;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    /* Layout */
    --content-width: 1200px;

    /* Radius */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.08);
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.25);
    --shadow-strong: 0 20px 50px rgba(0, 0, 0, 0.4);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 350ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Legacy aliases — keep templates working */
    --card-bg: var(--bg-card);
    --card-border: var(--border-default);
    --bg-soft: var(--bg-subtle);
    --line-soft: var(--border-default);
    --line-strong: var(--border-hover);
    --google-blue: var(--accent-light);
    --google-purple: #c084fc;
    --google-red: var(--danger);
    --google-green: var(--success);
    --google-cyan: #67e8f9;
    --bg-main: var(--bg-root);
    --bg-surface-strong: var(--bg-surface-solid);
}


/* ── Reset ─────────────────────────────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    background: var(--bg-root);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

/* Subtle mesh gradient background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 5%, rgba(192, 132, 252, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse 70% 40% at 50% 100%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Subtle noise texture overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
    background: 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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 120ms cubic-bezier(0.4, 0, 0.2, 1), opacity 120ms cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--accent-light);
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

p {
    color: var(--text-secondary);
}

img {
    max-width: 100%;
    display: block;
}


/* ── Layout Shell ──────────────────────────────────────────────────────────── */

.container {
    width: min(100%, var(--content-width));
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.mesh-bg {
    display: none;
    /* Handled by body::before now */
}

.site-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding-top: 20px;
}


/* ── Header ────────────────────────────────────────────────────────────────── */

.site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0 0;
}

.site-header {
    width: min(calc(100% - 24px), 960px);
    margin-left: auto;
    margin-right: auto;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    background: rgba(9, 9, 11, 0.78);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), var(--shadow-md);
    transition: border-color 350ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header:hover {
    border-color: var(--border-hover);
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    text-decoration: none;
}

.logo-mark {
    height: 22px;
    width: auto;
    opacity: 0.9;
    transition: opacity 120ms cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-container:hover .logo-mark {
    opacity: 1;
}

.logo-wordmark {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.logo-container:hover .logo-wordmark {
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1px;
}

.nav-link {
    padding: 7px 13px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-full);
    white-space: nowrap;
    letter-spacing: -0.01em;
    transition: color 120ms cubic-bezier(0.4, 0, 0.2, 1), background 120ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-divider {
    width: 1px;
    height: 16px;
    margin: 0 6px;
    background: var(--border-default);
}

.nav-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nav-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.nav-indicator-dot.staff {
    background: var(--accent-light);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.nav-indicator-dot.dashboard {
    background: var(--success);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 8px;
    margin-left: 4px;
    border-left: 1px solid var(--border-default);
    flex-shrink: 0;
}

.header-auth .btn.btn-sm {
    border-radius: var(--radius-full);
}


/* ── Footer ────────────────────────────────────────────────────────────────── */

.site-footer {
    margin-top: 100px;
    padding: 32px 0 48px;
    border-top: 1px solid var(--border-default);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: grid;
    gap: 4px;
}

.footer-brand strong {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-links a {
    transition: color 120ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-subscribe {
    display: grid;
    gap: 8px;
    min-width: min(100%, 360px);
}

.footer-subscribe-title {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-subscribe-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-subscribe-input {
    min-width: 220px;
    flex: 1;
    height: 34px;
    padding: 0 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-default);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 13px;
}

.footer-subscribe-input::placeholder {
    color: var(--text-muted);
}

.footer-subscribe-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.newsletter-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 120;
    max-width: min(90vw, 420px);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
    background: rgba(20, 20, 23, 0.96);
    color: var(--text-primary);
    font-size: 13px;
    box-shadow: var(--shadow-lg);
}

.newsletter-toast.success {
    border-color: var(--success-border);
    color: #d1fae5;
}

.newsletter-toast.error {
    border-color: var(--danger-border);
    color: #fecaca;
}


/* ── Buttons ───────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    transition: all 120ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
}

.btn:hover {
    transform: translateY(-0.5px);
}

.btn:active {
    transform: translateY(0px);
}

.btn-primary {
    color: #fff;
    background: var(--accent);
    border-color: transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
    color: #fff;
    background: var(--accent-light);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:active {
    background: var(--accent);
}

.btn-glass {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-default);
}

.btn-glass:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.07);
}

.btn-disabled,
.availability-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.015);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: default;
}

.availability-pill {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 12px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: var(--radius-xs);
}


/* ── Forms ─────────────────────────────────────────────────────────────────── */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 120ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 120ms cubic-bezier(0.4, 0, 0.2, 1), background 120ms cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
    background: rgba(255, 255, 255, 0.05);
}

.form-control:hover:not(:focus) {
    border-color: var(--border-hover);
}


/* ── Badges & Pills ────────────────────────────────────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-success {
    color: var(--success);
    background: var(--success-muted);
    border: 1px solid var(--success-border);
}

.badge-secondary {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-default);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.status-pill.active,
.status-pill.success {
    color: var(--success);
    background: var(--success-muted);
    border: 1px solid var(--success-border);
}

.status-pill.trialing,
.status-pill.info {
    color: var(--accent-light);
    background: var(--accent-muted);
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.status-pill.past_due,
.status-pill.warning {
    color: var(--warning);
    background: var(--warning-muted);
    border: 1px solid var(--warning-border);
}

.status-pill.cancelled,
.status-pill.danger {
    color: var(--danger);
    background: var(--danger-muted);
    border: 1px solid var(--danger-border);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: currentColor;
}

.mono-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-default);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: -0.01em;
}


/* ── Typography Utilities ──────────────────────────────────────────────────── */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: 700;
}

.font-mono {
    font-family: var(--font-mono);
}

.w-full {
    width: 100%;
}

.text-lg {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.text-xl {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.text-3xl {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

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

.text-gradient-neon {
    background: linear-gradient(135deg, #f4f4f5 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/* ── Spacing Utilities ─────────────────────────────────────────────────────── */

.mb-2 {
    margin-bottom: 8px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}

.mb-8 {
    margin-bottom: 32px;
}

.mb-12 {
    margin-bottom: 48px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-8 {
    margin-top: 32px;
}

.mt-12 {
    margin-top: 48px;
}

.mt-20 {
    margin-top: 80px;
}

.my-8 {
    margin-top: 32px;
    margin-bottom: 32px;
}

.py-20 {
    padding-top: 80px;
    padding-bottom: 80px;
}


/* ── Surfaces: Cards, Panels, Bento ────────────────────────────────────────── */

.surface-panel,
.bento-card,
.account-card,
.auth-card,
.cta-panel,
.preview-card,
.info-card {
    border: 1px solid var(--border-default);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    transition: border-color 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.bento-card {
    padding: 28px;
    position: relative;
    overflow: hidden;
    grid-column: span 12;
}

.bento-card:hover {
    border-color: var(--border-hover);
}

.bento-large {
    grid-column: span 12;
}

.account-card {
    padding: 24px;
}

.purchase-group-card {
    scroll-margin-top: 110px;
}

.purchase-group-card:target {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.18), 0 0 0 8px rgba(99, 102, 241, 0.08);
}

.account-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.product-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.product-icon {
    width: 48px;
    height: 48px;
    padding: 8px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-default);
}


/* ── Hero Section ──────────────────────────────────────────────────────────── */

.hero-section {
    position: relative;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 24px 64px;
    overflow: hidden;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    margin-bottom: 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-default);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--success);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
    animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-title {
    max-width: 980px;
    margin: 0 auto 24px;
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.hero-subtitle {
    max-width: 600px;
    margin: 0 auto 32px;
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-shell {
    width: min(100%, 1120px);
    
}

.hero-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 32px;
}

.hero-metrics {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}


/* ── Page Sections ─────────────────────────────────────────────────────────── */

.page-section {
    padding: 80px 0;
}

.section-heading {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-heading p {
    margin-top: 12px;
    font-size: 0.95rem;
}

.page-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--accent-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.page-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-description {
    margin-top: 6px;
    max-width: 560px;
    font-size: 14px;
}


/* ── Feature Cards & Grid ──────────────────────────────────────────────────── */

.feature-card-title {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.feature-card-copy {
    margin-bottom: 18px;
}

.feature-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.feature-list li {
    list-style: none;
    color: var(--text-secondary);
    padding-left: 18px;
    position: relative;
    font-size: 14px;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--accent);
}


/* ── Signal Colors (Timer) ─────────────────────────────────────────────────── */

.signal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
}

.signal-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.06em;
}

.signal-safe {
    color: var(--success);
    background: var(--success-muted);
    border: 1px solid var(--success-border);
}

.signal-wrap {
    color: var(--warning);
    background: var(--warning-muted);
    border: 1px solid var(--warning-border);
}

.signal-over {
    color: var(--danger);
    background: var(--danger-muted);
    border: 1px solid var(--danger-border);
}


/* ── Showcase / Preview ────────────────────────────────────────────────────── */

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.preview-card {
    overflow: hidden;
}

.preview-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-default);
    background: rgba(255, 255, 255, 0.02);
}

.preview-frame {
    width: 100%;
    height: 280px;
    border: 0;
    pointer-events: none;
    background: #000;
}


/* ── CTA Panel ─────────────────────────────────────────────────────────────── */

.cta-panel {
    position: relative;
    padding: 64px 36px;
    text-align: center;
    overflow: hidden;
}

.cta-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-panel>* {
    position: relative;
    z-index: 1;
}


/* ── App Visual (Hero Demo) ────────────────────────────────────────────────── */

.app-visual {
    margin: 48px auto 0;
    position: relative;
    width: min(100%, 1040px);
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
    background: linear-gradient(180deg, rgba(15, 15, 18, 0.98) 0%, rgba(9, 9, 11, 0.99) 100%);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.app-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 30%);
    pointer-events: none;
}

.app-visual-inner {
    position: absolute;
    inset: 1px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: calc(var(--radius-xl) - 1px);
}

.app-window-bar,
.app-window-controls,
.app-control-bar,
.app-session,
.app-session-meta,
.app-session-actions {
    display: flex;
    align-items: center;
}

.app-window-bar {
    justify-content: space-between;
    gap: 12px;
}

.window-dots {
    display: flex;
    gap: 7px;
}

.window-dots span {
    width: 11px;
    height: 11px;
    border-radius: var(--radius-full);
}

.app-visual-timer {
    font-family: var(--font-mono);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    text-align: center;
}

.app-control-bar {
    justify-content: space-between;
    gap: 16px;
    width: min(80%, 380px);
    
    padding: 12px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-default);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-md);
}

.app-session {
    gap: 10px;
}

.app-session img {
    height: 22px;
}

.app-session-meta {
    gap: 10px;
}

.app-session-title {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.app-session-divider {
    width: 1px;
    height: 18px;
    background: var(--border-default);
}

.app-session-actions {
    gap: 12px;
}

.app-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 16px;
    transition: color 120ms cubic-bezier(0.4, 0, 0.2, 1), background 120ms cubic-bezier(0.4, 0, 0.2, 1);
}

.app-icon-button:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}


/* ── Proof Cards / Metrics ─────────────────────────────────────────────────── */

.proof-card {
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    background: var(--bg-subtle);
    text-align: left;
}

.proof-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.proof-label {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.proof-caption {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.metric-pill {
    padding: 7px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    font-size: 12px;
}

.metric-pill strong {
    color: var(--text-primary);
    margin-right: 6px;
}


/* ── Auth Pages ────────────────────────────────────────────────────────────── */







.auth-aside::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    filter: blur(60px);
    pointer-events: none;
}

.auth-aside h1 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}

.auth-aside p {
    max-width: 400px;
    font-size: 14px;
    line-height: 1.7;
}

.auth-list {
    margin-top: 28px;
    display: grid;
    gap: 10px;
}

.auth-list-item {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-default);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    transition: border-color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-list-item:hover {
    border-color: var(--border-hover);
}

.auth-list-item strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-size: 13px;
}



.auth-card .muted-link {
    color: var(--accent-light);
    font-weight: 600;
    transition: color 120ms cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card .muted-link:hover {
    color: #fff;
}

.auth-muted-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.alert {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
    font-size: 13px;
}

.alert-success {
    background: var(--success-muted);
    border-color: var(--success-border);
    color: var(--success);
}

.alert-error {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--danger-muted);
    border: 1px solid var(--danger-border);
    color: var(--danger);
    font-size: 13px;
}


/* ── Dashboard ─────────────────────────────────────────────────────────────── */

.dashboard-shell,
.settings-shell,
.licenses-shell,
.legal-shell {
    padding: 48px 0 80px;
}

.legal-content {
    display: grid;
    gap: 24px;
    max-width: 860px;
}

.legal-section {
    display: grid;
    gap: 10px;
}

.legal-section h2 {
    font-size: 1.05rem;
    color: var(--text-primary);
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.dashboard-grid,
.settings-grid,
.licenses-grid {
    display: grid;
    gap: 16px;
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.72fr);
}

.licenses-grid {
    grid-template-columns: 1.3fr 0.9fr;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    background: var(--border-default);
}

.stats-strip-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.purchase-stats-strip {
    grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(0, 0.8fr));
}

.stats-cell {
    padding: 14px 16px;
    background: var(--bg-elevated);
    min-width: 0;
}

.stats-label {
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stats-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.license-key-card,
.token-panel {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-default);
}

.license-key-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.license-key-card> :first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.license-key-card>.btn,
.license-key-card>button {
    flex: 0 0 auto;
}

.code-text {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.device-name-stack {
    display: block;
    min-width: 0;
}

.device-name-input {
    width: 100%;
    min-width: 0;
    padding: 2px 6px;
    margin: -2px -6px;
    border: 1px solid transparent;
    border-radius: 8px;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: text;
    transition: background 120ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 120ms cubic-bezier(0.4, 0, 0.2, 1), color 120ms cubic-bezier(0.4, 0, 0.2, 1);
}

.device-name-input:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent);
}

.device-name-input:focus,
.device-name-input.is-editing {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.28);
    color: var(--text-primary);
}

.device-name-input.is-saving {
    opacity: 0.72;
}

.empty-state,
.subtle-panel {
    padding: 16px 18px;
    border-radius: var(--radius-md);
}

.empty-state {
    display: grid;
    gap: 8px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px dashed rgba(255, 255, 255, 0.10);
    font-size: 14px;
}

.subtle-panel {
    background: var(--accent-subtle);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.account-banner {
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--success-border);
    background: linear-gradient(180deg, var(--success-muted) 0%, rgba(52, 211, 153, 0.06) 100%);
}

.account-banner p {
    color: var(--text-secondary);
    margin: 0;
}

.account-banner h3 {
    margin-bottom: 6px;
    color: var(--success);
    font-size: 1rem;
}

.account-banner-success {
    border-color: var(--success-border);
    background: linear-gradient(180deg, var(--success-muted) 0%, rgba(52, 211, 153, 0.06) 100%);
}

.account-banner-success p {
    color: var(--text-secondary);
}

.account-banner-danger {
    border-color: var(--danger-border);
    background: linear-gradient(180deg, var(--danger-muted) 0%, rgba(248, 113, 113, 0.06) 100%);
}

.account-banner-danger p {
    color: #fecaca;
}

.token-panel {
    border-color: var(--success-border);
}

.token-box {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 12px;
    word-break: break-all;
    line-height: 1.6;
}


/* ── Side Panels ───────────────────────────────────────────────────────────── */

.dashboard-side-stack,
.settings-nav,
.licenses-stack {
    display: grid;
    gap: 16px;
    align-content: start;
}

.side-card-title {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.side-list {
    display: grid;
    gap: 8px;
}

.side-list a,
.settings-nav a,
.settings-nav button {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid transparent;
    font-size: 14px;
    transition: all 120ms cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.side-list a:hover,
.settings-nav a:hover,
.settings-nav button:hover,
.settings-nav button.active,
.settings-nav a.active {
    color: var(--text-primary);
    border-color: var(--border-default);
    background: rgba(255, 255, 255, 0.05);
}


/* ── Settings ──────────────────────────────────────────────────────────────── */

.settings-grid-wide {
    grid-template-columns: 240px 1fr;
}

.settings-stack {
    display: grid;
    gap: 16px;
}

.settings-nav {
    position: sticky;
    top: 110px;
}

.settings-section {
    scroll-margin-top: 96px;
}

.max-form-width {
    max-width: 500px;
}

.settings-form-stack {
    display: grid;
    gap: 16px;
}

.danger-zone {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-default);
}

.danger-zone h3 {
    color: var(--danger);
}


/* ── Licenses ──────────────────────────────────────────────────────────────── */

.licenses-grid-single {
    grid-template-columns: 1fr;
}

.split-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}


/* ── Tables ────────────────────────────────────────────────────────────────── */

.table-wrap {
    overflow-x: auto;
}

.device-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.device-col-name {
    width: 24%;
}

.device-col-id {
    width: 34%;
}

.device-col-linked {
    width: 16%;
}

.device-col-active {
    width: 16%;
}

.device-col-action {
    width: 10%;
}

.device-table th,
.device-table td {
    padding: 12px 0;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-default);
    font-size: 14px;
}

.device-table th {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-bottom: 10px;
}

.device-table tbody tr {
    transition: background 120ms cubic-bezier(0.4, 0, 0.2, 1);
}

.device-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.device-table tbody tr:last-child td {
    border-bottom: none;
}

.device-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.device-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-default);
}


/* ── Danger / Utility ──────────────────────────────────────────────────────── */

.danger-link,
.danger-button {
    background: none;
    border: 1px solid var(--danger-border);
    color: var(--danger);
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 120ms cubic-bezier(0.4, 0, 0.2, 1);
}

.danger-link:hover,
.danger-button:hover {
    background: var(--danger-muted);
    border-color: rgba(248, 113, 113, 0.35);
}

.collapsible-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}

.chevron {
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.manual-panel {
    display: none;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-default);
}


/* ── Misc Helpers ──────────────────────────────────────────────────────────── */

.soft-note {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.note-top {
    margin-top: 12px;
}

.note-tight {
    margin-top: 3px;
}

.note-bottom {
    margin-bottom: 18px;
}

.stack-top {
    margin-top: 16px;
}

.inline-form {
    display: inline;
    margin: 0;
}

.inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.max-w-7xl {
    max-width: 1280px;
}


/* ── Animations ────────────────────────────────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
    animation: float-drift 20s infinite ease-in-out alternate;
}

.shimmer-text {
    display: inline-block;
    background: linear-gradient(90deg, #fff 0%, var(--accent-light) 30%, #c084fc 60%, #fff 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes float-drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -30px) scale(1.08);
    }

    66% {
        transform: translate(-15px, 15px) scale(0.92);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   HOME PAGE
   ═══════════════════════════════════════════════════════════════════════════════ */

.home-hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 64px;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: 48px;
    align-items: center;
}

.home-hero-copy {
    text-align: left;
}

.home-headline {
    max-width: 700px;
    margin: 0 0 16px;
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #fff 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-subheadline {
    max-width: 540px;
    margin-bottom: 24px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.home-actions {
    justify-content: flex-start;
}

.home-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
}

.home-summary-card {
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-summary-card:hover {
    border-color: var(--border-hover);
}

.home-summary-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.home-summary-card span {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
}

.home-hero-demo {
    display: grid;
    gap: 14px;
}

.home-demo-frame {
    margin-top: 0;
    width: 100%;
}

.home-proof-strip {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.home-section-heading {
    max-width: 720px;
}

.home-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.home-feature-card {
    padding: 24px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
    background: var(--bg-card);
    transition: border-color 200ms cubic-bezier(0.16, 1, 0.3, 1), transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.home-feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
    font-weight: 600;
}

.home-feature-card p {
    font-size: 14px;
    line-height: 1.65;
}

.home-wide-card {
    padding: 28px;
}

.home-cta-panel {
    max-width: 880px;
    
}

.home-cta-copy {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
    font-size: 15px;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    .bento-card {
        grid-column: span 6;
    }

    .bento-large {
        grid-column: span 8;
    }
}

@media (max-width: 1080px) {

    .home-hero-grid,
    .home-summary-grid,
    .home-card-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-copy {
        text-align: center;
    }

    .home-actions,
    .home-proof-strip {
        justify-content: center;
    }

    .auth-shell,
    .dashboard-grid,
    .licenses-grid,
    .settings-grid,
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        width: min(calc(100% - 20px), 960px);
    }

    
}

@media (max-width: 900px) {
    .site-header {
        border-radius: var(--radius-2xl);
        flex-direction: column;
        align-items: stretch;
        height: auto;
        gap: 10px;
        padding: 12px;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .site-nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-actions,
    .footer-grid {
        justify-content: center;
    }

    .footer-subscribe {
        width: 100%;
        max-width: 460px;
    }

    .footer-subscribe-form {
        width: 100%;
    }

    .header-auth {
        justify-content: center;
        padding-left: 0;
        margin-left: 0;
        padding-top: 8px;
        border-left: none;
        border-top: 1px solid var(--border-default);
    }

    .nav-divider {
        display: none;
    }

    .stats-strip,
    .split-form {
        grid-template-columns: 1fr;
    }

    
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .site-header-wrap {
        padding-top: 8px;
    }

    .site-header {
        width: calc(100% - 16px);
        border-radius: var(--radius-xl);
    }

    .site-nav {
        gap: 2px;
    }

    .nav-link {
        width: auto;
        text-align: center;
        font-size: 12px;
        padding: 6px 10px;
    }

    .header-auth {
        flex-direction: column;
    }

    .home-headline {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .hero-section {
        padding-top: 80px;
    }

    .app-visual {
        aspect-ratio: auto;
        min-height: 340px;
    }

    .app-control-bar,
    .app-window-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .app-control-bar {
        width: 100%;
        border-radius: var(--radius-xl);
    }

    .signal-grid {
        grid-template-columns: 1fr;
    }

    .cta-panel,
    .account-card,
    .auth-aside,
    .auth-card,
    .bento-card {
        padding: 20px;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .license-key-card,
    .account-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-feature-card,
    .home-wide-card,
    .home-summary-card {
        padding: 18px;
    }

    /* Responsive tables */
    .device-table,
    .device-table thead,
    .device-table tbody,
    .device-table th,
    .device-table td,
    .device-table tr {
        display: block;
    }

    .device-table thead {
        display: none;
    }

    .device-table tr {
        padding: 14px 0;
        border-bottom: 1px solid var(--border-default);
    }

    .device-table td {
        padding: 4px 0;
        border: none;
        font-size: 13px;
    }

    .device-table td:last-child {
        padding-top: 10px;
    }
}

/* ── Focus Styles (Accessibility) ──────────────────────────────────────────── */

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

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* ── Selection ─────────────────────────────────────────────────────────────── */

::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}
.auth-wrapper {
    min-height: calc(100vh - 140px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 24px 32px;
}

.auth-shell {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.auth-shell > .auth-card {
    grid-column: auto;
}

.auth-aside {
    position: relative;
    overflow: hidden;
    padding: 40px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    background: linear-gradient(155deg, rgba(99, 102, 241, 0.08) 0%, rgba(192, 132, 252, 0.05) 30%, rgba(9, 9, 11, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 480px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--radius-2xl) !important;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .auth-aside {
        min-height: auto;
    }
}

/* Brand Guidelines */

.brand-hero {
    position: relative;
    padding: 112px 0 56px;
}

.brand-hero::before {
    content: '';
    position: absolute;
    inset: 16% 0 auto 50%;
    width: 420px;
    height: 420px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 68%);
    filter: blur(18px);
    pointer-events: none;
}

.brand-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 40px;
    align-items: center;
}

.brand-hero-copy h1 {
    margin: 14px 0 18px;
    max-width: 760px;
    font-size: 64px;
    line-height: 1.02;
    letter-spacing: 0;
}

.brand-hero-copy p {
    max-width: 700px;
    font-size: 18px;
    line-height: 1.65;
}

.brand-hero-mark {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.20), transparent 55%);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand-hero-mark img {
    width: 96px;
    height: 96px;
}

.brand-hero-mark span {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0;
}

.brand-shell {
    padding: 24px 0 96px;
}

.brand-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.brand-sidebar {
    position: sticky;
    top: 92px;
    padding: 12px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    background: rgba(9, 9, 11, 0.72);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.brand-sidebar-title {
    padding: 8px 10px 12px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-nav-link {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.brand-nav-link:hover,
.brand-nav-link.active {
    color: var(--text-primary);
    border-color: var(--border-default);
    background: var(--bg-surface-hover);
}

.brand-main {
    min-width: 0;
}

.brand-page-header {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-default);
}

.brand-page-header h2 {
    margin: 12px 0 12px;
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: 0;
}

.brand-page-header p {
    max-width: 760px;
    font-size: 17px;
}

.brand-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.brand-card,
.brand-guideline-block,
.brand-logo-stage,
.brand-type-showcase,
.brand-motion-demo,
.brand-asset-card {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.018)),
        rgba(9, 9, 11, 0.72);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.brand-card {
    min-height: 220px;
    padding: 26px;
}

.brand-card-large {
    grid-column: span 2;
}

.brand-card-kicker {
    display: inline-flex;
    margin-bottom: 16px;
    color: var(--accent-light);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-card h3,
.brand-guideline-block h3,
.brand-motion-demo h3 {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.18;
    letter-spacing: 0;
}

.brand-card p,
.brand-guideline-block p,
.brand-motion-demo p {
    font-size: 15px;
    line-height: 1.7;
}

.brand-guideline-block {
    margin-bottom: 24px;
    padding: 28px;
}

.brand-principle-grid,
.brand-rule-grid,
.brand-swatch-grid,
.brand-asset-grid {
    display: grid;
    gap: 14px;
}

.brand-principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brand-principle-grid div,
.brand-rule-grid div,
.brand-system-list div {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.025);
}

.brand-principle-grid div {
    padding: 18px;
}

.brand-principle-grid strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.brand-system-list {
    display: grid;
    gap: 12px;
}

.brand-system-list div {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px;
}

.brand-system-list span {
    color: var(--accent-light);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
}

.brand-logo-stage {
    min-height: 280px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.12), transparent 60%),
        rgba(9, 9, 11, 0.74);
    background-size: 32px 32px, 32px 32px, auto, auto;
}

.brand-logo-sample {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    background: rgba(0, 0, 0, 0.36);
}

.brand-logo-sample img {
    width: 58px;
    height: 58px;
}

.brand-logo-sample span {
    color: var(--text-primary);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brand-rule-grid div {
    min-height: 76px;
    padding: 18px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.brand-type-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    padding: 30px;
}

.brand-type-large {
    color: var(--text-primary);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
}

.brand-type-mono {
    padding: 18px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.28);
    color: var(--success);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
}

.brand-swatch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brand-swatch-grid-small {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.brand-swatch-grid-tight {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brand-color-note {
    max-width: 760px;
    margin: -2px 0 20px;
}

.brand-swatch {
    min-height: 162px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.025);
}

.brand-swatch span {
    min-height: 72px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-sm);
}

.brand-swatch-alpha span {
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.06) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.06) 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
}

.brand-swatch strong {
    color: var(--text-primary);
    font-size: 14px;
}

.brand-swatch code {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
}

.brand-swatch small {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.45;
}

.brand-motion-demo {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 24px;
    padding: 30px;
}

.brand-motion-cue {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.16), rgba(255, 255, 255, 0.02));
}

.brand-motion-cue span {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 70px rgba(99, 102, 241, 0.45);
    animation: brandCue 2.4s var(--ease-out) infinite;
}

@keyframes brandCue {
    0%, 100% {
        transform: scale(0.86);
        opacity: 0.62;
    }
    45% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-motion-cue span {
        animation: none;
    }
}

.brand-asset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 24px;
}

.brand-asset-card {
    min-height: 230px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-primary);
    transition: transform var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

.brand-asset-card:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
    border-color: var(--border-hover);
    background: var(--bg-surface-hover);
}

.brand-asset-card img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    align-self: center;
}

.brand-asset-card strong {
    font-size: 16px;
}

@media (max-width: 1080px) {
    .brand-hero-grid,
    .brand-layout,
    .brand-type-showcase,
    .brand-motion-demo {
        grid-template-columns: 1fr;
    }

    .brand-sidebar {
        position: relative;
        top: auto;
    }

    .brand-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .brand-nav-link {
        flex: 1 1 140px;
        justify-content: center;
    }

    .brand-swatch-grid-small,
    .brand-swatch-grid-tight,
    .brand-asset-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .brand-hero {
        padding: 88px 0 36px;
    }

    .brand-hero-copy h1 {
        font-size: 42px;
    }

    .brand-hero-copy p,
    .brand-page-header p {
        font-size: 16px;
    }

    .brand-hero-mark {
        min-height: 220px;
    }

    .brand-page-header h2 {
        font-size: 32px;
    }

    .brand-section-grid,
    .brand-principle-grid,
    .brand-rule-grid,
    .brand-swatch-grid,
    .brand-swatch-grid-small,
    .brand-swatch-grid-tight,
    .brand-asset-grid {
        grid-template-columns: 1fr;
    }

    .brand-card-large {
        grid-column: auto;
    }

    .brand-card,
    .brand-guideline-block,
    .brand-type-showcase,
    .brand-motion-demo {
        padding: 20px;
    }

    .brand-type-large {
        font-size: 30px;
    }

    .brand-system-list div {
        grid-template-columns: 1fr;
    }
}

/* Logo guidance refinements */
.brand-logo-stage-duo {
    gap: 24px;
    flex-wrap: wrap;
}

.brand-logo-stage-duo .brand-logo-sample {
    min-width: min(100%, 320px);
    justify-content: center;
}

.brand-logo-sample-product img {
    width: 92px;
    height: 68px;
    object-fit: contain;
}

.brand-logo-sample-product span {
    font-size: 28px;
}

.brand-logo-family-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.brand-logo-family-card {
    min-height: 280px;
    padding: 22px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.025);
}

.brand-logo-family-card img {
    width: 86px;
    height: 86px;
    margin: 8px 0 22px;
    object-fit: contain;
}

.brand-logo-family-card h4 {
    margin-bottom: 10px;
    font-size: 22px;
    letter-spacing: 0;
}

.brand-dodont-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.brand-dodont-card {
    min-height: 280px;
    padding: 18px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.025);
}

.brand-dodont-label {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 5px 10px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-dodont-card.is-do .brand-dodont-label {
    color: var(--success);
    border-color: var(--success-border);
    background: var(--success-muted);
}

.brand-dodont-card.is-dont .brand-dodont-label {
    color: var(--danger);
    border-color: var(--danger-border);
    background: var(--danger-muted);
}

.brand-dodont-example {
    min-height: 138px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    overflow: hidden;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        rgba(0, 0, 0, 0.20);
    background-size: 24px 24px;
}

.brand-dodont-example img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.brand-dodont-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 16px;
}

.brand-bad-rotate img {
    transform: rotate(-16deg);
}

.brand-bad-effects img {
    filter: drop-shadow(0 0 16px #67e8f9) drop-shadow(0 0 8px #c084fc);
}

.brand-bad-stretch img {
    transform: scaleX(1.45) scaleY(0.72);
}

.brand-bad-combo span {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-guideline-block .brand-asset-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.brand-asset-card small {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 1080px) {
    .brand-guideline-block .brand-asset-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .brand-logo-family-grid,
    .brand-dodont-grid,
    .brand-guideline-block .brand-asset-grid {
        grid-template-columns: 1fr;
    }

    .brand-logo-sample-product span {
        font-size: 24px;
    }
}
