/* ═══════════════════════════════════════════════════
   NeuroTeam v2 — Apple-style landing
   Mobile-first · Dark theme · Minimal
   ═══════════════════════════════════════════════════ */

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

:root {
  --bg:          #0a0a0a;
  --bg-card:     rgba(255, 255, 255, 0.03);
  --border:      rgba(255, 255, 255, 0.08);
  --text:        #ffffff;
  --text-muted:  #a1a1a6;
  --accent:      #2997FF;
  --accent-hover:#4da8ff;
  --accent-glow: rgba(41, 151, 255, 0.2);
  --header-h:    64px;
  --section-pad: 120px;
}

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; }

/* Custom scrollbar — dark theme */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; transition: background 0.2s; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

body {
  background: var(--bg);
  color: var(--text-muted);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ─── Scroll Animations ─────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.15s; }
.fade-in:nth-child(6) { transition-delay: 0.25s; }
.fade-in:nth-child(7) { transition-delay: 0.35s; }

/* ─── Header ─────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: var(--header-h);
  z-index: 1000;
  transition: background 0.3s ease-out, border-color 0.3s ease-out;
  border-bottom: 1px solid transparent;
}
#header.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease-out;
}
.nav a:hover { color: var(--text); }

.nav-cta {
  padding: 8px 20px !important;
  background: var(--accent) !important;
  color: var(--text) !important;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s ease-out, transform 0.2s ease-out !important;
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Buttons ────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease-out, transform 0.2s ease-out, box-shadow 0.3s ease-out;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-lg {
  padding: 18px 48px;
  font-size: 1.1rem;
}

.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease-out, background 0.2s ease-out, transform 0.2s ease-out;
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

/* ─── Sections ───────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
}

.section-h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 64px;
}

/* ─── 1. Hero ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 600px; height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 107, 53, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ─── 2. Social Proof Bar ────────────────────────── */
.proof-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.proof-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.proof-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Cards (Problem, Solution, Use Cases) ───────── */
.card-grid {
  display: grid;
  gap: 24px;
}
.three-col { grid-template-columns: 1fr; }

.card {
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s ease-out, transform 0.3s ease-out;
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.card-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.card-result {
  margin-top: 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
}

/* ─── 5. Agents ──────────────────────────────────── */
.section-agents {
  position: relative;
  overflow: hidden;
}

.agents-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('ui-office.png') center / cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
}

.agent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.agent-card {
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.3s ease-out, transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
.agent-card:hover {
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.08);
}

.agent-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.agent-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.agent-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.agent-outcome {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

/* ─── 6. How It Works ────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.step-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.step-text {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
}

/* ─── 7. Stats ───────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  text-align: center;
}

.stat-number {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0 auto;
}

/* ─── 9. Pricing ─────────────────────────────────── */
.pricing-container {
  text-align: center;
}
.pricing-container .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.pricing-table-wrap {
  max-width: 640px;
  margin: 0 auto 48px;
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}
.pricing-table th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.pricing-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.pricing-table td:first-child {
  font-weight: 600;
  color: var(--text);
}
.pricing-table td.highlight {
  color: var(--accent);
  font-weight: 600;
}

.pricing-note {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.pricing-cta {
  margin-bottom: 0;
}

/* ─── 10. FAQ ────────────────────────────────────── */
.faq-container {
  max-width: 800px;
}

.faq-list {
  margin-top: 48px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  padding: 24px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease-out;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: transform 0.3s ease-out;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p {
  padding: 0 0 24px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Final CTA ──────────────────────────────────── */
.section-cta {
  text-align: center;
  padding: 160px 0;
}

.cta-h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ─── Footer ─────────────────────────────────────── */
#footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo {
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease-out;
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

.footer-legal {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1.5;
  max-width: 600px;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Tablet (768px+)
   ═══════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .container { padding: 0 48px; }

  .proof-grid { grid-template-columns: repeat(4, 1fr); }

  .three-col { grid-template-columns: repeat(2, 1fr); }

  .agent-grid { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }

  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Desktop (1024px+)
   ═══════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  :root { --section-pad: 160px; }

  .three-col { grid-template-columns: repeat(3, 1fr); }

  .agent-grid { grid-template-columns: repeat(3, 1fr); }
  /* 4th row: center the remaining card */
  .agent-grid .agent-card:nth-child(7) {
    grid-column: 2;
  }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Large (1280px+)
   ═══════════════════════════════════════════════════ */
@media (min-width: 1280px) {
  .agent-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .agent-grid .agent-card:nth-child(5) { grid-column: auto; }
  .agent-grid .agent-card:nth-child(6) { grid-column: auto; }
  .agent-grid .agent-card:nth-child(7) { grid-column: auto; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Mobile small (≤480px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-h1 { font-size: 2.25rem; }
}

/* ═══════════════════════════════════════════════════
   MOBILE NAV
   ═══════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    pointer-events: none;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a { font-size: 1rem; }
  .hamburger { display: flex; }
}
