/* TOKENS */
:root {
  --ink:        #3F2514;
  --ink-body:   #5C4F3D;
  --rust:       #AD7349;
  --rust-light: #C28A5E;
  --rust-dark:  #8B5A35;
  --gold:       #E3A132;
  --gold-light: #F5C550;
  --white:      #FFFFFF;
  --cream:      #F2EEE8;
  --dust:       #C8C2B8;
  --slate:      #7A8EA0;
  --dkblue:     #0D1B2A;
  --accent:     #A3BED6;
  --taupe:      #ADA383;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/*  RESET  */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

/*  TYPOGRAPHY  */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
h3 span {
  display: inline-block; font-weight: 900; text-align: center;
  color: var(--rust); border-bottom: 1px solid var(--dust); width: 1rem;
}

/*  NAV  */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,27,42,0.96);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  border-bottom: 1px solid rgba(232,160,32,0.2);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--rust-light); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-cta {
  background: var(--rust);
  color: white !important;
  padding: 0.4rem 1.1rem;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--rust-light) !important; }

/*  HAMBURGER (mobile only, hidden by default)  */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: 0.3s;
  transform-origin: center;
}
.hamburger.open span:first-child  { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/*  MOBILE OVERLAY  */
.mobile-overlay {
  display: none;
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--dkblue);
  z-index: 999;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.mobile-overlay.open { display: block; opacity: 1; pointer-events: auto; }
.overlay-inner {
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
}
.overlay-inner a {
  color: var(--cream);
  text-decoration: none;
  font-size: 1.5rem;
  padding: 1rem 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.overlay-inner a:hover { color: var(--gold); }
.overlay-inner a.nav-cta {
  margin-top: 1.5rem;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold);
  text-align: center;
  padding: 0.875rem 1rem;
}
.overlay-inner a.nav-cta:hover { background: var(--gold); color: var(--dkblue); }

/*  HERO  */
.hero {
  min-height: 100vh;
  background: var(--dkblue);
  display: flex;
  align-items: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 70% 50%, rgba(27,138,107,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(232,160,32,0.1) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Hero inner — mobile first: single column */
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.hero-left { display: flex; flex-direction: column; }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--gold); }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.btn-primary {
  background: var(--rust-dark);
  color: white;
  padding: 0.85rem 2rem;
  border: 2px solid #fff;
  border-radius: 6px;
  outline: 2px solid var(--rust);
  font-weight: 600; font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--rust-light); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.95);
  padding: 0.85rem 2rem;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.85);
  font-weight: 500; font-size: 1.1rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: white; }

.hero-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/*  HERO RIGHT — micro-services card  */
.hero-right {
  border-top: 1px solid var(--dust);
  padding: 1.5rem 0 0;
}
.hero-right-label {
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
  display: block; margin-bottom: 0.75rem;
}
.hero-right h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--accent);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.hero-right-intro {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-right-intro strong { color: var(--gold-light); font-weight: 600; }

.validation-list { list-style: none; padding: 0; margin: 0; }
.validation-list li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
}
.validation-list li:last-child { border-bottom: none; padding-bottom: 0; }
.val-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: rgba(173,115,73,0.2);
  border: 1px solid rgba(173,115,73,0.35);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; margin-top: 0.1rem;
}
.val-source {
  display: block;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

/*  SECTIONS  */
section { padding: 80px 5%; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--rust);
  margin-bottom: 0.75rem; display: block;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.section-body {
  font-size: 1.05rem;
  color: #000;
  line-height: 1.8;
}

/*  FOUNDER  */
#founder { background: var(--dkblue); }
#founder .section-title { color: var(--white); }
#founder .section-label { color: var(--gold-light); }
.founder-bio {background: var(--cream); padding: 2rem; border-radius: 0.5rem}
.founder-bio p { margin-bottom: 1rem; }

/*  ABOUT  */
#about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 3rem;
}
.about-text p { color: var(--dkblue); line-height: 1.85; margin-bottom: 1.25rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-callout {
  background: var(--ink);
  border-radius: 12px;
  padding: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.about-callout::after {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(27,138,107,0.3), transparent 70%);
  border-radius: 50%;
}
.about-callout blockquote {
  font-family: var(--font-display);
  font-size: 1.1rem; font-style: italic; line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem; position: relative; z-index: 1;
}
.about-callout cite {
  font-size: 0.8rem; color: var(--gold-light);
  font-style: normal; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
}

/*  PLATFORM  */
#platform { background: var(--cream); }
.platform-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.feature-card {
  background: var(--white);
  border-radius: 12px; padding: 1.75rem;
  border: 1px solid var(--dust);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--rust);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.feature-card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 44px; height: 44px;
  background: rgba(173,115,73,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.25rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; color: var(--ink); margin-bottom: 0.75rem;
}
.feature-card p { font-size: 0.9rem; color: var(--slate); line-height: 1.7; }

/*  PRICING  */
#pricing { background: var(--dkblue); }
#pricing .section-title { color: var(--white); }
#pricing .section-label { color: var(--gold-light); }
#pricing .section-body { color: rgba(255,255,255,0.55); }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.price-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 2rem;
  transition: border-color 0.2s;
}
.price-card.featured { background: var(--rust); border-color: var(--rust); }
.price-card:not(.featured):hover { border-color: rgba(255,255,255,0.25); }
.price-tier {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 0.75rem; display: block;
}
.price-card.featured .price-tier { color: rgba(255,255,255,0.8); }
.price-amount {
  font-family: var(--font-display);
  font-size: 2.25rem; color: white;
  line-height: 1; margin-bottom: 0.5rem;
}
.price-desc { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem; }
.price-card.featured .price-desc { color: rgba(255,255,255,0.75); }
.price-features { list-style: none; }
.price-features li {
  font-size: 0.875rem; color: rgba(255,255,255,0.7);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; gap: 0.6rem; align-items: flex-start;
}
.price-card.featured .price-features li { color: rgba(255,255,255,0.9); }
.price-features li::before { content: '✓'; color: var(--rust-light); font-weight: 700; flex-shrink: 0; }
.price-card.featured .price-features li::before { color: var(--gold-light); }

/*  DIAGRAMS  */
#innovation { background: var(--white); }
.diagram-block {
  margin-top: 2.5rem;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--dust);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.diagram-block img { width: 100%; display: block; }
.diagram-caption {
  background: var(--cream); padding: 0.75rem 1.25rem;
  font-size: 0.8rem; color: var(--slate);
  font-style: italic; border-top: 1px solid var(--dust);
}

/*  SUCCESS FACTORS  */
#success { background: var(--cream); }
.success-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.success-card {
  background: var(--white);
  border-radius: 12px; padding: 1.75rem;
  border-left: 4px solid var(--rust);
}
.success-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; color: var(--ink); margin-bottom: 0.75rem;
}
.success-card p { font-size: 0.9rem; color: var(--slate); line-height: 1.7; }
.success-card ul { margin-top: 0.75rem; padding-left: 1rem; }
.success-card ul li { font-size: 0.85rem; color: var(--slate); margin-bottom: 0.3rem; }

/*  OPEN SOURCE  */
#opensource { background: var(--ink); }
#opensource .section-title { color: white; }
#opensource .section-label { color: var(--gold-light); }
.oss-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.oss-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 1.75rem;
}
.oss-name {
  font-family: var(--font-display);
  font-size: 1.2rem; color: var(--gold-light); margin-bottom: 0.5rem;
}
.oss-card p { font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.oss-badge {
  display: inline-block; margin-top: 0.75rem;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--rust-light); border: 1px solid var(--rust);
  padding: 0.2rem 0.6rem; border-radius: 100px;
}

/*  BLUEPRINT  */
#blueprint { background: var(--cream); }

/*  RESEARCH  STATS  */
#research { background: var(--dkblue); }
#research .section-label { color: var(--gold-light); }
#research .section-title { color: var(--white); }
#research .section-body { color: rgba(255,255,255,0.6); margin-bottom: 3rem; }

.stats-grid {display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2.5rem;}
.stat-card { background: rgba(255,255,255,0.04); border-radius: 12px;  padding: 1.75rem;
  border: 4px solid var(--rust); transition: border-color 0.2s, background 0.2s}
.stat-card:hover {background: rgba(255,255,255,0.07); border-color: var(--gold)}
.stat-card-num {font-family: var(--font-display); font-size: 2.5rem;  color: var(--gold);
  line-height: 1; margin-bottom: 0.5rem}
.stat-card-claim {font-size: 0.95rem; color: rgba(255,255,255,0.85); line-height: 1.65; margin-bottom: 0.75rem}
.stat-card-source {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(227,161,50,0.3);
  padding-bottom: 0.1rem;
  transition: color 0.2s, border-color 0.2s;
}
.stat-card-source:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}
.stat-card-source::after { content: ' →'; }

/*  FOOTER  */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 3rem 5%;
  text-align: center;
  font-size: 0.85rem;
}
footer strong { color: var(--gold-light); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-links {
  display: flex; justify-content: center;
  gap: 1.5rem; flex-wrap: wrap;
  list-style: none; margin-bottom: 1.5rem;
}
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }

/*  ANIMATIONS  */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ============================================================
   BREAKPOINTS — all in one place, no duplicates
   ============================================================ */

@media (min-width: 768px) and (max-width: 1023px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-right { border-top: none; border-left: 4px solid var(--dust); padding: 0 0 0 2rem; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .platform-cols { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .success-grid { grid-template-columns: repeat(2, 1fr); }
  .oss-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .hero-right { border-top: none; border-left: 4px solid var(--dust); padding: 0 0 0 2.5rem; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .platform-cols { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .success-grid { grid-template-columns: repeat(2, 1fr); }
  .oss-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}