/* ===== CSS VARIABLES ===== */
:root {
  /* Colors - Light */
  --bg-primary: #ffffff;
  --bg-secondary: #f7f9fa;
  --bg-tertiary: #eff3f4;
  --text-primary: #0f1419;
  --text-secondary: #536471;
  --text-tertiary: #828d94;
  --border: #eff3f4;
  --border-strong: #cfd9de;
  --accent: #1d9bf0;
  --accent-hover: #1a8cd8;
  --accent-light: rgba(29, 155, 240, 0.1);
  --accent-glow: rgba(29, 155, 240, 0.15);
  --success: #00ba7c;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --nav-bg: rgba(255, 255, 255, 0.85);
  --card-bg: #ffffff;
  --final-cta-bg: linear-gradient(135deg, #1d9bf0 0%, #0d8ae0 50%, #1a6fbf 100%);
  --final-cta-text: #ffffff;
  --hero-glow: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(29, 155, 240, 0.08) 0%, transparent 70%);
  --dot-color: rgba(29, 155, 240, 0.07);
}

[data-theme="dark"] {
  --bg-primary: #000000;
  --bg-secondary: #0f1419;
  --bg-tertiary: #16181c;
  --text-primary: #e7e9ea;
  --text-secondary: #71767b;
  --text-tertiary: #536471;
  --border: #2f3336;
  --border-strong: #3e4245;
  --accent: #1d9bf0;
  --accent-hover: #1a8cd8;
  --accent-light: rgba(29, 155, 240, 0.15);
  --accent-glow: rgba(29, 155, 240, 0.2);
  --success: #00ba7c;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(0, 0, 0, 0.85);
  --card-bg: #16181c;
  --final-cta-bg: linear-gradient(135deg, #1d9bf0 0%, #0d6ebd 50%, #0a4f8a 100%);
  --final-cta-text: #ffffff;
  --hero-glow: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(29, 155, 240, 0.12) 0%, transparent 70%);
  --dot-color: rgba(29, 155, 240, 0.05);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section__title {
  font-size: 2.25rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Satoshi', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(29, 155, 240, 0.35);
}

.btn--primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(29, 155, 240, 0.45);
}

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

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--white {
  background-color: #fff;
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn--white:hover {
  background-color: #f0f0f0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 17px;
}

.btn__icon {
  flex-shrink: 0;
}

/* ===== 0. NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.nav--scrolled {
  box-shadow: var(--shadow-sm);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav__wordmark {
  font-family: 'Satoshi', sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav__link:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.nav__link:hover::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent);
  border-radius: 1px;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__cta {
  padding: 8px 20px;
  font-size: 14px;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  transform: rotate(15deg);
}

.theme-toggle__icon {
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.theme-toggle__moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__moon {
  display: block;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  background-color: var(--bg-primary);
}

.nav__mobile.active {
  display: flex;
}

/* ===== 1. HERO ===== */
.hero {
  padding: 120px 0 80px;
  background-color: var(--bg-primary);
  background-image: var(--hero-glow);
  position: relative;
  overflow: hidden;
}

/* Subtle dot grid background */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero__content {
  flex: 1;
  min-width: 0;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}

.hero__subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.hero__trust svg {
  color: var(--success);
  flex-shrink: 0;
}

.hero__visual {
  flex: 1;
  min-width: 0;
  position: relative;
}

/* Glow behind hero image */
.hero__visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.hero__img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* ===== 2. PAIN POINTS ===== */
.pain {
  padding: 80px 0;
  background-color: var(--bg-secondary);
}

.pain__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.pain__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

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

.pain__emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 16px;
}

.pain__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.pain__bridge {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.pain__bridge strong {
  color: var(--accent);
  position: relative;
}

.pain__bridge strong::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.3;
}

/* ===== 3. DEMO VIDEO ===== */
.demo {
  padding: 80px 0;
  background-color: var(--bg-primary);
}

.demo__wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background-color: var(--bg-tertiary);
}

.demo__video {
  width: 100%;
  display: block;
}

/* ===== 4. FEATURES ===== */
.features {
  padding: 80px 0;
  background-color: var(--bg-secondary);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-glow);
}

.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--accent-light);
  color: var(--accent);
  margin-bottom: 16px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature__card:hover .feature__icon {
  transform: scale(1.1) rotate(-3deg);
  background-color: var(--accent);
  color: #fff;
}

.feature__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== 5. THEMES ===== */
.themes {
  padding: 80px 0;
  background-color: var(--bg-primary);
}

.themes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.themes__item {
  text-align: center;
  transition: transform 0.3s ease;
}

.themes__item:hover {
  transform: scale(1.03);
}

.themes__item img {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 12px;
  width: 100%;
}

.themes__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: 'Satoshi', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== 6. USE CASES ===== */
.usecases {
  padding: 80px 0;
  background-color: var(--bg-secondary);
}

.usecases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.usecase__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.usecase__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.usecase__card:hover::before {
  opacity: 1;
}

.usecase__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.usecase__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.usecase__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== 7. STEPS ===== */
.steps {
  padding: 80px 0;
  background-color: var(--bg-primary);
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}

/* Connector line between steps */
.steps__grid::before {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
  border-radius: 1px;
  opacity: 0.4;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #fff;
  font-family: 'Satoshi', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(29, 155, 240, 0.3);
}

.step__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.steps__cta {
  text-align: center;
}

/* ===== 8. FAQ ===== */
.faq {
  padding: 80px 0;
  background-color: var(--bg-secondary);
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item:first-child {
  border-top: 1px solid var(--border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Satoshi', sans-serif;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s ease;
}

.faq__item:hover .faq__question {
  color: var(--accent);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-tertiary);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq__item[open] .faq__question::after {
  content: "\2212";
  color: var(--accent);
}

.faq__answer {
  padding: 0 0 20px;
}

.faq__answer p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== 9. FINAL CTA ===== */
.final-cta {
  padding: 80px 0;
  background: var(--final-cta-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle shimmer overlay */
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(255, 255, 255, 0.06) 55%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

.final-cta__title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--final-cta-text);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  position: relative;
}

.final-cta__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  position: relative;
}

.final-cta__actions {
  margin-bottom: 16px;
  position: relative;
}

.final-cta__trust {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
}

/* ===== 10. FOOTER ===== */
.footer {
  padding: 32px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.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: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.footer__disclaimer {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays for grid children */
.pain__grid .fade-up:nth-child(2),
.features__grid .fade-up:nth-child(2),
.usecases__grid .fade-up:nth-child(2),
.steps__grid .fade-up:nth-child(2) {
  transition-delay: 0.1s;
}

.pain__grid .fade-up:nth-child(3),
.features__grid .fade-up:nth-child(3),
.usecases__grid .fade-up:nth-child(3),
.steps__grid .fade-up:nth-child(3) {
  transition-delay: 0.2s;
}

.features__grid .fade-up:nth-child(4),
.usecases__grid .fade-up:nth-child(4) {
  transition-delay: 0.3s;
}

.features__grid .fade-up:nth-child(5) {
  transition-delay: 0.15s;
}

.features__grid .fade-up:nth-child(6) {
  transition-delay: 0.25s;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 968px) {
  .hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__trust {
    justify-content: center;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .pain__grid,
  .features__grid,
  .themes__grid,
  .steps__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps__grid::before {
    display: none;
  }

  .section__title {
    font-size: 2rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .nav__links {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1.05rem;
  }

  .pain__grid,
  .features__grid,
  .themes__grid,
  .steps__grid,
  .usecases__grid {
    grid-template-columns: 1fr;
  }

  .steps__grid::before {
    display: none;
  }

  .btn--lg {
    padding: 14px 24px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }

  .hero__actions {
    flex-direction: column;
  }

  .final-cta__title {
    font-size: 1.75rem;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .section__title {
    font-size: 1.75rem;
  }

  .pain, .demo, .features, .themes, .usecases, .steps, .faq, .final-cta {
    padding: 60px 0;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}
