/* ============================================================
   4 Core Labs — Design System
   Space Grotesk + Inter · Navy/Teal/Amber
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── Tokens ── */
:root {
  --navy:    #0A0E1A;
  --navy2:   #111827;
  --navy3:   #1C2333;
  --teal:    #00C896;
  --teal2:   #00A87A;
  --amber:   #F59E0B;
  --slate:   #8B9BB4;
  --white:   #F0F4F8;
  --offwhite:#E8EDF5;
  --text:    #CBD5E1;
  --border:  rgba(0,200,150,0.15);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --glow:   0 0 40px rgba(0,200,150,0.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal2); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
p  { color: var(--text); }

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

/* ── Layout ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section-light {
  background: var(--navy2);
  padding: 96px 0;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
}
.nav-logo img { height: 32px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-login {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: var(--r-sm);
  transition: color 0.2s, border-color 0.2s;
}
.btn-login:hover { color: var(--teal); border-color: var(--teal); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--teal);
  color: var(--navy);
}
.btn-primary:hover {
  background: #00e0a8;
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,200,150,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-1px);
}
.btn-amber {
  background: var(--amber);
  color: #1a0a00;
}
.btn-amber:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

/* ── Circuit Pulse (signature element) ── */
.circuit-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--teal) 20%,
    var(--teal2) 50%,
    var(--teal) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: pulse 3s ease-in-out infinite;
  opacity: 0.6;
  margin: 0;
}
@keyframes pulse {
  0%   { background-position: 200% center; opacity: 0.3; }
  50%  { background-position: 0% center; opacity: 0.8; }
  100% { background-position: -200% center; opacity: 0.3; }
}

/* ── Hero ── */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,200,150,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(0,200,150,0.1);
  border: 1px solid rgba(0,200,150,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}
.hero h1 span { color: var(--teal); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--slate);
  max-width: 580px;
  margin: 20px 0 40px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Cards ── */
.card-grid {
  display: grid;
  gap: 20px;
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  border-color: rgba(0,200,150,0.4);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}
.card h3 { margin-bottom: 10px; }
.card p  { font-size: 0.9rem; color: var(--slate); line-height: 1.65; }

.card-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  margin: 16px 0 4px;
}
.card-price-label {
  font-size: 0.8rem;
  color: var(--slate);
  margin-bottom: 20px;
}
.card-features {
  list-style: none;
  margin-bottom: 24px;
}
.card-features li {
  font-size: 0.88rem;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.card-features li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.card.featured {
  border-color: var(--teal);
  box-shadow: var(--glow);
  position: relative;
}
.card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--navy);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
}

/* ── Tags ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal);
  background: rgba(0,200,150,0.1);
  border: 1px solid rgba(0,200,150,0.2);
  padding: 4px 10px;
  border-radius: 100px;
}
.tag-amber {
  color: var(--amber);
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.2);
}

/* ── Stats row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 64px;
}
.stat {
  background: var(--navy3);
  padding: 32px 24px;
  text-align: center;
}
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  display: block;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 4px;
}

/* ── Mission banner ── */
.mission-banner {
  background: linear-gradient(135deg, rgba(0,200,150,0.12) 0%, rgba(245,158,11,0.08) 100%);
  border: 1px solid rgba(0,200,150,0.2);
  border-radius: var(--r-lg);
  padding: 48px;
  text-align: center;
}
.mission-banner h2 { margin-bottom: 16px; }
.mission-banner p  { max-width: 600px; margin: 0 auto 28px; }

/* ── Chat demo ── */
.chat-demo {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}
.chat-header {
  background: var(--navy2);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-header-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 2s ease-in-out infinite;
}
.chat-header span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}
.chat-header small { color: var(--slate); font-size: 0.75rem; }
.chat-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.msg-gaia { flex-direction: row; }
.msg-student { flex-direction: row-reverse; }
.msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--navy2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.msg-gaia .msg-avatar { background: rgba(0,200,150,0.15); border-color: rgba(0,200,150,0.3); }
.msg-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 0.88rem;
  line-height: 1.6;
}
.msg-gaia .msg-bubble {
  background: var(--navy2);
  border: 1px solid var(--border);
  color: var(--text);
  border-top-left-radius: 2px;
}
.msg-student .msg-bubble {
  background: rgba(0,200,150,0.15);
  border: 1px solid rgba(0,200,150,0.2);
  color: var(--white);
  border-top-right-radius: 2px;
}
.msg-bubble strong { color: var(--teal); }

/* ── Honest box ── */
.honest-box {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: var(--r-md);
  padding: 24px 28px;
  margin-top: 48px;
}
.honest-box h4 { color: var(--amber); margin-bottom: 8px; }
.honest-box p  { font-size: 0.9rem; color: var(--slate); }

/* ── Process steps ── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  background: rgba(0,200,150,0.1);
  border: 1px solid rgba(0,200,150,0.2);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step h3 { margin-bottom: 8px; }
.step p  { font-size: 0.9rem; color: var(--slate); }

/* ── Comparison table ── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.compare-table th {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  padding: 14px 18px;
  text-align: left;
  background: var(--navy3);
  color: var(--white);
  border-bottom: 2px solid var(--teal);
}
.compare-table th.gaia-col { color: var(--teal); }
.compare-table td {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text);
  vertical-align: middle;
}
.compare-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.compare-table td.gaia-col { color: var(--white); font-weight: 500; }
.check-yes { color: var(--teal); font-size: 1.1rem; }
.check-no  { color: var(--slate); }
.check-partial { color: var(--amber); }

/* ── Contact form ── */
.contact-section { padding: 96px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p  { margin-bottom: 32px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.contact-detail-icon {
  width: 36px; height: 36px;
  background: rgba(0,200,150,0.1);
  border: 1px solid rgba(0,200,150,0.2);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.form-card {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
}
.form-group select option { background: var(--navy2); }
.form-group textarea { resize: vertical; min-height: 110px; }

/* ── Footer ── */
.footer {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--slate);
  margin-top: 12px;
  max-width: 260px;
  line-height: 1.7;
}
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.88rem;
  color: var(--slate);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--slate);
}
.footer-bottom a { color: var(--slate); font-size: 0.82rem; }
.footer-bottom a:hover { color: var(--teal); }
.social-links {
  display: flex;
  gap: 12px;
}
.social-links a {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--slate);
  transition: border-color 0.2s, color 0.2s;
}
.social-links a:hover { border-color: var(--teal); color: var(--teal); }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 64px 0; }

/* ── Highlight text ── */
.highlight { color: var(--teal); }
.highlight-amber { color: var(--amber); }

/* ── Section header ── */
.section-header { margin-bottom: 56px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 560px;
}

/* ── Mobile nav toggle ── */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--white);
  font-size: 1.1rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .section, .section-light { padding: 64px 0; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 65px; left: 0; right: 0;
    background: var(--navy2); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 16px 24px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-inner { position: relative; flex-wrap: wrap; }
  .mission-banner { padding: 32px 24px; }
  .form-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .card { padding: 24px; }
  .hero { padding: 72px 0 48px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
