/* ============================================================
   BASE.CSS — Variables, Reset, Typography
   Steward Oversight Platform
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

/* ── CSS VARIABLES ── */
:root {
  /* Colors */
  --navy:          #0C1829;
  --navy-dark:     #070d16;
  --navy-alt:      #101f32;
  --navy-mid:      #0f1e30;
  --amber:         #C8922A;
  --amber-light:   #e5a83d;
  --amber-dim:     rgba(200,146,42,0.4);

  /* Text — boosted contrast */
  --text-bright:   rgba(255,255,255,0.97);
  --text-mid:      rgba(255,255,255,0.82);
  --text-dim:      rgba(255,255,255,0.50);
  --text-xdim:     rgba(255,255,255,0.28);

  /* Borders & surfaces */
  --border-dim:    rgba(255,255,255,0.08);
  --border-mid:    rgba(255,255,255,0.14);
  --border-bright: rgba(255,255,255,0.24);
  --surface-1:     rgba(255,255,255,0.03);
  --surface-2:     rgba(255,255,255,0.055);
  --surface-amber: rgba(200,146,42,0.07);
  --border-amber:  rgba(200,146,42,0.24);

  /* Amber surfaces */
  --amber-surface-sm: rgba(200,146,42,0.09);
  --amber-surface-md: rgba(200,146,42,0.14);
  --amber-surface-lg: rgba(200,146,42,0.20);

  /* Typography */
  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-sans:     'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-pad:   88px 64px 96px;
  --radius-sm:     6px;
  --radius-md:     8px;
  --radius-lg:     10px;
  --radius-xl:     12px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-mid:  0.22s ease;
  --transition-slow: 0.35s ease;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--navy-dark);
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { font-family: var(--font-sans); cursor: pointer; }
input, textarea, select { font-family: var(--font-sans); }
img { max-width: 100%; display: block; }

/* ── ALTERNATING SECTION BACKGROUNDS ── */
/* Dark sections: #1, #3, #5, #7, #9 = very dark navy */
/* Light sections: #2, #4, #6, #8     = slightly lighter navy */

#hero       { background: #070d16; }
#problem    { background: #0e1c2d; }
#workflow   { background: #070d16; }
#investment { background: #0e1c2d; }
#services   { background: #070d16; }
#partners   { background: #0e1c2d; }
#application{ background: #070d16; }
#faq        { background: #0e1c2d; }
#footer     { background: #040810; }

/* ── TYPOGRAPHY UTILITIES ── */
.font-serif { font-family: var(--font-serif); }
.font-sans  { font-family: var(--font-sans); }
.text-bright { color: var(--text-bright); }
.text-mid    { color: var(--text-mid); }
.text-dim    { color: var(--text-dim); }
.text-amber  { color: var(--amber); }
.text-amber-light { color: var(--amber-light); }

/* ── SECTION LABEL ── */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
  display: block;
}

/* ── SECTION HEADLINE ── */
.section-headline {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.12;
  color: var(--text-bright);
  margin: 0 0 18px;
}

.section-headline em {
  font-style: italic;
  color: var(--amber-light);
}

/* ── SECTION SUBHEAD ── */
.section-sub {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-mid);
  margin: 0 0 52px;
}

/* ── GRID TEXTURE ── */
.grid-texture {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 0;
}

/* ── CONTENT WRAPPER ── */
.content { position: relative; z-index: 2; }

/* ── DIVIDER ── */
.divider { height: 0.5px; background: var(--border-dim); margin: 24px 0; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── ANIMATIONS ── */
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes orb-breathe {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}
@keyframes dash-flow   { to { stroke-dashoffset: -24; } }
@keyframes dash-flow-r { to { stroke-dashoffset: 24; } }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeSlide 0.3s ease forwards; }
