/* ============================================================
   Molecular Surroundings — Landing Page
   ============================================================ */

:root {
  --bg:            #080c18;
  --surface:       #0e1428;
  --surface-alt:   #131a32;
  --border:        rgba(255, 255, 255, 0.07);
  --text:          #e8eeff;
  --text-muted:    #7a8aaa;
  --accent-cyan:   #22d3ee;
  --accent-violet: #8b5cf6;
  --gradient:      linear-gradient(135deg, #22d3ee, #8b5cf6);

  /* spacing scale (multiples of 8px) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --s-12: 96px;

  --maxw: 1200px;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-3);
}

/* ---------- shared text elements ---------- */
.eyebrow {
  display: inline-block;
  margin: 0 0 var(--s-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-title {
  margin: 0 0 var(--s-3);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-intro {
  max-width: 620px;
  margin: 0 0 var(--s-6);
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #06101c;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(34, 211, 238, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.6);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.brand-mark {
  flex-shrink: 0;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  font-size: 1.02rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.18s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-cta {
  padding: 9px 18px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: var(--s-12) 0 var(--s-8);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--s-8);
  position: relative;
}

.hero-title {
  margin: 0 0 var(--s-3);
  font-size: clamp(2.4rem, 5.4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-sub {
  max-width: 540px;
  margin: 0 0 var(--s-4);
  color: var(--text-muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.orbital {
  width: 100%;
  max-width: 480px;
  height: auto;
}

.orbit-spin {
  transform-origin: center;
  animation: spin 26s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-spin { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--s-12) 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- capability cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-4);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 18px 40px -20px rgba(34, 211, 238, 0.35);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--s-2);
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(34, 211, 238, 0.06);
  color: var(--accent-cyan);
}

.card-title {
  margin: 0 0 var(--s-1);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ---------- platform pills ---------- */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-8);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)),
                    var(--gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -10px rgba(139, 92, 246, 0.5);
}

.pill-glyph {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: 1.05rem;
  line-height: 1;
}

/* ---------- stats ---------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8);
}

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

.stat-num {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- contact ---------- */
.section-contact {
  text-align: center;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-contact .section-intro {
  margin-bottom: var(--s-4);
}

.contact-email {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  border: 1px solid var(--border);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.contact-email:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.5);
}

@media (forced-colors: active) {
  .contact-email {
    -webkit-text-fill-color: LinkText;
    background: none;
    color: LinkText;
  }
}

.contact-note {
  margin-top: var(--s-3);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--s-4) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.footer-left {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.18s ease;
}

.footer-link:hover {
  color: var(--text);
}

/* ============================================================
   SCROLL FADE-IN
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   RESPONSIVE — 768px breakpoint
   ============================================================ */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-2);
    padding: var(--s-3);
    background: rgba(8, 12, 24, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link,
  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding: var(--s-8) 0 var(--s-6);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .hero-art {
    order: -1;
  }

  .orbital {
    max-width: 320px;
  }

  .section {
    padding: var(--s-8) 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: var(--s-6);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
