/* ============================================================
   RANKERA DESIGN SYSTEM
   Aesthetic: Dark editorial / luxury tech
   Fonts: Satoshi (display) + DM Sans (body)
   Palette: Deep slate + electric amber accent

   Theme Strategy:
   - :root defines LIGHT theme vars (used by dashboard/admin)
   - .dark-theme scopes define DARK theme vars (landing/login)
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
    /* Accent Palette (shared) */
    --color-accent: #d97706;
    --color-accent-hover: #b45309;
    --color-accent-muted: rgba(245, 158, 11, 0.15);
    --color-accent-glow: rgba(245, 158, 11, 0.3);

    /* Status Colors (shared) */
    --color-success: #22c55e;
    --color-success-bg: rgba(34,197,94,0.12);
    --color-warning: #f59e0b;
    --color-warning-bg: rgba(245,158,11,0.12);
    --color-danger: #ef4444;
    --color-danger-bg: rgba(239,68,68,0.12);
    --color-info: #3b82f6;
    --color-info-bg: rgba(59,130,246,0.12);
    --color-success-light: rgba(34,197,94,0.1);
    --color-warning-light: rgba(245,158,11,0.1);
    --color-danger-light: rgba(239,68,68,0.1);
    --color-info-light: rgba(59,130,246,0.1);

    /* Typography */
    --font-display: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.75rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;

    /* Spacing & Shape */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.08);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-elevated: 0 4px 12px rgba(0,0,0,0.1), 0 16px 48px rgba(0,0,0,0.08);
    --shadow-card-dark: 0 1px 3px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.2);
    --shadow-elevated-dark: 0 4px 12px rgba(0,0,0,0.4), 0 16px 48px rgba(0,0,0,0.3);

    /* Light Theme (default — dashboard, admin) */
    --color-bg: #f7f8fa;
    --color-bg-secondary: #ffffff;
    --color-bg-tertiary: #eef0f4;
    --color-text-dark: #0a0a0a;
    --color-text-dark-secondary: #1f2937;
    --color-text-muted: #6b7280;
    --color-border: #e2e5ea;
    --color-border-dark: #d1d5db;
    --color-primary: #d97706;
    --color-primary-dark: #b45309;
    --color-primary-light: rgba(245,158,11,0.1);
}

/* ===== DARK THEME TOKENS (landing page, login page) ===== */
.landing-page,
.login-page {
    --dt-surface: #0b0e14;
    --dt-surface-raised: #131720;
    --dt-surface-overlay: #1a1f2e;
    --dt-surface-subtle: #222839;
    --dt-text-primary: #f1f3f7;
    --dt-text-secondary: #8b95a9;
    --dt-text-muted: #555f73;
    --dt-border: rgba(255,255,255,0.07);
    --dt-border-accent: rgba(255,255,255,0.12);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background: var(--color-bg);
    line-height: 1.65;
}
a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-hover); }
img { max-width: 100%; height: auto; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ===== NOISE TEXTURE OVERLAY ===== */
.grain::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(245,158,11,0.15); }
    50% { box-shadow: 0 0 40px rgba(245,158,11,0.25); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes shimmer {
    to { background-position: 200% center; }
}
.animate-fade-up {
    animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Dark navbar (landing/login) */
.landing-page .navbar,
.login-page .navbar {
    background: rgba(11, 14, 20, 0.85);
    border-bottom: 1px solid var(--dt-border);
}
.landing-page .logo-text,
.login-page .logo-text {
    color: var(--dt-text-primary);
}
.landing-page .nav-link,
.login-page .nav-link {
    color: var(--dt-text-secondary);
}
.landing-page .nav-link:hover,
.login-page .nav-link:hover {
    color: var(--dt-text-primary);
}
.landing-page .nav-user,
.login-page .nav-user {
    color: var(--dt-text-secondary);
}

/* Light navbar (dashboard/admin) */
body:not(.landing-page):not(.login-page) .navbar {
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid var(--color-border);
}
body:not(.landing-page):not(.login-page) .logo-text {
    color: var(--color-text-dark);
}
body:not(.landing-page):not(.login-page) .nav-link {
    color: var(--color-text-dark-secondary);
}
body:not(.landing-page):not(.login-page) .nav-link:hover {
    color: var(--color-text-dark);
}
body:not(.landing-page):not(.login-page) .nav-user {
    color: var(--color-text-dark-secondary);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-accent), #f97316);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1rem;
    color: #0b0e14;
}
.logo-text {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.logo-dot {
    color: var(--color-accent);
    font-weight: 800;
}
.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-user {
    font-size: var(--text-sm);
    padding: 0 0.25rem;
    font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), #f97316);
    color: #0b0e14;
    border: none;
    box-shadow: 0 2px 8px rgba(245,158,11,0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245,158,11,0.35);
    color: #0b0e14;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-dark);
}
.btn-outline:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-dark);
}
/* Dark pages need different outline button */
.landing-page .btn-outline,
.login-page .btn-outline {
    border-color: var(--dt-border-accent);
    color: var(--dt-text-primary);
}
.landing-page .btn-outline:hover,
.login-page .btn-outline:hover {
    background: var(--dt-surface-overlay);
    color: var(--dt-text-primary);
}
.btn-ghost {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #f1f3f7;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-success { background: var(--color-success); color: #fff; }
.btn-sm { padding: 0.45rem 1rem; font-size: var(--text-xs); }
.btn-lg { padding: 1rem 2.5rem; font-size: var(--text-base); border-radius: var(--radius-lg); }

/* ===== ALERTS ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    margin: 1rem 0;
    border-left: 3px solid;
    font-weight: 500;
}
.alert-success { background: var(--color-success-bg); color: #16a34a; border-color: var(--color-success); }
.alert-error, .alert-danger { background: var(--color-danger-bg); color: #dc2626; border-color: var(--color-danger); }
.alert-warning { background: var(--color-warning-bg); color: #d97706; border-color: var(--color-warning); }
.alert-info { background: var(--color-info-bg); color: #2563eb; border-color: var(--color-info); }

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    line-height: 1.5;
    letter-spacing: 0.01em;
}
.badge-success { background: var(--color-success-bg); color: #16a34a; }
.badge-warning { background: var(--color-warning-bg); color: #d97706; }
.badge-danger { background: var(--color-danger-bg); color: #dc2626; }
.badge-info { background: var(--color-info-bg); color: #2563eb; }
.badge-secondary { background: var(--color-bg-tertiary); color: var(--color-text-dark-secondary); }

/* ===== CARDS ===== */
.card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: box-shadow 0.3s;
}
.card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}
.card-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-dark);
    letter-spacing: -0.01em;
}

/* ===== TABLES ===== */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}
thead th {
    text-align: left;
    padding: 0.875rem 1rem;
    font-weight: 600;
    color: var(--color-text-dark-secondary);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--color-border);
}
thead th:first-child { border-radius: var(--radius-md) 0 0 0; }
thead th:last-child { border-radius: 0 var(--radius-md) 0 0; }
tbody td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-dark);
}
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: rgba(245, 158, 11, 0.03); }
tbody tr:last-child td { border-bottom: none; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.4rem;
    letter-spacing: -0.005em;
}
.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-family: var(--font-body);
    transition: all 0.2s;
    background: var(--color-bg-secondary);
    color: var(--color-text-dark);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-muted);
}
.form-control::placeholder { color: var(--color-text-muted); }
select.form-control { appearance: auto; }
textarea.form-control { min-height: 100px; resize: vertical; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    gap: 0.3rem;
    margin-top: 1.5rem;
    justify-content: center;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-dark);
    text-decoration: none;
    transition: all 0.2s;
}
.pagination a:hover { background: var(--color-bg-tertiary); border-color: var(--color-accent); color: var(--color-accent); }
.pagination .active {
    background: linear-gradient(135deg, var(--color-accent), #f97316);
    color: #0b0e14;
    border-color: transparent;
    font-weight: 700;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 520px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-elevated);
    animation: fadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.modal-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-dark);
}
.modal-close {
    background: var(--color-bg-tertiary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--color-text-dark-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.modal-close:hover { background: var(--color-danger-bg); color: var(--color-danger); }
.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), #f97316);
    opacity: 0;
    transition: opacity 0.3s;
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.stat-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-dark-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}
.stat-value {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 900;
    color: var(--color-text-dark);
    letter-spacing: -0.03em;
    line-height: 1;
}
.stat-sub {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 0.375rem;
}

/* ============================================================
   LANDING PAGE — Dark Luxury Editorial Theme
   ============================================================ */
.landing-page {
    background: var(--dt-surface);
    color: var(--dt-text-primary);
    overflow-x: hidden;
}

/* ===== SCROLL REVEAL SYSTEM ===== */
/* JS adds .reveal-ready to body once observer is set up */
.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-ready .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-ready .reveal-delay-1 { transition-delay: 0.1s; }
.reveal-ready .reveal-delay-2 { transition-delay: 0.2s; }
.reveal-ready .reveal-delay-3 { transition-delay: 0.3s; }
.reveal-ready .reveal-delay-4 { transition-delay: 0.4s; }

/* Button glow effect */
.btn-glow {
    position: relative;
}
.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--color-accent), #f97316);
    z-index: -1;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.4s;
}
.btn-glow:hover::after {
    opacity: 0.5;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}
.hero > .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: calc(100vh - 72px - 4rem);
}

/* Ambient orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
}
.hero-orb--1 {
    width: 700px;
    height: 700px;
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}
.hero-orb--2 {
    width: 400px;
    height: 400px;
    bottom: 0;
    left: -100px;
    background: radial-gradient(circle, rgba(249,115,22,0.06) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}
.hero-orb--3 {
    width: 350px;
    height: 350px;
    bottom: 10%;
    right: -50px;
    background: radial-gradient(circle, rgba(251,191,36,0.05) 0%, transparent 70%);
    animation: float 12s ease-in-out infinite;
}

/* Grid background */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 10%, transparent 70%);
}

/* Center-stage layout */
.hero-center {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Eyebrow */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.25rem 0.5rem 0.875rem;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 2.5rem;
    letter-spacing: 0.01em;
}
.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* Headline */
.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    font-weight: 900;
    color: var(--dt-text-primary);
    line-height: 1.08;
    margin-bottom: 2rem;
    letter-spacing: -0.045em;
}
.hero-headline-accent {
    position: relative;
    color: var(--color-accent);
    display: inline-block;
}
.hero-headline-accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--color-accent), #fb923c);
    opacity: 0.25;
    border-radius: 3px;
}

/* Subline */
.hero-sub {
    font-size: var(--text-lg);
    color: var(--dt-text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}
.hero-br { display: block; }

/* CTA */
.hero-cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.btn-arrow {
    display: inline-block;
    transition: transform 0.3s;
}
.btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Stats strip */
.hero-stats-strip {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    background: var(--dt-surface-raised);
    border: 1px solid var(--dt-border);
    border-radius: var(--radius-full);
}
.hero-stat-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hero-stat-value {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 900;
    color: var(--color-accent);
    letter-spacing: -0.02em;
}
.hero-stat-label {
    font-size: var(--text-xs);
    color: var(--dt-text-muted);
    font-weight: 500;
}
.hero-stat-sep {
    width: 1px;
    height: 20px;
    background: var(--dt-border-accent);
}

/* Live activity feed */
.hero-feed {
    margin-top: 3.5rem;
    position: relative;
    z-index: 1;
}
.hero-feed-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.hero-feed-live {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
}
.hero-feed-title {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--dt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.hero-feed-track {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}
.hero-feed-scroll {
    display: flex;
    gap: 0.75rem;
    width: max-content;
    animation: feedScroll 40s linear infinite;
}
@keyframes feedScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.feed-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    background: var(--dt-surface-raised);
    border: 1px solid var(--dt-border);
    border-radius: var(--radius-full);
    white-space: nowrap;
    font-size: var(--text-xs);
    transition: border-color 0.3s, background 0.3s;
}
.feed-item:hover {
    border-color: rgba(245,158,11,0.2);
    background: var(--dt-surface-overlay);
}
.feed-badge {
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.feed-badge--posted {
    background: rgba(34,197,94,0.12);
    color: #22c55e;
}
.feed-badge--scored {
    background: rgba(245,158,11,0.12);
    color: var(--color-accent);
}
.feed-sub {
    font-family: var(--font-mono);
    font-size: 0.675rem;
    color: var(--color-accent);
    font-weight: 500;
    flex-shrink: 0;
}
.feed-text {
    color: var(--dt-text-secondary);
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== LOGO BAR ===== */
.logo-bar {
    padding: 2.5rem 0;
    background: var(--dt-surface-raised);
    border-top: 1px solid var(--dt-border);
    border-bottom: 1px solid var(--dt-border);
    text-align: center;
    overflow: hidden;
    max-width: 100vw;
}
.logo-bar-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--dt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}
.logo-bar-track {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}
.logo-bar-scroll {
    display: flex;
    align-items: center;
    gap: 0;
    animation: logoScroll 60s linear infinite;
    width: max-content;
}
@keyframes logoScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.logo-bar-item {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dt-text-primary);
    opacity: 0.3;
    letter-spacing: -0.02em;
    white-space: nowrap;
    padding: 0 1.5rem;
    transition: opacity 0.3s;
}
.logo-bar-item:hover { opacity: 0.7; }
.logo-bar-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--dt-text-muted);
    opacity: 0.3;
    flex-shrink: 0;
}

/* ===== SECTION LABELS & HEADINGS ===== */
.section-label {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}
.features-heading {
    text-align: center;
    margin-bottom: 4rem;
}
.features-heading h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, var(--text-4xl));
    font-weight: 900;
    color: var(--dt-text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.features-heading p {
    color: var(--dt-text-secondary);
    font-size: var(--text-lg);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== PROBLEM / SOLUTION ===== */
.problem-solution {
    padding: 7rem 0;
    background: var(--dt-surface);
    position: relative;
}
.ps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.ps-col {
    background: var(--dt-surface-raised);
    border: 1px solid var(--dt-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ps-col:hover {
    transform: translateY(-3px);
}
.ps-col-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--dt-border);
}
.ps-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ps-icon--bad {
    background: rgba(239,68,68,0.12);
    color: #ef4444;
}
.ps-icon--good {
    background: rgba(34,197,94,0.12);
    color: #22c55e;
}
.ps-pain {
    border-color: rgba(239,68,68,0.12);
}
.ps-pain:hover {
    border-color: rgba(239,68,68,0.25);
    box-shadow: 0 8px 32px rgba(239,68,68,0.06);
}
.ps-solution {
    border-color: rgba(34,197,94,0.12);
    background: linear-gradient(135deg, var(--dt-surface-raised), rgba(34,197,94,0.03));
}
.ps-solution:hover {
    border-color: rgba(34,197,94,0.25);
    box-shadow: 0 8px 32px rgba(34,197,94,0.06);
}
.ps-col h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--dt-text-primary);
    letter-spacing: -0.01em;
}
.ps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}
.ps-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: var(--text-sm);
    color: var(--dt-text-secondary);
    line-height: 1.65;
    transition: transform 0.2s;
}
.ps-item:hover {
    transform: translateX(4px);
}
.ps-marker {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 1px;
}
.ps-item-bad .ps-marker {
    background: rgba(239,68,68,0.12);
    color: #ef4444;
}
.ps-item-good .ps-marker {
    background: rgba(34,197,94,0.12);
    color: #22c55e;
}

/* ===== FEATURE CARDS / DELIVERABLES ===== */
.features {
    padding: 7rem 0;
    background: var(--dt-surface);
    position: relative;
}
.deliverables {
    padding: 7rem 0;
    background: var(--dt-surface-raised);
    border-top: 1px solid var(--dt-border);
    border-bottom: 1px solid var(--dt-border);
    position: relative;
}
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: var(--dt-surface-raised);
    border: 1px solid var(--dt-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.feature-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(245,158,11,0.04) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.feature-card:hover .feature-card-glow {
    opacity: 1;
}
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}
.feature-card:hover {
    border-color: rgba(245,158,11,0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(245,158,11,0.08), 0 0 80px rgba(245,158,11,0.03);
}
.feature-card:hover::after { opacity: 1; }
.feature-number {
    position: absolute;
    top: 1.5rem;
    right: 1.75rem;
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 900;
    color: var(--dt-text-primary);
    opacity: 0.04;
    line-height: 1;
    letter-spacing: -0.03em;
}
.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--color-accent-muted);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--color-accent);
    transition: all 0.3s;
}
.feature-card:hover .feature-icon {
    background: rgba(245,158,11,0.2);
    transform: scale(1.05);
}
.feature-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--dt-text-primary);
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
}
.feature-card p {
    color: var(--dt-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.75;
}

/* ===== HOW IT WORKS — TIMELINE ===== */
.how-it-works {
    padding: 7rem 0;
    background: var(--dt-surface-raised);
    border-top: 1px solid var(--dt-border);
    border-bottom: 1px solid var(--dt-border);
}
.how-it-works .features-heading { margin-bottom: 3.5rem; }

.steps-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}
.steps-line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent-glow), var(--dt-border), var(--color-accent-glow));
}
.steps-timeline .step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    text-align: left;
    padding-bottom: 3rem;
    position: relative;
}
.steps-timeline .step:last-child {
    padding-bottom: 0;
}
.step-connector {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-accent), #f97316);
    color: #0b0e14;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 900;
    box-shadow: 0 4px 20px rgba(245,158,11,0.3);
    transition: all 0.3s;
}
.steps-timeline .step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(245,158,11,0.4);
}
.step-content {
    padding-top: 0.5rem;
}
.step-content h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--dt-text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.step-content p {
    color: var(--dt-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.75;
    max-width: 400px;
}

/* ===== SHOWCASE SCREENSHOTS ===== */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    margin-top: 4rem;
}
.showcase-card {
    background: var(--dt-surface-raised);
    border: 1px solid var(--dt-border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.showcase-card:hover {
    border-color: rgba(245,158,11,0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.showcase-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}
.showcase-dot {
    width: 7px;
    height: 7px;
    background: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
}
.showcase-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--dt-border);
    background: var(--dt-surface);
    margin-bottom: 1.25rem;
}
.showcase-img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.showcase-card:hover .showcase-img {
    transform: scale(1.02);
}
.showcase-caption {
    font-size: var(--text-sm);
    color: var(--dt-text-secondary);
    line-height: 1.7;
}
.showcase-card--wide {
    margin-top: 1.75rem;
}

/* ===== METRICS BAR ===== */
.metrics-bar {
    padding: 4rem 0;
    border-top: 1px solid var(--dt-border);
    border-bottom: 1px solid var(--dt-border);
    background: var(--dt-surface);
    position: relative;
}
.metrics-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(245,158,11,0.03) 0%, transparent 70%);
    pointer-events: none;
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    position: relative;
}
.metric-item {
    position: relative;
    padding: 1.5rem 1rem;
}
.metric-value {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 900;
    color: var(--dt-text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
    transition: color 0.3s;
}
.metric-item:hover .metric-value {
    color: var(--color-accent);
}
.metric-label {
    font-size: var(--text-sm);
    color: var(--dt-text-muted);
    margin-top: 0.5rem;
}
.metric-bar {
    height: 3px;
    background: var(--dt-surface-overlay);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}
.metric-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--color-accent), #f97316);
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.metric-item.visible .metric-bar span {
    width: var(--w);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 7rem 0;
    background: var(--dt-surface-raised);
    border-bottom: 1px solid var(--dt-border);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.testimonial-card {
    background: var(--dt-surface);
    border: 1px solid var(--dt-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.testimonial-card:hover {
    border-color: rgba(245,158,11,0.15);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.testimonial-stars {
    color: var(--color-accent);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
    line-height: 1;
}
.testimonial-card blockquote {
    font-size: var(--text-sm);
    color: var(--dt-text-secondary);
    line-height: 1.75;
    margin: 0 0 1.5rem;
    flex: 1;
    font-style: normal;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--dt-border);
}
.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: hsl(var(--hue), 50%, 22%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: hsl(var(--hue), 60%, 65%);
    flex-shrink: 0;
    line-height: 1;
    text-align: center;
}
.testimonial-author strong {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--dt-text-primary);
    letter-spacing: -0.01em;
}
.testimonial-author span {
    display: block;
    font-size: var(--text-xs);
    color: var(--dt-text-muted);
}

/* ===== PRICING SECTION ===== */
.pricing-section {
    padding: 6rem 0;
    background: var(--dt-bg);
    position: relative;
}
.pricing-card-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}
.pricing-card {
    position: relative;
    max-width: 440px;
    width: 100%;
    background: var(--dt-surface);
    border: 1px solid var(--dt-border);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}
.pricing-card:hover {
    border-color: var(--dt-accent);
    transform: translateY(-4px);
}
.pricing-card-glow {
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.pricing-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #000;
    background: var(--color-accent);
    border-radius: 999px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
.pricing-badge--offer {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    animation: glowPulse 2.5s ease-in-out infinite;
    box-shadow: 0 2px 12px rgba(34,197,94,0.3);
}
.pricing-original {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dt-text-muted);
    text-decoration: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 2px;
    margin-right: 0.5rem;
    position: relative;
    z-index: 1;
    opacity: 0.6;
}
.pricing-currency-sm {
    font-size: 1rem;
}
.pricing-savings {
    display: inline-block;
    padding: 0.3rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #16a34a;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 999px;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}
.pricing-plan-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}
.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.15rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.pricing-currency {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dt-text-muted);
    line-height: 1;
    align-self: flex-start;
    margin-top: 0.4rem;
}
.pricing-value {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--dt-text);
    line-height: 1;
    letter-spacing: -0.03em;
}
.pricing-period {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dt-text-muted);
    margin-left: 0.15rem;
}
.pricing-desc {
    font-size: 0.95rem;
    color: var(--dt-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.25rem;
    text-align: left;
    position: relative;
    z-index: 1;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    font-size: 0.9rem;
    color: var(--dt-text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pricing-features li:last-child {
    border-bottom: none;
}
.pricing-check {
    color: var(--dt-accent);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.pricing-cta {
    width: 100%;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.pricing-note {
    font-size: 0.8rem;
    color: var(--dt-text-muted);
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 8rem 0;
    text-align: center;
    background: var(--dt-surface);
    position: relative;
    overflow: hidden;
}
.cta-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.cta-inner {
    position: relative;
    z-index: 1;
}
.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, var(--text-4xl));
    font-weight: 900;
    color: var(--dt-text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.cta-section p {
    color: var(--dt-text-secondary);
    font-size: var(--text-lg);
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.cta-buttons {
    margin-bottom: 1.5rem;
}
.cta-note {
    font-size: var(--text-xs);
    color: var(--dt-text-muted);
    letter-spacing: 0.02em;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--color-border);
}
.landing-page .site-footer {
    background: var(--dt-surface);
    border-top-color: var(--dt-border);
}
.login-page .site-footer {
    background: var(--dt-surface);
    border-top-color: var(--dt-border);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-copy, .footer-contact {
    font-size: var(--text-sm);
    color: var(--color-text-dark-secondary);
}
.landing-page .footer-copy,
.landing-page .footer-contact,
.login-page .footer-copy,
.login-page .footer-contact {
    color: var(--dt-text-muted);
}
.footer-contact a { color: var(--color-accent); }

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding: 3rem 0 2.5rem;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-brand .navbar-brand {
    display: inline-flex;
    width: fit-content;
}
.footer-tagline {
    font-size: var(--text-sm);
    color: var(--dt-text-muted);
    line-height: 1.6;
    max-width: 280px;
}
.footer-col-title {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--dt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links a {
    font-size: var(--text-sm);
    color: var(--dt-text-secondary);
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--color-accent);
}
.footer-bottom {
    border-top: 1px solid var(--dt-border);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-bottom p {
    font-size: var(--text-xs);
    color: var(--dt-text-muted);
}
.footer-bottom a {
    color: var(--dt-text-secondary);
    transition: color 0.2s;
}
.footer-bottom a:hover {
    color: var(--color-accent);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-dark-secondary); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    z-index: 110;
    flex-shrink: 0;
    transition: border-color 0.2s;
}
.landing-page .hamburger,
.login-page .hamburger {
    border-color: var(--dt-border-accent);
}
.hamburger:hover {
    border-color: var(--color-accent);
}
.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.landing-page .hamburger-line,
.login-page .hamburger-line {
    background: var(--dt-text-primary);
}
.hamburger.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== RESPONSIVE ===== */

/* --- Small desktop / large tablet (Surface Pro 7 etc.) --- */
@media (max-width: 1400px) {
    .hero-headline {
        font-size: clamp(2.25rem, 4.5vw, 4rem);
    }
    .hero-sub {
        font-size: var(--text-base);
        max-width: 520px;
    }
    .hero-orb--1 { width: 500px; height: 500px; top: -180px; }
    .hero-orb--2 { width: 300px; height: 300px; }
    .hero-orb--3 { width: 250px; height: 250px; }
    .hero-stats-strip {
        gap: 1rem;
        padding: 0.875rem 1.5rem;
    }
    .hero-stat-value { font-size: var(--text-sm); }
    .hero-stat-label { font-size: 0.65rem; }
    .hero-eyebrow { margin-bottom: 1.75rem; }
    .hero-cta-row { margin-bottom: 2rem; }
}

/* --- Tablet landscape --- */
@media (max-width: 1024px) {
    .hero { min-height: auto; padding: 4rem 0 2.5rem; }
    .hero > .container { min-height: auto; }
    .hero-center { flex: none; }
    .hero-headline { font-size: clamp(2rem, 4vw, 3rem); }
    .features-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

/* --- Tablet portrait / small tablet --- */
@media (max-width: 768px) {
    /* Hamburger visible */
    .hamburger { display: flex; }

    /* Mobile menu dropdown */
    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1rem 1rem;
        z-index: 105;
    }
    body:not(.landing-page):not(.login-page) .navbar-links {
        background: rgba(255,255,255,0.98);
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    .landing-page .navbar-links,
    .login-page .navbar-links {
        background: rgba(11,14,20,0.98);
        border-bottom: 1px solid var(--dt-border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }
    .navbar-links.nav-open {
        display: flex;
        animation: fadeUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    .navbar-links .nav-link {
        padding: 0.75rem 0.5rem;
        font-size: var(--text-sm);
        border-bottom: 1px solid var(--color-border);
    }
    .landing-page .navbar-links .nav-link,
    .login-page .navbar-links .nav-link {
        border-bottom-color: var(--dt-border);
    }
    .navbar-links .nav-link:last-of-type {
        border-bottom: none;
    }
    .navbar-links .nav-user {
        padding: 0.75rem 0.5rem;
        font-size: var(--text-sm);
        border-bottom: 1px solid var(--color-border);
    }
    .landing-page .navbar-links .nav-user {
        border-bottom-color: var(--dt-border);
    }
    .navbar-links .btn {
        margin-top: 0.5rem;
        width: 100%;
    }
    .navbar { position: sticky; }
    .navbar-inner { padding: 0 0.5rem; }

    /* Hero */
    .hero { padding: 3rem 0 2rem; min-height: auto; }
    .hero > .container { min-height: auto; }
    .hero-center { flex: none; }
    .hero-headline { font-size: var(--text-3xl); margin-bottom: 1.5rem; }
    .hero-sub { font-size: var(--text-base); margin-bottom: 2rem; }
    .hero-br { display: none; }
    .hero-orb { display: none; }
    .hero-grid-bg { display: none; }
    .hero-eyebrow { margin-bottom: 1.5rem; font-size: 0.7rem; }
    .hero-stats-strip {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
        border-radius: var(--radius-lg);
    }
    .hero-stat-sep { width: 40px; height: 1px; }
    .hero-cta-row {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 2rem;
    }
    .hero-cta-row .btn { width: 100%; max-width: 300px; }
    .hero-feed { margin-top: 2rem; }

    /* Sections */
    .problem-solution, .deliverables, .how-it-works, .cta-section, .testimonials, .pricing-section { padding: 4rem 0; }
    .pricing-card { padding: 2rem 1.5rem; }
    .pricing-value { font-size: 3.5rem; }
    .ps-grid { grid-template-columns: 1fr; }
    .deliverables-grid { grid-template-columns: 1fr; }
    .showcase-grid { grid-template-columns: 1fr; gap: 1.25rem; margin-top: 3rem; }
    .steps-timeline .step { gap: 1.5rem; }
    .step-number { width: 48px; height: 48px; font-size: var(--text-lg); }
    .steps-line { left: 24px; }

    /* Footer */
    .footer-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-brand .navbar-brand { justify-content: center; }
    .footer-tagline { text-align: center; max-width: 100%; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }

    /* Metrics / stats */
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-glow { width: 300px; height: 300px; }
    .features-heading { margin-bottom: 2.5rem; }
    .features-heading h2 { font-size: var(--text-2xl); }

    /* Tables - add horizontal scroll hint */
    .table-wrapper {
        position: relative;
    }
    .table-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 32px;
        background: linear-gradient(90deg, transparent, var(--color-bg-secondary));
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
    }
    .table-wrapper.is-scrollable::after {
        opacity: 1;
    }
    table { font-size: var(--text-xs); }
    thead th { padding: 0.75rem 0.75rem; }
    tbody td { padding: 0.75rem 0.75rem; }

    /* Modals */
    .modal { width: 95%; padding: 1.5rem; }
}

/* --- Mobile --- */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }

    /* Hero */
    .hero { padding: 2rem 0 1.5rem; }
    .hero-headline { font-size: var(--text-2xl); }
    .hero-sub { font-size: var(--text-sm); line-height: 1.7; }
    .hero-eyebrow { font-size: 0.65rem; padding: 0.4rem 0.875rem; }
    .hero-stats-strip { width: 100%; }
    .hero-feed { display: none; }

    /* Sections */
    .problem-solution, .deliverables, .how-it-works, .cta-section, .testimonials, .pricing-section { padding: 3rem 0; }
    .features-heading { margin-bottom: 2rem; }
    .features-heading h2 { font-size: var(--text-xl); }
    .features-heading p { font-size: var(--text-sm); }
    .ps-col { padding: 1.5rem; }
    .feature-card { padding: 1.5rem; }
    .showcase-card { padding: 1.25rem; }
    .showcase-grid { margin-top: 2.5rem; }
    .showcase-caption { font-size: var(--text-xs); }
    .feature-card h3 { font-size: var(--text-base); }
    .testimonial-card { padding: 1.25rem; }
    .step-content p { font-size: var(--text-xs); }
    .step-content h3 { font-size: var(--text-base); }

    /* Pricing */
    .pricing-card { padding: 1.75rem 1.25rem; }
    .pricing-value { font-size: 3rem; }
    .pricing-currency { font-size: 1.25rem; }
    .pricing-features li { font-size: var(--text-xs); padding: 0.5rem 0; }

    /* CTA */
    .cta-section h2 { font-size: var(--text-xl); }
    .cta-section p { font-size: var(--text-sm); }

    /* Metrics */
    .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .metric-value { font-size: var(--text-2xl); }
    .metric-item { padding: 1rem 0.5rem; }

    /* Stats */
    .stats-grid { grid-template-columns: 1fr; }
    .stat-value { font-size: var(--text-3xl); }

    /* Logo bar */
    .logo-bar { padding: 1.5rem 0; }
    .logo-bar-label { font-size: 0.65rem; margin-bottom: 1rem; }
    .logo-bar-item { font-size: 0.95rem; padding: 0 1rem; }

    /* Buttons */
    .btn-lg { padding: 0.875rem 1.75rem; font-size: var(--text-sm); }

    /* Navbar */
    .navbar-inner { height: 60px; }
    .logo-text { font-size: 1.15rem; }
    .logo-mark { width: 28px; height: 28px; font-size: 0.875rem; }

    /* Footer */
    .footer-grid { gap: 1.5rem; padding: 2rem 0 1.5rem; }
    .footer-col-title { margin-bottom: 0.75rem; }
}
