/* =========================================
   neuroPerit Landing Page — Design System
   ========================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;600;800&display=swap');

/* --- Design Tokens --- */
:root {
  --color-bg: #333333;
  --color-surface: #2a2a2a;
  --color-surface-dark: #222222;
  --color-surface-hover: #323232;
  --color-accent: #FFAF53;
  --color-accent-hover: #e09a3e;
  --color-accent-muted: rgba(255, 175, 83, 0.08);
  --color-text: #ffffff;
  --color-text-muted: #e5e5e5;
  --color-text-subtle: #9ca3af;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-accent: rgba(255, 175, 83, 0.3);
  --font-family: 'Raleway', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --max-width: 1200px;
  --section-padding: 100px 24px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* --- Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--color-text-subtle);
  max-width: 600px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #1a1a1a;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 175, 83, 0.35);
}

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

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--color-surface-dark);
  padding: 14px 24px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.navbar-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-logo img {
  height: 36px;
  width: auto;
}

.navbar-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.navbar-logo-text span {
  color: var(--color-accent);
}

/* --- Language Switcher --- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--color-text-subtle);
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
}

.lang-btn:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn.active {
  background: var(--color-accent);
  color: #1a1a1a;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* Subtle background effects */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(255, 175, 83, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(255, 175, 83, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Subtle grid pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 32px;
  object-fit: contain;
  animation: fadeDown 0.8s ease both;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.15s both;
}

.hero-title .accent {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  color: var(--color-text-subtle);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.75;
  animation: fadeUp 0.8s ease 0.3s both;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.45s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-subtle);
  margin-top: 28px;
  letter-spacing: 0.05em;
  animation: fadeUp 0.8s ease 0.6s both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   PROBLEM → SOLUTION
   ========================================= */
.problem-solution {
  padding: var(--section-padding);
  background: var(--color-surface-dark);
}

.problem-solution .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.ps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .ps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.ps-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--color-border);
}

.ps-card.after {
  border-color: var(--color-border-accent);
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(255,175,83,0.04) 100%);
}

.ps-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.ps-card.before .ps-card-label { color: #f87171; }
.ps-card.after .ps-card-label { color: var(--color-accent); }

.ps-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.ps-list li:last-child {
  border-bottom: none;
}

.ps-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ps-icon.bad { color: #f87171; }
.ps-icon.good { color: #4ade80; }

/* =========================================
   FEATURES
   ========================================= */
.features {
  padding: var(--section-padding);
}

.features .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.feature-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--color-text-subtle);
  line-height: 1.65;
}

.feature-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--color-accent-muted);
  color: var(--color-accent);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* =========================================
   HOW IT WORKS
   ========================================= */
.how-it-works {
  padding: var(--section-padding);
  background: var(--color-surface-dark);
}

.how-it-works .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.steps-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .steps-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .steps-container::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(16.67% + 20px);
    right: calc(16.67% + 20px);
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      var(--color-accent) 0px,
      var(--color-accent) 8px,
      transparent 8px,
      transparent 18px
    );
  }
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #1a1a1a;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 0 0 8px rgba(255, 175, 83, 0.12);
}

.step-icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  margin-bottom: 16px;
}

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

.step-desc {
  font-size: 0.9rem;
  color: var(--color-text-subtle);
  line-height: 1.65;
  max-width: 220px;
}

/* =========================================
   STATS
   ========================================= */
.stats {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.stats .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  line-height: 1.5;
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
  padding: var(--section-padding);
  background: var(--color-surface-dark);
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner .section-title {
  margin-bottom: 12px;
}

.cta-inner .section-subtitle {
  margin: 0 auto 48px;
}

/* Contact Form */
.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--color-border);
  text-align: left;
}

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

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.form-input {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-input::placeholder {
  color: var(--color-text-subtle);
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 175, 83, 0.15);
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-subtle);
  margin-top: 16px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--color-surface-dark);
  border-top: 1px solid var(--color-border);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-logo-text {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  max-width: 240px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--color-text-subtle);
  text-align: right;
}

@media (max-width: 767px) {
  .footer-copy {
    text-align: left;
  }
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 32px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-subtle);
}

.footer-bottom span {
  color: var(--color-accent);
}

/* =========================================
   RESPONSIVE HELPERS
   ========================================= */
@media (max-width: 639px) {
  :root {
    --section-padding: 72px 20px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  .contact-form {
    padding: 28px 20px;
  }
}
