/* ============================================
   YourBrand — modern landing page styles
   Edit colors in :root, structure in cards/sections
   ============================================ */

:root {
  /* Brand palette — change these to retheme everything */
  --bg:           #0a0e1a;
  --bg-alt:       #0f1424;
  --surface:      #141a2e;
  --surface-hi:   #1c2340;
  --border:       rgba(255, 255, 255, 0.08);
  --border-hi:    rgba(255, 255, 255, 0.16);

  --text:         #e8ecf5;
  --text-dim:     #9aa3b8;
  --text-faint:   #6b7388;

  --accent:       #7c5cff;     /* electric violet */
  --accent-2:     #2dd4bf;     /* mint teal */
  --accent-3:     #f472b6;     /* pink pop */
  --gradient:     linear-gradient(135deg, #7c5cff 0%, #2dd4bf 50%, #f472b6 100%);

  --radius:       16px;
  --radius-sm:    10px;
  --shadow-glow:  0 20px 60px -20px rgba(124, 92, 255, 0.5);
  --shadow-card:  0 10px 30px -10px rgba(0, 0, 0, 0.4);

  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Background decorations
   ============================================ */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(45, 212, 191, 0.12), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(244, 114, 182, 0.10), transparent 60%),
    var(--bg);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  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: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 14, 26, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.brand-mark {
  display: inline-block;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 22px;
  filter: drop-shadow(0 0 12px rgba(124, 92, 255, 0.4));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-dim);
  transition: color 0.2s ease;
}

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

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  color: var(--text) !important;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--surface-hi);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: none;
  border: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: flex; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 8s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero-sub {
  max-width: 580px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.85); }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 25px 70px -20px rgba(244, 114, 182, 0.5);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-hi);
}

.btn-ghost:hover {
  background: var(--surface-hi);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  color: var(--accent-2);
  transition: gap 0.2s ease;
}

.link-arrow:hover { gap: 10px; }

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 100px 0;
  position: relative;
}

.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015), transparent); }

.section-head {
  max-width: 640px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
  line-height: 1.1;
}

.section-head p {
  color: var(--text-dim);
  font-size: 17px;
}

/* ============================================
   Feature cards
   ============================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

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

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.card > * { position: relative; z-index: 1; }

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

.card:hover::before { opacity: 0.05; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  font-size: 26px;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-dim);
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================
   About
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-grid h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 12px 0 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.about-grid p {
  color: var(--text-dim);
  font-size: 17px;
  margin: 0 0 16px;
}

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.about-visual {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.7;
  animation: float 10s ease-in-out infinite;
}

.orb-1 {
  width: 220px; height: 220px;
  background: var(--accent);
  top: 20%; left: 20%;
  animation-delay: 0s;
}

.orb-2 {
  width: 180px; height: 180px;
  background: var(--accent-2);
  bottom: 20%; right: 20%;
  animation-delay: -3s;
}

.orb-3 {
  width: 140px; height: 140px;
  background: var(--accent-3);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(20px, -20px); }
}

/* ============================================
   Stats
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat { text-align: center; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}

/* ============================================
   CTA
   ============================================ */
.section-cta { padding: 60px 0 100px; }

.cta-card {
  text-align: center;
  padding: 80px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(124, 92, 255, 0.15), transparent 60%);
  pointer-events: none;
}

.cta-card > * { position: relative; }

.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 12px 0 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cta-card p {
  max-width: 480px;
  margin: 0 auto 32px;
  color: var(--text-dim);
  font-size: 17px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-meta {
  color: var(--text-faint);
  font-size: 13px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-dim);
}

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

/* ============================================
   Reveal-on-scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
