/* ========================================
   SUPERBRIEF LANDING PAGE
   Light, clean, Dieter Rams-inspired
   Purple accent matching the app
   ======================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors - Light, clean palette */
  --white: #ffffff;
  --off-white: #fafafa;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --black: #0a0a0a;
  
  /* Accent - Purple matching SuperBrief app */
  --accent: #4F46E5;
  --accent-hover: #4338CA;
  --accent-light: #EEF2FF;
  --accent-dark: #3730A3;
  
  /* Gradient colors */
  --purple-400: #A78BFA;
  --purple-500: #8B5CF6;
  --purple-600: #7C3AED;
  --indigo-400: #818CF8;
  --pink-400: #F472B6;
  --blue-400: #60A5FA;
  
  /* Typography */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  
  /* Container - more generous spacing */
  --container-max: 1200px;
  --container-padding: 3rem;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

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

.btn-hero {
  background: var(--white);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.btn-hero:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ========================================
   HEADER
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}

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

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

.header .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple-600) 100%);
  color: var(--white);
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  transition: all 0.2s ease;
}

.header .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}

/* ========================================
   HERO - Stripe-inspired gradient mesh
   ======================================== */

.hero {
  position: relative;
  padding-top: calc(64px + var(--space-5xl));
  padding-bottom: var(--space-5xl);
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 25%, #4338ca 50%, #6366f1 75%, #818cf8 100%);
  overflow: hidden;
}

/* Animated gradient orbs */
.hero-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-mesh .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 20s ease-in-out infinite;
  will-change: transform;
}

.hero-mesh .orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.6) 0%, rgba(139, 92, 246, 0.3) 40%, transparent 70%);
  top: -20%;
  left: 10%;
  animation-duration: 25s;
}

.hero-mesh .orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.5) 0%, rgba(236, 72, 153, 0.2) 40%, transparent 70%);
  top: 20%;
  right: -10%;
  animation-delay: -5s;
  animation-duration: 22s;
}

.hero-mesh .orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.5) 0%, rgba(59, 130, 246, 0.2) 40%, transparent 70%);
  bottom: -10%;
  left: 30%;
  animation-delay: -10s;
  animation-duration: 28s;
}

.hero-mesh .orb-4 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.4) 0%, transparent 60%);
  top: 40%;
  left: -5%;
  animation-delay: -7s;
  animation-duration: 20s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -40px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(40px, 30px) scale(1.02);
  }
}

/* Noise texture overlay */
.hero-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xl);
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--white);
  margin-bottom: var(--space-xl);
}

.hero-headline .highlight {
  background: linear-gradient(90deg, #c4b5fd 0%, #f9a8d4 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-2xl);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.hero-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   LOGOS SECTION
   ======================================== */

.logos {
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--gray-100);
}

.logos-label {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.logo-item {
  height: 28px;
  width: auto;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.logo-item:hover {
  opacity: 0.6;
}

/* Integrations section - comes after features */
.integrations {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}

/* ========================================
   SECTION COMMON
   ======================================== */

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.section-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--gray-900);
}

/* ========================================
   BUILT FOR - Persona section
   ======================================== */

.built-for {
  padding: var(--space-4xl) 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.personas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.persona {
  text-align: center;
  padding: var(--space-lg);
}

.persona-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 12px;
  margin-bottom: var(--space-md);
  color: var(--accent);
}

.persona-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-xs);
}

.persona-description {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .personas-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .persona {
    padding: var(--space-md);
  }
}

/* ========================================
   HOW IT WORKS - Card style
   ======================================== */

.how-it-works {
  padding: var(--space-5xl) 0;
  background-color: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.step {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: var(--space-2xl);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--purple-500) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step:hover {
  border-color: var(--accent-light);
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.1);
  transform: translateY(-4px);
}

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

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 12px;
  margin-bottom: var(--space-lg);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.step-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-600);
}

/* ========================================
   FEATURES - beside.com style cards
   ======================================== */

.features {
  padding: var(--space-5xl) 0;
  background-color: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature {
  background: var(--white);
  border-radius: 20px;
  padding: var(--space-2xl);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
  position: relative;
}

.feature:hover {
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.12);
  transform: translateY(-6px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-light) 0%, #ddd6fe 100%);
  border-radius: 14px;
  margin-bottom: var(--space-lg);
  color: var(--accent);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.feature-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-600);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta {
  padding: var(--space-5xl) 0;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.cta-content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-subheadline {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-2xl);
}

.cta .btn-hero {
  background: var(--white);
  color: var(--accent);
}

.cta .btn-hero:hover {
  background: var(--gray-50);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: var(--space-xl) 0;
  background-color: var(--white);
  border-top: 1px solid var(--gray-100);
}

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

.footer .logo {
  font-size: 1rem;
  color: var(--gray-600);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--gray-400);
}

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

@media (max-width: 1024px) {
  :root {
    --container-padding: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1.5rem;
  }
  
  .hero {
    padding-top: calc(64px + var(--space-3xl));
    padding-bottom: var(--space-3xl);
  }
  
  .hero-subheadline {
    font-size: 1.125rem;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .step {
    padding: var(--space-xl);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .feature {
    padding: var(--space-xl);
  }
  
  .logos-grid {
    gap: var(--space-xl);
  }
  
  .logo-item {
    height: 24px;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 1.25rem;
  }
  
  .hero-headline {
    font-size: 2rem;
  }
  
  .btn-large {
    width: 100%;
  }
  
  .hero-eyebrow {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

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

/* Focus styles */
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ========================================
   SELECTION
   ======================================== */

::selection {
  background: var(--accent-light);
  color: var(--accent-dark);
}
