/* ─────────────────────────────────────────────────────────
   wipaflow Landing Page — style.css
   Static version of the design system from globals.css
   ───────────────────────────────────────────────────────── */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--background);
  color: var(--foreground);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ── Light Theme (default) ────────────────────────────── */
:root {
  --background: #fafafa;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --primary: #6c3ee8;
  --primary-foreground: #fafafa;
  --secondary: #f0ecfa;
  --secondary-foreground: #4a2db0;
  --muted: #f3f1fa;
  --muted-foreground: #7a6ca8;
  --accent: #ebe6f7;
  --accent-foreground: #4a2db0;
  --border: #e4dff0;
  --ring: #6c3ee8;

  /* brand */
  --brand: #6c3ee8;
  --brand-foreground: #fafafa;
  --brand-muted: #ebe6f7;
  --brand-glow: rgba(108, 62, 232, 0.3);

  /* gradient raw colors */
  --grad-1: #6c3ee8;
  --grad-2: #8b5cf6;
  --grad-3: #7c5ce8;
}

/* ── Dark Theme ───────────────────────────────────────── */
.dark {
  --background: #0f0e18;
  --foreground: #f5f5f5;
  --card: #18162a;
  --card-foreground: #f5f5f5;
  --primary: #8b6cf6;
  --primary-foreground: #0f0e18;
  --secondary: #24203a;
  --secondary-foreground: #d4c8f0;
  --muted: #1e1b30;
  --muted-foreground: #8a7db8;
  --accent: #2a2548;
  --accent-foreground: #d4c8f0;
  --border: rgba(255, 255, 255, 0.08);
  --ring: #8b6cf6;

  --brand: #8b6cf6;
  --brand-foreground: #0f0e18;
  --brand-muted: #2a2548;
  --brand-glow: rgba(139, 108, 246, 0.35);

  --grad-1: #8b6cf6;
  --grad-2: #a78bfa;
  --grad-3: #8b7cf6;
}

/* ── Typography ───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.15; }
a { color: inherit; text-decoration: none; }

/* ── Container ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Glassmorphism ────────────────────────────────────── */
.glass {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dark .glass {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ── Gradients ────────────────────────────────────────── */
.gradient-brand {
  background: linear-gradient(135deg, var(--grad-1) 0%, var(--grad-2) 50%, var(--grad-3) 100%);
}

.gradient-hero {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(108,62,232,0.25) 0%, transparent 70%),
              linear-gradient(180deg, var(--background) 0%, var(--background) 100%);
}

.dark .gradient-hero {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(139,108,246,0.2) 0%, transparent 70%),
              linear-gradient(180deg, var(--background) 0%, var(--background) 100%);
}

.gradient-text {
  background: linear-gradient(135deg, var(--grad-1) 0%, var(--grad-2) 50%, #7c5cfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  padding: 0.625rem 1.5rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2), var(--grad-3));
  color: white;
  box-shadow: 0 4px 16px var(--brand-glow);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--brand-glow);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
  padding: 0.5rem 0.75rem;
}
.btn-ghost:hover {
  background: var(--accent);
  color: var(--foreground);
}

.btn-lg {
  font-size: 1rem;
  padding: 0.875rem 2rem;
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.4375rem 1rem;
}

.btn-icon {
  padding: 0.5rem;
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
}

/* ── Badge ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid rgba(108,62,232,0.3);
  background: rgba(108,62,232,0.1);
  color: var(--primary);
}

/* ── Icons (inline SVG helper) ────────────────────────── */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Animations ───────────────────────────────────────── */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in-fast {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--brand-glow); }
  50%      { box-shadow: 0 0 40px var(--brand-glow), 0 0 60px var(--brand-glow); }
}

.animate-fade-in       { animation: fade-in 0.6s ease-out both; }
.animate-fade-in-fast  { animation: fade-in-fast 0.3s ease-out both; }
.animate-float         { animation: float 4s ease-in-out infinite; }
.animate-pulse-glow    { animation: pulse-glow 3s ease-in-out infinite; }

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ── Card hover ───────────────────────────────────────── */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px var(--brand-glow);
}

/* ── Scroll-reveal ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   LAYOUT COMPONENTS
   ═══════════════════════════════════════════════════════ */

/* ── Navbar ───────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.navbar-links a:hover {
  color: var(--primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: none;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-menu.open {
  display: flex;
}

@media (max-width: 768px) {
  .navbar-links, .navbar-actions .desktop-only {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1rem;
  overflow: hidden;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}
.hero-orb-1 {
  top: 25%; left: 25%;
  width: 24rem; height: 24rem;
  background: rgba(108,62,232,0.1);
}
.hero-orb-2 {
  bottom: 25%; right: 25%;
  width: 20rem; height: 20rem;
  background: rgba(139,92,246,0.1);
}
.hero-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(108,62,232,0.05);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.stats-strip {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-item {
  text-align: center;
}
.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

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

/* ── Section ──────────────────────────────────────────── */
.section {
  padding: 6rem 1rem;
}
.section-muted {
  background: var(--muted);
}
.dark .section-muted {
  background: var(--muted);
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 32rem;
  margin: 0 auto;
}

/* ── Steps grid ───────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.step-card {
  position: relative;
}
.step-card-inner {
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  border: 1px solid var(--border);
}
.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.step-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
}
.step-icon {
  padding: 0.625rem;
  border-radius: 0.75rem;
  background: rgba(108,62,232,0.1);
  color: var(--primary);
}
.step-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.step-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.step-arrow {
  display: none;
  position: absolute;
  top: 50%;
  right: -0.75rem;
  z-index: 10;
  color: var(--primary);
  opacity: 0.4;
}

@media (min-width: 1024px) {
  .step-arrow { display: flex; }
}
@media (max-width: 1023px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ── Features grid ────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.feature-icon {
  display: inline-flex;
  padding: 0.75rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* feature icon colors */
.feature-emerald .feature-icon { background: rgba(52,211,153,0.1); color: #34d399; }
.feature-yellow  .feature-icon { background: rgba(250,204,21,0.1);  color: #facc15; }
.feature-blue    .feature-icon { background: rgba(96,165,250,0.1);  color: #60a5fa; }
.feature-violet  .feature-icon { background: rgba(167,139,250,0.1); color: #a78bfa; }
.feature-pink    .feature-icon { background: rgba(244,114,182,0.1); color: #f472b6; }
.feature-cyan    .feature-icon { background: rgba(34,211,238,0.1);  color: #22d3ee; }

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

/* ── Privacy Banner ───────────────────────────────────── */
.privacy-banner {
  max-width: 56rem;
  margin: 0 auto;
}
.privacy-border {
  padding: 2px;
  border-radius: 1.5rem;
  overflow: hidden;
}
.privacy-inner {
  background: var(--background);
  border-radius: calc(1.5rem - 2px);
  padding: 3rem;
  text-align: center;
}
.privacy-icon-wrap {
  display: inline-flex;
  padding: 1rem;
  border-radius: 50%;
  background: rgba(108,62,232,0.1);
  margin-bottom: 1.5rem;
}
.privacy-inner h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}
.privacy-inner > p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.privacy-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  font-size: 0.875rem;
}
.privacy-point {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
}
.privacy-point svg {
  color: var(--primary);
}

@media (max-width: 640px) {
  .privacy-points { grid-template-columns: 1fr; }
  .privacy-inner { padding: 2rem; }
}

/* ── FAQ ──────────────────────────────────────────────── */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open {
  border-color: var(--primary);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--foreground);
  font-family: inherit;
}
.faq-question:hover {
  color: var(--primary);
}
.faq-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
  color: var(--muted-foreground);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-answer-inner {
  padding: 0 1.25rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ── Final CTA ────────────────────────────────────────── */
.final-cta {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}
.final-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}
.final-cta > p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}
.final-cta .subtext {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.footer .highlight {
  color: var(--primary);
  font-weight: 500;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Utility ──────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
