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

:root {
    --bg: #0f0f0f;
    --bg-card: #161616;
    --text: #ffffff;
    --muted: #a0a0a0;
    --accent: #00c853;
    --link: #6eb5ff;
    --link-hover: #9eceff;
    /* Card accent colors */
    --card-green: #22c55e;
    --card-blue: #3b82f6;
    --card-purple: #a855f7;
    --card-orange: #f97316;
    --card-yellow: #eab308;
    --card-teal: #0d9488;
}

body {
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
}

/* Celestial layer: twinkling stars + pulsing dollar signs */
.celestial-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.celestial-star {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center;
    animation: celestial-twinkle-star 2.5s ease-in-out infinite;
}

.celestial-dollar {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: var(--sz);
    font-weight: 700;
    color: white;
    font-family: Inter, system-ui, sans-serif;
    transform: translate(-50%, -50%);
    transform-origin: center;
    animation: celestial-twinkle-dollar 3s ease-in-out infinite;
}

/* Stagger animation delays so they don't pulse in sync */
.celestial-star:nth-child(1) { animation-delay: 0s; }
.celestial-star:nth-child(2) { animation-delay: 0.4s; }
.celestial-star:nth-child(3) { animation-delay: 0.8s; }
.celestial-star:nth-child(4) { animation-delay: 0.2s; }
.celestial-star:nth-child(5) { animation-delay: 0.6s; }
.celestial-star:nth-child(6) { animation-delay: 1s; }
.celestial-star:nth-child(7) { animation-delay: 0.1s; }
.celestial-star:nth-child(8) { animation-delay: 0.5s; }
.celestial-star:nth-child(9) { animation-delay: 0.9s; }
.celestial-star:nth-child(10) { animation-delay: 0.3s; }
.celestial-star:nth-child(11) { animation-delay: 0.7s; }
.celestial-star:nth-child(12) { animation-delay: 1.1s; }
.celestial-star:nth-child(13) { animation-delay: 0.15s; }
.celestial-star:nth-child(14) { animation-delay: 0.55s; }
.celestial-star:nth-child(15) { animation-delay: 0.95s; }
.celestial-star:nth-child(16) { animation-delay: 0.25s; }
.celestial-star:nth-child(17) { animation-delay: 0.65s; }
.celestial-star:nth-child(18) { animation-delay: 1.05s; }
.celestial-star:nth-child(19) { animation-delay: 0.05s; }
.celestial-star:nth-child(20) { animation-delay: 0.45s; }
.celestial-star:nth-child(21) { animation-delay: 0.85s; }
.celestial-star:nth-child(22) { animation-delay: 0.35s; }
.celestial-star:nth-child(23) { animation-delay: 0.75s; }
.celestial-star:nth-child(24) { animation-delay: 1.15s; }
.celestial-star:nth-child(25) { animation-delay: 0.2s; }
.celestial-star:nth-child(26) { animation-delay: 0.6s; }
.celestial-star:nth-child(27) { animation-delay: 0.12s; }
.celestial-star:nth-child(28) { animation-delay: 0.52s; }
.celestial-dollar:nth-child(29) { animation-delay: 0s; }
.celestial-dollar:nth-child(30) { animation-delay: 0.5s; }
.celestial-dollar:nth-child(31) { animation-delay: 1s; }
.celestial-dollar:nth-child(32) { animation-delay: 0.25s; }
.celestial-dollar:nth-child(33) { animation-delay: 0.75s; }
.celestial-dollar:nth-child(34) { animation-delay: 1.25s; }
.celestial-dollar:nth-child(35) { animation-delay: 0.1s; }
.celestial-dollar:nth-child(36) { animation-delay: 0.6s; }
.celestial-dollar:nth-child(37) { animation-delay: 1.1s; }
.celestial-dollar:nth-child(38) { animation-delay: 0.35s; }
.celestial-dollar:nth-child(39) { animation-delay: 0.85s; }
.celestial-dollar:nth-child(40) { animation-delay: 0.15s; }
.celestial-dollar:nth-child(41) { animation-delay: 0.65s; }
.celestial-dollar:nth-child(42) { animation-delay: 1.15s; }

@keyframes celestial-twinkle-star {
    0%, 100% { opacity: 0.25; transform: translate(-50%, -50%) scale(0.85); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes celestial-twinkle-dollar {
    0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(0.9); }
    50% { opacity: 0.55; transform: translate(-50%, -50%) scale(1.1); }
}

/* Rainbow edge glow (matches PDF / app perimeter glow) — strengthened */
body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

/* Full perimeter rainbow: conic gradient around the frame, masked to edges only */
body::before {
    inset: -80px;
    background: conic-gradient(
        from 0deg at 50% 50%,
        rgba(255, 0, 0, 0.65),
        rgba(255, 127, 0, 0.65),
        rgba(255, 255, 0, 0.55),
        rgba(0, 255, 0, 0.55),
        rgba(0, 0, 255, 0.55),
        rgba(148, 0, 211, 0.65),
        rgba(255, 0, 0, 0.65)
    );
    mask-image: radial-gradient(
        ellipse 80% 80% at 50% 50%,
        transparent 55%,
        rgba(0, 0, 0, 0.3) 72%,
        black 85%
    );
    -webkit-mask-image: radial-gradient(
        ellipse 80% 80% at 50% 50%,
        transparent 55%,
        rgba(0, 0, 0, 0.3) 72%,
        black 85%
    );
    filter: blur(8px);
}

/* Inner fade layer for softer glow (like PDF’s multiple fade layers) */
body::after {
    inset: -50px;
    background: conic-gradient(
        from 0deg at 50% 50%,
        rgba(255, 0, 0, 0.28),
        rgba(255, 127, 0, 0.28),
        rgba(255, 255, 0, 0.22),
        rgba(0, 255, 0, 0.22),
        rgba(0, 0, 255, 0.22),
        rgba(148, 0, 211, 0.28),
        rgba(255, 0, 0, 0.28)
    );
    mask-image: radial-gradient(
        ellipse 88% 88% at 50% 50%,
        transparent 65%,
        black 92%
    );
    -webkit-mask-image: radial-gradient(
        ellipse 88% 88% at 50% 50%,
        transparent 65%,
        black 92%
    );
    filter: blur(14px);
}

/* Header */
.site-header {
    position: relative;
    z-index: 1;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.logo {
    font-family: 'Lily Script One', cursive;
    font-size: 1.75rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.02em;
    animation: logo-glow 3s ease-in-out infinite;
}

@keyframes logo-glow {
    0%, 100% {
        text-shadow:
            0 0 8px #ff0000,
            0 0 16px #ff0000,
            0 0 24px #ff7f00,
            0 0 32px #ff7f00,
            0 0 40px #ffff00,
            0 0 48px #00ff00,
            0 0 56px #0000ff,
            0 0 64px #4b0082,
            0 0 72px #9400d3;
    }
    25% {
        text-shadow:
            0 0 8px #ff7f00,
            0 0 16px #ffff00,
            0 0 24px #00ff00,
            0 0 32px #0000ff,
            0 0 40px #4b0082,
            0 0 48px #9400d3,
            0 0 56px #ff0000,
            0 0 64px #ff7f00,
            0 0 72px #ffff00;
    }
    50% {
        text-shadow:
            0 0 8px #00ff00,
            0 0 16px #0000ff,
            0 0 24px #4b0082,
            0 0 32px #9400d3,
            0 0 40px #ff0000,
            0 0 48px #ff7f00,
            0 0 56px #ffff00,
            0 0 64px #00ff00,
            0 0 72px #0000ff;
    }
    75% {
        text-shadow:
            0 0 8px #4b0082,
            0 0 16px #9400d3,
            0 0 24px #ff0000,
            0 0 32px #ff7f00,
            0 0 40px #ffff00,
            0 0 48px #00ff00,
            0 0 56px #0000ff,
            0 0 64px #4b0082,
            0 0 72px #9400d3;
    }
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
}

.nav a:hover {
    color: var(--text);
}

/* Main content */
.main {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Section label (e.g. OUR MISSION, TRY SAYING) */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

/* Glowing logo in hero (same style as former header logo) */
.hero-logo {
    font-size: 1em;
    display: inline;
}

.hero-subtitle {
    color: var(--muted);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* Mission */
.mission {
    text-align: center;
    margin-bottom: 2.5rem;
}

.mission-statement {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--text);
    max-width: 560px;
    margin: 0 auto 1rem;
    line-height: 1.5;
}

.mission-tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--card-green);
    color: var(--card-green);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
}

/* Feature cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 3px solid;
}

.card-green { border-left-color: var(--card-green); }
.card-blue { border-left-color: var(--card-blue); }
.card-purple { border-left-color: var(--card-purple); }
.card-orange { border-left-color: var(--card-orange); }
.card-yellow { border-left-color: var(--card-yellow); }
.card-teal { border-left-color: var(--card-teal); }

.card-icon {
    display: block;
    margin-bottom: 0.5rem;
    color: inherit;
}

.card-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    display: block;
}

.card-green .card-icon { color: var(--card-green); }
.card-blue .card-icon { color: var(--card-blue); }
.card-purple .card-icon { color: var(--card-purple); }
.card-orange .card-icon { color: var(--card-orange); }
.card-yellow .card-icon { color: var(--card-yellow); }
.card-teal .card-icon { color: var(--card-teal); }

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.card p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.45;
}

/* Graph section */
.graph-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

@media (max-width: 640px) {
    .graph-section {
        grid-template-columns: 1fr;
    }
}

.graph-visual {
    min-height: 180px;
}

.graph-card {
    background: #0d0d12;
    border-radius: 14px;
    padding: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.12);
    overflow: hidden;
}

.graph-svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
}

.graph-bg-dollar {
    font-weight: 700;
}

.graph-baseline {
    stroke: #ef4444;
    stroke-width: 1;
    stroke-dasharray: 4 3;
}

.graph-zero {
    fill: #ef4444;
    font-size: 11px;
    font-weight: 600;
    font-family: Inter, sans-serif;
}

.graph-today-line {
    stroke: rgba(160, 160, 160, 0.7);
    stroke-width: 1;
    stroke-dasharray: 3 4;
}

.graph-today-label {
    fill: #a0a0a0;
    font-size: 9px;
    font-weight: 500;
    font-family: Inter, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.graph-axis-label {
    fill: rgba(255, 255, 255, 0.85);
    font-size: 10px;
    font-family: Inter, sans-serif;
}

.graph-series {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 6 4;
}

.graph-net-line {
    stroke: #f97316;
}

.graph-cash-line {
    stroke: #a855f7;
    stroke-dasharray: 5 5;
}

.graph-pt {
    stroke: none;
}

.graph-pt-net {
    fill: #f97316;
}

.graph-pt-cash {
    fill: #a855f7;
}

.graph-legend {
    font-size: 10px;
    font-weight: 600;
    font-family: Inter, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.graph-legend-net {
    fill: #f97316;
}

.graph-legend-cash {
    fill: #a855f7;
}

.graph-copy h2 {
    margin-bottom: 0.5rem;
}

.graph-copy p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

/* Try saying */
.try-saying {
    margin-bottom: 2.5rem;
}

.phrase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.phrase-grid span {
    font-size: 0.9rem;
    color: var(--text);
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* CTA */
.cta-section {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-headline {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-note {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: 1px solid var(--muted);
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s, color 0.2s;
}

.btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.disclaimer {
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.5;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer a {
    color: var(--link);
}

.disclaimer a:hover {
    color: var(--link-hover);
}

a {
    color: var(--link);
}

a:hover {
    color: var(--link-hover);
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 1.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
}

.site-footer p {
    margin-bottom: 0.35rem;
}

.site-footer a {
    color: var(--muted);
}

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

/* ─── Legal pages (privacy, terms, about, contact) ───────────────────── */
.page-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.legal-content h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.6rem;
    color: var(--text);
}

.legal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.2rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
    margin-bottom: 0.6rem;
}

.legal-content ul {
    margin-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.legal-content strong {
    color: var(--text);
}

.contact-list {
    list-style: none;
    margin-left: 0;
}

.contact-list li {
    margin-bottom: 0.75rem;
}

.contact-list a {
    color: var(--link);
}

.last-updated {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
