/*
 * Sandshade UI — Design System
 * ─────────────────────────────────────────────────────────────────────────────
 * Usage: <link rel="stylesheet" href="sandshade.css" />
 * Fonts: Inter + DM Serif Display (include in your <head>)
 *   <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=DM+Serif+Display:ital@0;1&display=swap" rel="stylesheet" />
 * ─────────────────────────────────────────────────────────────────────────────
 * Sections:
 *   1. TOKENS
 *   2. RESET
 *   3. BASE / TYPOGRAPHY
 *   4. UTILITIES  (grain, reveal, marquee, label)
 *   5. NAV
 *   6. BUTTONS
 *   7. PAGE HEADER  (inner pages)
 *   8. HERO
 *   9. SECTIONS  (light + dark)
 *  10. STATS GRID
 *  11. STORY / 2-COL
 *  12. TIMELINE
 *  13. FEATURE CARDS  (dark section grid)
 *  14. CTA CARD  (dark, animated mesh)
 *  15. FOOTER
 *  16. FORM LAYOUT
 *  17. FORM FIELDS  (inputs, selects, radio pills, checkboxes)
 *  18. DECLARATION BOX
 *  19. SUBMIT BUTTON + SPINNER
 *  20. ERROR STATES
 *  21. MODAL
 *  22. RESPONSIVE
 * ─────────────────────────────────────────────────────────────────────────────
 */


/* ══ 1. TOKENS ═══════════════════════════════════════════════════════════════ */

:root {
  /* Colour */
  --bg:            #FAFAF8;
  --bg-alt:        #F0EFEB;
  --surface:       #FFFFFF;
  --text:          #0D0D0D;
  --text-secondary:#555555;
  --text-tertiary: #999999;
  --accent:        #0A6847;
  --accent-dark:   #064E34;

  /* Borders */
  --border:        rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.12);

  /* Radius */
  --radius:        16px;
  --radius-lg:     24px;
  --radius-pill:   100px;

  /* Shadow */
  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md:     0 8px 28px rgba(0, 0, 0, 0.10);
  --shadow-lg:     0 16px 56px rgba(0, 0, 0, 0.14);

  /* Spacing scale */
  --space-xs:  0.375rem;
  --space-sm:  0.75rem;
  --space-md:  1.25rem;
  --space-lg:  2rem;
  --space-xl:  3.5rem;
  --space-2xl: clamp(4rem, 8vh, 7rem);

  /* Container */
  --container: 1400px;
  --gutter:    clamp(1.5rem, 4vw, 3rem);
}


/* ══ 2. RESET ════════════════════════════════════════════════════════════════ */

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


/* ══ 3. BASE / TYPOGRAPHY ════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Display headings */
.heading-display {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.heading-lg {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.heading-md {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.heading-sm {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* DM Serif italic accent — use inside headings */
em.serif, h1 em, h2 em {
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* Dark section italic (no colour override) */
.dark em.serif, .dark h2 em {
  color: rgba(255, 255, 255, 0.5);
}

/* Body text helpers */
.text-secondary { color: var(--text-secondary); }
.text-tertiary  { color: var(--text-tertiary); }
.text-accent    { color: var(--accent); }

/* Eyebrow / overline label */
.label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.label-dark {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}


/* ══ 4. UTILITIES ════════════════════════════════════════════════════════════ */

/* Grain overlay — add to body or a fixed wrapper */
.grain::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* Scroll reveal — add IntersectionObserver JS (see index.html) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.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; }

/* Animated dot — blinking pulse */
.dot-live {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotBlink 2.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* Hero / section live label with dot */
.hero-label, .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}
.hero-label::before, .section-label::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotBlink 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* Inner page section label with dot */
.page-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.page-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotBlink 2.5s ease-in-out infinite;
}

/* Marquee */
.marquee-section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marqueeScroll 28s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.marquee-track span::after {
  content: '\2022';
  color: var(--border-strong);
}
@keyframes marqueeScroll {
  to { transform: translateX(-50%); }
}

/* Pill tags (inline metadata) */
.pill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  letter-spacing: 0.01em;
}


/* ══ 5. NAV ══════════════════════════════════════════════════════════════════ */

nav {
  position: fixed;
  top: 0; width: 100%; z-index: 1000;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(250, 250, 248, 0.98);
}

/* Logo / brand */
.nav-logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
}
/* Multi-line brand (inner pages) */
.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-brand-name { font-weight: 800; font-size: 0.85rem; letter-spacing: -0.03em; color: var(--text); line-height: 1.1; }
.nav-brand-sub  { font-size: 0.68rem; color: var(--text-tertiary); line-height: 1.1; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* Nav CTA (pill inside nav) */
.nav-cta {
  padding: 0.5rem 1.2rem !important;
  background: var(--text);
  color: var(--bg) !important;
  border-radius: var(--radius-pill);
  font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.8; color: var(--bg) !important; }

/* Back link (inner pages) */
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--accent); }
.nav-back svg { width: 14px; height: 14px; }


/* ══ 6. BUTTONS ══════════════════════════════════════════════════════════════ */

/* Base shared */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn svg { width: 15px; height: 15px; transition: transform 0.2s; }

/* Primary — dark fill */
.btn-primary {
  padding: 0.875rem 2rem;
  background: var(--text);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary:active { transform: translateY(0); }

/* Ghost — text only with arrow */
.btn-ghost {
  padding: 0.875rem 1.5rem;
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { color: var(--accent); }

/* Outline — bordered */
.btn-outline {
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* CTA — white on dark green card */
.btn-cta {
  padding: 1rem 2.25rem;
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); }
.btn-cta:hover svg { transform: translateX(3px); }

/* Submit (full-width form button) */
.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 2rem;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-submit svg { width: 14px; height: 14px; transition: transform 0.2s; }
.btn-submit:hover:not(:disabled) svg { transform: translateX(3px); }

/* Loading spinner */
.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ══ 7. PAGE HEADER (inner pages) ════════════════════════════════════════════ */

.page-header {
  padding: calc(68px + clamp(3rem, 6vh, 5rem)) var(--gutter) clamp(3rem, 5vh, 4rem);
  max-width: 860px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 1rem;
}
.page-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}


/* ══ 8. HERO ═════════════════════════════════════════════════════════════════ */

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: clamp(7rem, 15vh, 10rem) var(--gutter) clamp(4rem, 8vh, 6rem);
  max-width: var(--container);
  margin: 0 auto;
  gap: 2rem;
}
.hero-content { display: flex; flex-direction: column; }
.hero h1 {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: 1.75rem;
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}


/* ══ 9. SECTIONS ═════════════════════════════════════════════════════════════ */

/* Light section */
.section {
  padding: var(--space-2xl) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.section-header {
  margin-bottom: clamp(2.5rem, 5vh, 4rem);
}
.section-header.centered { text-align: center; }
.section-header.centered p {
  max-width: 520px;
  margin: 0.75rem auto 0;
}

/* Dark section */
.section-dark {
  background: var(--text);
  color: #fff;
  padding: var(--space-2xl) var(--gutter);
}
.section-dark .label { color: rgba(255, 255, 255, 0.4); }
.section-dark h2 { color: #fff; }
.section-dark p  { color: rgba(255, 255, 255, 0.55); }


/* ══ 10. STATS GRID ══════════════════════════════════════════════════════════ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.stats-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.stats-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.stats-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.stat-cell {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }

.stat-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}
.stat-value {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.stat-value .unit {
  font-size: 0.5em;
  font-weight: 600;
  color: var(--accent);
  margin-left: 2px;
}
.stat-value.accent { color: var(--accent); }
.stat-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.5;
}


/* ══ 11. STORY / 2-COL GRID ══════════════════════════════════════════════════ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.two-col.align-center { align-items: center; }
.two-col p {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.75;
  color: var(--text-secondary);
}
.two-col p + p { margin-top: 1.25rem; }
.two-col p strong { color: var(--text); font-weight: 600; }


/* ══ 12. TIMELINE ════════════════════════════════════════════════════════════ */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--text);
}
.tl-item {
  padding: 1.75rem 1.5rem 0 0;
  position: relative;
}
.tl-item::before {
  content: '';
  position: absolute;
  top: -6px; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.tl-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.tl-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.tl-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ══ 13. FEATURE CARDS ═══════════════════════════════════════════════════════ */

/* Light card */
.card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.card:hover { box-shadow: var(--shadow-sm); }

/* Dark card grid (used inside .section-dark) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card-dark {
  background: var(--text);
  padding: clamp(2rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
}
.card-dark-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 2rem;
}
.card-dark-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.card-dark-icon svg {
  width: 22px; height: 22px;
  stroke: rgba(255, 255, 255, 0.7);
  fill: none;
}
.card-dark h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #fff;
}
.card-dark p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  flex: 1;
}

/* Numbered form section card (inner pages) */
.form-section {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.form-section-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
}
.form-section-num {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.form-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.form-section-sub {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-left: auto;
}
.form-section-body { padding: 1.75rem; }


/* ══ 14. CTA CARD ════════════════════════════════════════════════════════════ */

.cta-card {
  background: #052e20;
  border-radius: var(--radius-lg);
  padding: clamp(4rem, 7vw, 7rem) clamp(2rem, 4vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Animated mesh blobs */
.cta-card::before {
  content: '';
  position: absolute;
  top: -40%; left: -20%;
  width: 70%; height: 140%;
  background: radial-gradient(ellipse, rgba(10, 104, 71, 0.9) 0%, transparent 70%);
  animation: meshMove1 8s ease-in-out infinite alternate;
  pointer-events: none;
}
.cta-card::after {
  content: '';
  position: absolute;
  bottom: -40%; right: -20%;
  width: 70%; height: 140%;
  background: radial-gradient(ellipse, rgba(0, 180, 140, 0.5) 0%, transparent 70%);
  animation: meshMove2 10s ease-in-out infinite alternate;
  pointer-events: none;
}
.cta-blob { position: absolute; pointer-events: none; }
.cta-blob-1 {
  top: 10%; right: 10%;
  width: 50%; height: 80%;
  background: radial-gradient(ellipse, rgba(200, 160, 50, 0.2) 0%, transparent 70%);
  animation: meshMove3 12s ease-in-out infinite alternate;
}
.cta-blob-2 {
  bottom: 0; left: 20%;
  width: 60%; height: 60%;
  background: radial-gradient(ellipse, rgba(0, 220, 180, 0.25) 0%, transparent 70%);
  animation: meshMove4 9s ease-in-out infinite alternate;
}
@keyframes meshMove1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}
@keyframes meshMove2 {
  0%   { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-50px, -30px) scale(0.95); }
}
@keyframes meshMove3 {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(-40px, 30px) rotate(10deg) scale(1.1); }
}
@keyframes meshMove4 {
  0%   { transform: translate(0, 0) scale(0.9); }
  100% { transform: translate(30px, -40px) scale(1.15); }
}
.cta-card h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  max-width: 600px;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 2;
}
.cta-card p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 440px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}
.cta-actions {
  position: relative;
  z-index: 2;
}


/* ══ 15. FOOTER ══════════════════════════════════════════════════════════════ */

footer {
  padding: 2.5rem var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}
.footer-brand {
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
}
.footer-right {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-align: right;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }


/* ══ 16. FORM LAYOUT ═════════════════════════════════════════════════════════ */

.form-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vh, 4rem) var(--gutter) clamp(5rem, 10vh, 8rem);
}

.field-grid   { display: grid; gap: 1.25rem; }
.field-grid-2 { grid-template-columns: 1fr 1fr; }
.field-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.col-span-2   { grid-column: span 2; }
.col-span-3   { grid-column: span 3; }

.field { display: flex; flex-direction: column; gap: 0.375rem; }


/* ══ 17. FORM FIELDS ═════════════════════════════════════════════════════════ */

label.field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}
label.field-label .req { color: var(--accent); margin-left: 2px; }

.field-hint {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="url"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.5;
}
input::placeholder, textarea::placeholder { color: var(--text-tertiary); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 104, 71, 0.1);
}
input[readonly] {
  background: var(--bg-alt);
  color: var(--text-secondary);
  cursor: default;
}
input[readonly]:focus { border-color: var(--border-strong); box-shadow: none; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px;
  padding-right: 2.25rem;
}
textarea { resize: vertical; min-height: 80px; }

/* Checkbox group */
.check-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.check-item:hover { border-color: var(--accent); }
.check-item input[type="checkbox"] {
  width: 15px; height: 15px;
  padding: 0;
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent);
}
.check-item span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.check-item:has(input:checked) { border-color: var(--accent); background: #F0FDF4; }
.check-item:has(input:checked) span { color: var(--accent); }

/* Radio pill group */
.radio-group { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.radio-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.radio-item input[type="radio"] {
  width: 14px; height: 14px;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent);
}
.radio-item span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.radio-item:has(input:checked) { border-color: var(--accent); background: #F0FDF4; }
.radio-item:has(input:checked) span { color: var(--accent); }


/* ══ 18. DECLARATION BOX ═════════════════════════════════════════════════════ */

.declaration-box {
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.declaration-box ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.declaration-box li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.declaration-box li strong { color: var(--text); font-weight: 600; }

.declaration-agree {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.declaration-agree:has(input:checked) { border-color: var(--accent); background: #F0FDF4; }
.declaration-agree input[type="checkbox"] {
  width: 16px; height: 16px;
  padding: 0; margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent);
}
.declaration-agree-text { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.declaration-agree-text span { font-weight: 400; color: var(--text-secondary); }


/* ══ 19. SUBMIT AREA ═════════════════════════════════════════════════════════ */

.submit-area { margin-top: 1.25rem; }
.submit-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.875rem;
  line-height: 1.5;
}


/* ══ 20. ERROR STATES ════════════════════════════════════════════════════════ */

.field-error {
  font-size: 0.72rem;
  color: #DC2626;
  display: none;
  margin-top: 0.25rem;
}
.field-error.visible { display: block; }

.error-banner {
  display: none;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  background: #FEF2F2;
  border: 1px solid rgba(220, 38, 38, 0.2);
  margin-bottom: 1.25rem;
}
.error-banner.visible { display: flex; }
.error-banner svg { width: 15px; height: 15px; color: #DC2626; flex-shrink: 0; margin-top: 1px; }
.error-banner p { font-size: 0.8rem; color: #991B1B; line-height: 1.5; }

/* Input invalid state */
input.invalid, select.invalid, textarea.invalid {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}


/* ══ 21. MODAL ═══════════════════════════════════════════════════════════════ */

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(13, 13, 13, 0.55);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-backdrop.open { display: flex; animation: fadeInBg 0.25s ease; }
@keyframes fadeInBg { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: slideUpModal 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
@keyframes slideUpModal {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #ECFDF5;
  border: 1px solid rgba(10, 104, 71, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
}
.modal-icon svg { width: 28px; height: 28px; color: var(--accent); }

.modal-card h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.modal-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}
.modal-ref {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.5rem 0.875rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.modal-ref span { color: var(--accent); font-weight: 700; }

.modal-actions { display: flex; flex-direction: column; gap: 0.625rem; }
.btn-modal-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-modal-primary:hover { opacity: 0.8; }
.btn-modal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-modal-secondary:hover { border-color: var(--accent); color: var(--accent); }


/* ══ 22. RESPONSIVE ══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .hero               { grid-template-columns: 1fr; }
  .two-col            { grid-template-columns: 1fr; }
  .stats-grid         { grid-template-columns: 1fr !important; }
  .stat-cell          { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-cell:last-child { border-bottom: none; }
  .timeline           { grid-template-columns: repeat(2, 1fr); border-top: none; gap: 2rem; }
  .tl-item            { border-top: 2px solid var(--text); padding-top: 1.5rem; }
  .card-grid          { grid-template-columns: 1fr !important; }
  footer              { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-right       { text-align: center; }
}

@media (max-width: 640px) {
  .field-grid-2, .field-grid-3 { grid-template-columns: 1fr; }
  .col-span-2, .col-span-3     { grid-column: span 1; }
  .check-group                 { grid-template-columns: 1fr; }
  .timeline                    { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta)   { display: none; }
  .hero h1                     { font-size: clamp(2.5rem, 10vw, 3.5rem); }
}
