@charset "utf-8";

/* =====================================================================
   Cogninest — shared marketing site styles
   Brand: gold (#FCC302) + dark gold (#b88505) on near-black (#0d0d0d/#1a1a1a)
   Display font: Space Grotesk   Body font: Inter
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --gold:            #FCC302;
    --gold-deep:       #b88505;
    --gold-soft:       rgba(252, 195, 2, 0.12);
    --ink:             #0d0d0d;
    --ink-2:           #141414;
    --ink-3:           #1a1a1a;
    --ink-warm:        #14120c;
    --line:            rgba(252, 195, 2, 0.16);
    --line-soft:       rgba(255, 255, 255, 0.06);
    --text:            rgba(255, 255, 255, 0.92);
    --text-dim:        rgba(255, 255, 255, 0.62);
    --text-faint:      rgba(255, 255, 255, 0.42);
    --heading:         #ffffff;
    --panel:           rgba(255, 255, 255, 0.04);
    --panel-2:         rgba(255, 255, 255, 0.06);
    --nav-bg:          rgba(13, 13, 13, 0.55);
    --nav-bg-strong:   rgba(10, 10, 10, 0.92);
    --chip-bg:         rgba(22, 20, 13, 0.78);
    --footer-bg:       #0a0a0a;
    --thumb-a:         #1c1a14;
    --thumb-b:         #0f0f0f;
    --radius:          18px;
    --maxw:            1180px;
    --shadow:          0 20px 60px rgba(0, 0, 0, 0.5);
    --glow:            0 0 40px rgba(252, 195, 2, 0.28);
    --display:         'Space Grotesk', 'Inter', sans-serif;
    --body:            'Inter', 'Segoe UI', sans-serif;
}

/* ── Light theme (toggled via data-theme on <html>) ──
   Warm paper tones so the gold brand still feels at home.
   Gold is deepened for text/accents to stay readable on light. */
[data-theme="light"] {
    --gold:            #9b7a00;
    --gold-deep:       #7c6200;
    --gold-soft:       rgba(155, 122, 0, 0.10);
    --ink:             #faf7ee;
    --ink-2:           #f5f1e4;
    --ink-3:           #efe9d9;
    --ink-warm:        #f3edda;
    --line:            rgba(122, 96, 0, 0.25);
    --line-soft:       rgba(60, 48, 10, 0.10);
    --text:            rgba(26, 22, 12, 0.92);
    --text-dim:        rgba(26, 22, 12, 0.66);
    --text-faint:      rgba(26, 22, 12, 0.46);
    --heading:         #191410;
    --panel:           rgba(160, 125, 10, 0.05);
    --panel-2:         rgba(160, 125, 10, 0.09);
    --nav-bg:          rgba(250, 247, 238, 0.65);
    --nav-bg-strong:   rgba(250, 247, 238, 0.95);
    --chip-bg:         rgba(255, 253, 245, 0.88);
    --footer-bg:       #f2edde;
    --thumb-a:         #f0e8cf;
    --thumb-b:         #f8f4e8;
    --shadow:          0 20px 60px rgba(95, 75, 10, 0.14);
    --glow:            0 0 40px rgba(200, 160, 10, 0.22);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--ink);
    color: var(--text);
    font-family: var(--body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background .35s ease, color .35s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Selection ── */
::selection { background: rgba(252, 195, 2, 0.3); color: #fff; }

/* ── Layout helpers ── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 72px 0; }

.eyebrow {
    display: inline-block;
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -0.5px; }

.section-title { font-size: clamp(30px, 4.4vw, 50px); margin-bottom: 18px; }
.section-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-dim); max-width: 620px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

.gold-text {
    background: linear-gradient(120deg, #ffe07a, var(--gold) 40%, var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    padding: 14px 30px;
    border-radius: 40px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
    white-space: nowrap;
}
.btn--primary {
    background: linear-gradient(135deg, #ffd23d, #FCC302 50%, #b88505);
    color: #1a1a1a;
    box-shadow: 0 8px 26px rgba(252, 195, 2, 0.32);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(252, 195, 2, 0.45); }
.btn--ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--line);
    color: var(--text);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn--lg { padding: 17px 38px; font-size: 16px; }

/* =====================================================================
   Navbar
   ===================================================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, padding .3s ease;
}
.nav.scrolled {
    background: var(--nav-bg-strong);
    border-bottom-color: var(--line);
    padding: 11px 24px;
}
.nav__inner {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 40px; width: auto; filter: drop-shadow(0 0 14px rgba(252,195,2,0.25)); }
.brand__name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.5px;
    color: var(--heading);
}
.brand__name span { color: var(--gold); }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-dim);
    padding: 9px 15px;
    border-radius: 30px;
    transition: color .2s ease, background .2s ease;
}
.nav__links a:hover { color: var(--gold); }
.nav__links a.active { color: var(--gold); }
.nav__cta { margin-left: 10px; }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
@media (max-width: 480px) {
    #custom-row { flex-wrap: wrap; }
}

.beta-chip {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 999px;
    vertical-align: middle;
    text-transform: uppercase;
    background: var(--gold-soft);
    white-space: nowrap;
}

/* Compact nav on phones — everything shrinks so brand + controls
   fit side by side without overlapping */
@media (max-width: 600px) {
    .nav { padding: 12px 14px; }
    .nav.scrolled { padding: 9px 14px; }
    .brand { gap: 8px; flex-shrink: 0; }
    .brand img { height: 30px; }
    .brand__name { font-size: 15px; }
    .beta-chip { font-size: 0.5rem; padding: 1px 6px; margin-left: 5px; }
    .nav__right { gap: 6px; }
    .theme-btn { width: 36px; height: 36px; }
}

/* Very narrow phones (e.g. iPhone SE): drop the chip, tighten the rest */
@media (max-width: 390px) {
    .beta-chip { display: none; }
    .lang-select { max-width: 74px; padding: 8px 22px 8px 10px; font-size: 11px; }
}

.nav__toggle span { width: 24px; height: 2px; background: var(--gold); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav__toggle { display: flex; }
    .nav__links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: var(--nav-bg-strong);
        border-bottom: 1px solid var(--line);
        padding: 14px 18px 22px;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform .28s ease, opacity .28s ease;
    }
    .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav__links a { padding: 13px 14px; }
    .nav__cta { margin: 8px 0 0; }
    .nav__cta .btn { width: 100%; }
}

/* =====================================================================
   Reveal-on-scroll
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

/* =====================================================================
   Hero — mascot spotlight 3D
   ===================================================================== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 150px 0 90px;
    background:
        radial-gradient(1100px 620px at 78% 18%, rgba(252,195,2,0.10), transparent 60%),
        radial-gradient(800px 500px at 8% 92%, rgba(184,133,5,0.10), transparent 60%),
        linear-gradient(180deg, var(--ink), var(--ink-warm) 55%, var(--ink));
}
/* soft gold aura that follows the cursor (JS sets --mx / --my) */
.hero__aura {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(640px 640px at var(--mx, 72%) var(--my, 42%), rgba(252,195,2,0.07), transparent 60%);
    pointer-events: none;
}
/* brand wireframe horizon along the bottom */
.hero__horizon {
    position: absolute;
    left: -5%; right: -5%; bottom: -12%;
    height: 58%;
    z-index: 0;
    background-image: url('Yellow wireframe landscape with black mesh.png');
    background-size: cover;
    background-position: center top;
    opacity: 0.12;
    mix-blend-mode: screen;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%);
    mask-image: linear-gradient(180deg, transparent, #000 45%);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero__copy { text-align: left; }

/* ── 3D scene ── */
.hero__scene {
    position: relative;
    height: min(560px, 62vh);
    perspective: 1100px;
    transform-style: preserve-3d;
    will-change: transform;
}
.scene__spot {
    position: absolute;
    inset: 10% 6%;
    background: radial-gradient(closest-side, rgba(252,195,2,0.15), transparent 72%);
    filter: blur(8px);
}
.scene__ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.scene__ring--1 {
    inset: 10% 9%;
    border: 1px dashed rgba(252,195,2,0.30);
    animation: ringSpin 30s linear infinite;
}
.scene__ring--2 {
    inset: 1% -1%;
    border: 1px solid rgba(252,195,2,0.12);
    animation: ringSpin 46s linear infinite reverse;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

.scene__botwrap {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    will-change: transform;
}
.scene__bot {
    width: min(330px, 58%);
    filter: drop-shadow(0 40px 60px rgba(0,0,0,0.55)) drop-shadow(0 0 46px rgba(252,195,2,0.30));
    animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-18px) rotate(1deg); } }

/* floating question / answer bubbles + exam snippets */
.scene__chip, .scene__tag {
    position: absolute;
    font-family: var(--display);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    padding: 11px 17px;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: var(--chip-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 16px 38px rgba(0,0,0,0.45);
    white-space: nowrap;
    color: var(--text);
    will-change: transform;
    z-index: 2;
}
.scene__chip--q {
    top: 7%; left: -3%;
    border-color: rgba(252,195,2,0.45);
    border-bottom-left-radius: 4px;
}
.scene__chip--a {
    bottom: 12%; left: 1%;
    width: 232px;
    white-space: normal;
    font-size: 13px;
    color: var(--gold);
    background: rgba(252,195,2,0.10);
    border-color: rgba(252,195,2,0.35);
    border-top-left-radius: 4px;
}
.scene__tag--eq { top: 24%; right: -3%; color: var(--gold); font-size: 12.5px; }
.scene__tag--quote { bottom: 27%; right: -5%; font-style: italic; font-weight: 500; }
.scene__tag--grade {
    top: -2%; right: 20%;
    border: 0;
    background: linear-gradient(135deg, #FCC302, #b88505);
    color: #1a1a1a;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(252,195,2,0.35);
}

/* twinkling sparks */
.scene__spark {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold);
    animation: twinkle 3.2s ease-in-out infinite;
    z-index: 1;
}
.scene__spark--1 { top: 16%; left: 22%; }
.scene__spark--2 { top: 58%; right: 12%; animation-delay: .9s; }
.scene__spark--3 { bottom: 8%; left: 34%; width: 4px; height: 4px; animation-delay: 1.7s; }
.scene__spark--4 { top: 38%; left: 6%; width: 4px; height: 4px; animation-delay: 2.4s; }
@keyframes twinkle { 0%,100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }

@media (max-width: 920px) {
    .hero { padding: 130px 0 80px; min-height: auto; }
    .hero__inner { grid-template-columns: 1fr; gap: 26px; }
    .hero__copy { text-align: center; }
    .hero__cta { justify-content: center; }
    .hero__sub { margin-left: auto; margin-right: auto; }
    .hero__scene { height: 400px; max-width: 480px; margin: 0 auto; width: 100%; }
    .scene__chip, .scene__tag { font-size: 12px; }
    .scene__chip--a { width: 190px; }
    .scene__tag--quote { display: none; }
    .hero__scrollhint { display: none; }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--display);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(252,195,2,0.08);
    border: 1px solid var(--line);
    padding: 8px 16px;
    border-radius: 40px;
    margin-bottom: 26px;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulseDot 1.6s infinite; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 {
    font-size: clamp(40px, 5.6vw, 74px);
    line-height: 1.02;
    margin-bottom: 22px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.hero__sub {
    font-size: clamp(16px, 2.1vw, 20px);
    color: var(--text);
    opacity: .85;
    max-width: 540px;
    margin: 0 0 34px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-banner .hero__cta { justify-content: center; }

.hero__scrollhint {
    position: absolute;
    bottom: 26px; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-faint);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.hero__scrollhint .mouse {
    width: 22px; height: 34px;
    border: 2px solid var(--text-faint);
    border-radius: 14px;
    position: relative;
}
.hero__scrollhint .mouse::before {
    content: "";
    position: absolute;
    top: 6px; left: 50%;
    width: 3px; height: 7px;
    background: var(--gold);
    border-radius: 3px;
    transform: translateX(-50%);
    animation: scrollWheel 1.6s infinite;
}
@keyframes scrollWheel { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* =====================================================================
   Marquee / stat strip
   ===================================================================== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    padding: 36px 28px;
}
.stat { text-align: center; }
.stat__num { font-family: var(--display); font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: var(--gold); }
.stat__label { font-size: 13.5px; color: var(--text-dim); margin-top: 4px; letter-spacing: .3px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 30px; } }

/* =====================================================================
   Feature cards
   ===================================================================== */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

.card {
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    position: relative;
    overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: rgba(252,195,2,0.4); box-shadow: 0 18px 50px rgba(0,0,0,0.4); }
.card__icon {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: rgba(252,195,2,0.1);
    border: 1px solid var(--line);
    font-size: 26px;
    margin-bottom: 18px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15px; }

/* =====================================================================
   Split / showcase
   ===================================================================== */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split--rev .split__media { order: 2; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 34px; } .split--rev .split__media { order: 0; } }
.split__media {
    position: relative;
    border-radius: 22px;
    padding: 40px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(252,195,2,0.14), transparent 70%),
        linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line);
    min-height: 320px;
}
.split__media img { filter: drop-shadow(0 24px 40px rgba(0,0,0,0.5)); }
.split h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 16px; }
.split p { color: var(--text-dim); margin-bottom: 14px; }

.checklist { list-style: none; display: flex; flex-direction: column; gap: 13px; margin: 22px 0 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--text); }
.checklist li::before {
    content: "✓";
    flex-shrink: 0;
    width: 24px; height: 24px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(252,195,2,0.14);
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    margin-top: 1px;
}

/* =====================================================================
   Steps
   ===================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 32px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.step__num {
    font-family: var(--display);
    font-size: 15px; font-weight: 700;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #FCC302, #b88505);
    color: #1a1a1a;
    margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 14.5px; }

/* =====================================================================
   CTA banner
   ===================================================================== */
.cta-banner {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    text-align: center;
    padding: 72px 32px;
    background:
        radial-gradient(700px 360px at 50% 0%, rgba(252,195,2,0.22), transparent 70%),
        linear-gradient(180deg, var(--ink-warm), var(--ink));
    border: 1px solid var(--line);
}
.cta-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('Yellow wireframe landscape with black mesh.png');
    background-size: cover; background-position: center;
    opacity: 0.06;
    pointer-events: none;
}
.cta-banner h2 { font-size: clamp(28px, 4.4vw, 46px); margin-bottom: 16px; position: relative; }
.cta-banner p { color: var(--text-dim); max-width: 560px; margin: 0 auto 30px; position: relative; }
.cta-banner .hero__cta { position: relative; }

/* =====================================================================
   Footer
   ===================================================================== */
.footer {
    border-top: 1px solid var(--line);
    background: var(--footer-bg);
    padding: 64px 0 34px;
}
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { height: 44px; margin-bottom: 14px; }
.footer__brand p { color: var(--text-dim); font-size: 14px; max-width: 280px; }
.footer h4 { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; font-family: var(--display); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { color: var(--text-dim); font-size: 14.5px; transition: color .2s ease; }
.footer ul a:hover { color: var(--gold); }
.footer__bottom {
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-faint);
    font-size: 13.5px;
}

/* =====================================================================
   Page hero (interior pages)
   ===================================================================== */
.page-hero {
    padding: 170px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(800px 380px at 50% -10%, rgba(252,195,2,0.16), transparent 65%),
        linear-gradient(180deg, var(--ink-warm), var(--ink));
    border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(34px, 6vw, 64px); margin-bottom: 18px; }
.page-hero p { color: var(--text-dim); font-size: clamp(16px, 1.8vw, 19px); max-width: 640px; margin: 0 auto; }

/* =====================================================================
   About — team
   ===================================================================== */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 820px) { .team { grid-template-columns: 1fr; } }
.member {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 36px 32px;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    transition: transform .3s ease, border-color .3s ease;
}
.member:hover { transform: translateY(-5px); border-color: rgba(252,195,2,0.4); }
.member__avatar {
    width: 92px; height: 92px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: 34px;
    color: #1a1a1a;
    background: linear-gradient(135deg, #ffd23d, #b88505);
    box-shadow: var(--glow);
    margin-bottom: 20px;
}
.member__role { color: var(--gold); font-size: 14px; font-weight: 600; letter-spacing: .4px; margin-bottom: 12px; font-family: var(--display); }
.member h3 { font-size: 23px; margin-bottom: 4px; }
.member p { color: var(--text-dim); font-size: 15px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }

/* =====================================================================
   Donations
   ===================================================================== */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr; } }
.tier {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 34px 28px;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    text-align: center;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.tier:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tier--featured { border-color: rgba(252,195,2,0.5); box-shadow: var(--glow); }
.tier__flag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #FCC302, #b88505);
    color: #1a1a1a;
    font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 1px;
    padding: 6px 16px; border-radius: 30px; text-transform: uppercase;
}
.tier__amount { font-family: var(--display); font-size: 44px; font-weight: 700; color: var(--gold); margin: 8px 0 4px; }
.tier__amount span { font-size: 17px; color: var(--text-dim); }
.tier__name { font-family: var(--display); font-size: 18px; margin-bottom: 16px; }
.tier ul { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.tier ul li { font-size: 14.5px; color: var(--text-dim); display: flex; gap: 10px; }
.tier ul li::before { content: "✓"; color: var(--gold); font-weight: 700; }
.tier .btn { width: 100%; }

.note {
    margin-top: 30px;
    padding: 16px 20px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    color: var(--text-faint);
    font-size: 13.5px;
    text-align: center;
}

/* =====================================================================
   Blog
   ===================================================================== */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 920px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }
.post-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.post-card:hover { transform: translateY(-6px); border-color: rgba(252,195,2,0.4); box-shadow: 0 18px 50px rgba(0,0,0,0.4); }
.post-card__thumb {
    height: 168px;
    position: relative;
    display: grid; place-items: center;
    background:
        radial-gradient(400px 200px at 50% 30%, rgba(252,195,2,0.18), transparent 70%),
        linear-gradient(135deg, var(--thumb-a), var(--thumb-b));
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.post-card__thumb img { width: 84px; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.5)); transition: transform .4s ease; }
.post-card:hover .post-card__thumb img { transform: scale(1.08) rotate(-2deg); }
.post-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__tag { font-family: var(--display); font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.post-card h3 { font-size: 19px; line-height: 1.25; margin-bottom: 10px; }
.post-card p { color: var(--text-dim); font-size: 14.5px; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--text-faint); font-size: 13px; }
.post-card__readmore { color: var(--gold); font-weight: 600; font-size: 14px; margin-top: 16px; display: inline-flex; gap: 6px; align-items: center; transition: gap .2s ease; }
.post-card:hover .post-card__readmore { gap: 11px; }

/* ── Article ── */
.article { max-width: 760px; margin: 0 auto; }
.article__meta { display: flex; gap: 14px; align-items: center; color: var(--text-faint); font-size: 14px; margin-bottom: 30px; }
.article__tag { color: var(--gold); font-family: var(--display); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 12px; }
.article p { color: var(--text-dim); font-size: 17px; line-height: 1.8; margin-bottom: 22px; }
.article h2 { font-size: 27px; margin: 40px 0 16px; }
.article h3 { font-size: 21px; margin: 30px 0 12px; }
.article ul, .article ol { color: var(--text-dim); font-size: 17px; line-height: 1.8; margin: 0 0 22px 22px; }
.article li { margin-bottom: 8px; }
.article blockquote {
    border-left: 3px solid var(--gold);
    padding: 6px 0 6px 22px;
    margin: 28px 0;
    color: var(--text);
    font-size: 19px;
    font-style: italic;
}
.article strong { color: var(--heading); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: 14.5px; margin-bottom: 30px; }
.back-link:hover { gap: 12px; transition: gap .2s ease; }

/* =====================================================================
   Theme toggle button
   ===================================================================== */
.nav__right { display: flex; align-items: center; gap: 10px; }
.theme-btn {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--panel-2);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.theme-btn:hover { border-color: var(--gold); transform: translateY(-2px) rotate(15deg); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }

/* ── Language dropdown ── */
.lang-select {
    appearance: none;
    -webkit-appearance: none;
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text);
    background-color: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 9px 30px 9px 15px;
    cursor: pointer;
    transition: border-color .25s ease, transform .25s ease;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23999999' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    max-width: 150px;
}
.lang-select:hover { border-color: var(--gold); transform: translateY(-2px); }
.lang-select:focus { outline: none; border-color: var(--gold); }
.lang-select option { background: var(--ink-2); color: var(--text); font-family: var(--body); }

@media (max-width: 480px) {
    .lang-select { max-width: 96px; padding: 9px 26px 9px 12px; font-size: 12px; }
}

/* =====================================================================
   Light-mode component tweaks
   ===================================================================== */
[data-theme="light"] .hero h1,
[data-theme="light"] .hero__sub { text-shadow: none; }
[data-theme="light"] .hero__horizon,
[data-theme="light"] .cta-banner::after { display: none; }
[data-theme="light"] .gold-text {
    background: linear-gradient(120deg, #c89e00, #9b7a00 45%, #7c6200);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="light"] .scene__bot {
    filter: drop-shadow(0 30px 45px rgba(110, 88, 10, 0.30)) drop-shadow(0 0 40px rgba(252, 195, 2, 0.40));
}
[data-theme="light"] ::selection { background: rgba(252, 195, 2, 0.45); color: #191410; }
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--ink-2); }
[data-theme="light"] .btn--ghost { background: rgba(120, 95, 10, 0.04); }
[data-theme="light"] .brand img { filter: drop-shadow(0 0 10px rgba(184, 133, 5, 0.25)); }

/* =====================================================================
   Misc
   ===================================================================== */
.divider { height: 1px; background: var(--line); border: 0; max-width: var(--maxw); margin: 0 auto; }

/* =====================================================================
   Suggestion box form (suggestions.html)
   ===================================================================== */
.suggest-form {
    max-width: 680px;
    margin: 50px auto 0;
    padding: 34px 32px 30px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.suggest-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.suggest-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.suggest-form__field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.3px;
}

.optional-tag {
    font-weight: 400;
    color: var(--text-faint);
    font-size: 12px;
    margin-left: 4px;
}

.suggest-form__field input,
.suggest-form__field select,
.suggest-form__field textarea {
    width: 100%;
    padding: 13px 15px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--body);
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.suggest-form__field input::placeholder,
.suggest-form__field textarea::placeholder {
    color: var(--text-faint);
}

.suggest-form__field input:focus,
.suggest-form__field select:focus,
.suggest-form__field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.suggest-form__field select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FCC302' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.suggest-form__field select option {
    background: var(--ink-2);
    color: var(--text);
}

.suggest-form__field textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.55;
}

.char-count {
    position: absolute;
    right: 2px;
    bottom: -20px;
    font-size: 11px;
    color: var(--text-faint);
}

.suggest-form__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.suggest-form__status {
    font-size: 14.5px;
    text-align: center;
    min-height: 22px;
    margin: 0;
}

.suggest-form__status.success { color: var(--gold); font-weight: 600; }
.suggest-form__status.error   { color: #e74c3c; font-weight: 500; }

@media (max-width: 640px) {
    .suggest-form { padding: 24px 18px 22px; }
    .suggest-form__row { grid-template-columns: 1fr; }
}

/* =====================================================================
   Admin dashboard (admin.html) + blog admin controls
   ===================================================================== */
.admin-gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-family: var(--display);
    letter-spacing: 1px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px 22px;
    text-align: center;
}

.stat-card__value {
    font-family: var(--display);
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 700;
    color: var(--gold);
    line-height: 1.1;
}

.stat-card__label {
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 8px #2ecc71;
    animation: pulse 1.6s infinite;
}

.stat-updated {
    margin-top: 12px;
    color: var(--text-faint);
    font-size: 12px;
    text-align: right;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 18px;
    align-items: stretch;
}

.admin-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 26px 24px;
}

.admin-panel h3 {
    font-size: 19px;
    margin-bottom: 18px;
}

.chart-wrap {
    position: relative;
    height: 280px;
}

.premium-table-wrap { max-height: 300px; overflow-y: auto; }

.premium-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.premium-table th {
    text-align: left;
    color: var(--text-faint);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 10px 10px 2px;
    border-bottom: 1px solid var(--line);
}

.premium-table td {
    padding: 11px 10px 11px 2px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--text-dim);
    word-break: break-all;
}

.premium-table .amount-cell {
    color: var(--gold);
    font-weight: 600;
    white-space: nowrap;
    text-align: right;
}

.table-empty { color: var(--text-faint); font-size: 14px; padding: 14px 2px; }

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.panel-head h3 { margin-bottom: 0; }

#post-editor {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    margin-bottom: 24px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.editor-row { display: flex; gap: 16px; flex-wrap: wrap; }
.editor-row .suggest-form__field { min-width: 220px; }

#post-editor textarea { font-family: var(--body); }

.editor-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn--sm { padding: 8px 16px !important; font-size: 13px !important; }
.btn--danger:hover { border-color: #e74c3c !important; color: #e74c3c !important; }

.admin-post-list { display: flex; flex-direction: column; gap: 10px; }

.admin-post-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: var(--panel-2);
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    flex-wrap: wrap;
}

.admin-post-info { display: flex; flex-direction: column; gap: 3px; }
.admin-post-info strong { color: var(--text); font-size: 15px; }
.admin-post-info span { color: var(--text-faint); font-size: 12.5px; }
.admin-post-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Blog page admin bar + per-card tools */
.admin-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    padding: 12px 16px;
    background: var(--gold-soft);
    border: 1px dashed var(--gold);
    border-radius: 12px;
}

.admin-bar span {
    font-family: var(--display);
    font-weight: 600;
    color: var(--gold);
    margin-right: auto;
}

.post-card { position: relative; }

.post-card__thumb--emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    background: linear-gradient(135deg, var(--thumb-a), var(--thumb-b));
}

.card-admin-tools {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.card-admin-tools button {
    background: rgba(0,0,0,0.55);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    padding: 6px 8px;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease;
}

.card-admin-tools button:hover { transform: scale(1.12); border-color: var(--gold); }

@media (max-width: 900px) {
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .admin-grid { grid-template-columns: 1fr; }
}
