/* ================================================================
   NeuroPilot — Landing Page Styles
   ================================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Custom Scrollbar (auto-hide) ── */
html {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
html.is-scrolling {
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 10px;
  transition: background 0.3s;
}
html.is-scrolling ::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
}
html.is-scrolling ::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #e8e8f0;
  background: #0a0a14;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Ambient background ── */
.ambient {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  will-change: transform;
}
.ambient-orb--1 {
  width: 600px; height: 600px;
  top: -120px; left: -80px;
  background: radial-gradient(circle, #7c4dff 0%, transparent 70%);
  animation: float1 18s ease-in-out infinite;
}
.ambient-orb--2 {
  width: 500px; height: 500px;
  bottom: -100px; right: -60px;
  background: radial-gradient(circle, #00e5ff 0%, transparent 70%);
  animation: float2 22s ease-in-out infinite;
}
.ambient-orb--3 {
  width: 350px; height: 350px;
  top: 40%; left: 55%;
  background: radial-gradient(circle, #ff4081 0%, transparent 70%);
  opacity: 0.2;
  animation: float3 26s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(60px, 40px) scale(1.08); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-50px, -30px) scale(1.05); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, 20px) scale(1.12); }
}

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  z-index: 100;
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}
.navbar-logo svg { width: 28px; height: 28px; }

.navbar-right {
  display: flex; align-items: center; gap: 10px;
}

.lang-btn {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.6);
  padding: 7px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s;
}
.lang-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
}

.nav-login {
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.7);
  padding: 8px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s;
}
.nav-login:hover {
  color: #fff;
  border-color: rgba(124,77,255,0.5);
  background: rgba(124,77,255,0.1);
}

.nav-signup {
  font-size: 14px; font-weight: 600;
  color: #fff;
  padding: 8px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c4dff, #536dfe);
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(124,77,255,0.3);
}
.nav-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124,77,255,0.45);
}

/* ── Hero ── */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 140px 24px 80px;
  z-index: 1;
}

.hero-logo-text {
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #7c4dff 0%, #00e5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.8s ease-out both;
  user-select: none;
}

.hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: -1px;
  line-height: 1.25;
  margin-bottom: 20px;
  animation: fadeUp 0.8s 0.1s ease-out both;
}
.hero-title .gradient {
  background: linear-gradient(135deg, #7c4dff, #00e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
  animation: fadeUp 0.8s 0.2s ease-out both;
}

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

.hero-actions {
  display: flex; gap: 16px;
  animation: fadeUp 0.8s 0.3s ease-out both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px;
  font-size: 16px; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c4dff, #536dfe);
  border-radius: 14px;
  transition: all 0.25s;
  box-shadow: 0 8px 32px rgba(124,77,255,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124,77,255,0.5);
}
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px;
  font-size: 16px; font-weight: 600;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  transition: all 0.25s;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
  color: #fff;
}

/* ── Features ── */
.features {
  position: relative; z-index: 1;
  padding: 80px 24px 100px;
}
.features-header {
  text-align: center;
  margin-bottom: 56px;
}
.features-header h2 {
  font-size: 36px; font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.features-header p {
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 36px 28px 30px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.06);
}
.feature-card:nth-child(1) { --accent: #7c4dff; }
.feature-card:nth-child(1) .feature-icon { background: rgba(124,77,255,0.12); }
.feature-card:nth-child(2) { --accent: #00e5ff; }
.feature-card:nth-child(2) .feature-icon { background: rgba(0,229,255,0.12); }
.feature-card:nth-child(3) { --accent: #ff4081; }
.feature-card:nth-child(3) .feature-icon { background: rgba(255,64,129,0.12); }

.feature-card h3 {
  font-size: 18px; font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

/* ── Stories / Testimonials ── */
.stories {
  position: relative; z-index: 1;
  padding: 80px 48px 60px;
  text-align: center;
}
.stories-header {
  margin-bottom: 48px;
}
.stories-header h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.stories-header p {
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
.stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.story-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 32px 26px 28px;
  text-align: left;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.story-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}
.story-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #7c4dff;
  background: rgba(124,77,255,0.1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
  align-self: flex-start;
}
.story-quote {
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  flex: 1;
  margin: 0;
  quotes: none;
  position: relative;
  padding-left: 0;
}
.story-quote::before {
  content: '"';
  font-size: 48px;
  font-family: Georgia, serif;
  color: rgba(124,77,255,0.25);
  position: absolute;
  top: -14px;
  left: -4px;
  line-height: 1;
}
.story-result {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  font-weight: 700;
  color: #7c4dff;
  letter-spacing: 0.2px;
}
.stories-disclaimer {
  margin-top: 40px;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  font-style: italic;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ── */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 48px 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 56px;
  max-width: 960px;
  margin: 0 auto;
}
.footer-brand-name {
  font-size: 17px; font-weight: 800;
  color: #fff;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.footer-brand-name svg { width: 22px; height: 22px; }
.footer-brand-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  max-width: 220px;
  margin-bottom: 16px;
}
.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}
.footer-columns {
  display: flex; gap: 56px;
}
.footer-col h4 {
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 2.2;
  transition: color 0.2s;
}
.footer-col a:hover { color: #7c4dff; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .navbar-right { gap: 6px; }
  .nav-login, .nav-signup, .lang-btn { font-size: 12px; padding: 6px 14px; }

  .hero { padding: 120px 20px 60px; min-height: auto; }
  .hero-title { letter-spacing: -1px; }
  .hero-actions { flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }
  .btn-primary, .btn-secondary { justify-content: center; width: 100%; }

  .features-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; gap: 16px; }
  .features { padding: 48px 20px 60px; }

  .stories { padding: 48px 20px 40px; }
  .stories-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; gap: 16px; }

  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-columns { gap: 28px; flex-wrap: wrap; }
  .footer { padding: 28px 20px 20px; }
}
