/* ============================================================
   STABILITY PATH — Main Stylesheet
   ============================================================ */

/* ─── CSS VARIABLES ─── */
:root {
  --sand:       #e8dfc8;
  --sand-light: #f4efe3;
  --earth:      #8b7355;
  --earth-dark: #5c4a32;
  --charcoal:   #1a1a18;
  --ash:        #2e2e2a;
  --slate:      #4a4a44;
  --rust:       #b85c38;
  --rust-light: #d4724e;
  --fog:        #c8c4b8;
  --white:      #faf8f2;
  --accent:     #c8a96e;
}

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

html {
  scroll-behavior: smooth;
}

/* ─── BASE ─── */
body {
  background: var(--charcoal);
  color: var(--sand);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* NOISE TEXTURE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4rem;
  background: rgba(26, 26, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 169, 110, 0.15);
  transition: padding 0.3s ease;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo span {
  color: var(--fog);
  font-size: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  display: block;
  letter-spacing: 0.1em;
  margin-top: -4px;
}

.nav-logo svg {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal) !important;
  background: var(--accent);
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--rust-light) !important;
  color: var(--white) !important;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-visual {
  position: relative;
  background: var(--ash);
  overflow: hidden;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(184, 92, 56, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200, 169, 110, 0.15) 0%, transparent 50%),
    linear-gradient(160deg, #1a1a18 0%, #2e2e2a 50%, #3a3028 100%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 169, 110, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 169, 110, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}

.topo-lines {
  position: absolute;
  inset: 0;
  opacity: 0.12;
}

.hero-compass {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  opacity: 0.15;
  animation: slowRotate 60s linear infinite;
}

.status-badge {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: rgba(200, 169, 110, 0.7);
  letter-spacing: 0.1em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6dbf7a;
  animation: pulse 2s ease-in-out infinite;
}

.hero-coords {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: rgba(200, 169, 110, 0.5);
  letter-spacing: 0.08em;
  line-height: 1.8;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 5rem 4rem 5rem;
  background: var(--charcoal);
  position: relative;
}

.hero-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--rust);
}

h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 6vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 0.3rem;
}

h1 em {
  color: var(--accent);
  font-style: normal;
  display: block;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fog);
  margin: 1.8rem 0 2.8rem;
  font-weight: 300;
  font-style: italic;
  border-left: 2px solid var(--rust);
  padding-left: 1.2rem;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--accent);
  padding: 0.85rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
  background: transparent;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid rgba(200, 196, 184, 0.3);
  transition: all 0.25s;
}

.btn-secondary:hover {
  border-color: var(--fog);
  color: var(--white);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(200, 196, 184, 0.12);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: var(--slate);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* ─── TICKER ─── */
.ticker {
  background: var(--rust);
  padding: 0.7rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.ticker-inner {
  display: flex;
  gap: 4rem;
  animation: ticker 25s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 248, 242, 0.9);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ticker-item::after {
  content: '◆';
  color: rgba(250, 248, 242, 0.4);
  font-size: 0.4rem;
}

/* ─── SECTIONS ─── */
section {
  padding: 7rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--rust);
}

h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  line-height: 1.05;
  color: var(--white);
  letter-spacing: 0.03em;
}

h2 em {
  color: var(--accent);
  font-style: normal;
}

/* ─── ABOUT ─── */
#about {
  background: var(--ash);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '"';
  position: absolute;
  top: -2rem;
  right: 4rem;
  font-family: 'Crimson Pro', serif;
  font-size: 20rem;
  color: rgba(200, 169, 110, 0.04);
  line-height: 1;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-text p {
  color: var(--fog);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.about-text p strong {
  color: var(--sand);
  font-weight: 600;
}

.about-quote {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--accent);
  border-left: 3px solid var(--rust);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  line-height: 1.5;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pillar {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid rgba(200, 196, 184, 0.1);
  border-radius: 4px;
  background: rgba(26, 26, 24, 0.5);
  transition: border-color 0.3s, transform 0.3s;
}

.pillar:hover {
  border-color: rgba(200, 169, 110, 0.3);
  transform: translateX(4px);
}

.pillar-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: rgba(200, 169, 110, 0.2);
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
}

.pillar h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.pillar p {
  font-size: 0.95rem;
  color: var(--fog);
  line-height: 1.6;
}

/* ─── SERVICES ─── */
#services {
  background: var(--charcoal);
}

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}

.services-intro {
  font-size: 1.05rem;
  color: var(--fog);
  font-style: italic;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(200, 196, 184, 0.08);
  border: 1px solid rgba(200, 196, 184, 0.08);
}

.service-card {
  background: var(--charcoal);
  padding: 2.5rem 2rem;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--rust);
  transition: height 0.4s ease;
}

.service-card:hover {
  background: var(--ash);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  display: block;
  opacity: 0.8;
}

.service-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--sand);
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.65;
}

.service-tag {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  border: 1px solid rgba(184, 92, 56, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

/* ─── REGIONS ─── */
#regions {
  background: var(--ash);
  position: relative;
}

.regions-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 3rem;
}

.region-map {
  aspect-ratio: 4 / 3;
  background: var(--charcoal);
  border: 1px solid rgba(200, 196, 184, 0.1);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
}

.map-overlay p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--earth);
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

.region-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.region-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(200, 196, 184, 0.08);
  transition: padding-left 0.3s;
}

.region-item:hover {
  padding-left: 0.5rem;
}

.region-name {
  font-family: 'Crimson Pro', serif;
  font-size: 1.2rem;
  color: var(--sand);
  font-weight: 600;
}

.region-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-active   { color: #6dbf7a; }
.status-support  { color: var(--accent); }
.status-planning { color: var(--slate); }

/* ─── TEAM / FOUNDER ─── */
#team {
  background: var(--charcoal);
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
  margin-top: 3rem;
}

.founder-card {
  background: var(--ash);
  border: 1px solid rgba(200, 196, 184, 0.1);
  padding: 2.5rem;
  border-radius: 4px;
  text-align: center;
}

.founder-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--earth-dark), var(--rust));
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: var(--sand);
  border: 3px solid rgba(200, 169, 110, 0.3);
}

.founder-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.founder-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--rust);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.founder-bio {
  margin-top: 3rem;
}

.founder-bio p {
  font-size: 1.05rem;
  color: var(--fog);
  margin-bottom: 1.2rem;
  line-height: 1.75;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 2px;
  border: 1px solid rgba(200, 169, 110, 0.25);
  color: var(--accent);
  background: rgba(200, 169, 110, 0.06);
}

/* ─── CONTACT ─── */
#contact {
  background: var(--ash);
  position: relative;
  overflow: hidden;
}

#contact::after {
  content: 'PARTNER';
  position: absolute;
  bottom: -2rem;
  right: -1rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12rem;
  color: rgba(200, 169, 110, 0.025);
  pointer-events: none;
  line-height: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
  margin-top: 3rem;
}

.contact-info h3 {
  font-family: 'Crimson Pro', serif;
  font-size: 1.6rem;
  color: var(--sand);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(200, 196, 184, 0.08);
}

.contact-detail-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  opacity: 0.7;
}

.contact-detail-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.3rem;
}

.contact-detail-value {
  font-size: 1rem;
  color: var(--sand);
}

.contact-detail-value a {
  color: var(--sand);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-detail-value a:hover {
  color: var(--accent);
}

/* ─── FORM ─── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(26, 26, 24, 0.6);
  border: 1px solid rgba(200, 196, 184, 0.15);
  border-radius: 2px;
  padding: 0.8rem 1rem;
  color: var(--sand);
  -webkit-text-fill-color: var(--sand);
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(200, 169, 110, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select option {
  background: var(--ash);
}

/* Autofill fix (Chrome) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px rgba(26, 26, 24, 0.6) inset !important;
  -webkit-text-fill-color: var(--sand) !important;
  caret-color: var(--sand);
  transition: background-color 5000s ease-in-out 0s;
}

.btn-submit {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--accent);
  padding: 1rem 2rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
  align-self: flex-start;
}

.btn-submit:hover {
  background: var(--rust);
  color: var(--white);
  transform: translateY(-2px);
}

/* ─── FOOTER ─── */
footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(200, 196, 184, 0.08);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.footer-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: var(--slate);
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ─── SCROLL ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ─── KEYFRAMES ─── */
@keyframes gridShift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

@keyframes slowRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(109, 191, 122, 0.4); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 6px rgba(109, 191, 122, 0); }
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 1rem 2rem; }
  .nav-links { display: none; }

  #hero { grid-template-columns: 1fr; }
  .hero-visual { height: 35vh; }
  .hero-content { padding: 4rem 2rem 3rem; }

  .about-grid,
  .services-header,
  .regions-grid,
  .founder-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .services-grid { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }

  .container { padding: 0 2rem; }
  section    { padding: 4rem 0; }

  .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
}
