/* Browser defaults used by the page (previously provided by Tailwind Preflight). */
*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}
html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: "Oswald", sans-serif;
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
}
body { margin: 0; line-height: inherit; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
strong { font-weight: bolder; }
button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
    text-transform: none;
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}
button, [role="button"] { cursor: pointer; }
img, svg { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }

/* ─── LIGHT MODE (default) ─── */
:root {
    --gold-primary: #c09519;
    --gold-dark: #a67c00;
    --gold-light: #d9b84a;
    --gold-pale: #f0d98a;
    --navy-primary: #161b2e;
    --navy-light: #1e2440;
    --crown-purple: #7448c6;
    --body-text: #475569;
    --page-bg: #ffffff;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.05);
    --card-border-hover: rgba(192, 149, 25, 0.5);
    --quote-bg-from: #f8f9fa;
    --quote-bg-to: #ffffff;
    --quote-border: rgba(192, 149, 25, 0.1);
    --tech-badge-bg: rgba(0, 0, 0, 0.02);
    --tech-badge-border: rgba(0, 0, 0, 0.08);
    --tech-badge-text: #161b2e;
    --body-text-muted: #475569;
    --body-text-medium: #64748b;
    --blockquote-text: #374151;
    --toggle-track-off: #d1d5db;
    --toggle-track-on: #7448c6;
    --toggle-knob: #ffffff;
    --toggle-icon-off: #6b7280;
    --toggle-icon-on: #ffffff;
}

/* ─── DARK MODE ─── */
html.dark {
    --page-bg: #0a0c14;
    --card-bg: #111827;
    --card-border: rgba(255, 255, 255, 0.06);
    --card-border-hover: rgba(192, 149, 25, 0.45);
    --quote-bg-from: #0d1117;
    --quote-bg-to: #111827;
    --quote-border: rgba(192, 149, 25, 0.12);
    --tech-badge-bg: rgba(255, 255, 255, 0.04);
    --tech-badge-border: rgba(255, 255, 255, 0.1);
    --tech-badge-text: #e2e8f0;
    --body-text: #94a3b8;
    --body-text-muted: #94a3b8;
    --body-text-medium: #64748b;
    --blockquote-text: #cbd5e1;
    --toggle-track-off: #374151;
    --navy-primary: #e2e8f0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--page-bg);
    background-image: url("https://www.transparenttextures.com/patterns/cubes.png");
    background-attachment: fixed;
    color: var(--body-text);
    font-family: "Oswald", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    transition: background-color 0.35s ease, color 0.35s ease;
}

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

a {
    color: inherit;
}

/* ─── DARK MODE OVERRIDES ─── */
html.dark body {
background-image:
    linear-gradient(rgba(10, 12, 20, 0.72), rgba(10, 12, 20, 0.72)),
    url("https://www.transparenttextures.com/patterns/cubes.png");
}

html.dark :is(.section-copy, .benefit-heading, .benefit-copy, .pillar-copy) { color: var(--body-text-muted) !important; }
html.dark .quote-text { color: var(--blockquote-text) !important; }
html.dark :is(.footer-social, .footer-legal) { color: #4b5563 !important; }
html.dark .hero-tagline { color: #6b7280 !important; }
html.dark :is(.display-heading, .pillar-title) { color: var(--navy-primary); }

/* ─── DARK MODE TOGGLE ─── */
#theme-toggle {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    padding: 6px 12px 6px 8px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
}

#theme-toggle:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 4px 18px rgba(192, 149, 25, 0.2);
}

/* The pill track */
.toggle-track {
    position: relative;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: var(--toggle-track-off);
    transition: background 0.3s ease;
    flex-shrink: 0;
}

html.dark .toggle-track {
    background: var(--crown-purple);
}

/* The knob */
.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--toggle-knob);
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

html.dark .toggle-knob {
    transform: translateX(18px);
}

/* Sun / moon icons inside knob */
.toggle-knob svg {
    width: 10px;
    height: 10px;
    color: #92400e;
    transition: opacity 0.2s ease;
}

.icon-sun  { opacity: 1; position: absolute; }
.icon-moon { opacity: 0; position: absolute; color: #a78bfa; }

html.dark .icon-sun  { opacity: 0; }
html.dark .icon-moon { opacity: 1; }

/* Label text */
.toggle-label {
    font-family: "Oswald", sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--body-text-muted);
    transition: color 0.3s ease;
    white-space: nowrap;
}

html.dark .toggle-label {
    color: #94a3b8;
}

/* ─── ANIMATIONS ─── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fade-up 0.9s ease forwards;
}

.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; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }

@keyframes fade-up {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    from { background-position: -200% center; }
    to   { background-position:  200% center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .fade-up { opacity: 1; transform: none; }
}

.g-fix {
    display: block;
    line-height: 1.16;
    padding-bottom: 0.18em;
    margin-bottom: -0.08em;
    overflow: visible;
}

.shimmer-text {
    display: inline-block;
    background: linear-gradient(
        90deg,
        var(--gold-primary) 0%,
        var(--gold-pale) 25%,
        #fff2b8 50%,
        var(--gold-pale) 75%,
        var(--gold-primary) 100%
    );
    background-size: 200% 100%;
    background-position: 0% center;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: shimmer 14s linear infinite;
}

.hero-rule {
    width: 100%;
    max-width: 500px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.crown-glow {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.crown-glow:hover {
    transform: scale(1.05) rotate(3deg);
    filter: drop-shadow(0 0 15px rgba(116, 72, 198, 0.55));
}

.glow-box {
    position: relative;
    z-index: 1;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: border-color 0.3s ease, transform 0.3s ease, background 0.35s ease;
}

.glow-box:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

.vertical-accent::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--crown-purple), transparent);
}

.pillar-card {
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease, background 0.35s ease;
}

.pillar-card:hover {
    border-color: rgba(192, 149, 25, 0.5);
    transform: translateY(-6px);
    box-shadow:
        0 20px 60px -15px rgba(192, 149, 25, 0.12),
        0 0 0 1px rgba(192, 149, 25, 0.08);
}

.pillar-numeral {
    position: absolute;
    top: -10px;
    right: 16px;
    color: rgba(0, 0, 0, 0.04);
    font-family: "Calistoga", serif;
    font-size: 7rem;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transition: color 0.4s ease;
}

html.dark .pillar-numeral {
    color: rgba(255, 255, 255, 0.03);
}

.pillar-card:hover .pillar-numeral {
    color: rgba(192, 149, 25, 0.1);
}

.pillar-accent {
    width: 3px;
    min-height: 100%;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--gold-primary), transparent);
}

.ornament {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
}

.ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192, 149, 25, 0.4));
}

.ornament-line.r {
    background: linear-gradient(270deg, transparent, rgba(192, 149, 25, 0.4));
}

.ornament-diamond {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    background: var(--gold-primary);
    transform: rotate(45deg);
}

.quote-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--quote-bg-from) 0%, var(--quote-bg-to) 100%);
    border-top: 1px solid var(--quote-border);
    border-bottom: 1px solid var(--quote-border);
    transition: background 0.35s ease;
}

.quote-wrap::before,
.quote-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.quote-wrap::before { top: 0; }
.quote-wrap::after  { bottom: 0; }

.quote-mark {
    position: absolute;
    top: -3rem;
    left: 50%;
    color: rgba(192, 149, 25, 0.08);
    font-family: "Calistoga", serif;
    font-size: 12rem;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transform: translateX(-50%);
}

.cta-btn, .interest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.cta-btn {
    position: relative;
    overflow: hidden;
    padding: 16px 36px;
    border: none;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    box-shadow: 0 4px 15px rgba(192, 149, 25, 0.3);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 149, 25, 0.4);
}

.cta-btn:active {
    transform: scale(0.98);
}

.interest-btn {
    padding: 14px 28px;
    border: 1px solid rgba(192, 149, 25, 0.4);
    color: var(--gold-dark);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
}

.interest-btn:hover {
    border-color: var(--gold-primary);
    background: rgba(192, 149, 25, 0.08);
    color: var(--gold-primary);
}

.tech-badge {
    border: 1px solid var(--tech-badge-border);
    background: var(--tech-badge-bg);
    color: var(--tech-badge-text);
    cursor: default;
    transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.tech-badge:hover {
    border-color: var(--gold-primary);
    background: rgba(192, 149, 25, 0.06);
    color: var(--gold-primary);
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover { transform: scale(1.05); }
.logo-link img { height: 32px; width: auto; }

.logo-text {
    background: linear-gradient(135deg, var(--crown-purple) 0%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* hero beta badge dark mode */
html.dark .beta-badge {
    background: rgba(116, 72, 198, 0.12);
    border-color: rgba(116, 72, 198, 0.35);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--gold-primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

html.dark ::-webkit-scrollbar-track { background: #1a1a2e; }
    /* ─── DARK MODE: GOLD → GREEN ─── */
html.dark {
    --gold-primary: #4ade80;
    --gold-dark: #22c55e;
    --gold-light: #86efac;
    --gold-pale: #bbf7d0;
}

html.dark .accent-text { color: var(--gold-primary) !important; }

html.dark .shimmer-text {
    background-image: linear-gradient(          /* ← was: background: */
90deg,
var(--gold-primary) 0%,
var(--gold-pale) 25%,
#dcfce7 50%,
var(--gold-pale) 75%,
var(--gold-primary) 100%
    );
}

html.dark .ornament-line {
    background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.4));
}
html.dark .ornament-line.r {
    background: linear-gradient(270deg, transparent, rgba(74, 222, 128, 0.4));
}

html.dark .quote-mark {
    color: rgba(74, 222, 128, 0.08);
}

html.dark .pillar-card:hover {
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow:
        0 20px 60px -15px rgba(74, 222, 128, 0.12),
        0 0 0 1px rgba(74, 222, 128, 0.08);
}

html.dark .pillar-card:hover .pillar-numeral {
    color: rgba(74, 222, 128, 0.1);
}

html.dark .cta-btn {
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

html.dark .cta-btn:hover {
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.4);
}

html.dark .interest-btn {
    border-color: rgba(74, 222, 128, 0.4);
    color: var(--gold-dark);
}

html.dark .interest-btn:hover {
    border-color: var(--gold-primary);
    background: rgba(74, 222, 128, 0.08);
    color: var(--gold-primary);
}

html.dark .tech-badge:hover {
    border-color: var(--gold-primary);
    background: rgba(74, 222, 128, 0.06);
    color: var(--gold-primary);
}

html.dark #theme-toggle:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 4px 18px rgba(74, 222, 128, 0.2);
}

/* Page layout and shared typography. Keep the original 640/768/1024px breakpoints. */
.site { display: flex; flex-direction: column; }
.site-main { flex: 1 1 0%; }
.hero, .content-section, .features-section, .quote-wrap, .site-footer {
    position: relative;
    z-index: 10;
}
.content-section, .features-section {
    margin-inline: auto;
    padding: 5rem 1.5rem;
}
.content-section { max-width: 56rem; text-align: center; }
.features-section { max-width: 72rem; }
.display-heading { font-family: "Calistoga", serif; }
.section-title { font-size: clamp(2rem, 5vw, 3.5rem); color: #161b2e; }
.section-heading { text-align: center; margin-bottom: 4rem; }
.section-eyebrow {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    /* The original translucent utility kept this gold in both themes. */
    color: rgb(192 149 25 / 0.7);
}
.section-copy, .benefit-copy {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.625;
    color: #475569;
}
.section-copy { margin-bottom: 2.5rem; }
.accent-text { color: #c09519; }
.copy-emphasis { font-style: normal; font-weight: 500; }

/* Hero. */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem 6rem;
    text-align: center;
    font-weight: 900;
}
.hero-eyebrow {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: rgb(116 72 198 / 0.8);
}
.hero-crown { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; margin-bottom: 1.25rem; }
.brand-image { width: 16rem; height: auto; margin: 0 auto 1.25rem; }
.hero-title { font-size: clamp(4rem, 14vw, 10rem); }
.hero-rule { margin-block: 2rem; }
.hero-tagline {
    margin: 2rem 0 0.75rem;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    font-variant: small-caps;
    color: #64748b;
}
.hero-subtitle { margin: 0.75rem 0 2rem; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.25; }
.action-row { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.cta-btn, .interest-btn { border-radius: 0.125rem; }
.action-icon { width: 1.25rem; height: 1.25rem; }
.beta-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0 0.5rem;
    padding: 0.625rem 2rem;
    border: 1px solid #7448c6;
    border-radius: 9999px;
    background: #fff;
}
.beta-status {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #7448c6;
    box-shadow: 0 0 10px rgba(116, 72, 198, 0.5);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse { 50% { opacity: 0.5; } }
.beta-label { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #7448c6; }
.hero-maker { margin: 2.5rem 0 0.75rem; }

/* Introduction and the six pillars. */
.intro-ornament { margin-bottom: 4rem; }
.benefits, .pillar-card { padding: 2rem; border-radius: 0.125rem; }
.benefits { text-align: left; }
.benefit-list > :not([hidden]) ~ :not([hidden]) { margin-top: 2.5rem; }
.benefit-heading { display: flex; align-items: center; gap: 0.75rem; color: #475569; }
.benefit-icon { width: 2rem; height: 2rem; }
.benefit-title { font-size: 1rem; line-height: 1.5rem; font-weight: 700; letter-spacing: 0.025em; }
.benefit-copy { margin-top: 1rem; text-align: right; }
.features-ornament { margin-top: 0.25rem; margin-bottom: 3.5rem; }
.pillar-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1.5rem; }
.pillar-content { display: flex; gap: 1rem; height: 100%; }
.pillar-title { margin-bottom: 1rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #161b2e; }
.pillar-copy { line-height: 1.625; color: #475569; }

/* Quotes and technology badges. */
.quote-wrap { margin-block: 4rem; padding: 6rem 1.5rem; }
.quote-figure { position: relative; max-width: 56rem; margin-inline: auto; text-align: center; }
.quote-text { position: relative; z-index: 10; font-size: 1.25rem; line-height: 1.625; font-style: italic; color: #334155; }
.quote-ornament { margin-top: 3rem; margin-bottom: 1.5rem; }
.quote-credit { font-size: 0.75rem; line-height: 1rem; letter-spacing: 0.3em; text-transform: uppercase; color: #7448c6; }
.tech-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.tech-badge { padding: 1rem 2rem; border-radius: 0.125rem; font-size: 0.875rem; line-height: 1.25rem; letter-spacing: 0.25em; }

/* Footer. */
.site-footer { margin-top: auto; padding: 0 1.5rem 2.5rem; }
.footer-brand { display: flex; justify-content: center; margin-bottom: 2rem; }
.contact-copy { text-align: center; max-width: 48rem; margin-inline: auto; }
.contact-actions { justify-content: center; margin-bottom: 3rem; }
.footer-social { text-align: center; margin-bottom: 0.5rem; font-size: 0.875rem; line-height: 2; font-weight: 700; letter-spacing: 0.4em; text-transform: uppercase; color: #94a3b8; }
.social-link { display: inline-block; margin-top: 0.5rem; transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.social-link:hover { opacity: 0.8; }
.social-icon { width: 3rem; height: 3rem; margin: 0 auto 1.5rem; }
.footer-legal { text-align: center; font-size: 0.75rem; line-height: 1rem; letter-spacing: 0.25em; text-transform: uppercase; color: #94a3b8; }

@media (min-width: 640px) {
    .hero-eyebrow { font-size: 1.125rem; line-height: 1.75rem; letter-spacing: 0.8em; }
    .action-row { flex-direction: row; }
}
@media (min-width: 768px) {
    .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .hero-eyebrow { letter-spacing: 1em; }
    .hero-crown { gap: 2rem; }
    .pillar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .quote-text { font-size: 1.5rem; line-height: 2rem; }
}

.site-footer .section-title { text-align: center; }
