/* ====== RESET & BASE ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #040506;
    color: #e6e6e6;
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}
:root {
    /* Font scale */
    --font-xs: 11px;
    --font-sm: 12px;
    --font-md: 13px;
    --font-base: 14px;
    --font-lg: 15px;
    --font-xl: 16px;
    --font-2xl: 18px;
    --font-3xl: 20px;
    --font-4xl: 22px;
    --font-5xl: 24px;
    --font-6xl: 28px;
    --font-7xl: 32px;
    --font-8xl: 36px;
    --font-9xl: 44px;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ====== VARIABLES ====== */
:root {
    --accent: #ff6b5f;
    --accent-hover: #ff8678;
    --accent-grad: linear-gradient(135deg, #ff6b5f 0%, #ffb057 100%);
    --accent-muted: rgba(255, 99, 99, 0.15);
    --accent-border: rgba(255, 107, 95, 0.22);
    --cyan: #67d4ff;
    --cyan-muted: rgba(103, 212, 255, 0.12);
    --info-muted: rgba(94, 172, 252, 0.12);
    --bg-card: #101113;
    --bg-recessed: #090b0d;
    --bg-darker: #020203;
    --text-primary: #e6e6e6;
    --text-secondary: #9a9a9c;
    --text-tertiary: #6e6e70;
    --text-caption: #525254;
    --success: #30d158;
    --info: #5eacfc;
    --border: rgba(255,255,255,0.06);
    --border-strong: rgba(255,255,255,0.1);
    --surface: rgba(255,255,255,0.03);
    --surface-hover: rgba(255,255,255,0.05);
    --surface-active: rgba(255,255,255,0.08);
    --radius-md: 8px;
    --radius-lg: 8px;
    --radius-xl: 8px;
    --radius-pill: 9999px;
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --anim-fast: 0.36s;
    --anim-main: 0.62s;
    /* Note viewer colors (scoped in dashboard, declared here for consistency) */
    --note-color: var(--accent);
    --note-muted: var(--accent-muted);
    --note-border: var(--accent-border, rgba(255, 99, 99, 0.2));
}

/* ====== UTILITIES ====== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 40px); }
.section { padding: clamp(60px, 10vw, 100px) 0; position: relative; }
.text-gradient {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====== SECTION HEADER ====== */
.section-header { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    display: block;
}
.section-title {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0;
    line-height: 1.15;
}
.section-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

/* ====== SURFACE / CARD ====== */
.surface {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 4vw, 32px);
    transition: all var(--anim-main) var(--ease-smooth);
}
.surface:hover {
    background: var(--surface-hover);
    border-color: var(--accent-border);
    box-shadow: 0 8px 28px rgba(255,107,95,0.12), 0 0 0 1px rgba(255,107,95,0.08);
    transform: translateY(-2px);
}
.contact-link {
    transition: all 0.4s ease-out;
}
.contact-link:hover {
    background: var(--surface-hover) !important;
    border-color: rgba(255,99,99,0.3) !important;
    box-shadow: 0 12px 48px rgba(255,99,99,0.14), 0 0 0 1px rgba(255,99,99,0.08) !important;
    transform: translateY(-2px) !important;
}
.hover-card {
    transition: all 0.4s ease-out;
}
.hover-card:hover {
    border-color: rgba(255,99,99,0.3) !important;
    box-shadow: 0 12px 48px rgba(255,99,99,0.14), 0 0 0 1px rgba(255,99,99,0.08) !important;
    transform: translateY(-2px) !important;
}
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    transition: all 0.4s ease-out;
}
.glass-card:hover {
    background: var(--surface-hover);
    border-color: rgba(255,99,99,0.25);
    box-shadow: 0 8px 32px rgba(255,99,99,0.1), 0 0 0 1px rgba(255,99,99,0.06);
}

/* ====== NAVIGATION ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: clamp(8px, 2vw, 12px) 0;
    background: rgba(4,5,6,0.85);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(12px, 4vw, 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand-code-logo,
.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(13px, 3vw, 15px);
    font-weight: 700;
    white-space: nowrap;
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "calt" 0;
    letter-spacing: 0.01em;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-menu a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: clamp(12px, 3vw, 15px);
    font-weight: 500;
    padding: clamp(6px, 1.5vw, 8px) clamp(12px, 3vw, 16px);
    border-radius: var(--radius-pill);
    transition: all 0.4s ease-out;
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--text-primary);
    background: var(--surface-active);
}
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-lk-btn {
    display: none;
}
.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav-actions .mobile-lk-btn {
    display: inline-flex;
}
.menu-toggle .line {
    width: 20px; height: 1.5px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.4s ease-out;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(10px, 2.5vw, 14px) clamp(20px, 5vw, 28px);
    font-size: clamp(13px, 3vw, 15px);
    font-weight: 600;
    line-height: 1.5;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--anim-fast) var(--ease-smooth);
    text-decoration: none;
    border: none;
}
.social-icon {
    width: clamp(32px, 6vw, 40px);
    height: clamp(32px, 6vw, 40px);
    flex: 0 0 auto;
    display: block;
    overflow: visible;
}
.social-icon path,
.social-icon circle,
.social-icon rect {
    vector-effect: non-scaling-stroke;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #040506 100%);
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(255,99,99,0.3), 0 2px 8px rgba(255,99,99,0.2);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent) 0%, #040506 100%);
    color: #ffffff;
    transform: none;
    box-shadow: 0 0 0 1px rgba(255,99,99,0.3), 0 2px 8px rgba(255,99,99,0.2);
}
.nav-menu a.btn-primary {
    color: #ffffff;
}
.btn-secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
}
.btn-sm { padding: clamp(6px, 1.5vw, 8px) clamp(16px, 4vw, 20px); font-size: clamp(11px, 2.5vw, 14px); }
.btn-lg { padding: clamp(14px, 3vw, 16px) clamp(28px, 6vw, 36px); font-size: clamp(14px, 3.5vw, 16px); }

/* ====== HERO ====== */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(100px, 15vw, 140px) 0 clamp(60px, 10vw, 100px);
    position: relative;
    overflow: hidden;
    contain: layout;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        linear-gradient(180deg, rgba(103,212,255,0.08), transparent 38%),
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,107,95,0.10), transparent 70%);
    pointer-events: none;
}
.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 40px);
    position: relative;
    z-index: 1;
    text-align: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: clamp(4px, 1vw, 8px);
    padding: clamp(6px, 1.5vw, 10px) clamp(12px, 3vw, 20px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(11px, 2.5vw, 13px);
    font-weight: 500;
    color: var(--text-tertiary);
    margin-bottom: clamp(20px, 4vw, 32px);
}
.hero-badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(48,209,88,0.4);
    animation: heroDotPulse 2s ease-in-out infinite;
}
@keyframes heroDotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(48,209,88,0.4); }
    50% { opacity: 0.4; box-shadow: 0 0 2px rgba(48,209,88,0.2); }
}
.hero-title {
    font-size: clamp(34px, 6vw, 72px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: clamp(24px, 4vw, 40px);
    width: 100%;
    box-sizing: border-box;
}
.hero-title-line--highlight {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(16px, 2.4vw, 22px);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: clamp(24px, 4vw, 40px);
}
.hero-cta-group { display: none; }
.hero-proof-row { display: none; }
.hero-scroll-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    width: clamp(40px, 8vw, 48px);
    height: clamp(40px, 8vw, 48px);
    margin-top: clamp(16px, 3vw, 24px);
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--accent);
    transition: all 0.4s ease-out;
    animation: heroScrollBounce 2s ease-in-out infinite;
}
.hero-scroll-arrow:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
    transform: translateY(4px);
}
@keyframes heroScrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ====== ABOUT ====== */
.about-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(32px, 6vw, 64px);
    transition: all 0.4s ease-out;
}
.about-card:hover {
    border-color: rgba(255,99,99,0.3);
    box-shadow: 0 12px 48px rgba(255,99,99,0.14), 0 0 0 1px rgba(255,99,99,0.08);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}
.about-content h2 {
    font-size: clamp(22px, 5vw, 40px);
    font-weight: 700;
    margin-bottom: clamp(16px, 3vw, 24px);
    letter-spacing: 0;
}
.about-content p {
    font-size: clamp(15px, 2vw, 19px);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: clamp(12px, 2vw, 20px);
}
.about-features { display: flex; flex-direction: column; gap: clamp(8px, 2vw, 12px); margin-top: clamp(24px, 4vw, 36px); }
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: clamp(12px, 3vw, 16px);
    padding: clamp(12px, 3vw, 16px) clamp(14px, 3vw, 20px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.4s ease-out;
}
.feature-item:hover {
    background: var(--surface-hover);
    border-color: rgba(255,99,99,0.25);
    box-shadow: 0 8px 32px rgba(255,99,99,0.1), 0 0 0 1px rgba(255,99,99,0.05);
}
.feature-icon {
    width: clamp(18px, 4vw, 22px);
    height: clamp(18px, 4vw, 22px);
    flex-shrink: 0;
    margin-top: clamp(0px, 0.5vw, 2px);
    color: var(--accent);
}
.feature-text h3 {
    font-size: clamp(14px, 3.5vw, 18px);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: clamp(0px, 0.5vw, 2px);
}
.feature-text p {
    font-size: clamp(12px, 3vw, 15px);
    color: var(--text-tertiary);
    margin: 0;
    line-height: 1.5;
}
.about-image .surface { text-align: center; padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 40px); }

/* ====== BENEFITS GRID ====== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(12px, 2vw, 16px);
}
.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 36px) clamp(20px, 4vw, 32px);
    transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
    position: relative;
    overflow: hidden;
}
.benefit-card:hover {
    background: var(--surface-hover);
    border-color: rgba(255,99,99,0.35);
    box-shadow: 0 16px 56px rgba(255,99,99,0.16), 0 0 0 1px rgba(255,99,99,0.1);
}
.benefit-icon {
    width: clamp(24px, 5vw, 32px);
    height: clamp(24px, 5vw, 32px);
    margin-bottom: clamp(12px, 3vw, 20px);
    color: var(--text-secondary);
}
.benefit-title {
    font-size: clamp(16px, 4vw, 19px);
    font-weight: 600;
    margin-bottom: clamp(8px, 2vw, 12px);
}
.benefit-desc {
    font-size: clamp(14px, 3.5vw, 18px);
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ====== ECONOMY CALCULATOR ====== */
.economy-calc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 48px);
    position: relative;
    overflow: hidden;
}
.economy-calc::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,99,99,0.04), transparent 70%);
    pointer-events: none;
}
.economy-calc-content {
    position: relative;
    z-index: 1;
}
.economy-calc-title {
    font-size: clamp(22px, 5vw, 42px);
    font-weight: 700;
    margin-bottom: clamp(8px, 2vw, 12px);
    text-align: center;
    letter-spacing: 0;
}
.economy-calc-desc {
    font-size: clamp(15px, 3.5vw, 28px);
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
    max-width: 560px;
    margin: 0 auto clamp(24px, 4vw, 48px);
}

.calc-sliders {
    max-width: 700px;
    margin: 0 auto clamp(24px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 4vw, 32px);
}
.calc-row {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vw, 12px);
}
.calc-row-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.calc-row-label {
    font-size: clamp(13px, 3vw, 18px);
    font-weight: 600;
    color: var(--text-primary);
}
.calc-row-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(13px, 3vw, 18px);
    font-weight: 700;
    color: var(--accent);
}
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, #15171c 0%, #8e2724 48%, var(--accent) 100%);
    outline: none;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 0 4px var(--accent-muted);
    transition: box-shadow 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 6px rgba(255,99,99,0.2);
}
input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 4px var(--accent-muted);
}
input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, #15171c 0%, #8e2724 48%, var(--accent) 100%);
}

.economy-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 3vw, 24px);
    margin-top: clamp(8px, 2vw, 16px);
}
.economy-item-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(9px, 2.5vw, 11px);
    color: var(--text-tertiary);
    margin-bottom: clamp(4px, 1vw, 8px);
    text-transform: uppercase;
    letter-spacing: clamp(0.04em, 0.1vw, 0.06em);
    line-height: 1.4;
}
.economy-item-value {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: 0;
}
.economy-item-value--accent { color: var(--accent); }

/* ====== SERVICES ====== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(12px, 2vw, 16px);
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 36px) clamp(20px, 4vw, 32px);
    transition: background 0.5s, border-color 0.5s, box-shadow 0.5s, transform 0.5s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    background: var(--surface-hover);
    border-color: rgba(255,99,99,0.35);
    box-shadow: 0 16px 56px rgba(255,99,99,0.16), 0 0 0 1px rgba(255,99,99,0.1);
    transform: translateY(-2px);
}
.service-icon {
    width: clamp(28px, 5vw, 40px);
    height: clamp(28px, 5vw, 40px);
    margin-bottom: clamp(16px, 3vw, 24px);
    color: var(--accent);
}
.service-title {
    font-size: clamp(16px, 4vw, 19px);
    font-weight: 600;
    margin-bottom: clamp(8px, 2vw, 12px);
}
.service-desc {
    font-size: clamp(14px, 3.5vw, 18px);
    line-height: 1.6;
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: clamp(12px, 2vw, 20px);
}
.service-link {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: var(--font-base);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.4s ease-out;
}
.service-link:hover {
    color: var(--accent);
    gap: 10px;
}

/* ====== LEARNING ALGORITHM ====== */
.algo-section {
    display: flex;
    align-items: center;
    gap: clamp(24px, 5vw, 80px);
}
.algo-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.algo-step {
    display: flex;
    align-items: flex-start;
    gap: clamp(16px, 4vw, 24px);
    position: relative;
    padding-bottom: clamp(32px, 6vw, 48px);
}
.algo-step:last-child {
    padding-bottom: 0;
}
.algo-step-dot {
    width: clamp(36px, 7vw, 48px);
    height: clamp(36px, 7vw, 48px);
    border-radius: 50%;
    background: var(--accent-muted);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.algo-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: clamp(36px, 7vw, 48px);
    left: clamp(18px, 3.5vw, 24px);
    width: 2px;
    bottom: 0;
    background: var(--border);
    z-index: 1;
    transform: translateX(-50%);
}

.algo-step-content h3 {
    font-size: clamp(18px, 4vw, 28px);
    font-weight: 600;
    margin-bottom: clamp(2px, 1vw, 4px);
}
.algo-step-content p {
    font-size: clamp(14px, 3.5vw, 18px);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ====== PIE CHART ====== */
.pie-chart-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pie-chart {
    width: clamp(200px, 40vw, 280px);
    height: clamp(200px, 40vw, 280px);
    position: relative;
}
.pie-chart svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.pie-chart circle {
    fill: none;
    stroke-width: 32;
    cx: 140px;
    cy: 140px;
    r: 110px;
}
.pie-theory {
    stroke: #5eacfc;
    stroke-dasharray: 207.35 483.8;
    stroke-dashoffset: 0;
}
.pie-practice {
    stroke: #ff6363;
    stroke-dasharray: 483.8 207.35;
    stroke-dashoffset: -207.35;
}
.pie-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.pie-center-value {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}
.pie-center-label {
    font-size: clamp(11px, 2.5vw, 14px);
    color: var(--text-tertiary);
    margin-top: clamp(2px, 1vw, 4px);
}
.pie-legend {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 4vw, 32px);
    margin-top: clamp(24px, 4vw, 32px);
}
.pie-legend-item {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 8px);
    font-size: clamp(13px, 3vw, 15px);
    font-weight: 500;
}
.pie-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* ====== CAROUSEL ====== */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    contain: layout;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}
.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    padding: 0;
}
.carousel-slide img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: block;
    margin: 0 auto;
    contain: layout style;
}
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 3vw, 16px);
    margin-top: clamp(16px, 3vw, 24px);
}
.carousel-btn {
    width: clamp(36px, 6vw, 48px);
    height: clamp(36px, 6vw, 48px);
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: clamp(18px, 4vw, 24px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease-out;
}
.carousel-btn:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
}
.carousel-hub {
    text-align: center;
    margin-top: clamp(16px, 3vw, 24px);
    padding: clamp(12px, 2vw, 18px);
}
.carousel-hub p {
    font-size: clamp(15px, 3.5vw, 18px);
    color: var(--text-secondary);
    margin-bottom: clamp(12px, 2vw, 16px);
}
.carousel-hub-link {
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 8px);
    padding: clamp(8px, 2vw, 10px) clamp(16px, 4vw, 20px);
    background: var(--info-muted);
    border: 1px solid rgba(94,172,252,0.2);
    border-radius: var(--radius-pill);
    color: var(--info);
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 600;
    transition: all 0.4s ease-out;
}
.carousel-hub-link:hover {
    background: rgba(94,172,252,0.18);
    box-shadow: 0 8px 32px rgba(94,172,252,0.2), 0 0 0 1px rgba(94,172,252,0.1);
    transform: translateY(-1px);
}

.cert-hint {
    text-align: center;
    margin-top: clamp(16px, 3vw, 24px);
    padding: clamp(12px, 2vw, 18px);
}
.cert-hint a {
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 8px);
    padding: clamp(8px, 2vw, 10px) clamp(16px, 4vw, 20px);
    background: rgba(255,99,99,0.08);
    border: 1px solid rgba(255,99,99,0.2);
    border-radius: var(--radius-pill);
    color: var(--accent);
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 600;
    transition: all 0.4s ease-out;
}
.cert-hint a:hover {
    background: rgba(255,99,99,0.16);
    box-shadow: 0 8px 32px rgba(255,99,99,0.15), 0 0 0 1px rgba(255,99,99,0.08);
}

/* ====== FOOTER ====== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: clamp(40px, 6vw, 64px) 0 clamp(20px, 4vw, 32px);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 40px);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(24px, 4vw, 48px);
    margin-bottom: clamp(24px, 4vw, 48px);
}
.footer-brand h3 {
    margin-bottom: clamp(8px, 2vw, 12px);
}
.footer-brand p {
    font-size: clamp(12px, 3vw, 14px);
    color: var(--text-tertiary);
    line-height: 1.6;
    max-width: 300px;
}
.footer-links h3 {
    font-size: clamp(10px, 2.5vw, 12px);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: clamp(12px, 3vw, 20px);
    text-transform: uppercase;
    letter-spacing: clamp(0.04em, 0.1vw, 0.08em);
}
.footer-links ul { display: flex; flex-direction: column; gap: clamp(8px, 2vw, 10px); }
.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: clamp(12px, 3vw, 14px);
    transition: color 0.4s ease-out;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-copyright { font-size: clamp(11px, 2.5vw, 13px); color: var(--text-tertiary); }
/* ====== ANIMATIONS ====== */
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-24px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.8s ease forwards; opacity: 0; }
.animate-fade-in-up { animation: fadeInUp 0.8s ease forwards; opacity: 0; transform: translateY(24px); }
.animate-fade-in-down { animation: fadeInDown 0.8s ease forwards; opacity: 0; transform: translateY(-24px); }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ====== TOAST NOTIFICATION ====== */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}
.toast {
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    transition: all 0.3s ease;
}
.toast:hover {
    transform: scale(1.02);
}
.toast.toast-remove {
    animation: slideOutRight 0.3s ease forwards;
}
@keyframes notifBarDecrease {
    from { width: 100%; }
    to { width: 0%; }
}

/* ====== AUTH MODAL ====== */
.auth-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    pointer-events: none;
    padding: clamp(12px, 4vw, 24px);
}
.auth-overlay.active {
    pointer-events: auto;
}
.auth-overlay .auth-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(4,5,6,0.55);
    opacity: 0;
    transition: opacity 0.8s var(--ease-smooth);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.auth-overlay.active .auth-overlay-bg {
    opacity: 1;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(20px, 5vw, 48px);
    max-width: 440px;
    width: 100%;
    position: relative;
    opacity: 0;
    transform: scale(0.88) translateY(32px);
    transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
    max-height: 90vh;
    overflow-y: auto;
}
.auth-overlay.active .auth-box {
    opacity: 1;
    transform: scale(1) translateY(0);
}
.auth-close {
    position: absolute;
    top: clamp(10px, 2vw, 16px);
    right: clamp(10px, 2vw, 16px);
    width: clamp(26px, 6vw, 32px);
    height: clamp(26px, 6vw, 32px);
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: clamp(16px, 4vw, 20px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.auth-close:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}
.auth-title {
    font-size: clamp(18px, 5vw, 28px);
    font-weight: 700;
    margin-bottom: clamp(4px, 1vw, 8px);
    text-align: center;
}
.auth-subtitle {
    font-size: clamp(12px, 3.5vw, 15px);
    color: var(--text-tertiary);
    text-align: center;
    margin-bottom: clamp(16px, 4vw, 32px);
}
.auth-tabs {
    display: flex;
    gap: clamp(2px, 1vw, 4px);
    margin-bottom: clamp(16px, 4vw, 32px);
    background: var(--bg-recessed);
    border-radius: var(--radius-pill);
    padding: clamp(2px, 1vw, 4px);
}
.auth-tab {
    flex: 1;
    padding: clamp(6px, 2vw, 10px) clamp(10px, 3vw, 20px);
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-size: clamp(11px, 3vw, 14px);
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.auth-tab.active {
    background: var(--accent);
    color: #040506;
}
.auth-tab:hover:not(.active) {
    color: var(--text-primary);
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 16px);
}
.auth-input {
    width: 100%;
    padding: clamp(10px, 2.5vw, 14px) clamp(10px, 3vw, 16px);
    background: var(--bg-recessed);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: clamp(14px, 3.5vw, 16px);
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    min-height: 44px;
}
.auth-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}
.auth-input::placeholder {
    color: var(--text-tertiary);
}
.auth-btn {
    width: 100%;
    padding: clamp(10px, 2.5vw, 14px);
    background: var(--accent);
    color: #040506;
    border: none;
    border-radius: var(--radius-pill);
    font-size: clamp(13px, 3.5vw, 15px);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}
.auth-btn:hover {
    background: var(--accent);
    transform: none;
    box-shadow: none;
}
.auth-hint {
    text-align: center;
    font-size: clamp(10px, 3vw, 13px);
    color: var(--text-tertiary);
    margin-top: clamp(6px, 2vw, 12px);
}

/* ====== WOW REDESIGN LAYER ====== */
:root {
    --ios-radius: 26px;
    --radius-md: var(--ios-radius);
    --radius-lg: var(--ios-radius);
    --radius-xl: var(--ios-radius);
    --radius-pill: var(--ios-radius);
    --glass-bg: rgba(18, 20, 24, 0.62);
    --glass-bg-strong: rgba(18, 20, 24, 0.78);
    --glass-line: rgba(255,255,255,0.12);
    --glass-shadow: 0 22px 70px rgba(0,0,0,0.26);
    --ease-ios: cubic-bezier(0.22, 1, 0.36, 1);
}
body {
    background:
        linear-gradient(180deg, rgba(103,212,255,0.05) 0, transparent 420px),
        radial-gradient(circle at 12% 12%, rgba(255,107,95,0.12), transparent 28vw),
        radial-gradient(circle at 86% 8%, rgba(103,212,255,0.10), transparent 30vw),
        #040506;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 72%);
}
body[data-theme="light"] {
    --bg-card: rgba(255,255,255,0.70);
    --bg-recessed: #f2f4f7;
    --bg-darker: #eef1f5;
    --text-primary: #17191d;
    --text-secondary: #525861;
    --text-tertiary: #767d87;
    --text-caption: #8b929b;
    --border: rgba(18,24,32,0.10);
    --border-strong: rgba(18,24,32,0.16);
    --surface: rgba(18,24,32,0.045);
    --surface-hover: rgba(18,24,32,0.07);
    --surface-active: rgba(255,107,95,0.12);
    --glass-bg: rgba(255,255,255,0.68);
    --glass-bg-strong: rgba(255,255,255,0.82);
    --glass-line: rgba(18,24,32,0.10);
    --glass-shadow: 0 22px 70px rgba(40,51,70,0.14);
    background:
        radial-gradient(circle at 14% 8%, rgba(255,107,95,0.18), transparent 28vw),
        radial-gradient(circle at 88% 4%, rgba(103,212,255,0.20), transparent 32vw),
        linear-gradient(180deg, #fbfcff 0%, #f4f6fa 58%, #eef1f6 100%);
    color: var(--text-primary);
}
body[data-theme="light"]::before {
    background-image:
        linear-gradient(rgba(18,24,32,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18,24,32,0.035) 1px, transparent 1px);
}
.navbar {
    top: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    border: 1px solid var(--glass-line);
    border-radius: var(--ios-radius);
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    transition: background .6s var(--ease-ios), border-color .6s var(--ease-ios), box-shadow .6s var(--ease-ios);
}
.nav-container { max-width: 1320px; }
.nav-logo { letter-spacing: 0.01em; }
.nav-menu a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.theme-toggle {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-line);
    border-radius: var(--ios-radius);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: transform .45s var(--ease-ios), background .45s var(--ease-ios), color .45s var(--ease-ios);
}
.theme-toggle:hover {
    transform: translateY(-1px);
    background: var(--surface-hover);
    color: var(--text-primary);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun-icon { display: none; }
body[data-theme="light"] .theme-toggle .moon-icon { display: none; }
body[data-theme="light"] .theme-toggle .sun-icon { display: block; }
.theme-toggle {
    position: relative;
    overflow: hidden;
}
.theme-toggle svg {
    display: block !important;
    transition: opacity .7s var(--ease-ios), transform .7s var(--ease-ios), color .7s var(--ease-ios);
}
.theme-toggle .sun-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(-35deg) scale(.72);
}
.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}
body[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}
body[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(35deg) scale(.72);
}
.nav-menu a.btn-primary {
    background: var(--accent);
    color: #050506;
    box-shadow: 0 10px 28px rgba(255,107,95,0.26);
}
.hero {
    min-height: 92vh;
    justify-content: stretch;
    padding: clamp(112px, 13vw, 156px) 0 clamp(36px, 6vw, 80px);
}
.hero::before {
    background:
        linear-gradient(90deg, transparent, rgba(255,107,95,0.08) 58%, transparent),
        radial-gradient(ellipse at 78% 28%, rgba(103,212,255,0.15), transparent 30%);
}
.hero-content {
    width: min(1320px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .74fr);
    align-items: center;
    gap: clamp(28px, 5vw, 76px);
    text-align: left;
}
.hero-copy { min-width: 0; }
.hero-badge {
    margin-bottom: 24px;
    background: rgba(255,255,255,0.055);
    border-color: rgba(255,255,255,0.12);
    color: #d5d5d7;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.hero-title {
    font-size: clamp(38px, 6.4vw, 82px);
    line-height: 1.08;
    letter-spacing: 0;
    max-width: 920px;
    margin-bottom: 26px;
}
.hero-title-line + .hero-title-line { margin-top: .06em; }
.text-gradient,
.hero-title-line--highlight {
    background: linear-gradient(135deg, #ff6b5f 0%, #ffb057 48%, #67d4ff 115%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    max-width: 680px;
    color: #b8b8bc;
    font-size: clamp(17px, 2vw, 22px);
    margin: 0 0 32px;
}
.hero-cta-group {
    display: none;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 34px;
}
.hero-subtitle,
.hero-proof-row {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 710px;
}
.hero-proof {
    min-height: 92px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.045);
    border-radius: var(--ios-radius);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.hero-proof strong {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1;
    color: #fff;
    letter-spacing: 0;
    margin-bottom: 8px;
}
.hero-proof span {
    color: var(--text-tertiary);
    font-size: 13px;
    line-height: 1.35;
}
.hero-visual {
    position: relative;
    min-height: clamp(520px, 62vw, 720px);
}
.hero-photo-card {
    position: absolute;
    inset: 2% 8% 10% 10%;
    border-radius: var(--ios-radius);
    overflow: hidden;
    border: 1px solid var(--glass-line);
    background: var(--glass-bg-strong);
    box-shadow: var(--glass-shadow);
}
.hero-photo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(4,5,6,0.72));
}
.hero-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(1.03) contrast(1.06);
}
.hero-score-panel {
    display: none;
}
.score-panel-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}
.score-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    margin: 10px 0 16px;
}
.score-bar span {
    display: block;
    width: 92%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent-grad);
    box-shadow: 0 0 22px rgba(255,107,95,0.42);
}
.score-panel-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
}
.score-panel-main strong {
    font-size: clamp(42px, 6vw, 68px);
    line-height: .88;
    letter-spacing: 0;
}
.score-panel-main span {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: right;
}
.hero-code-card {
    position: absolute;
    right: 0;
    bottom: 4%;
    width: min(82%, 430px);
    padding: 18px 20px;
    border: 1px solid rgba(103,212,255,0.22);
    border-radius: var(--ios-radius);
    background: rgba(6,13,17,0.78);
    backdrop-filter: blur(22px) saturate(1.2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.68;
    color: #bfeeff;
    box-shadow: var(--glass-shadow);
}
body[data-theme="light"] .hero-code-card {
    background: rgba(255,255,255,0.78);
    color: #245264;
}
.hero-code-card .muted { color: #6e8b98; }
.hero-code-card .accent { color: var(--accent); }
.hero-scroll-arrow {
    position: absolute;
    left: 50%;
    bottom: 18px;
    margin-top: 0;
    transform: translateX(-50%);
}
@keyframes heroScrollBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}
.section { padding: clamp(48px, 7vw, 80px) 0; }
.section-header {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(24px, 4vw, 40px);
}
.section-label {
    text-transform: none;
    letter-spacing: 0;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 7px 12px;
    border: 1px solid rgba(255,107,95,0.18);
    border-radius: 999px;
    background: rgba(255,107,95,0.08);
}
.section-title {
    font-size: clamp(34px, 5vw, 62px);
    letter-spacing: 0;
}
.about-card,
.economy-calc {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.018));
    border-color: var(--glass-line);
    box-shadow: var(--glass-shadow);
}
.about-grid { grid-template-columns: 1fr; }
.about-image { display: none; }
.about-image .surface {
    background: rgba(0,0,0,0.28);
    border-color: rgba(255,255,255,0.10);
    position: sticky;
    top: 108px;
}
.about-image img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    box-shadow: 0 22px 80px rgba(0,0,0,0.36);
    margin-bottom: 20px !important;
}
.feature-item,
.benefit-card,
.service-card,
.glass-card,
.surface,
.contact-link {
    border-color: rgba(255,255,255,0.09) !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.023)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.055);
    transition: transform .55s var(--ease-ios), border-color .55s var(--ease-ios), background .55s var(--ease-ios), box-shadow .55s var(--ease-ios);
}
.benefits-grid,
.services-grid {
    gap: 16px;
}
.benefit-card,
.service-card {
    min-height: 260px;
}
.benefit-card::after,
.service-card::after {
    content: '';
    position: absolute;
    inset: auto 22px 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,107,95,0.62), transparent);
    opacity: 0;
    transition: opacity .3s ease;
}
.benefit-card:hover::after,
.service-card:hover::after { opacity: 1; }
.benefit-title,
.service-title { font-size: clamp(19px, 2.4vw, 26px); letter-spacing: 0; }
.benefit-desc,
.service-desc { font-size: clamp(15px, 1.6vw, 18px); }
.calc-sliders {
    padding: clamp(18px, 4vw, 30px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--ios-radius);
    background: rgba(0,0,0,0.18);
}
.economy-breakdown {
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}
.economy-item {
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--ios-radius);
    background: rgba(255,255,255,0.035);
}
.algo-section {
    padding: clamp(22px, 4vw, 40px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--ios-radius);
    background: linear-gradient(135deg, rgba(103,212,255,0.06), rgba(255,107,95,0.04));
}
.algo-step-dot {
    border-radius: var(--ios-radius);
    background: rgba(255,107,95,0.11);
    border: 1px solid rgba(255,107,95,0.22);
}
.carousel-container {
    max-width: 680px;
    padding: clamp(8px, 1.5vw, 14px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--ios-radius);
    background: rgba(255,255,255,0.03);
    box-shadow: var(--glass-shadow);
}
.carousel-slide img {
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 20px 70px rgba(0,0,0,0.36);
}
.carousel-btn {
    border-radius: var(--ios-radius);
    min-width: 44px;
    min-height: 44px;
}
[style*="border-radius: 8px"],
[style*="border-radius: 10px"],
[style*="border-radius: 12px"],
[style*="border-radius: 14px"],
[style*="border-radius: 16px"],
[style*="border-radius: 18px"],
[style*="border-radius: 20px"],
[style*="border-radius: 22px"],
[style*="border-radius: 24px"],
[style*="border-radius: 26px"],
[style*="border-radius: 28px"],
[style*="border-radius:var(--radius-md)"],
[style*="border-radius:var(--radius-lg)"],
[style*="border-radius:var(--radius-xl)"] {
    border-radius: var(--ios-radius) !important;
}
/* ====== CHATGPT + IOS PERFORMANCE PASS ====== */
:root {
    --ios-radius: 24px;
    --glass-bg: rgba(17, 18, 22, 0.92);
    --glass-bg-strong: rgba(20, 21, 26, 0.96);
    --glass-line: rgba(255,255,255,0.095);
    --glass-shadow: 0 10px 26px rgba(0,0,0,0.24);
    --ease-ios: cubic-bezier(0.2, 0, 0, 1);
}
body {
    background:
        linear-gradient(180deg, rgba(255,107,95,0.055), transparent 360px),
        #050607;
}
body::before { display: none; }
body[data-theme="light"] {
    --glass-bg: rgba(255,255,255,0.94);
    --glass-bg-strong: rgba(255,255,255,0.98);
    --glass-line: rgba(20,24,31,0.10);
    --glass-shadow: 0 10px 26px rgba(26,36,54,0.10);
    background:
        linear-gradient(180deg, rgba(255,107,95,0.075), transparent 340px),
        #f7f8fb;
}
.navbar,
.hero-code-card,
.nav-menu.active,
.nav-menu.open {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.navbar {
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
}
.hero {
    min-height: 86vh;
    padding-top: clamp(108px, 12vw, 144px);
}
.hero::before {
    background: linear-gradient(90deg, transparent, rgba(255,107,95,0.06), transparent);
}
.hero-title {
    font-size: clamp(36px, 5.8vw, 76px);
    line-height: 1.12;
    max-width: 980px;
}
.hero-photo-card,
.hero-code-card,
.about-card,
.economy-calc,
.carousel-container,
.feature-item,
.benefit-card,
.service-card,
.glass-card,
.surface,
.contact-link {
    background: var(--glass-bg-strong) !important;
    border-color: var(--glass-line) !important;
    box-shadow: var(--glass-shadow) !important;
}
.hero-photo-card img {
    filter: none;
}
.hero-code-card {
    color: #c6edf8;
}
.surface:hover,
.contact-link:hover,
.hover-card:hover,
.benefit-card:hover,
.service-card:hover,
.feature-item:hover,
.glass-card:hover {
    transform: translateY(-1px) !important;
    box-shadow: var(--glass-shadow) !important;
}
.benefit-card::after,
.service-card::after {
    display: none;
}
.animate-fade-in,
.animate-fade-in-up,
.animate-fade-in-down {
    animation-duration: .55s;
    animation-timing-function: var(--ease-ios);
}
.btn,
.nav-menu a,
.theme-toggle,
.carousel-btn,
.feature-item,
.benefit-card,
.service-card,
.surface,
.contact-link {
    transition-duration: .22s !important;
    transition-timing-function: var(--ease-ios) !important;
}
.carousel-track {
    will-change: transform;
}
.carousel-slide img {
    box-shadow: none;
    background: var(--glass-bg-strong);
}
body.theme-switching,
body.theme-switching::before,
body.theme-switching .navbar,
body.theme-switching .hero-content,
body.theme-switching .hero-dashboard-mockup,
body.theme-switching .hero-mini-card,
body.theme-switching .hero-signal-row,
body.theme-switching .hero-graph-card,
body.theme-switching .about-card,
body.theme-switching .about-photo-caption,
body.theme-switching .economy-calc,
body.theme-switching .calc-sliders,
body.theme-switching .economy-item,
body.theme-switching .carousel-container,
body.theme-switching .auth-box,
body.theme-switching .footer,
body.theme-switching .feature-item,
body.theme-switching .benefit-card,
body.theme-switching .service-card,
body.theme-switching .surface,
body.theme-switching .glass-card,
body.theme-switching .contact-link,
body.theme-switching .btn,
body.theme-switching .nav-menu a,
body.theme-switching .theme-toggle,
body.theme-switching input,
body.theme-switching textarea,
body.theme-switching svg,
body.theme-switching path,
body.theme-switching circle,
body.theme-switching rect {
    transition-duration: .62s !important;
    transition-timing-function: var(--ease-smooth) !important;
    transition-property: background, background-color, border-color, box-shadow, color, opacity, fill, stroke, filter, -webkit-text-fill-color !important;
}
.theme-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.8s var(--ease-smooth);
    will-change: opacity;
}
@media (max-width: 768px) {
    .hero-content {
        gap: 18px;
    }
    .hero-visual {
        min-height: 390px;
    }
    .hero-code-card {
        width: 92%;
        font-size: 10px;
        line-height: 1.55;
    }
}
.contact-links {
    max-width: 820px;
    margin: 0 auto;
}
#contact .section-header { margin-bottom: 32px; }
.footer {
    background:
        radial-gradient(circle at 20% 0, rgba(255,107,95,0.10), transparent 30%),
        var(--bg-darker);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .hero-visual {
        min-height: 560px;
        max-width: 620px;
        width: 100%;
    }
    .about-grid { grid-template-columns: 1fr; gap: clamp(32px, 6vw, 48px); }
    .about-image .surface { position: static; }
    .algo-section { flex-direction: column; gap: clamp(32px, 6vw, 48px); }
    .algo-section { margin-top: clamp(40px, 6vw, 80px); }
    .economy-breakdown { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 32px); }
    .pie-chart-wrapper { margin-left: 0; margin-top: 40px; }
}
@media (max-width: 768px) {
    .section { padding: clamp(40px, 8vw, 64px) 0; }
    .container { padding: 0 clamp(12px, 4vw, 20px); }

    /* Navigation */
    .nav-menu { display: none; }
    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 101;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,0.10);
        border-radius: var(--ios-radius);
        background: rgba(255,255,255,0.045);
    }
    .menu-toggle.active .line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .menu-toggle.active .line:nth-child(2) { opacity: 0; }
    .menu-toggle.active .line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
    .mobile-lk-btn { display: inline-flex; }
    .nav-menu.active,
    .nav-menu.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 12px;
        background: rgba(4,5,6,0.98);
        backdrop-filter: blur(24px);
        padding: 78px 20px 20px;
        border: 1px solid var(--border-strong);
        border-radius: var(--ios-radius);
        gap: 8px;
        overflow-y: auto;
        z-index: 99;
    }
    .nav-menu.active a,
    .nav-menu.open a {
        font-size: var(--font-2xl);
        padding: 14px 16px;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    /* Comparison blocks stack vertically */
    #benefits > .container > div > div[style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    /* Disable clicks on carousel images */
    .carousel-slide img {
        pointer-events: none;
    }

    /* Hero */
    .hero { padding: clamp(92px, 16vw, 120px) 0 clamp(40px, 8vw, 80px); }
    .hero-badge { font-size: var(--font-xs); padding: 6px 14px; }
    .hero-subtitle { font-size: clamp(14px, 3.5vw, 20px); }
    .hero-proof-row { grid-template-columns: 1fr; }
    .hero-visual { min-height: 490px; }
    .hero-photo-card { inset: 2% 0 16% 6%; }
    .hero-code-card { width: min(80%, 300px); }
    .hero-score-panel { width: min(92%, 390px); }

    /* About */
    .about-card { padding: clamp(20px, 4vw, 40px); }
    .about-grid { gap: 24px; }
    .about-content h2 { font-size: clamp(20px, 5vw, 32px); }
    .about-content p { font-size: clamp(14px, 3.2vw, 22px); }
    .feature-item { padding: 12px 14px; }
    .feature-text h3 { font-size: var(--font-xl); }
    .feature-text p { font-size: var(--font-md); }
    .about-image { margin-top: 20px; }

    /* Benefits & Services */
    .benefits-grid, .services-grid { grid-template-columns: 1fr; gap: 12px; }
    .benefit-card, .service-card { padding: clamp(16px, 3vw, 24px) clamp(14px, 3vw, 20px); }
    .benefit-title { font-size: clamp(15px, 3.5vw, 18px); }
    .benefit-desc { font-size: clamp(13px, 3vw, 16px); }
    .service-title { font-size: clamp(15px, 3.5vw, 18px); }
    .service-desc { font-size: clamp(13px, 3vw, 16px); }

    /* Economy Calculator */
    .economy-calc { padding: clamp(20px, 4vw, 40px) clamp(14px, 3vw, 24px); }
    .economy-calc-title { font-size: clamp(20px, 5vw, 36px); }
    .economy-calc-desc { font-size: clamp(13px, 3vw, 22px); margin-bottom: clamp(20px, 4vw, 36px); }
    .calc-sliders { gap: 20px; }
    .calc-row-label { font-size: clamp(13px, 3vw, 16px); }
    .calc-row-value { font-size: clamp(13px, 3vw, 16px); }
    .economy-breakdown { grid-template-columns: 1fr 1fr; gap: 16px; }
    .economy-item-label { font-size: var(--font-xs); }
    .economy-item-value { font-size: clamp(22px, 5vw, 30px); }

    /* Algorithm Section */
    .algo-step { padding-bottom: 24px; gap: 16px; }
    .algo-step-dot { width: 36px; height: 36px; font-size: var(--font-3xl); }
    .algo-step:not(:last-child)::after { left: 18px; top: 36px; }
    .algo-step-content h3 { font-size: clamp(16px, 4vw, 24px); }
    .algo-step-content p { font-size: clamp(13px, 3vw, 16px); }

    /* Pie Chart */
    .pie-chart { width: 180px; height: 180px; }
    .pie-center-value { font-size: var(--font-6xl); }
    .pie-center-label { font-size: var(--font-sm); }
    .pie-legend { gap: 16px; }
    .pie-legend-item { font-size: var(--font-md); }

    /* Carousel */
    .carousel-btn { width: 40px; height: 40px; font-size: var(--font-3xl); }
    .carousel-slide img { max-width: 100%; }

    /* Contact Links */
    .contact-links {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .contact-links > div {
        padding: 14px 16px !important;
        gap: 12px !important;
        flex-direction: row !important;
        align-items: center !important;
    }
    .contact-links > div svg { width: 32px !important; height: 32px !important; flex-shrink: 0; }
    .contact-links > div h3 { font-size: var(--font-base) !important; }
    .contact-links > div p { font-size: var(--font-sm) !important; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-links a { font-size: var(--font-md); }

    /* Auth Modal */
    .auth-box { padding: clamp(16px, 4vw, 20px); max-height: 90vh; }
    .auth-title { font-size: clamp(18px, 5vw, 20px); }
    .auth-subtitle { font-size: clamp(12px, 3.5vw, 13px); }
    .auth-tabs { margin-bottom: clamp(16px, 4vw, 20px); padding: clamp(2px, 1vw, 4px); }
    .auth-tab { font-size: clamp(11px, 3vw, 13px); padding: clamp(6px, 2vw, 8px) clamp(10px, 3vw, 12px); }
    .auth-input { font-size: clamp(14px, 3.5vw, 16px); padding: clamp(10px, 2.5vw, 12px) clamp(10px, 3vw, 14px); }
    .auth-btn { font-size: clamp(13px, 3.5vw, 14px); padding: clamp(10px, 2.5vw, 12px); }
    .auth-hint { font-size: clamp(10px, 3vw, 12px); }
    .auth-form div[style*="background: rgba(255,99,99)"] {
        padding: clamp(8px, 2vw, 10px) clamp(10px, 3vw, 12px) !important;
    }
    .auth-form div[style*="background: rgba(255,99,99)"] div:first-child {
        font-size: clamp(9px, 2.5vw, 10px) !important;
    }
    .auth-form div[style*="background: rgba(255,99,99)"] div:last-child {
        font-size: clamp(10px, 3vw, 11px) !important;
    }
}
@media (max-width: 480px) {
    .economy-breakdown { grid-template-columns: 1fr; gap: 12px; }
    .calc-sliders { gap: 16px; }
    .pie-chart { width: 160px; height: 160px; }
    .pie-center-value { font-size: clamp(20px, 8vw, 24px); }
    .pie-legend { flex-direction: column; gap: 8px; align-items: center; }
    .carousel-btn { width: clamp(32px, 8vw, 36px); height: clamp(32px, 8vw, 36px); font-size: clamp(16px, 4vw, 18px); }
    .carousel-controls { gap: clamp(8px, 2vw, 12px); }
    .carousel-hub-link { font-size: clamp(11px, 3vw, 13px) !important; padding: clamp(6px, 2vw, 8px) clamp(12px, 3vw, 16px) !important; }
    .cert-hint a { font-size: clamp(11px, 3vw, 13px) !important; padding: clamp(6px, 2vw, 8px) clamp(12px, 3vw, 16px) !important; }
    .auth-tabs {
        flex-direction: column;
        gap: clamp(2px, 1vw, 4px);
    }
    .auth-tab {
        padding: clamp(8px, 2.5vw, 10px) clamp(10px, 3vw, 14px);
    }
    .auth-box { padding: clamp(14px, 4vw, 18px); }
    .auth-title { font-size: clamp(16px, 5vw, 18px); }
    .auth-input { font-size: clamp(16px, 4vw, 18px); padding: clamp(12px, 3vw, 14px); }
    .auth-btn { font-size: clamp(14px, 4vw, 16px); padding: clamp(10px, 3vw, 12px); }
    .auth-hint { font-size: clamp(9px, 3vw, 11px); }
}
@media (max-width: 375px) {
    .nav-menu.open a { font-size: clamp(14px, 4vw, 16px); padding: clamp(10px, 3vw, 12px) clamp(12px, 3vw, 14px); }
    .hero-badge { font-size: clamp(9px, 3vw, 10px); padding: clamp(4px, 1.5vw, 5px) clamp(10px, 3vw, 12px); }
    .section-label { font-size: clamp(9px, 3vw, 10px); }
    .benefit-icon, .service-icon { width: clamp(20px, 6vw, 24px); height: clamp(20px, 6vw, 24px); }
    .carousel-btn { width: clamp(28px, 8vw, 32px); height: clamp(28px, 8vw, 32px); font-size: clamp(14px, 4vw, 16px); }
    .auth-box { padding: clamp(12px, 4vw, 16px); }
    .auth-title { font-size: clamp(15px, 5vw, 17px); }
    .auth-input { font-size: clamp(15px, 4vw, 16px); padding: clamp(10px, 3vw, 12px); }
    .auth-btn { font-size: clamp(13px, 4vw, 15px); padding: clamp(9px, 3vw, 11px); }
}
@media (max-width: 320px) {
    .container { padding: 0 clamp(8px, 3vw, 10px); }
    .section { padding: clamp(28px, 7vw, 32px) 0; }
    .hero { padding: clamp(50px, 10vw, 60px) 0 clamp(36px, 8vw, 40px); }
    .hero-title { font-size: clamp(22px, 8vw, 26px); }
    .hero-subtitle { font-size: clamp(12px, 4.5vw, 14px); }
    .btn { padding: clamp(8px, 2.5vw, 10px) clamp(14px, 4vw, 16px); font-size: clamp(12px, 4.5vw, 14px); }
    .nav-menu.open a { font-size: clamp(13px, 5vw, 15px); padding: clamp(9px, 3vw, 12px); }
    .auth-box { padding: clamp(10px, 4vw, 14px); }
    .auth-title { font-size: clamp(14px, 6vw, 16px); }
    .auth-input { font-size: clamp(16px, 5vw, 18px); padding: clamp(10px, 3vw, 12px); }
    .auth-btn { font-size: clamp(13px, 5vw, 15px); padding: clamp(9px, 3vw, 11px); }
    .auth-hint { font-size: clamp(8px, 4vw, 10px); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after,
    .btn,
    .nav-menu a,
    .theme-toggle,
    .carousel-btn,
    .feature-item,
    .benefit-card,
    .service-card,
    .surface,
    .contact-link {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
/* ====== FINAL FINTECH / CRYPTO EXCHANGE PASS ====== */
:root {
    --ios-radius: 22px;
    --exchange-bg: #050506;
    --exchange-panel: #0d0e10;
    --exchange-panel-2: #121317;
    --exchange-line: rgba(255,255,255,0.105);
    --exchange-line-hot: rgba(255,107,95,0.34);
    --exchange-shadow: 0 8px 22px rgba(0,0,0,0.22);
    --glass-bg: var(--exchange-panel);
    --glass-bg-strong: var(--exchange-panel-2);
    --glass-line: var(--exchange-line);
    --glass-shadow: var(--exchange-shadow);
    --radius-md: var(--ios-radius);
    --radius-lg: var(--ios-radius);
    --radius-xl: var(--ios-radius);
}
body {
    background:
        linear-gradient(115deg, rgba(255,107,95,0.11) 0%, transparent 31%),
        linear-gradient(245deg, rgba(199,122,66,0.10) 0%, transparent 34%),
        var(--exchange-bg) !important;
}
body[data-theme="light"] {
    --exchange-bg: #f6f7fa;
    --exchange-panel: #ffffff;
    --exchange-panel-2: #f9fafc;
    --exchange-line: rgba(18,24,32,0.11);
    --exchange-line-hot: rgba(255,107,95,0.30);
    --exchange-shadow: 0 8px 22px rgba(20,29,45,0.09);
    background:
        linear-gradient(115deg, rgba(255,107,95,0.12) 0%, transparent 31%),
        linear-gradient(245deg, rgba(103,212,255,0.10) 0%, transparent 34%),
        var(--exchange-bg) !important;
}
.navbar,
.hero-content,
.about-card,
.economy-calc,
.carousel-container,
.auth-box,
.footer,
.feature-item,
.benefit-card,
.service-card,
.surface,
.glass-card,
.contact-link {
    background: linear-gradient(180deg, var(--exchange-panel-2), var(--exchange-panel)) !important;
    border: 1px solid var(--exchange-line) !important;
    box-shadow: var(--exchange-shadow) !important;
}
.hero-content {
    padding: clamp(22px, 4vw, 42px);
    border-radius: calc(var(--ios-radius) + 8px);
    position: relative;
}
.hero-content::after,
.section-header::after {
    content: '';
    position: absolute;
    left: clamp(20px, 4vw, 42px);
    right: clamp(20px, 4vw, 42px);
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--exchange-line-hot), transparent);
    pointer-events: none;
}
.hero-title {
    max-width: 860px;
    font-weight: 800;
}
.hero-badge,
.section-label,
.carousel-hub-link,
.cert-hint a,
.theme-toggle,
.btn {
    border-radius: 999px !important;
    background: rgba(255,255,255,0.045) !important;
    border: 1px solid var(--exchange-line) !important;
    box-shadow: none !important;
}
.btn-primary,
.auth-btn {
    background: linear-gradient(135deg, #ff6b5f, #cf591b) !important;
    color: #060202 !important;
    border-color: rgba(255,107,95,0.46) !important;
}
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #ffb057 52%, #ff6b5f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body[data-theme="light"] .text-gradient {
    background: linear-gradient(135deg, #17191d 0%, #cf591b 72%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body[data-theme="light"] .btn-primary,
body[data-theme="light"] .btn-primary:hover,
body[data-theme="light"] .auth-btn,
body[data-theme="light"] .auth-btn:hover,
body[data-theme="light"] .nav-menu a.btn-primary,
body[data-theme="light"] .nav-menu a.btn-primary:hover {
    color: #17191d !important;
}
.hero-photo-card {
    inset: 0 8% 9% 13%;
    border-radius: calc(var(--ios-radius) + 10px);
}
.hero-code-card {
    background: #07090c !important;
    border-color: var(--exchange-line-hot) !important;
    box-shadow: 0 0 0 1px rgba(255,107,95,0.08), var(--exchange-shadow) !important;
}
body[data-theme="light"] .hero-code-card { background: #ffffff !important; }
.benefit-card,
.service-card {
    min-height: 230px;
}
.benefit-title,
.service-title,
.section-title,
.algo-step-content h3,
.about-content h2,
.economy-calc-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}
* {
    text-rendering: geometricPrecision;
}
[style*="backdrop-filter"],
[style*="filter:"],
.hero-photo-card img {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
@media (max-width: 768px) {
    .hero-content {
        padding: 18px;
        border-radius: var(--ios-radius);
    }
    .hero-photo-card {
        inset: 0 0 12% 0;
    }
}

/* ====== FINAL POLISH PASS ====== */
:root {
    --accent: #ff6b35;
    --accent-hover: #ff8a3d;
    --accent-grad: linear-gradient(135deg, #ff8a3d 0%, #ff3d1f 58%, #b90f08 100%);
    --accent-muted: rgba(255, 107, 53, 0.14);
    --accent-border: rgba(255, 107, 53, 0.32);
    --bg-card: #111214;
    --bg-recessed: #08090b;
    --bg-darker: #050506;
    --border: rgba(255,255,255,0.10);
    --border-strong: rgba(255,255,255,0.16);
    --surface: rgba(255,255,255,0.045);
    --surface-hover: rgba(255,255,255,0.075);
    --surface-active: rgba(255,107,53,0.14);
    --glass-line: rgba(255,255,255,0.11);
    --glass-shadow: 0 22px 70px rgba(0,0,0,0.36);
    --ios-radius: 24px;
}
body {
    background:
        radial-gradient(circle at 76% 8%, rgba(255,122,24,0.22), transparent 28vw),
        radial-gradient(circle at 9% 0%, rgba(176,17,8,0.24), transparent 30vw),
        linear-gradient(180deg, #090607 0%, #050506 52%, #030304 100%) !important;
}
body[data-theme="light"] {
    background:
        radial-gradient(circle at 78% 7%, rgba(255,122,24,0.20), transparent 30vw),
        radial-gradient(circle at 50% 0%, rgba(255,95,87,0.08), transparent 60%),
        linear-gradient(180deg, #fbf7f3 0%, #f4f5f7 100%) !important;
}
.navbar {
    background: rgba(10, 10, 12, 0.86) !important;
    border-color: rgba(255,255,255,0.12) !important;
    box-shadow: 0 18px 48px rgba(0,0,0,0.34) !important;
}
.hero {
    min-height: 92vh;
    padding-bottom: clamp(54px, 8vw, 92px);
}
.hero-content {
    background:
        radial-gradient(circle at 76% 18%, rgba(255,107,53,0.20), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)) !important;
    border-color: rgba(255,255,255,0.13) !important;
    box-shadow: 0 26px 90px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}
.hero-title {
    max-width: 780px;
    text-wrap: balance;
}
.hero .animate-fade-in,
.hero .animate-fade-in-down {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}
.text-gradient,
.hero-title-line--highlight {
    background: linear-gradient(135deg, #ffffff 0%, #ffbc78 42%, #ff4a2e 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
.hero-visual {
    min-height: clamp(460px, 50vw, 620px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-dashboard-mockup {
    width: min(100%, 520px);
    padding: clamp(18px, 2.8vw, 26px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.070), rgba(255,255,255,0.026)),
        #090a0c;
    box-shadow: 0 24px 80px rgba(0,0,0,0.42), 0 0 0 1px rgba(255,107,53,0.08);
    position: relative;
    overflow: hidden;
}
.hero-dashboard-mockup::before {
    content: '';
    position: absolute;
    inset: -32% -18% auto 34%;
    height: 260px;
    background: radial-gradient(circle, rgba(255,107,53,0.32), transparent 62%);
    pointer-events: none;
}
.mockup-top,
.mockup-metrics,
.hero-signal-list,
.hero-graph-card {
    position: relative;
    z-index: 1;
}
.mockup-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.mockup-brand {
    font-size: 12px;
}
.mockup-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(48,209,88,0.10);
    color: #52e37b;
    font-size: 12px;
    font-weight: 700;
}
.mockup-status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 14px currentColor;
}
.mockup-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.hero-mini-card {
    min-height: 112px;
    padding: 14px 18px 14px 14px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.060), rgba(255,255,255,0.020));
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero-mini-card span {
    display: block;
    color: var(--text-tertiary);
    font-size: 12px;
    line-height: 1.25;
    margin-bottom: 12px;
}
.hero-mini-card strong {
    display: block;
    font-size: clamp(24px, 4vw, 38px);
    line-height: .95;
    color: #fff;
    letter-spacing: 0;
}
.hero-mini-card em {
    display: block;
    margin-top: 8px;
    color: #52e37b;
    font-style: normal;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.25;
}
.hero-signal-list {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}
.hero-signal-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    background: rgba(255,255,255,0.035);
}
.hero-signal-row b {
    color: #f6f6f7;
    font-size: 14px;
}
.hero-signal-row span {
    color: #ffb057;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
}
.hero-signal-row i {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255,107,53,0.13);
    color: #ff8a3d;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}
.hero-graph-card {
    padding: 16px;
    border: 1px solid rgba(255,107,53,0.22);
    border-radius: 20px;
    background: rgba(0,0,0,0.22);
}
.hero-graph-head {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
}
.hero-bars {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    align-items: end;
    gap: 8px;
    height: 118px;
}
.hero-bars span {
    display: block;
    border-radius: 999px 999px 4px 4px;
    background: linear-gradient(180deg, #ff9a3d, #e51f12);
    min-height: 20px;
    box-shadow: 0 0 24px rgba(255,83,35,0.20);
}
.about-card {
    background:
        radial-gradient(circle at 86% 8%, rgba(255,107,53,0.16), transparent 30%),
        linear-gradient(145deg, rgba(255,255,255,0.070), rgba(255,255,255,0.024)) !important;
}
.about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px) !important;
    gap: clamp(28px, 5vw, 64px) !important;
    align-items: center !important;
}
.about-image {
    display: block !important;
}
.about-portrait {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.12);
    background: #0a0b0d;
    box-shadow: 0 24px 76px rgba(0,0,0,0.36);
    aspect-ratio: 4 / 5;
}
.about-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.about-portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 58%, rgba(5,5,6,0.58));
    pointer-events: none;
}
.about-photo-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(8,9,11,0.72);
    border: 1px solid rgba(255,255,255,0.12);
}
.about-photo-caption b {
    color: #fff;
    font-size: 14px;
}
.about-photo-caption span {
    color: #ffb057;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
}
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        min-height: 420px;
        max-width: 620px;
    }
}
@media (max-width: 768px) {
    .menu-toggle {
        display: none !important;
    }
    .nav-container {
        gap: 10px;
    }
    .nav-logo {
        margin-right: auto;
    }
    .mobile-lk-btn {
        display: inline-flex !important;
    }
    .nav-menu.active,
    .nav-menu.open {
        display: none !important;
    }
    .hero {
        padding-top: 92px;
    }
    .hero-title {
        font-size: clamp(34px, 10vw, 48px);
    }
    .mockup-metrics {
        grid-template-columns: 1fr;
    }
    .hero-mini-card {
        min-height: auto;
    }
    .hero-signal-row {
        grid-template-columns: 1fr auto;
    }
    .hero-signal-row i {
        grid-column: 1 / -1;
        width: fit-content;
    }
    .about-grid {
        grid-template-columns: 1fr !important;
    }
    .about-image {
        max-width: 380px;
        width: 100%;
        margin: 0 auto !important;
    }
}

/* ====== FINAL BRAND PALETTE TUNE ====== */
:root {
    --accent: #ff5f57;
    --accent-hover: #ff7b72;
    --accent-grad: linear-gradient(135deg, #ff7b72 0%, #ff5148 56%, #c91f1a 100%);
    --accent-muted: rgba(255, 95, 87, 0.14);
    --accent-border: rgba(255, 95, 87, 0.34);
    --exchange-line-hot: rgba(255, 95, 87, 0.36);
}
body {
    background: #050506 !important;
}
.hero-content,
.about-card {
    background: rgba(255,255,255,0.03) !important;
}
.text-gradient,
.hero-title-line--highlight {
    background: linear-gradient(135deg, #ffffff 0%, #ffd0cc 38%, #ff5f57 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
.hero-dashboard-mockup::before {
    background: radial-gradient(circle, rgba(255,95,87,0.30), transparent 62%) !important;
}
.hero-signal-row span {
    color: #ffb4ae !important;
}
.about-photo-caption span {
    color: var(--accent) !important;
}
.hero-signal-row i {
    background: rgba(255,95,87,0.13) !important;
    color: #ff7b72 !important;
}
.hero-graph-card {
    border-color: rgba(255,95,87,0.24) !important;
}
.hero-bars span {
    background: linear-gradient(180deg, #ff8f88, #ff5148 55%, #c91f1a) !important;
    box-shadow: 0 0 24px rgba(255,95,87,0.22) !important;
}
.btn-primary,
.auth-btn,
.nav-menu a.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #080303 100%) !important;
    color: #ffffff !important;
    border-color: rgba(255,95,87,0.48) !important;
}
.btn-primary:hover,
.auth-btn:hover,
.nav-menu a.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent) 0%, #080303 100%) !important;
    color: #ffffff !important;
    transform: none !important;
}

/* ====== FINAL CONTENT + THEME ALIGNMENT ====== */
.about-section-heading {
    text-align: left !important;
    margin: 0 0 28px !important;
}
.about-top-label {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 28px !important;
}
.about-section-heading .section-label { display: none; }
#benefits .economy-calc .section-header {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 12px;
}
#benefits .economy-calc .section-label {
    margin-left: auto !important;
    margin-right: auto !important;
}
.hero-signal-row span:empty {
    display: none;
}
.hero-market-chart {
    position: relative;
    height: 188px;
    overflow: hidden;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.010));
}
.hero-market-chart svg {
    width: 100%;
    height: 100%;
    display: block;
}
.chart-grid path {
    stroke: rgba(255,255,255,0.060);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}
.chart-area {
    fill: url(#heroChartFill);
}
.chart-line {
    fill: none;
    stroke: url(#heroChartLine);
    stroke-width: 4;
    stroke-linecap: round;
    filter: drop-shadow(0 0 10px rgba(98,242,139,0.30));
}
.chart-axis {
    stroke: rgba(255,255,255,0.22);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}
.chart-points circle {
    fill: #0b0c0e;
    stroke: var(--accent);
    stroke-width: 4;
}
.chart-badges text {
    fill: rgba(255,255,255,0.50);
    font: 700 13px 'JetBrains Mono', monospace;
}
body[data-theme="light"] {
    --bg-card: #ffffff;
    --bg-recessed: #f4f6f8;
    --bg-darker: #eef1f5;
    --text-primary: #17191d;
    --text-secondary: #535b66;
    --text-tertiary: #7a838e;
    --text-caption: #8a929d;
    --border: rgba(20,24,31,0.11);
    --border-strong: rgba(20,24,31,0.18);
    --surface: rgba(20,24,31,0.045);
    --surface-hover: rgba(20,24,31,0.075);
    --surface-active: rgba(255,95,87,0.14);
    --glass-line: rgba(20,24,31,0.12);
    --exchange-bg: #f7f8fb;
    --exchange-panel: #ffffff;
    --exchange-panel-2: #fbfcfe;
    --exchange-line: rgba(20,24,31,0.11);
    --exchange-line-hot: rgba(255,95,87,0.34);
    --exchange-shadow: 0 18px 54px rgba(35,45,65,0.12);
    --glass-bg: rgba(255,255,255,0.92);
    --glass-bg-strong: rgba(255,255,255,0.98);
    --glass-shadow: var(--exchange-shadow);
    color: var(--text-primary) !important;
    background: #f7f8fb !important;
}
body[data-theme="light"] .navbar {
    background: rgba(255,255,255,0.88) !important;
    border-color: rgba(20,24,31,0.11) !important;
    box-shadow: 0 18px 48px rgba(35,45,65,0.10) !important;
}
body[data-theme="light"] .nav-menu a {
    color: #68717d !important;
}
body[data-theme="light"] .nav-menu a:hover,
body[data-theme="light"] .nav-menu a.active {
    color: #17191d !important;
    background: rgba(255,95,87,0.10) !important;
}
body[data-theme="light"] .hero-content,
body[data-theme="light"] .about-card,
body[data-theme="light"] .economy-calc,
body[data-theme="light"] .carousel-container,
body[data-theme="light"] .auth-box,
body[data-theme="light"] .footer,
body[data-theme="light"] .feature-item,
body[data-theme="light"] .benefit-card,
body[data-theme="light"] .service-card,
body[data-theme="light"] .surface,
body[data-theme="light"] .glass-card,
body[data-theme="light"] .contact-link {
    background: #ffffff !important;
    border-color: rgba(20,24,31,0.11) !important;
    box-shadow: 0 18px 54px rgba(35,45,65,0.12) !important;
}
body[data-theme="light"] .hero-dashboard-mockup,
body[data-theme="light"] .hero-mini-card,
body[data-theme="light"] .hero-signal-row,
body[data-theme="light"] .hero-graph-card,
body[data-theme="light"] .calc-sliders,
body[data-theme="light"] .economy-item,
body[data-theme="light"] .about-photo-caption {
    background: rgba(255,255,255,0.82) !important;
    border-color: rgba(20,24,31,0.12) !important;
    color: var(--text-primary) !important;
}
body[data-theme="light"] .hero-mini-card strong,
body[data-theme="light"] .hero-signal-row b,
body[data-theme="light"] .about-photo-caption b,
body[data-theme="light"] .section-title,
body[data-theme="light"] .benefit-title,
body[data-theme="light"] .service-title,
body[data-theme="light"] .feature-text h3 {
    color: #17191d !important;
}
body[data-theme="light"] .hero-badge,
body[data-theme="light"] .section-label,
body[data-theme="light"] .theme-toggle,
body[data-theme="light"] .btn-secondary {
    background: rgba(255,255,255,0.78) !important;
    border-color: rgba(20,24,31,0.12) !important;
    color: #535b66 !important;
}
body[data-theme="light"] .text-gradient,
body[data-theme="light"] .hero-title-line--highlight {
    background: linear-gradient(135deg, #17191d 0%, #c91f1a 76%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
body[data-theme="light"] .hero-market-chart {
    background:
        radial-gradient(circle at 82% 22%, rgba(255,95,87,0.10), transparent 34%),
        linear-gradient(180deg, rgba(20,24,31,0.035), rgba(20,24,31,0.010)) !important;
}
body[data-theme="light"] .chart-grid path {
    stroke: rgba(20,24,31,0.075);
}
body[data-theme="light"] .chart-badges text {
    fill: rgba(20,24,31,0.50);
}
body[data-theme="light"] input[type="range"] {
    background: linear-gradient(90deg, #2f3540 0%, #d85a55 54%, #ffe6e2 100%);
}
body[data-theme="light"] input[type="range"]::-moz-range-track {
    background: linear-gradient(90deg, #2f3540 0%, #d85a55 54%, #ffe6e2 100%);
}
body[data-theme="light"] #benefits {
    background: #f3f5f8 !important;
    border-color: rgba(20,24,31,0.10) !important;
}
/* Restore the September 27 card glow without changing motion. */
body .surface:hover {
    border-color: rgba(255,99,99,0.3) !important;
    box-shadow: 0 8px 32px rgba(255,99,99,0.12), 0 0 0 1px rgba(255,99,99,0.08) !important;
}
body .contact-link:hover,
body .hover-card:hover,
body .about-card:hover {
    border-color: rgba(255,99,99,0.3) !important;
    box-shadow: 0 12px 48px rgba(255,99,99,0.14), 0 0 0 1px rgba(255,99,99,0.08) !important;
}
body .benefit-card:hover,
body .service-card:hover {
    border-color: rgba(255,99,99,0.35) !important;
    box-shadow: 0 16px 56px rgba(255,99,99,0.16), 0 0 0 1px rgba(255,99,99,0.1) !important;
}
body .feature-item:hover {
    border-color: rgba(255,99,99,0.25) !important;
    box-shadow: 0 8px 32px rgba(255,99,99,0.1), 0 0 0 1px rgba(255,99,99,0.05) !important;
}
body .glass-card:hover {
    border-color: rgba(255,99,99,0.25) !important;
    box-shadow: 0 8px 32px rgba(255,99,99,0.1), 0 0 0 1px rgba(255,99,99,0.06) !important;
}
@media (min-width: 769px) {
    #certificates,
    #reviews {
        padding: 32px 0;
    }
    :is(#certificates, #reviews) .section-header {
        margin-bottom: 24px;
    }
    :is(#certificates, #reviews) .section-label {
        margin-bottom: 8px;
    }
    :is(#certificates, #reviews) .section-title {
        font-size: clamp(28px, 3vw, 36px);
        margin-bottom: 8px;
    }
    :is(#certificates, #reviews) .section-subtitle {
        font-size: 16px;
    }
    :is(#certificates, #reviews) .carousel-container {
        max-width: 600px;
    }
    :is(#certificates, #reviews) .carousel-slide img {
        /* Reserve room for the heading, controls and fixed navbar. */
        max-height: clamp(120px, calc(100svh - 450px), 520px);
    }
    :is(#certificates, #reviews) .carousel-controls {
        margin-top: 12px;
    }
    :is(#certificates, #reviews) :is(.cert-hint, .carousel-hub) {
        margin-top: 8px;
        padding: 4px;
    }
}
@media (min-width: 1025px) {
    :is(#certificates, #reviews) .carousel-slide img {
        max-height: clamp(120px, calc(100svh - 434px), 520px);
    }
}
@media (max-width: 768px) {
    .hero-market-chart {
        height: 170px;
    }
    .about-section-heading {
        text-align: left !important;
    }
    .about-section-heading .section-label {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Accessibility and consistent feedback across both existing themes. */
[hidden] { display: none !important; }
:root { --text-tertiary: #a0a0a6; --text-caption: #9999a0; }
body[data-theme="light"] {
    --accent: #b32c26;
    --accent-hover: #96231e;
    --text-tertiary: #59616c;
    --text-caption: #59616c;
    color-scheme: light;
}
body:not([data-theme="light"]) { color-scheme: dark; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
section[id], main { scroll-margin-top: 100px; }
.hero-title-line { display: block; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 10001; padding: 12px 16px; background: var(--bg-card); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
body.auth-open { overflow: hidden; }
.auth-box { max-height: calc(100dvh - 32px); overscroll-behavior: contain; }
.auth-close { width: 44px; height: 44px; }
.auth-title { padding-inline: 24px; }
.auth-input { font-size: 16px; }
.auth-tab { min-height: 44px; }
.auth-hint, .auth-subtitle { font-size: 14px; }
.auth-error { padding: 12px; color: var(--accent); background: var(--accent-muted); border: 1px solid var(--accent-border); border-radius: var(--radius-md); overflow-wrap: anywhere; }
.auth-btn:disabled { opacity: .65; cursor: wait; }
.calc-note { max-width: 640px; margin: 0 auto 24px; color: var(--text-secondary); font-size: 14px; text-align: center; }
.calc-row-header { flex-wrap: wrap; gap: 8px; }
#yearSavings, #totalSavings { font-variant-numeric: tabular-nums; }
.image-error { padding: 32px 16px; text-align: center; color: var(--text-secondary); }
#toastContainer { position: fixed; top: max(16px, env(safe-area-inset-top)); right: 16px; width: min(480px, calc(100vw - 32px)); z-index: 10002; }
.site-toast { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--accent); border-radius: var(--radius-lg); box-shadow: 0 8px 32px #0005; }
.site-toast span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.site-toast button { flex: 0 0 44px; width: 44px; height: 44px; color: inherit; background: var(--surface); border: 0; border-radius: var(--radius-md); cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in, .animate-fade-in-up, .animate-fade-in-down { opacity: 1 !important; transform: none !important; animation-delay: 0s !important; }
}
body[data-theme="light"] { --info: #16639f; }
body[data-theme="light"] .auth-tab.active { color: #fff; }
body[data-theme="light"] :is(.btn-primary, .auth-btn),
body[data-theme="light"] :is(.btn-primary, .auth-btn):hover { color: #fff !important; }
.auth-hint a { text-decoration: underline; text-underline-offset: 3px; }
/* Switch before navigation labels crowd the theme and account controls. */
@media (max-width: 1100px) {
    .nav-container { gap: 8px; }
    .nav-logo { margin-right: auto; }
    .nav-actions { flex-shrink: 0; }
    .menu-toggle { display: flex !important; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
    .nav-menu { display: none; }
    .nav-menu.active {
        display: flex !important;
        position: absolute;
        inset: calc(100% + 8px) 0 auto;
        max-height: calc(100dvh - 110px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        background: var(--exchange-panel);
        border: 1px solid var(--accent-border);
        border-radius: var(--ios-radius);
        box-shadow: 0 12px 32px #0003;
    }
    .nav-menu a { display: block; padding: 12px 16px; min-height: 44px; text-align: center; }
}
.auth-label { font-size: 14px; color: var(--text-secondary); margin-bottom: -8px; }
/* Keep white button labels readable across the whole gradient. */
.btn-primary, .auth-btn, .nav-menu a.btn-primary,
.btn-primary:hover, .auth-btn:hover, .nav-menu a.btn-primary:hover {
    background: linear-gradient(135deg, #b72f28 0%, #30100e 100%) !important;
}
body[data-theme="light"] .brand-code-logo {
    background-image: linear-gradient(135deg, #b32c26, #781b17);
}
body[data-theme="light"] .hero-signal-row :is(span, i) { color: #9d332e !important; }

/* Opaque brand colors keep the expanded navigation clear in both themes. */
@media (max-width: 1100px) {
    body .nav-menu.active a:not(.btn-primary):is(:hover, :focus-visible, .active) {
        background: var(--accent) !important;
        color: var(--exchange-bg) !important;
    }
}

/* Same outline vocabulary as the cabinet; illustrations and logos are separate. */
svg[viewBox="0 0 24 24"] { stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.site-icon { width: 24px; height: 24px; flex: 0 0 auto; vertical-align: middle; }

/* Account access: one clear form, with the existing scale-and-blur entrance. */
.auth-overlay .auth-box {
    max-width: 460px;
    padding: 32px;
    border-radius: 26px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.auth-overlay .auth-box[data-auth-view="register"] { max-width: 580px; }
.auth-overlay .auth-heading { margin-bottom: 24px; padding-right: 40px; }
.auth-overlay .auth-brand { display: block; color: var(--accent); font: 600 14px/1.4 'JetBrains Mono', monospace; margin-bottom: 12px; }
.auth-overlay .auth-title { padding: 0; margin: 0 0 8px; text-align: left; font-size: clamp(25px, 5vw, 30px); line-height: 1.2; letter-spacing: -.035em; }
.auth-overlay .auth-subtitle { margin: 0; text-align: left; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.auth-overlay .auth-close { top: 20px; right: 20px; }
.auth-overlay .auth-tabs { flex-direction: row; margin-bottom: 24px; padding: 4px; gap: 4px; }
.auth-overlay .auth-tab { min-height: 44px; font-size: 14px; padding: 10px 12px; }
.auth-overlay .auth-tab.active { color: var(--on-accent, #08090b); }
body[data-theme="light"] .auth-overlay .auth-tab.active { color: #fff; }
.auth-overlay .auth-form { gap: 20px; }
.auth-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.auth-overlay .auth-label { margin: 0; color: var(--text-primary); font-size: 14px; line-height: 1.5; font-weight: 500; }
.auth-overlay .auth-input { border-radius: 12px; padding: 12px 14px; font-size: 16px; min-height: 50px; }
.auth-overlay .auth-input[aria-invalid="true"], .auth-plan-upload:has(input[aria-invalid="true"]) { border-color: var(--accent); }
.auth-field-hint { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }
.auth-caps-lock { color: var(--accent); }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.auth-text-button { margin: -7px -4px -7px 0; padding: 8px 4px; min-height: 36px; border: 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.auth-text-button:disabled { cursor: wait; opacity: .6; }
.auth-password { position: relative; }
.auth-overlay .auth-password .auth-input { padding-right: 94px; }
.auth-password-toggle { position: absolute; right: 5px; top: 3px; bottom: 3px; min-width: 80px; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary); cursor: pointer; font: 500 12px/1.5 'Inter', sans-serif; }
.auth-password-toggle:hover { background: var(--surface-hover); color: var(--text-primary); }
.auth-password-toggle:focus-visible { outline-offset: -2px; }
.auth-register-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 16px; }
.auth-field-wide { grid-column: 1 / -1; }
.auth-register-grid > #regNameHint { margin-top: -10px; }
.auth-plan-upload { position: relative; display: flex; min-height: 84px; border: 1px dashed var(--border); border-radius: 14px; background: var(--bg-recessed); overflow: hidden; }
.auth-plan-upload:hover, .auth-plan-upload:focus-within { border-color: var(--accent); background: var(--accent-muted); }
.auth-plan-upload:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.auth-plan-upload input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 16px; }
.auth-plan-content { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; pointer-events: none; min-width: 0; }
.auth-plan-symbol { flex: 0 0 36px; display: grid; place-items: center; width: 36px; height: 42px; color: var(--accent); background: var(--accent-muted); border-radius: 8px; font: 600 10px/1 'JetBrains Mono', monospace; }
.auth-plan-description { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.auth-plan-description strong { color: var(--text-primary); font-size: 13px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.auth-plan-description > span { color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.auth-plan-action { flex: 0 0 auto; color: var(--accent); font-size: 12px; font-weight: 600; }
.auth-plan-upload.is-selected { border-style: solid; }
.auth-registration-note { margin: 0 0 -8px; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.auth-overlay .auth-btn { padding: 14px 20px; min-height: 50px; font-size: 14px; }
.auth-overlay .auth-hint { margin: -4px 0 0; font-size: 13px; line-height: 1.6; }
.auth-hint a { color: var(--accent); }
.auth-overlay .auth-error { margin: 0; padding: 14px; font-size: 13px; line-height: 1.6; }
.auth-overlay .auth-error:focus { outline-offset: 3px; }
@media (max-width: 520px) {
    .auth-overlay { padding: 12px; }
    .auth-overlay .auth-box { padding: 24px 20px; max-height: calc(100dvh - 24px); }
    .auth-overlay .auth-heading { padding-right: 28px; margin-bottom: 20px; }
    .auth-overlay .auth-close { top: 12px; right: 12px; }
    .auth-overlay .auth-brand { font-size: 12px; margin-bottom: 12px; }
    .auth-overlay .auth-title { font-size: 25px; }
    .auth-overlay .auth-subtitle { font-size: 13px; }
    .auth-register-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .auth-register-grid > #regNameHint { margin-top: -8px; }
    .auth-plan-content { gap: 10px; padding: 12px; }
    .auth-plan-action { display: none; }
}
@media (min-width: 521px) and (max-height: 920px) {
    .auth-overlay .auth-box[data-auth-view="register"] { padding: 24px 28px; }
    .auth-overlay [data-auth-view="register"] .auth-heading { margin-bottom: 20px; }
    .auth-overlay [data-auth-view="register"] .auth-brand { margin-bottom: 8px; }
    .auth-overlay [data-auth-view="register"] .auth-tabs { margin-bottom: 20px; }
    .auth-overlay [data-auth-view="register"] .auth-form { gap: 16px; }
    .auth-overlay [data-auth-view="register"] .auth-register-grid { gap: 16px; }
}
