/* Brain Accord - main stylesheet */
:root {
  --purple: #6b4ee6;
  --purple-dark: #5538c8;
  --purple-light: #ede9fe;
  --teal: #2ec4b6;
  --teal-dark: #1fa89c;
  --teal-light: #e0f7f5;
  --orange: #ff9f1c;
  --coral: #ff6b6b;
  --ink: #1e1b2e;
  --ink-soft: #4a4560;
  --muted: #7c7894;
  --bg: #faf9ff;
  --white: #ffffff;
  --border: #e8e4f4;
  --shadow: 0 4px 24px rgba(30, 27, 46, 0.08);
  --shadow-lg: 0 12px 40px rgba(30, 27, 46, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

.hero-visual img { aspect-ratio: 560 / 373; width: 100%; }
.game-card-img img { aspect-ratio: 3 / 2; width: 100%; }
.section-split-visual img { aspect-ratio: 3 / 2; width: 100%; }
.site-header { min-height: 88px; }

.text-muted { color: var(--muted); }

a { color: var(--purple); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--purple-dark); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  padding: 16px 0;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 56px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  justify-self: start;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}

.logo span { color: var(--purple); }

.nav-pill {
  background: var(--white);
  border-radius: 50px;
  padding: 5px 6px;
  box-shadow: 0 4px 24px rgba(30, 27, 46, 0.08);
  border: 1px solid var(--border);
  justify-self: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 10px 22px;
  border-radius: 50px;
  color: #5c5a6e;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.active {
  background: #f3e8ff;
  color: var(--purple-dark);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  padding: 10px;
  justify-self: end;
  box-shadow: var(--shadow);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(30, 27, 46, 0.15);
}

.btn-primary:hover { color: var(--white); box-shadow: 0 6px 20px rgba(30, 27, 46, 0.2); }

.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
}

.btn-outline:hover { background: var(--purple-light); color: var(--purple-dark); }

.btn-teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(30, 27, 46, 0.15);
}

.btn-teal:hover { color: var(--white); }

/* Hero */
.hero {
  padding: 72px 0 80px;
  background: var(--purple-light);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.icon-inline {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--ink);
}

.hero h1 .text-accent {
  color: var(--purple);
}

.hero h1 em {
  font-style: normal;
  color: var(--purple);
}

.hero-text {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 0; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  list-style: none;
  padding: 0;
}

.hero-visual {
  position: relative;
  margin: 0;
}

.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Sections */
section { padding: 72px 0; }

.section-label {
  display: inline-block;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
  color: var(--ink);
}

.section-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 40px;
}

.section-header { text-align: center; margin-bottom: 48px; }
.section-header .section-desc { margin: 0 auto; }

/* Game cards */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.games-grid > li {
  list-style: none;
}

.game-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.game-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--purple-light);
  margin: 0;
}

.game-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-body { padding: 20px; }

.game-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.game-card-body p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.game-tag {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  list-style: none;
  padding: 0;
}

.stat-item {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 16px;
  border: 1px solid var(--border);
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Split section with image */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.section-split-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.section-split-visual {
  margin: 0;
}

.section-split-content .section-desc {
  margin-bottom: 28px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-row {
  padding-left: 18px;
  border-left: 3px solid var(--purple);
}

.step-row h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--ink);
}

.step-row p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  border: 1px solid var(--border);
  position: relative;
}

.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--purple-light);
  line-height: 1;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.step-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-grid > li {
  list-style: none;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s;
}

.feature-card:hover { box-shadow: var(--shadow); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.feature-icon.purple { background: var(--purple-light); }
.feature-icon.teal { background: var(--teal-light); }
.feature-icon.orange { background: #fff3e0; }

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
  list-style: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--purple);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-item[open] .faq-question::after { transform: rotate(45deg); }

.faq-answer-inner {
  padding: 0 22px 18px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* CTA band */
.cta-band {
  background: var(--purple);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  color: var(--white);
}

.cta-band h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cta-band p {
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn { background: var(--white); color: var(--purple); }
.cta-band .btn:hover { color: var(--purple-dark); }

/* Page hero (inner pages) */
.page-hero {
  padding: 56px 0 48px;
  background: var(--purple-light);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Content page */
.content-page { padding: 56px 0 72px; }

.content-page .prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: var(--ink);
}

.prose h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
}

.prose p, .prose li {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.prose ul { padding-left: 22px; margin-bottom: 16px; }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 { margin-bottom: 16px; }

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-detail p { margin: 0; }

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--purple-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: none;
  background: var(--teal-light);
  color: var(--teal-dark);
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 28px;
}

.footer-grid,
.footer-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-contact p,
.footer-contact address {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  font-style: normal;
  margin-bottom: 10px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-contact .footer-company {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 320px;
}

.footer-brand .logo { color: var(--white); margin-bottom: 4px; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

.footer-ca {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  display: none;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner.show { display: block; }

.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.cookie-inner > span:first-child {
  flex: 1;
  min-width: 240px;
}

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Alt section bg */
.bg-white { background: var(--white); }
.bg-soft { background: var(--purple-light); }

/* Responsive */
@media (max-width: 1100px) {
  .footer-grid,
  .footer-layout {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 520px;
  }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
  .section-split { grid-template-columns: 1fr; }
  .section-split-visual { max-width: 480px; margin: 0 auto; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid,
  .footer-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-brand p {
    max-width: 520px;
  }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-pill {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 360px;
    padding: 8px;
    z-index: 101;
  }

  .nav-pill.open { display: block; }

  .nav-links {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .nav-links a {
    text-align: center;
    padding: 12px 20px;
    width: 100%;
  }

  .nav-toggle { display: block; }
}

@media (max-width: 640px) {
  .stats-row,
  .steps-grid,
  .features-grid,
  .games-grid { grid-template-columns: 1fr; }

  .site-footer {
    padding: 40px 0 24px;
  }

  .footer-grid,
  .footer-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-col h4 {
    margin-bottom: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 20px;
  }

  .hero { padding: 48px 0 56px; }

  section { padding: 52px 0; }
}
