/* ============================================================
   TeamKeysOS - Marketing Website CSS
   Dark navy + electric blue design system
   ============================================================ */

/* ── TOKENS ── */
:root {
  --bg: #0a0f1e;
  --bg-2: #0f1629;
  --fg: #ffffff;
  --fg-2: #c8d0e0;
  --muted: #6b7a99;
  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-dim: rgba(59, 130, 246, 0.12);
  --accent-dim-2: rgba(59, 130, 246, 0.06);
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.12);
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(59, 130, 246, 0.08);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 20px;
  --text-xl: 28px;
  --text-2xl: 40px;
  --text-3xl: 56px;
  --text-hero: clamp(48px, 7vw, 96px);

  --sp-xs: 8px;
  --sp-sm: 16px;
  --sp-md: 24px;
  --sp-lg: 40px;
  --sp-xl: 64px;
  --sp-2xl: 96px;
  --sp-section: 100px;

  --container: 1100px;
  --pad-x: 48px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── LAYOUT ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--sp-section) var(--pad-x); }
.section-label {
  font-size: var(--text-xs);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  margin-bottom: 20px;
}
.section-sub {
  text-align: center;
  color: var(--fg-2);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-base);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border-2);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-white {
  background: #fff;
  color: var(--bg);
}
.btn-white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  height: 72px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(16px);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.brand-tk {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}
.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
}
.brand-os { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--fg-2);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color var(--t-fast);
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 10px 22px;
  border-radius: var(--r-md);
  transition: all var(--t-base);
  text-decoration: none;
}
.nav-cta:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: all var(--t-fast);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(10, 15, 30, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--fg-2);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--t-fast);
}
.mobile-menu a:hover { color: var(--fg); }
.mobile-menu .mobile-cta {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--r-md);
  text-align: center;
  margin-top: 12px;
  border: none;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(59,130,246,0.18) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--sp-xl) var(--pad-x);
  text-align: center;
}
.hero-eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -1px;
  margin-bottom: 28px;
}
.hero-headline .accent { color: var(--accent); }
.hero-sub {
  font-size: 18px;
  color: var(--fg-2);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.hero-trust-item .check { color: var(--accent); }

/* ── PAGE HEADER ── */
.page-header {
  padding: 140px var(--pad-x) 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(59,130,246,0.15) 0%, transparent 60%);
}
.page-header .section-label { margin-bottom: 16px; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.page-header .accent { color: var(--accent); }
.page-header p {
  font-size: 18px;
  color: var(--fg-2);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 36px 28px;
  border-radius: var(--r-lg);
  transition: all var(--t-base);
}
.feature-card:hover {
  border-color: var(--accent);
  background: var(--card-hover);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.feature-card p { color: var(--fg-2); font-size: 14px; line-height: 1.7; }
.feature-card .stat {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 16px;
  letter-spacing: 1px;
}
.feature-card .stat-label { font-size: 12px; color: var(--muted); font-family: var(--font-body); font-weight: 400; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }

/* ── STATS ROW ── */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px var(--pad-x);
  background: var(--accent-dim-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  gap: 0;
}
.stat-item { text-align: center; padding: 0 64px; }
.stat-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  margin-top: 8px;
}
.stat-divider { width: 1px; height: 56px; background: var(--border); }

/* ── TWO COLUMNS ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.col-label {
  font-size: var(--text-xs);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.col-headline {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.col-body { color: var(--fg-2); font-size: 16px; line-height: 1.75; margin-bottom: 28px; }
.col-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.col-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--fg-2);
}
.col-list .bullet {
  color: var(--accent);
  font-weight: 700;
  margin-top: 2px;
  flex-shrink: 0;
}
.col-visual {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── DOMAIN CARDS (Neuroscience page) ── */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.domain-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  transition: all var(--t-base);
}
.domain-card:hover {
  border-color: var(--accent);
  background: var(--card-hover);
}
.domain-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.domain-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.domain-card p { color: var(--fg-2); font-size: 15px; line-height: 1.75; }
.domain-card .domain-score {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.score-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.score-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px 40px;
  position: relative;
  transition: all var(--t-base);
}
.pricing-card.featured {
  border-color: var(--accent);
  background: var(--card-hover);
}
.pricing-card:hover { border-color: var(--accent); }
.pricing-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pricing-card .pricing-sub { color: var(--fg-2); font-size: 14px; margin-bottom: 32px; }
.pricing-amount {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.pricing-amount .price {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -1px;
}
.pricing-amount .per { color: var(--muted); font-size: 15px; margin-left: 4px; }
.pricing-amount .note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-2);
}
.pricing-features .check { color: var(--accent); font-weight: 700; margin-top: 1px; flex-shrink: 0; }

/* ── CTA SECTION ── */
.cta-section {
  padding: var(--sp-2xl) var(--pad-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(59,130,246,0.12) 0%, transparent 60%);
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  position: relative;
}
.cta-section p { color: var(--fg-2); font-size: 18px; margin-bottom: 40px; position: relative; }
.cta-section .actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; }

/* ── TEAM SECTION ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--t-base);
}
.team-card:hover { border-color: var(--border-2); }
.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}
.team-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.team-card .role { font-size: 12px; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.team-card p { font-size: 14px; color: var(--fg-2); line-height: 1.7; }

/* ── CLIENTS ── */
.clients-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin-bottom: 64px;
}
.client-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

/* ── WORKFLOW STEPS ── */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.workflow-step {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  position: relative;
}
.workflow-step:last-child { border-right: none; }
.step-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: rgba(59,130,246,0.2);
  line-height: 1;
  margin-bottom: 16px;
}
.workflow-step h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.workflow-step p { font-size: 13px; color: var(--fg-2); line-height: 1.65; }

/* ── FORM (Contact) ── */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.form-field label {
  font-size: var(--text-xs);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: 14px 16px;
  border-radius: var(--r-md);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); }
.form-field select { cursor: pointer; }
textarea { resize: vertical; min-height: 100px; }
.form-submit .btn { width: 100%; justify-content: center; font-size: 16px; padding: 16px 32px; }
.form-privacy { font-size: var(--text-sm); color: var(--muted); text-align: center; }

/* ── FOOTER ── */
footer {
  padding: 40px var(--pad-x);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-meta { color: var(--muted); font-size: var(--text-sm); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: var(--text-sm); transition: color var(--t-fast); }
.footer-links a:hover { color: var(--fg); }

/* ── SECTION DIVIDER ── */
.section-divider { height: 1px; background: var(--border); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  :root { --pad-x: 32px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .workflow-step { border-bottom: 1px solid var(--border); border-right: none; }
}
@media (max-width: 768px) {
  :root { --pad-x: 20px; --sp-section: 72px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-actions .nav-cta { display: none; }

  .hero { min-height: auto; padding: 120px 0 80px; }
  .hero-headline { font-size: clamp(40px, 10vw, 64px); letter-spacing: -0.5px; }
  .hero-actions { flex-direction: column; }
  .hero-trust { flex-direction: column; gap: 12px; }

  .stats-row { flex-wrap: wrap; gap: 24px; padding: 40px 20px; }
  .stat-item { padding: 0; }
  .stat-divider { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse { direction: ltr; }
  .domain-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-step { border-right: none; border-bottom: 1px solid var(--border); }
  .workflow-step:last-child { border-bottom: none; }

  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
  .footer-meta { justify-content: center; }
}