﻿@import url('./platform-tokens.css');

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20,400,0,0&display=swap');

/* ============================================================
   Africa ESG Intelligence — Public Site Stylesheet
   Design tokens aligned with ESG Intelligence Console
   ============================================================ */

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

:root {
  /* ── Green Scale ─────────────────────────────────────────── */
  --green-900: var(--pt-surface-console-bar);
  --green-800: var(--pt-green-sidebar-muted);
  --green-700: var(--pt-surface-elevated);
  --green-600: var(--pt-surface-card);
  --green-500: var(--pt-green);

  /* ── Gold Scale ──────────────────────────────────────────── */
  --gold-500: var(--pt-green);
  --gold-400:  var(--pt-green-bright);
  --gold-300: var(--pt-green-soft);

  /* ── Neutrals ────────────────────────────────────────────── */
  --white:     #FFFFFF;
  --gray-100:  #E6F0EB;
  --gray-300:  #A8C1B5;
  --gray-500:  #6E8F82;
  --gray-700:  #3E5F54;

  /* ── Semantic tokens ─────────────────────────────────────── */
  --bg-base:        var(--green-900);
  --bg-panel:       var(--green-800);
  --bg-card:        var(--green-700);
  --bg-card-hover:  var(--green-600);
  --accent:         var(--gold-500);
  --soft-gold:      var(--gold-300);
  --green-accent:   #22C55E;
  --text-primary:   #F5F7F2;
  --text-secondary: #d5e0ce;
  --text-muted:     #b0bfaa;
  --border:         rgba(212, 175, 55, 0.22);
  --border-subtle:  rgba(255, 255, 255, 0.11);
  --danger:         #EF4444;
  --radius:         8px;
  --radius-lg:      14px;
  --shadow:         0 4px 24px rgba(0,0,0,0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--pt-surface-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 62px;
  background: #1e3a2a;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  padding: 0 48px 0 24px;   /* flush brand toward the left for platform-wide consistency */
  gap: 32px;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--pt-violet-hover);
  border: 1px solid var(--pt-violet-hover);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-mark .msi {
  font-size: 1.35rem;
  color: var(--pt-violet);
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.nav-logo-name {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f0f0f0;
  line-height: 1;
}
.nav-logo-name .logo-esg { color: var(--pt-violet); }
.nav-logo-tagline {
  font-size: 0.64rem;
  font-weight: 500;
  color: #a0b8a8;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin-left: auto;
}

.nav-links li a {
  text-decoration: none;
  color: #d8e8d0;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 5px;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--pt-violet);
  background: var(--pt-violet-hover);
}

.nav-links li a.nav-cta {
  background: var(--pt-violet);
  color: #ffffff;
  font-weight: 700;
  margin-left: 8px;
  padding: 6px 16px;
}
.nav-links li a.nav-cta:hover {
  background: #c96020;
  color: #ffffff;
}

/* ── Nav dropdown ──────────────────────────────────────────── */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: 4px;
  cursor: default;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(84,129,53,0.2);
  border-radius: 8px;
  min-width: 168px;
  padding: 5px;
  z-index: 300;
  list-style: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-menu li a {
  display: block !important;
  padding: 8px 12px !important;
  font-size: 0.78rem !important;
  color: #1a1a1a !important;
  background: none !important;
  border-radius: 5px;
  transition: all 180ms;
}

.nav-dropdown-menu li a:hover {
  color: var(--pt-violet) !important;
  background: var(--pt-violet-hover) !important;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */

.page-wrap { padding-top: 62px; min-height: 100vh; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 96px 48px 80px;
  max-width: 1140px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 22px;
  max-width: 820px;
}
.hero h1 .gold { color: var(--accent); }

.hero-sub {
  font-size: clamp(0.92rem, 1.8vw, 1.08rem);
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pt-violet);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.18s;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: #c96020; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #1a1a1a;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.15);
  transition: border-color 0.18s, color 0.18s;
  cursor: pointer;
}
.btn-ghost:hover { color: var(--pt-violet); border-color: var(--pt-violet); }

/* ============================================================
   SECTION BASE
   ============================================================ */

.section-wrap {
  padding: 80px 48px;
  max-width: 1140px;
  margin: 0 auto;
}

.section-wrap.narrow { max-width: 840px; }

.section-header { margin-bottom: 48px; }

.section-eyebrow {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-sub {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.78;
  max-width: 620px;
}

/* ============================================================
   BAND / STRIP
   ============================================================ */

.band {
  background: var(--bg-panel);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 32px 48px;
}

.band-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0 48px;
}

/* ============================================================
   LIFECYCLE STRIP
   ============================================================ */

.lifecycle-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}

.lc-step {
  display: flex;
  align-items: center;
}

.lc-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
}

.lc-num {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.lc-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.lc-label.active { color: var(--accent); }

.lc-arrow {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0 4px;
}

/* ============================================================
   CARD GRIDS
   ============================================================ */

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.esg-card {
  background: #f9f9f9;
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.esg-card:hover {
  border-color: var(--pt-violet-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
}

.card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--pt-violet-hover);
  border: 1px solid var(--pt-violet-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 0;
  margin-bottom: 18px;
  flex-shrink: 0;
}

/* Material Symbols Rounded icon helper */
.msi {
  font-family: 'Material Symbols Rounded';
  font-optical-sizing: auto;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' -25, 'opsz' 24;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  user-select: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  color: var(--accent);
  font-size: 1.25rem;
}

/* Larger variant for segment titles / founder avatar */
.msi-lg {
  font-size: 1.55rem;
  color: var(--accent);
}

/* Muted variant */
.msi-muted {
  color: var(--text-muted);
}

.esg-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}
.esg-card p {
  font-size: 0.81rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.esg-card .card-tag {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ============================================================
   FLOW BAND
   ============================================================ */

.flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.flow-node {
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 9px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  white-space: nowrap;
}
.flow-node:hover { border-color: var(--border); color: var(--accent); }

.flow-arrow {
  font-size: 0.8rem;
  color: var(--accent);
  padding: 0 8px;
}

/* ============================================================
   STATS STRIP
   ============================================================ */

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-block {
  flex: 1;
  min-width: 160px;
  background: var(--bg-card);
  padding: 28px 24px;
  text-align: center;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   SEGMENT CARDS (Solutions)
   ============================================================ */

.segment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.2s;
}
.segment-card:hover { border-color: var(--border); border-left-color: var(--accent); }

.segment-card .seg-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.segment-card .seg-intro {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.65;
}

.pr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pr-block {
  border-radius: 7px;
  padding: 14px 16px;
}
.pr-block.problem {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.16);
}
.pr-block.response {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.16);
}
.pr-label {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.pr-block.problem .pr-label { color: #EF4444; }
.pr-block.response .pr-label { color: #15803D; }
.pr-block p { font-size: 0.79rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================================
   ASSESSMENT CARDS
   ============================================================ */

.assessment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.assessment-card:hover { border-color: var(--border); transform: translateY(-2px); }

.assessment-card .a-type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.assessment-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}
.assessment-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.a-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}
.a-features li {
  font-size: 0.79rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.a-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   METHODOLOGY SECTIONS
   ============================================================ */

.method-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.method-section:last-child { border-bottom: none; }

.method-section .ms-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.method-section h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.method-section p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 14px;
}
.method-section p:last-child { margin-bottom: 0; }

.method-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.method-points li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.65;
}
.method-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.method-points li strong { color: var(--text-primary); }

/* ============================================================
   ABOUT
   ============================================================ */

.mission-panel {
  background: #f9f9f9;
  border: 1px solid rgba(84,129,53,0.2);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  margin-bottom: 48px;
}
.mission-panel blockquote {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-primary);
  line-height: 1.75;
  font-style: normal;
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  max-width: 720px;
}

.founder-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.founder-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--pt-violet-hover);
  border: 2px solid var(--pt-violet-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.founder-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.founder-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   INSIGHTS
   ============================================================ */

.insight-category {
  margin-bottom: 52px;
}
.insight-category:last-child { margin-bottom: 0; }

.insight-cat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coming-soon-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 3px 9px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}
.insight-card:hover { border-color: var(--border); }

.insight-tag {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.insight-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}
.insight-card p {
  font-size: 0.79rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.insight-placeholder {
  background: var(--pt-violet-hover);
  border: 1px dashed var(--pt-violet-hover);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  font-size: 0.79rem;
  color: var(--text-muted);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.86rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.18s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group select option { background: var(--bg-panel); }
.form-group textarea { resize: vertical; min-height: 110px; }

.contact-sidebar h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.contact-info-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ci-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.ci-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 4px;
}
.ci-value {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

/* ============================================================
   CTA BAND
   ============================================================ */

.cta-band {
  background: #f2f2f2;
  border-top: 1px solid rgba(84,129,53,0.15);
  border-bottom: 1px solid rgba(84,129,53,0.1);
  padding: 64px 48px;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.cta-band p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   NOTICE / CALLOUT
   ============================================================ */

.callout {
  background: var(--pt-violet-hover);
  border: 1px solid var(--pt-violet-hover);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.callout strong { color: var(--pt-violet); }

/* ============================================================
   ORBIT VISUAL
   ============================================================ */

/* Keyframe animations */
@keyframes core-glow {
  0%, 100% { box-shadow: 0 0 40px rgba(212,175,55,0.10), 0 0 80px rgba(212,175,55,0.05); border-color: rgba(212,175,55,0.55); }
  50% { box-shadow: 0 0 70px rgba(212,175,55,0.28), 0 0 140px rgba(212,175,55,0.14); border-color: rgba(212,175,55,0.9); }
}
@keyframes ring-breathe {
  0%, 100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.025); }
}
@keyframes node-float-top {
  0%, 100% { transform: translateX(-50%) translateY(0px); }
  50% { transform: translateX(-50%) translateY(-6px); }
}
@keyframes node-float-right {
  0%, 100% { transform: translateY(-50%) translateX(0px); }
  50% { transform: translateY(-50%) translateX(6px); }
}
@keyframes node-float-bottom {
  0%, 100% { transform: translateX(-50%) translateY(0px); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@keyframes node-float-left {
  0%, 100% { transform: translateY(-50%) translateX(0px); }
  50% { transform: translateY(-50%) translateX(-6px); }
}
@keyframes tracer-spin {
  from { transform: rotate(0deg) translateX(110px); }
  to   { transform: rotate(360deg) translateX(110px); }
}
@keyframes tracer-spin-outer {
  from { transform: rotate(180deg) translateX(153px); }
  to   { transform: rotate(540deg) translateX(153px); }
}
@keyframes layer-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-split {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 48px;
}
.hero-split .hero-content { flex: 1; min-width: 0; }

.hero-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-wrap {
  position: relative;
  width: 320px;
  height: 320px;
}

.orbit-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--pt-violet-hover) 0%, rgba(84,129,53,0.15) 100%);
  border: 2px solid var(--pt-violet-hover);
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  animation: core-glow 3s ease-in-out infinite;
}

.orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.1);
}
.orbit-ring-1 { width: 130px; height: 130px; animation: ring-breathe 2.5s ease-in-out infinite; }
.orbit-ring-2 { width: 220px; height: 220px; border-color: rgba(212,175,55,0.07); animation: ring-breathe 3.5s ease-in-out infinite 0.4s; }
.orbit-ring-3 { width: 306px; height: 306px; border-color: rgba(212,175,55,0.04); animation: ring-breathe 4.5s ease-in-out infinite 0.9s; }

/* Tracer dots */
.orbit-dot {
  position: absolute;
  width: 7px; height: 7px;
  background: var(--pt-violet);
  border-radius: 50%;
  top: calc(50% - 3.5px); left: calc(50% - 3.5px);
  z-index: 11;
  box-shadow: 0 0 8px var(--pt-violet-hover);
  animation: tracer-spin 8s linear infinite;
}
.orbit-dot-slow {
  position: absolute;
  width: 5px; height: 5px;
  background: rgba(46,159,107,0.85);
  border-radius: 50%;
  top: calc(50% - 2.5px); left: calc(50% - 2.5px);
  z-index: 11;
  box-shadow: 0 0 6px rgba(46,159,107,0.7);
  animation: tracer-spin-outer 13s linear infinite;
}

.orbit-node {
  position: absolute;
  background: #f9f9f9;
  border: 1px solid rgba(84,129,53,0.2);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 88px;
  text-align: center;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.orbit-node .msi { font-size: 1.15rem; }
.orbit-node .orbit-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.03em;
}
.orbit-node.top    { top: -2px;  left: 50%; transform: translateX(-50%); animation: node-float-top 3s ease-in-out infinite; }
.orbit-node.right  { top: 50%;   right: -2px; transform: translateY(-50%); animation: node-float-right 3.5s ease-in-out infinite 0.5s; }
.orbit-node.bottom { bottom: -2px; left: 50%; transform: translateX(-50%); animation: node-float-bottom 4s ease-in-out infinite 1s; }
.orbit-node.left   { top: 50%;   left: -2px; transform: translateY(-50%); animation: node-float-left 3.2s ease-in-out infinite 0.8s; }

/* ============================================================
   ENGINE STACK DIAGRAM (Platform page)
   ============================================================ */

.stack-diagram {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 268px;
}
.stack-layer {
  background: #f9f9f9;
  border: 1px solid rgba(84,129,53,0.12);
  border-left: 2px solid var(--pt-violet);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: layer-in 0.5s ease-out both;
  animation-delay: var(--d, 0s);
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}
.stack-layer:hover { border-color: var(--pt-violet-hover); transform: translateX(5px); }
.stack-label {
  flex: 1;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.01em;
}
.stack-num {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--pt-violet);
  letter-spacing: 0.1em;
}
.stack-connector {
  width: 2px;
  height: 5px;
  background: rgba(212,175,55,0.15);
  margin: 0 16px;
}

/* ============================================================
   FOOTER — RICH LAYOUT
   ============================================================ */

footer.site-footer {
  background: #1e3a2a;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 64px 48px 0;
}

.footer-rich {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--pt-violet-hover);
  border: 1px solid var(--pt-violet-hover);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.footer-brand {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.footer-brand span { color: var(--gold-500); }

.footer-brand-sub {
  font-size: 0.67rem;
  color: var(--gray-500);
  letter-spacing: 0.01em;
  margin-top: 2px;
}

.footer-desc {
  font-size: 0.81rem;
  color: var(--gray-300);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-socials { display: flex; gap: 10px; }

.footer-social {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gray-300);
  letter-spacing: -0.01em;
}
.footer-social:hover { background: var(--pt-violet-hover); border-color: var(--pt-violet-hover); color: var(--pt-violet); }
.footer-social .msi { font-size: 1rem; }

.footer-col-title {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pt-violet);
  margin-bottom: 18px;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-links a {
  text-decoration: none;
  font-size: 0.82rem;
  color: var(--gray-300);
  transition: color 0.18s;
  line-height: 1.4;
}
.footer-col-links a:hover { color: #f0f0f0; }

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.81rem;
  color: var(--gray-300);
  line-height: 1.6;
}
.footer-contact-item a { color: var(--gray-300); text-decoration: none; transition: color 0.18s; }
.footer-contact-item a:hover { color: #f0f0f0; }
.footer-contact-icon { font-size: 1rem !important; color: var(--pt-violet) !important; margin-top: 2px; flex-shrink: 0; }

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 0 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.footer-bottom p { font-size: 0.72rem; color: var(--gray-500); line-height: 1.5; }
.footer-legal { font-size: 0.68rem !important; color: var(--gray-700) !important; text-align: right; }

/* ============================================================
   UTILITIES
   ============================================================ */

.text-gold { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .pr-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-rich { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-legal { text-align: left !important; }
}

@media (max-width: 768px) {
  nav.site-nav { padding: 0 20px; gap: 12px; overflow-x: auto; }
  .nav-links { gap: 0; }
  .nav-links li a { font-size: 0.72rem; padding: 5px 8px; }
  .hero { padding: 80px 20px 56px; }
  .hero-split { flex-direction: column; gap: 40px; padding: 80px 20px 56px; }
  .section-wrap { padding: 56px 20px; }
  .band { padding: 24px 20px; }
  .divider { margin: 0 20px; }
  .cta-band { padding: 48px 20px; }
  footer.site-footer { padding: 48px 20px 0; }
  .footer-rich { grid-template-columns: 1fr; gap: 28px; }
  .founder-card { flex-direction: column; }
  .mission-panel { padding: 32px 24px; }
  .contact-form { padding: 24px 20px; }
}

@media (max-width: 640px) {
  .hero-visual { display: none; }
}

/* ============================================================
   AUTH PAGES  (login.html / register.html)
   ============================================================ */

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 18% 22%, rgba(34,197,94,0.07), transparent 40%),
    radial-gradient(circle at 82% 78%, rgba(212,175,55,0.07), transparent 40%),
    var(--bg-base);
}

.auth-wrap {
  width: 100%;
  max-width: 440px;
  padding: 24px;
}

.auth-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow);
}

@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; }
}

/* Logo inside auth card */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 32px;
}
.auth-logo-img {
  height: 52px;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 6px;
}
.auth-logo-text { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.auth-logo-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: normal;
  line-height: 1.3;
  background: linear-gradient(100deg, #14532d 0%, #15803d 48%, #d97706 68%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-logo-tagline {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.04em;
}

/* Headings */
.auth-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 18px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }

.auth-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.auth-input {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius);
  color: #000000;
  font-size: 0.9rem;
  font-family: inherit;
  padding: 11px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background-color 0.15s;
}
.auth-input::placeholder { color: #595959; opacity: 0.7; }
.auth-input:focus {
  border-color: var(--pt-violet);
  box-shadow: 0 0 0 3px var(--pt-violet-hover);
}
/* Suppress Chrome/Edge autofill yellow background flash */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #000000 !important;
}

/* Password toggle wrapper */
.auth-pwd-wrap { position: relative; }
.auth-pwd-wrap .auth-input { padding-right: 42px; }
.auth-pwd-toggle {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  transition: color 0.15s;
}
.auth-pwd-toggle:hover { color: var(--pt-violet); }

/* Error banner */
.auth-error {
  background: rgba(192,0,0,0.07);
  border: 1px solid rgba(192,0,0,0.25);
  border-radius: var(--radius);
  color: #c00000;
  font-size: 0.82rem;
  padding: 10px 14px;
}

/* Submit button */
.auth-submit {
  background: var(--pt-violet);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 4px;
  padding: 13px 20px;
  transition: background 0.18s;
  width: 100%;
}
.auth-submit:hover:not(:disabled) { background: #c96020; }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Footer link */
.auth-footer-link {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 24px;
}
.auth-footer-link a {
  color: var(--pt-violet);
  text-decoration: none;
  font-weight: 600;
}
.auth-footer-link a:hover { text-decoration: underline; }

/* ── SST Upgrade Banners ──────────────────────────────────────────────────── */
.sst-upgrade-banner {
  background: var(--pt-violet-hover);
  border: 1px solid var(--pt-violet-hover);
  border-radius: var(--radius);
  padding: 13px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.sst-upgrade-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; line-height: 1.4; }
.sst-upgrade-text { flex: 1; }
.sst-upgrade-title {
  font-size: 0.80rem;
  font-weight: 600;
  color: #773e18;
  margin-bottom: 4px;
}
.sst-upgrade-sub {
  font-size: 0.74rem;
  color: #595959;
  line-height: 1.55;
}
.sst-limit-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--pt-violet-hover);
  border: 1px solid var(--pt-violet-hover);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 0.70rem;
  color: #773e18;
  font-weight: 600;
}
