html[data-theme="light"] {
    --bg: #f4f6fb;
    --bg-elevated: #ffffff;
    --surface: rgba(255, 255, 255, 0.92);
    --text: #12121a;
    --muted: #5c5c70;
    --line: rgba(0, 0, 0, 0.09);
    --accent: #4f6ef7;
    --accent-2: #059669;
    --accent-3: #9333ea;
    --glow: rgba(79, 110, 247, 0.22);
    --header-bg: rgba(255, 255, 255, 0.82);
    --input-bg: rgba(0, 0, 0, 0.03);
    --orb-a: rgba(79, 110, 247, 0.12);
    --orb-b: rgba(5, 150, 105, 0.08);
    --orb-c: rgba(147, 51, 234, 0.06);
    --grid-line: rgba(0, 0, 0, 0.04);
    --editor-bg: rgba(255, 255, 255, 0.96);
    --editor-border: rgba(0, 0, 0, 0.1);
    --pill-bg: rgba(0, 0, 0, 0.04);
    --shadow: rgba(0, 0, 0, 0.12);
}

:root {
    --header-bg: rgba(5, 5, 8, 0.7);
    --input-bg: rgba(255, 255, 255, 0.04);
    --orb-a: rgba(109, 143, 255, 0.18);
    --orb-b: rgba(52, 211, 153, 0.1);
    --orb-c: rgba(192, 132, 252, 0.08);
    --grid-line: rgba(255, 255, 255, 0.025);
    --editor-bg: rgba(10, 10, 16, 0.92);
    --editor-border: rgba(255, 255, 255, 0.1);
    --pill-bg: rgba(255, 255, 255, 0.04);
    --shadow: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .site-header-bar {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow:
        0 0 0 1px rgba(79, 110, 247, 0.06),
        0 12px 36px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .site-header-bar::before {
    opacity: 0.45;
}

html[data-theme="light"] .nav-pills {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .nav-pill.is-active {
    background: linear-gradient(135deg, rgba(79, 110, 247, 0.14), rgba(79, 110, 247, 0.06));
    box-shadow: 0 0 20px rgba(79, 110, 247, 0.12);
}

html[data-theme="light"] .nav-mobile-panel {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .nav-mobile {
    background: rgba(244, 246, 251, 0.6);
}

.ambient-orb.a { background: var(--orb-a); }
.ambient-orb.b { background: var(--orb-b); }
.ambient-orb.c { background: var(--orb-c); }

html[data-theme="light"] body {
    background:
        radial-gradient(ellipse 100% 60% at 50% -10%, rgba(79, 110, 247, 0.08), transparent 55%),
        var(--bg);
}

html[data-theme="light"] .ambient-mesh {
    background:
        radial-gradient(ellipse 45% 35% at 25% 25%, rgba(79, 110, 247, 0.14), transparent 70%),
        radial-gradient(ellipse 40% 30% at 75% 15%, rgba(147, 51, 234, 0.1), transparent 65%),
        radial-gradient(ellipse 35% 40% at 85% 65%, rgba(5, 150, 105, 0.08), transparent 60%),
        radial-gradient(ellipse 50% 35% at 10% 75%, rgba(79, 110, 247, 0.06), transparent 65%);
}

html[data-theme="light"] .ambient-aurora {
    background: conic-gradient(
        from 200deg at 50% 40%,
        transparent 0deg,
        rgba(79, 110, 247, 0.05) 60deg,
        rgba(147, 51, 234, 0.07) 120deg,
        rgba(5, 150, 105, 0.04) 200deg,
        rgba(79, 110, 247, 0.03) 280deg,
        transparent 360deg
    );
}

html[data-theme="light"] .ambient-vignette {
    background: radial-gradient(ellipse 75% 65% at 50% 38%, transparent 30%, rgba(244, 246, 251, 0.7) 100%);
}

.field input,
.field textarea,
.field select,
.calendar-nav button,
.slot-btn,
.cal-day:hover:not(:disabled) {
    background: var(--input-bg);
}

html[data-theme="light"] .site-header .header-cta.button {
    border-radius: 9999px;
}

html[data-theme="light"] .button-primary {
    box-shadow: 0 0 20px var(--glow), 0 4px 14px var(--shadow);
}

html[data-theme="light"] .button-ghost {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text);
    border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .button-ghost:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .home-hero-intro,
html[data-theme="light"] .home-hero-cta {
    text-shadow: none;
}

html[data-theme="light"] .hero-prefix {
    color: var(--text);
    text-shadow: none;
}

html[data-theme="light"] .home-hero-tagline {
    color: var(--muted);
}

html[data-theme="light"] .home-hero-lead {
    color: var(--muted);
}

html[data-theme="light"] .hero-scroll-word {
    background: linear-gradient(105deg, #12121a 0%, var(--accent) 42%, var(--accent-2) 88%);
    -webkit-background-clip: text;
    background-clip: text;
}

html[data-theme="light"] .hero-scroll-word:nth-child(2) {
    background: linear-gradient(105deg, #12121a 0%, var(--accent-2) 48%, #047857 92%);
    -webkit-background-clip: text;
    background-clip: text;
}

html[data-theme="light"] .hero-scroll-word:nth-child(3) {
    background: linear-gradient(105deg, #12121a 0%, var(--accent-3) 42%, var(--accent) 90%);
    -webkit-background-clip: text;
    background-clip: text;
}

html[data-theme="light"] .hero-scroll-word:nth-child(4) {
    background: linear-gradient(105deg, #92400e 0%, #ea580c 38%, var(--accent-3) 88%);
    -webkit-background-clip: text;
    background-clip: text;
}

html[data-theme="light"] .home-hero-actions .button-ghost {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(0, 0, 0, 0.14);
    color: var(--text);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .home-hero-actions .button-ghost:hover {
    background: #fff;
    border-color: rgba(79, 110, 247, 0.35);
}

html[data-theme="light"] .page-hero-bg .page-head {
    text-shadow: none;
}

html[data-theme="light"] .page-hero-bg .page-head p {
    color: var(--muted);
}

html[data-theme="light"] .cal-day.selected,
html[data-theme="light"] .slot-btn.selected {
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.nav-dropdown {
    position: relative;
    z-index: 200;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"] {
    color: var(--text);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 230px;
    padding: 0.85rem 0.4rem 0.4rem;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s, visibility 0.15s;
    z-index: 210;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown-link {
    position: relative;
    z-index: 1;
    display: block;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--muted);
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active {
    background: rgba(109, 143, 255, 0.1);
    color: var(--text);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--input-bg);
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--text);
    border-color: rgba(109, 143, 255, 0.35);
}

.theme-icon {
    display: none;
}

html:not([data-theme="light"]) .theme-icon-moon,
html[data-theme="light"] .theme-icon-sun {
    display: block;
}

html[data-theme="light"] .hero-panel-window {
    background: var(--editor-bg, rgba(255, 255, 255, 0.95));
    border-color: var(--editor-border, rgba(0, 0, 0, 0.08));
    box-shadow:
        0 0 0 1px rgba(79, 110, 247, 0.06),
        0 20px 50px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .home-hero-eyebrow {
    background: rgba(79, 110, 247, 0.08);
    border-color: rgba(79, 110, 247, 0.18);
}

html[data-theme="light"] .hero-media-vignette {
    mix-blend-mode: normal;
    opacity: 1;
    background:
        radial-gradient(ellipse 90% 80% at 50% 45%, transparent 35%, rgba(244, 246, 251, 0.4) 100%),
        radial-gradient(ellipse 120% 100% at 50% 100%, rgba(244, 246, 251, 0.5), transparent 55%);
}

html[data-theme="light"] .hero-media-grain {
    opacity: 0.02;
}

html[data-theme="light"] .hero-media-progress-dot {
    background: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .hero-media-progress-dot.is-active {
    background: rgba(0, 0, 0, 0.14);
}

html[data-theme="light"] .hero-media-progress-fill {
    background: linear-gradient(90deg, rgba(79, 110, 247, 0.7), rgba(79, 110, 247, 0.95));
    box-shadow: 0 0 8px rgba(79, 110, 247, 0.3);
}

html[data-theme="light"] .hero-visual-aura {
    opacity: 0.45;
}

html[data-theme="light"] .home-hero-spotlight {
    opacity: 0.5;
}

html[data-theme="light"] .hero-glow {
    background: radial-gradient(circle, rgba(79, 110, 247, 0.1), transparent 70%);
}

html[data-theme="light"] .eyebrow {
    background: rgba(79, 110, 247, 0.08);
    border-color: rgba(79, 110, 247, 0.18);
}

html[data-theme="light"] .pill {
    background: var(--pill-bg);
    border-color: var(--line);
}

html[data-theme="light"] .editor {
    background: var(--editor-bg);
    border-color: var(--editor-border);
    box-shadow:
        0 0 0 1px rgba(79, 110, 247, 0.06),
        0 20px 50px var(--shadow),
        0 0 40px rgba(79, 110, 247, 0.05);
}

html[data-theme="light"] .editor-bar {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--line);
}

html[data-theme="light"] .editor-tab.active {
    background: rgba(79, 110, 247, 0.1);
    color: var(--accent);
}

html[data-theme="light"] .code-pane {
    background: rgba(0, 0, 0, 0.02);
}

html[data-theme="light"] .card {
    background: var(--surface);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .card:hover {
    border-color: rgba(79, 110, 247, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .cta-wrap {
    background: linear-gradient(135deg, rgba(79, 110, 247, 0.08), rgba(5, 150, 105, 0.06));
    border-color: rgba(79, 110, 247, 0.15);
}

html[data-theme="light"] .step-ring {
    background: rgba(79, 110, 247, 0.08);
    border-color: rgba(79, 110, 247, 0.2);
    color: var(--accent);
}

html[data-theme="light"] .editor-wrap .editor-float {
    background: rgba(79, 110, 247, 0.08);
    border-color: rgba(79, 110, 247, 0.18);
}

html[data-theme="light"] .service-icon {
    background: rgba(79, 110, 247, 0.08);
}

html[data-theme="light"] .bento-featured {
    background: linear-gradient(135deg, rgba(79, 110, 247, 0.06), rgba(5, 150, 105, 0.04));
}
