/* Base */
*{box-sizing:border-box}html,body{height:100%}body{margin:0;font-family:var(--font-body);font-size:var(--fs-body);line-height:1.6;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}

/* Footer */
.site-footer{margin-top:40px;padding-top:24px;border-top:1px solid var(--border)}
.footer-grid{display:grid;gap:24px;grid-template-columns:repeat(4,1fr);align-items:start}
.footer-column-main h4{margin:0 0 6px}
.footer-tagline{color:var(--muted);margin:0}
.footer-column h4{margin:0 0 8px;font-size:1rem}
.footer-column ul{list-style:none;margin:0;padding:0}
.footer-column li{margin:8px 0;line-height:1.7}
.footer-column a{color:inherit;text-decoration:none;border-bottom:1px dashed transparent;-webkit-tap-highlight-color:transparent}
.site-footer a:link,.site-footer a:visited{color:inherit}
.footer-column a:hover{border-color:var(--border)}
.footer-bottom{margin-top:16px;padding-top:12px;border-top:1px solid var(--border);text-align:center;color:var(--muted);font-size:.9rem}
@media (max-width: 1024px){.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 640px){
  .site-footer{margin-top:28px;padding-top:20px}
  .footer-grid{grid-template-columns:1fr;gap:16px}
  .footer-column h4{font-size:.95rem}
  .footer-bottom{font-size:.85rem}
}
img,video{display:block;max-width:100%}
:focus-visible{outline:2px solid var(--accent-600);outline-offset:2px}

/* Type */
h1,h2,h3{font-family:var(--font-heading);font-weight:700;line-height:1.15}
h1{font-size:var(--fs-h1);letter-spacing:.01em}
h2{font-size:var(--fs-h2);letter-spacing:.01em}
h3{font-size:var(--fs-h3)}
.muted{color:var(--muted)}

/* Layout */
.container{max-width:1100px;margin:0 auto;padding:0 20px}
.narrow{max-width:820px}
.section{padding:80px 0}
.section-hero{position:relative;min-height:88vh;display:flex;align-items:center}
.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.35}
.hero-content{position:relative;display:grid;grid-template-columns:1.2fr .8fr;gap:40px;align-items:center}
@media (max-width:900px){.hero-content{grid-template-columns:1fr}.section{padding:64px 0}}
.media-overlay{position:absolute;inset:0;background:radial-gradient(1200px 600px at 50% 20%, rgba(245,158,11,.25), transparent 60%)}

/* Header */
.site-header{position:sticky;top:0;z-index:10;background:rgba(17,24,39,.6);backdrop-filter:saturate(140%) blur(8px);border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:56px}
.brand{font-family:var(--font-heading);font-weight:700}
.nav a{color:var(--muted);margin-left:16px;text-decoration:none}
.nav a:hover{color:var(--blue-400);text-decoration:underline}

/* Phone mock */
.phone{width:280px;max-width:85vw;aspect-ratio:9/19;border-radius:32px;border:1px solid #2a3344;background:#0f1626;box-shadow:inset 0 0 0 6px #0b1220, 0 10px 40px rgba(0,0,0,.6)}
.phone-screen{width:100%;height:100%;border-radius:26px;background-color:#0b1620;background-image:url("../assets/screen.jpg");background-position:center bottom;background-size:100% auto;background-repeat:no-repeat}

/* Components */
.button{display:inline-block;text-decoration:none}
.button:link,.button:visited,.button:hover,.button:active{outline:0;text-decoration:none}
/* Ensure anchors styled as buttons never show underline or bottom border */
a.button,a.button:link,a.button:visited,a.button:hover,a.button:active{text-decoration:none !important;border-bottom:0 !important}
.button--primary{text-decoration:none;border-bottom:0}
.button{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:var(--radius-sm);border:1px solid transparent;font-weight:600;cursor:pointer;transition:.15s}
.button--primary{background:var(--accent-600);color:#111;border-color:rgba(0,0,0,.08);box-shadow:0 8px 24px rgba(217,119,6,.25)}
.button--primary:hover{background:var(--accent-700)}
.button--xl{padding:14px 22px;font-size:1.125rem;border-radius:var(--radius-md)}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);padding:24px}

.features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.feature-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:20px;transition:transform .2s, box-shadow .2s}
.feature-card:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(0,0,0,.25)}
.icon{font-size:28px;margin-bottom:8px}

.section-testimonials .quote{margin:0 0 16px}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.about-photo{width:100%;height:360px;background:url("../assets/mens.jpg") center/cover no-repeat;border:1px solid var(--border);border-radius:var(--radius-md)}
@media (max-width:900px){.features-grid{grid-template-columns:1fr}.about-grid{grid-template-columns:1fr}}

/* Reveal */
.reveal{opacity:0;transform:translateY(10px);transition:opacity .5s ease, transform .5s ease}
.reveal.is-visible{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){.reveal{transition:none}}

/* --- Investor Page Enhancements --- */
/* Sections */
.section--alt{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0))}
.section .eyebrow{display:inline-block;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.subtitle{color:var(--muted);margin:.5rem 0 1rem}

/* Grids */
.grid{display:grid;gap:20px}
.grid-2{grid-template-columns:repeat(2,1fr)}
@media (max-width:900px){.grid-2{grid-template-columns:1fr}}

/* Spacing utilities */
.section--compact-bottom{padding-bottom:12px !important}
.section--compact-bottom + .section{padding-top:16px}

/* Card grid for table replacement */
.card-grid{display:grid;gap:2rem;grid-template-columns:repeat(auto-fit, minmax(320px, 1fr))}
.info-card{border:1px solid var(--border);border-radius:12px;padding:1.5rem;background:var(--surface);transition:transform .2s ease-in-out, box-shadow .2s ease-in-out}
.info-card:hover{transform:translateY(-5px);box-shadow:0 10px 30px rgba(0,0,0,.22)}
.info-card h3{margin:0 0 .5rem;font-size:1.05rem}
.info-card p{margin:.25rem 0}
.info-card p strong{color:var(--muted);font-weight:600;margin-right:6px}

/* Market cards (Estimates by continent) */
.market-card{border:1px solid var(--border);border-radius:12px;padding:1.5rem;background:var(--surface);transition:transform .2s ease-in-out, box-shadow .2s ease-in-out}
.market-card:hover{transform:translateY(-5px);box-shadow:0 10px 30px rgba(0,0,0,.22)}
.market-card .market-number{font-weight:800;font-size:1.8rem;line-height:1.1;margin:0 0 .5rem;color:#e5e7eb}
.market-card h3{margin:0 0 .35rem;font-size:1.05rem}
.market-card .market-context{opacity:.85;margin:.25rem 0 0}

/* Inline variant when number is placed next to title */
.market-card h3 .market-number-inline{font-weight:800;font-size:1rem;color:#e5e7eb;margin-left:8px}
@media (min-width: 900px){
  .market-card h3{font-size:1.1rem}
  .market-card h3 .market-number-inline{font-size:1.05rem}
}

/* Subline variant: number under title in parentheses */
.market-card .market-number-sub{color:var(--muted);font-size:.95rem;margin:2px 0 .5rem}

/* Cards */
.card--elevated{box-shadow:0 10px 30px rgba(0,0,0,.22)}
.card--soft{background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));border-color:rgba(148,163,184,.25)}
.callout{border:1px solid var(--border);border-radius:var(--radius-md);padding:14px 16px;background:rgba(148,163,184,.06)}

/* Badges & Pills */
.pill{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;border:1px solid var(--border);background:rgba(148,163,184,.08);color:var(--muted);font-weight:600;font-size:.85rem}
.badge{display:inline-block;padding:2px 8px;border-radius:8px;border:1px solid var(--border);background:rgba(148,163,184,.08);font-size:.75rem;color:var(--muted)}

/* Tables */
table.table{width:100%;border-collapse:collapse}
table.table th,table.table td{padding:10px 12px;border-bottom:1px solid var(--border)}
table.table thead th{color:var(--muted);font-size:.9rem}
table.table--compact th,table.table--compact td{padding:8px 10px}
table.table--striped tbody tr:nth-child(odd){background:rgba(148,163,184,.05)}
table.table td.num, table.table th.num{text-align:right;white-space:nowrap}

/* Stat grid */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.stat{padding:16px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface)}
.stat .stat-label{color:var(--muted);font-size:.8rem}
.stat .stat-value{font-weight:700;font-size:1.25rem}

/* Mobile optimizations */
@media (max-width: 640px){
  .container{padding:0 16px}
  .container.narrow{max-width:100%}
  h1{font-size:1.6rem}
  h2{font-size:1.25rem}
  h3{font-size:1.05rem}
  .section{padding:18px 0}
  .section + .section{padding-top:16px}
  .card{padding:10px}
  .card + .card{margin-top:10px}
  .container > h2{margin-bottom:8px}
  .subtitle{margin:.35rem 0 .75rem}
  .grid-2{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr}
  .about-grid{display:block}
  .about-media{margin-bottom:12px}
  .about-media img{height:auto;max-height:260px}
  p.muted{margin:6px 0 !important}
  table.table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  table.table th, table.table td{padding:6px 8px;white-space:nowrap}
  table.table--compact th, table.table--compact td{padding:6px 8px}
  /* tighten stacked rows */
  table.table--stack tr{margin-bottom:8px}
  table.table--stack td{padding:6px 8px;line-height:1.25}
  table.table--stack td::before{content:attr(data-label);flex:0 0 40%;max-width:40%;color:var(--muted);font-size:.8rem}
  table.table--stack td.num{justify-content:space-between}
}

/* Hide verbose columns on mobile to reduce scroll */
@media (max-width: 640px){
  td[data-label="Contextual Commentary"],
  td[data-label="Achilles' Heel (What's Missing)"]{display:none}
}
