/* ============================================================
   SAAiFA — main.css (full clean rebuild)
   ============================================================ */

:root {
    --black:       #0a0a0a;
    --black-soft:  #111111;
    --black-card:  #161616;
    --gold:        #C9A84C;
    --gold-light:  #E2C57A;
    --gold-dark:   #9A7A2E;
    --cream:       #F5F0E8;
    --cream-muted: #BFB89E;
    --white:       #FFFFFF;
    --red:         #C0392B;
    --green:       #27AE60;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --nav-height: 80px;
    --max-width:  1200px;
    --radius-sm:  4px;
    --radius:     8px;
    --radius-lg:  16px;
    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--cream); font-family: var(--font-body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
ul { list-style: none; }

h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--cream); }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
p { color: var(--cream-muted); line-height: 1.8; }
.eyebrow { font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 1rem; }

/* LAYOUT */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section--dark { background: var(--black-soft); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-header p { margin-top: 1rem; font-size: 1.1rem; }

/* NAV */
.site-nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); z-index: 1000; transition: background var(--transition); }
.site-nav.scrolled { background: rgba(10,10,10,0.96); border-bottom: 1px solid rgba(201,168,76,0.2); backdrop-filter: blur(12px); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-muted); transition: color var(--transition); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-links .nav-cta { border: 1px solid var(--gold); color: var(--gold); padding: 0.4rem 1rem; border-radius: var(--radius-sm); }
.nav-links .nav-cta:hover { background: var(--gold); color: var(--black); }
.nav-links .nav-logout { color: var(--cream-muted); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; flex-shrink: 0; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cream); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 2rem; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; border-radius: var(--radius-sm); border: none; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.btn--primary { background: var(--gold); color: var(--black); border: 1px solid var(--gold); }
.btn--primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--black); }
.btn--outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn--outline:hover { background: rgba(201,168,76,0.1); color: var(--gold-light); }
.btn--ghost { background: transparent; color: var(--cream-muted); border: 1px solid rgba(191,184,158,0.3); }
.btn--ghost:hover { color: var(--cream); border-color: var(--cream-muted); }
.btn--danger { background: var(--red); color: var(--white); border: 1px solid var(--red); }
.btn--lg { padding: 1rem 2.25rem; font-size: 0.85rem; }
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.75rem; }

/* FORMS */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-muted); margin-bottom: 0.5rem; }
.form-control { width: 100%; padding: 0.85rem 1rem; background: var(--black-card); border: 1px solid rgba(191,184,158,0.2); border-radius: var(--radius-sm); color: var(--cream); font-family: var(--font-body); font-size: 1rem; transition: border-color var(--transition); outline: none; }
.form-control:focus { border-color: var(--gold); }
.form-control::placeholder { color: rgba(191,184,158,0.4); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A84C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-hint { font-size: 0.8rem; color: var(--cream-muted); margin-top: 0.4rem; opacity: 0.7; }
.form-error { font-size: 0.8rem; color: #E74C3C; margin-top: 0.4rem; }

/* CARDS */
.card { background: var(--black-card); border: 1px solid rgba(201,168,76,0.15); border-radius: var(--radius-lg); padding: 2rem; transition: border-color var(--transition), transform var(--transition); }
.card:hover { border-color: rgba(201,168,76,0.4); transform: translateY(-2px); }
.card__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--cream); margin-bottom: 0.75rem; }
.card__body { color: var(--cream-muted); font-size: 0.95rem; line-height: 1.7; }

/* BADGE */
.badge { display: inline-block; padding: 0.25rem 0.75rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 20px; }
.badge--gold  { background: rgba(201,168,76,0.15); color: var(--gold); border: 1px solid rgba(201,168,76,0.3); }
.badge--green { background: rgba(39,174,96,0.15); color: var(--green); border: 1px solid rgba(39,174,96,0.3); }
.badge--red   { background: rgba(192,57,43,0.15); color: #E74C3C; border: 1px solid rgba(192,57,43,0.3); }
.badge--cream { background: rgba(245,240,232,0.1); color: var(--cream-muted); border: 1px solid rgba(245,240,232,0.2); }

/* FLASH */
.flash { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 2rem; font-size: 0.9rem; font-weight: 500; position: fixed; top: var(--nav-height); left: 0; right: 0; z-index: 999; }
.flash--success { background: rgba(39,174,96,0.95); color: var(--white); }
.flash--error   { background: rgba(192,57,43,0.95); color: var(--white); }
.flash--info    { background: rgba(201,168,76,0.95); color: var(--black); }
.flash button   { background: none; border: none; color: inherit; font-size: 1.25rem; cursor: pointer; opacity: 0.7; }

/* PAGE HERO */
.page-hero { padding: calc(var(--nav-height) + 4rem) 0 4rem; text-align: center; border-bottom: 1px solid rgba(201,168,76,0.15); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 1rem; }
.page-hero p  { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* TABLES */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; padding: 0.75rem 1rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid rgba(201,168,76,0.2); }
td { padding: 0.85rem 1rem; color: var(--cream-muted); border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* FOOTER */
.site-footer { background: var(--black-soft); border-top: 1px solid rgba(201,168,76,0.2); padding-top: 4rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem 3rem; display: grid; grid-template-columns: 1.5fr 2fr; gap: 4rem; align-items: start; }
.footer-brand img { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.75rem !important; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold) !important; margin-top: 1rem !important; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4 { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-family: var(--font-body); font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.85rem; color: var(--cream-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 1.5rem 2rem; max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; color: rgba(191,184,158,0.5); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(191,184,158,0.5); }
.footer-bottom-links a:hover { color: var(--cream-muted); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.hero__bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url('/assets/images/hero-bg.jpg'); background-size: cover; background-position: right center; z-index: 0; }
.hero__overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to right, #0a0a0a 0%, #0a0a0a 42%, rgba(10,10,10,0.25) 65%, rgba(10,10,10,0.0) 100%); z-index: 1; }
.hero__mobile-img { display: none; }
.hero__body { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; padding-top: var(--nav-height); }
.hero__left { width: 100%; max-width: 560px; padding: 4rem 2rem 3rem; margin-left: max(2rem, calc((100vw - 1200px) / 2)); }
.hero__left .eyebrow { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; display: block; margin-bottom: 1.25rem; }
.hero__left h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 4.2rem); font-weight: 600; color: #F5F0E8; line-height: 1.1; margin-bottom: 1.5rem; }
.hero__left p { font-size: 1.05rem; color: #BFB89E; line-height: 1.75; margin-bottom: 2.5rem; max-width: 440px; }
.hero__actions { display: flex; flex-direction: row; gap: 1rem; flex-wrap: wrap; }
.hero__right { display: block; min-height: 1px; }
.hero__tags { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(201,168,76,0.25); background: rgba(10,10,10,0.92); }
.hero__tag { display: flex; align-items: flex-start; gap: 1rem; padding: 1.5rem; border-right: 1px solid rgba(201,168,76,0.15); color: var(--gold); }
.hero__tag:last-child { border-right: none; }
.hero__tag div { display: flex; flex-direction: column; gap: 0.25rem; }
.hero__tag strong { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #F5F0E8; display: block; }
.hero__tag span { font-size: 0.8rem; color: #BFB89E; line-height: 1.4; }
.hero__status { position: relative; z-index: 2; text-align: center; padding: 0.75rem; background: rgba(201,168,76,0.06); border-top: 1px solid rgba(201,168,76,0.2); }
.hero__status span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

/* VISION */
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.vision-text h2 { margin: 0.5rem 0 1.5rem; }
.vision-text p  { margin-bottom: 1rem; }
.vision-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card { background: var(--black-card); border: 1px solid rgba(201,168,76,0.15); border-radius: var(--radius-lg); padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.stat-number { font-family: var(--font-display); font-size: 3rem; font-weight: 600; color: var(--gold); line-height: 1; }
.stat-label  { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-muted); }

/* CATEGORIES */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.1); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; }
.category-card { display: flex; flex-direction: column; gap: 0.75rem; padding: 2rem; background: var(--black-card); text-decoration: none; transition: background var(--transition); position: relative; }
.category-card:hover { background: rgba(201,168,76,0.06); }
.category-card__num   { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; color: rgba(201,168,76,0.25); line-height: 1; }
.category-card__title { font-size: 1.25rem; font-family: var(--font-display); color: var(--cream); line-height: 1.2; }
.category-card__desc  { font-size: 0.85rem; color: var(--cream-muted); line-height: 1.6; flex: 1; }
.category-card__duration { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.category-card__arrow { font-size: 1.2rem; color: var(--gold); opacity: 0; transition: opacity var(--transition), transform var(--transition); position: absolute; bottom: 1.5rem; right: 1.5rem; }
.category-card:hover .category-card__arrow { opacity: 1; transform: translateX(4px); }

/* FOUNDING CTA */
.founding-cta { background: var(--black-soft); }
.founding-cta__inner { text-align: center; max-width: 680px; margin: 0 auto; padding: 2rem; }
.founding-cta__pixel-strip { display: flex; justify-content: center; gap: 4px; margin-bottom: 2rem; }
.founding-cta__pixel-strip span { width: 12px; height: 12px; border-radius: 2px; opacity: 0.8; }
.founding-cta__inner h2 { margin: 0.5rem 0 1.5rem; }
.founding-cta__inner p  { margin-bottom: 2rem; }
.founding-cta__actions  { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* HOW IT WORKS */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.step-item__num   { font-family: var(--font-display); font-size: 3.5rem; font-weight: 600; color: rgba(201,168,76,0.2); line-height: 1; margin-bottom: 1rem; }
.step-item__title { font-size: 1.2rem; font-family: var(--font-display); color: var(--cream); margin-bottom: 0.75rem; }
.step-item p { font-size: 0.9rem; }

/* SCROLL REVEAL */
.section [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.section [data-reveal].revealed { opacity: 1; transform: none; }

/* GOLD RULE */
.gold-rule { border: none; border-top: 1px solid rgba(201,168,76,0.3); margin: 3rem 0; }

/* UTILITY */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── MOBILE NAV — not fixed, flows with page ─────────────── */
@media (max-width: 900px) {
    .site-nav { position: relative !important; top: auto !important; background: var(--black) !important; border-bottom: 1px solid rgba(201,168,76,0.2) !important; }
    .nav-links.open { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; z-index: 999 !important; }
    .hero { padding-top: 0 !important; }
    .hero__body { padding-top: 0 !important; }
}

/* ── MOBILE HERO ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero { display: block !important; min-height: auto !important; }
    .hero__bg { display: none !important; }
    .hero__overlay { display: none !important; }
    .hero__mobile-img { display: block !important; width: 100% !important; height: 260px !important; object-fit: cover !important; object-position: center center !important; }
    .hero__body { position: static !important; background: var(--black) !important; padding-top: 0 !important; min-height: auto !important; display: block !important; }
    .hero__left { margin-left: 0 !important; padding: 2rem 1.25rem !important; max-width: 100% !important; width: 100% !important; }
    .hero__right { display: none !important; }
    .hero__tags { grid-template-columns: repeat(2,1fr) !important; }
    .hero__tag:nth-child(2) { border-right: none; }
    .hero__tag:nth-child(3) { border-top: 1px solid rgba(201,168,76,0.15); border-right: 1px solid rgba(201,168,76,0.15); }
    .hero__tag:nth-child(4) { border-top: 1px solid rgba(201,168,76,0.15); border-right: none; }
}

/* ── NAV MOBILE ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10,10,10,0.98); flex-direction: column; justify-content: center; align-items: center; gap: 2rem; z-index: 998; }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.1rem; letter-spacing: 0.1em; }
    .nav-toggle { display: flex; }
    .nav-inner { padding: 0.75rem 1rem; height: auto; }
    .nav-logo img { width: calc(100vw - 70px) !important; height: auto !important; max-height: 55px !important; }
}

/* ── GENERAL RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-links { grid-template-columns: repeat(2,1fr); }
    .vision-grid  { grid-template-columns: 1fr; gap: 3rem; }
    .steps-grid   { grid-template-columns: repeat(2,1fr); }
    .hero__tags   { grid-template-columns: repeat(2,1fr); }
    .hero__tag:nth-child(2) { border-right: none; }
}

@media (max-width: 640px) {
    .container { padding: 0 1.25rem; }
    .section { padding: 3.5rem 0; }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero__tags { grid-template-columns: 1fr !important; }
    .hero__tag { border-right: none !important; border-top: none; border-bottom: 1px solid rgba(201,168,76,0.12); }
    .hero__tag:last-child { border-bottom: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
    .section [data-reveal] { opacity: 1 !important; transform: none !important; }
}
.ai-case { text-transform: none !important; }
