:root {
  --midnight: #03060f;
  --deep-navy: #060c1a;
  --navy: #0a1428;
  --blue: #1a6eb5;
  --blue-bright: #3b9eff;
  --blue-dim: rgba(59, 158, 255, 0.12);
  --teal: #2dd4bf;
  --teal-soft: #99f6e4;
  --teal-dim: rgba(45, 212, 191, 0.15);
  --gold: #c9a84c;
  --gold-soft: rgba(201, 168, 76, 0.2);
  --white: #e8f4ff;
  --white-dim: rgba(180, 220, 255, 0.78);
  --white-faint: rgba(180, 220, 255, 0.12);
  --card: rgba(6, 12, 26, 0.9);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--midnight);
  color: var(--white);
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-weight: 300;
  min-height: 100vh;
}

a { color: var(--teal); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Background orbs */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.05; animation: drift linear infinite; }
.orb-1 { width: 600px; height: 600px; background: var(--blue); top: -200px; left: -100px; animation-duration: 25s; }
.orb-2 { width: 400px; height: 400px; background: var(--gold); bottom: 10%; right: -100px; animation-duration: 30s; animation-delay: -10s; }
.orb-3 { width: 350px; height: 350px; background: var(--teal); top: 40%; left: 40%; animation-duration: 20s; animation-delay: -5s; }
.orb-4 { width: 250px; height: 250px; background: var(--blue-bright); bottom: 30%; left: 15%; animation-duration: 22s; animation-delay: -8s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 40px) scale(0.97); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(3, 5, 10, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(59, 158, 255, 0.15);
}
.nav {
  max-width: 1200px; margin: 0 auto; padding: 1.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.logo {
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem;
  letter-spacing: 0.15em; color: var(--white); text-transform: uppercase;
}
.logo span { color: var(--teal); }
.logo-sub { font-size: 0.7rem; letter-spacing: 0.35em; margin-left: 0.75rem; color: var(--white-dim); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--white-dim); font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--teal); transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--teal); color: var(--teal);
  padding: 0.6rem 1.5rem; font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; transition: all 0.3s; white-space: nowrap;
}
.nav-cta:hover { background: var(--teal); color: var(--midnight); }

.main-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }
.main-content.home { max-width: none; padding: 0; }

.site-footer {
  text-align: center; padding: 3rem 2rem; border-top: 1px solid var(--white-faint);
  color: var(--white-dim); font-family: 'DM Mono', monospace; letter-spacing: 0.05em;
  display: flex; flex-direction: column; gap: 0.35rem; align-items: center;
}
.footer-mark { font-size: 0.65rem; letter-spacing: 0.4em; opacity: 0.35; }
.footer-links { display: flex; gap: 1.25rem; font-size: 0.7rem; letter-spacing: 0.1em; margin-top: 0.25rem; }
.footer-links a { color: var(--white-dim); }

/* Hero */
section.hero {
  min-height: 92vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 8rem 2rem 4rem;
}
.hero-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 2rem;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300; line-height: 1.05; color: #f5e6c8; margin-bottom: 1.25rem;
}
.hero-title em { color: var(--teal); font-style: italic; }
.hero-subtitle {
  font-size: 1.05rem; color: var(--white-dim); max-width: 620px;
  line-height: 1.8; margin-bottom: 3.5rem;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2.5rem; font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase; transition: all 0.3s;
}
.btn-primary { background: var(--teal); color: var(--midnight); border: none; }
.btn-primary:hover { background: var(--teal-soft); box-shadow: 0 10px 40px rgba(45, 212, 191, 0.3); transform: translateY(-2px); }
.btn-secondary { background: transparent; border: 1px solid rgba(240, 244, 248, 0.2); color: var(--white-dim); }
.btn-secondary:hover { border-color: var(--white-dim); color: var(--white); }

/* Scan visual */
.scan-visual { margin: 4rem auto 0; width: 160px; height: 160px; position: relative; }
.scan-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--teal); opacity: 0; animation: scanPulse 3s ease-out infinite; }
.scan-ring:nth-child(2) { animation-delay: 1s; }
.scan-ring:nth-child(3) { animation-delay: 2s; }
.scan-core { position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle, var(--teal) 0%, transparent 70%); opacity: 0.6; animation: corePulse 3s ease-in-out infinite; }
@keyframes scanPulse { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes corePulse { 0%, 100% { opacity: 0.4; transform: scale(0.9); } 50% { opacity: 0.8; transform: scale(1.1); } }

/* Sections */
.section { padding: 7rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300; color: #f5e6c8; margin-bottom: 1rem;
}
.section-desc { color: var(--white-dim); max-width: 620px; line-height: 1.8; margin-bottom: 3rem; font-size: 0.98rem; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 2.5rem; }
.section-head .section-desc { margin-bottom: 0; }

/* Flagship feature block */
.flagship {
  background: linear-gradient(135deg, rgba(10,20,40,0.85), rgba(6,12,26,0.85));
  border: 1px solid rgba(59, 158, 255, 0.35);
  border-radius: 22px; padding: 3rem; position: relative; overflow: hidden;
  box-shadow: 0 20px 50px rgba(6, 188, 255, 0.12);
}
.flagship::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue-bright), var(--teal), var(--gold)); }
.flagship-tier { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 1rem; }
.flagship h3 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 300; color: #f5e6c8; margin-bottom: 1rem; }
.flagship p { color: var(--white-dim); line-height: 1.8; max-width: 640px; margin-bottom: 1.5rem; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0 1.75rem; }
.checklist li { color: rgba(255,255,255,0.88); font-size: 0.95rem; }
.flagship-status { font-family: 'DM Mono', monospace; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 1.5rem; }

/* Project grid + cards */
.family { margin-bottom: 4rem; }
.family-label {
  font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.4rem;
}
.family-desc { color: var(--white-dim); font-size: 0.9rem; margin-bottom: 1.5rem; max-width: 680px; line-height: 1.7; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.project-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--white-faint); border-radius: 18px; padding: 1.9rem;
  box-shadow: var(--shadow-soft); transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue-bright), var(--teal));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.project-card:hover::before { transform: scaleX(1); }
.project-card:hover { border-color: rgba(59, 158, 255, 0.5); transform: translateY(-4px); box-shadow: 0 24px 64px rgba(0,0,0,0.45); }
.project-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.55rem; font-weight: 300; color: #f5e6c8; margin-bottom: 0.5rem; }
.project-card p { color: var(--white-dim); line-height: 1.65; font-size: 0.9rem; flex: 1; margin-bottom: 1.1rem; }
.project-card .tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
.project-card .tag-list li { padding: 0.3rem 0.8rem; border-radius: 999px; border: 1px solid var(--white-faint); font-size: 0.72rem; color: var(--white-dim); }
.project-links { display: flex; flex-wrap: wrap; gap: 0.75rem; font-family: 'DM Mono', monospace; font-size: 0.75rem; letter-spacing: 0.05em; }
.project-links a { color: var(--teal); }
.project-links a:hover { color: var(--teal-soft); }

/* Status badges */
.badge {
  display: inline-block; padding: 0.28rem 0.85rem; border-radius: 999px;
  font-family: 'DM Mono', monospace; font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; border: 1px solid; margin-bottom: 1rem; width: fit-content;
}
.badge--public { color: var(--teal); border-color: rgba(45,212,191,0.4); background: rgba(45,212,191,0.08); }
.badge--private { color: var(--gold); border-color: rgba(201,168,76,0.4); background: rgba(201,168,76,0.08); }
.badge--concept { color: var(--blue-bright); border-color: rgba(59,158,255,0.4); background: rgba(59,158,255,0.08); }
.badge--ip { color: var(--white-dim); border-color: var(--white-faint); background: rgba(180,220,255,0.06); }

/* Highlight grid (home portfolio teaser) */
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

/* Training / methods list */
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px; background: rgba(59, 158, 255, 0.06); margin-bottom: 3rem; }
.method-card { background: var(--deep-navy); padding: 2.25rem; border: 1px solid rgba(59, 158, 255, 0.2); transition: all 0.4s; }
.method-card:hover { background: var(--navy); border-color: rgba(59, 158, 255, 0.5); }
.method-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.method-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: #f5e6c8; margin-bottom: 0.6rem; }
.method-card p { font-size: 0.88rem; color: rgba(240,244,248,0.82); line-height: 1.75; }

/* Dataset list */
.dataset-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; }
.dataset-item {
  display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.4rem 1.6rem;
  border: 1px solid var(--white-faint); border-radius: 14px; transition: all 0.3s;
}
.dataset-item:hover { border-color: var(--blue-bright); background: var(--blue-dim); transform: translateX(6px); }
.dataset-emoji { font-size: 1.4rem; }
.dataset-item h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: #f5e6c8; margin-bottom: 0.25rem; }
.dataset-item p { color: var(--white-dim); font-size: 0.88rem; line-height: 1.65; }

/* CTA panel */
.cta { padding: 7rem 2rem; text-align: center; }
.cta-inner {
  max-width: 760px; margin: 0 auto; padding: 5rem 3rem;
  border: 1px solid rgba(59, 158, 255, 0.25); border-radius: 22px; position: relative; overflow: hidden;
}
.cta-inner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(59,158,255,0.07) 0%, transparent 70%); }
.cta-inner > * { position: relative; }
.cta-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; color: #f5e6c8; margin-bottom: 1rem; }
.cta-title em { color: var(--teal); }
.cta-sub { color: var(--white-dim); line-height: 1.8; margin-bottom: 2.5rem; }

/* Content pages */
.page-header { text-align: center; margin-bottom: 3rem; }
.page-header .hero-eyebrow { margin-bottom: 1rem; }
.page-header h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.5rem, 5vw, 3.6rem); font-weight: 300; color: #f5e6c8; }
.page-header p { color: var(--white-dim); margin-top: 0.75rem; max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.8; }

article { max-width: 820px; margin: 0 auto; color: var(--white-dim); line-height: 1.85; }
article h2 { color: #f5e6c8; margin: 2.5rem 0 1rem; font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 300; }
article h3 { color: #f5e6c8; margin: 1.75rem 0 0.75rem; font-family: 'Cormorant Garamond', serif; font-weight: 400; }
article p { margin-bottom: 1.25rem; }
article ul { list-style: disc; margin: 0.5rem 0 1.5rem 1.5rem; }
article li { margin-bottom: 0.5rem; }
article strong { color: var(--white); font-weight: 500; }

/* Principles */
.principle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.principle-card { background: var(--card); border: 1px solid var(--white-faint); border-radius: 14px; padding: 1.5rem; }
.principle-card h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: #f5e6c8; margin-bottom: 0.5rem; }
.principle-card p { font-size: 0.88rem; margin-bottom: 0; }

/* Contact form */
.contact-form { display: grid; gap: 1rem; max-width: 640px; margin: 2rem auto 0; }
.contact-form label { display: flex; flex-direction: column; font-size: 0.92rem; color: rgba(255,255,255,0.9); }
.contact-form input, .contact-form select, .contact-form textarea {
  margin-top: 0.4rem; padding: 0.8rem 1rem; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(0,0,0,0.35);
  color: #fff; font-family: inherit; font-size: 0.95rem;
}
.contact-form button { justify-self: flex-start; margin-top: 0.5rem; }
.contact-form .btn-primary { border: none; cursor: pointer; }
.sr-only { position: absolute; left: -9999px; }
.form-footnote { font-size: 0.85rem; color: rgba(255,255,255,0.65); }

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .section { padding: 5rem 1.5rem; }
  .section-head { flex-direction: column; }
  .flagship { padding: 2rem; }
}
@media (max-width: 768px) {
  .nav { padding: 1.2rem 1.5rem; }
  .cta-inner { padding: 3rem 1.5rem; }
  .main-content { padding: 3rem 1.5rem; }
}
