/* shadcn-inspired design tokens + Bootstrap harmony */
:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(222.2 84% 4.9%);
  --card: hsl(0 0% 100%);
  --card-foreground: hsl(222.2 84% 4.9%);
  --muted: hsl(210 40% 96.1%);
  --muted-foreground: hsl(215.4 16.3% 46.9%);
  --border: hsl(214.3 31.8% 91.4%);
  --ring: hsl(222.2 84% 4.9%);
  --primary: hsl(222.2 47.4% 11.2%);
  --primary-foreground: hsl(210 40% 98%);
  --accent: hsl(210 40% 96.1%);
  --accent-foreground: hsl(222.2 47.4% 11.2%);
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --shadow-sm: 0 1px 2px hsl(222.2 84% 4.9% / 0.05);
  --shadow-md: 0 4px 6px -1px hsl(222.2 84% 4.9% / 0.08),
    0 2px 4px -2px hsl(222.2 84% 4.9% / 0.06);
  --gradient-hero: linear-gradient(
    135deg,
    hsl(210 40% 98%) 0%,
    hsl(214 32% 96%) 45%,
    hsl(220 14% 96%) 100%
  );
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: hsl(222.2 84% 4.9%);
    --foreground: hsl(210 40% 98%);
    --card: hsl(222.2 84% 6%);
    --card-foreground: hsl(210 40% 98%);
    --muted: hsl(217.2 32.6% 17.5%);
    --muted-foreground: hsl(215 20.2% 65.1%);
    --border: hsl(217.2 32.6% 17.5%);
    --ring: hsl(212.7 26.8% 83.9%);
    --primary: hsl(210 40% 98%);
    --primary-foreground: hsl(222.2 47.4% 11.2%);
    --accent: hsl(217.2 32.6% 17.5%);
    --accent-foreground: hsl(210 40% 98%);
    --shadow-sm: 0 1px 2px hsl(0 0% 0% / 0.2);
    --shadow-md: 0 4px 6px -1px hsl(0 0% 0% / 0.25);
    --gradient-hero: linear-gradient(
      135deg,
      hsl(222.2 84% 6%) 0%,
      hsl(222 47% 8%) 50%,
      hsl(217 33% 10%) 100%
    );
  }
}

html {
  scroll-behavior: smooth;
}

@media (min-width: 992px) {
  .py-lg-section {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

/* Bootstrap overrides — shadcn-like */
.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: color-mix(in hsl, var(--primary) 92%, var(--foreground));
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-color: var(--primary-foreground);
  --bs-btn-hover-color: var(--primary-foreground);
  border-radius: var(--radius-sm);
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.btn-outline-secondary {
  border-color: var(--border);
  color: var(--foreground);
  background: transparent;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

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

.navbar {
  background: color-mix(in hsl, var(--background) 85%, transparent) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-toggler {
  border-color: var(--border);
}

@media (prefers-color-scheme: dark) {
  .navbar-toggler-icon {
    filter: invert(1);
  }
}

.navbar-brand {
  font-weight: 700;
  font-size: clamp(1.375rem, 2.25vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--foreground) !important;
}

.nav-link {
  color: var(--muted-foreground) !important;
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--foreground) !important;
}

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

.card-shad {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card-shad:hover {
  box-shadow: var(--shadow-md);
  border-color: color-mix(in hsl, var(--border) 70%, var(--foreground));
}

.badge-platform {
  background: var(--muted);
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.section-title {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.hero {
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    ellipse 50% 40% at 70% 20%,
    hsl(217 91% 60% / 0.08),
    transparent 55%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.landing-hero-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 420px;
}

.landing-secondary-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 280px;
}

.landing-img-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pill-new {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  box-shadow: var(--shadow-sm);
}

.pill-new span.highlight {
  color: var(--foreground);
}

.mock-frame {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    var(--muted) 0%,
    var(--card) 40%,
    var(--card) 100%
  );
  box-shadow: var(--shadow-md);
  aspect-ratio: 10 / 16;
  max-height: 420px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.mock-notch {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 22px;
  background: var(--foreground);
  border-radius: 0 0 12px 12px;
  opacity: 0.08;
}

.mock-ui-lines {
  padding: 2.75rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mock-line {
  height: 10px;
  border-radius: 4px;
  background: var(--border);
}

.mock-line.w-40 {
  width: 40%;
}
.mock-line.w-70 {
  width: 70%;
}
.mock-line.w-90 {
  width: 90%;
}

.cta-strip {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
}

.cta-strip .btn-light {
  border-radius: var(--radius-sm);
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--border);
  background: color-mix(in hsl, var(--muted) 50%, var(--background));
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  background: var(--muted);
  color: var(--foreground);
  border: 1px solid var(--border);
}
