/* ===================================
   Chiforrober Website Styles
   Design System: Plum + Amber + Coral
   =================================== */

/* CSS Variables - Brand Colors */
:root {
  /* Primary - Plum */
  --plum-50: #FAF5FF;
  --plum-100: #E9D5FF;
  --plum-400: #C084FC;
  --plum-500: #A855F7;
  --plum-600: #9333EA;
  --plum-700: #7E22CE;

  /* Secondary - Amber */
  --amber-50: #FFFBEB;
  --amber-100: #FEF3C7;
  --amber-400: #FBBF24;
  --amber-500: #F59E0B;
  --amber-600: #D97706;

  /* Tertiary - Coral */
  --coral-50: #FFF7ED;
  --coral-400: #FB923C;
  --coral-500: #F97316;

  /* Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #F43F5E;
  --info: #0EA5E9;

  /* Neutrals */
  --gray-900: #1F2937;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-100: #F3F4F6;
  --white: #FFFFFF;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--gray-100);
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: var(--plum-500);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--plum-600);
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Header */
header {
  background: var(--white);
  padding: var(--space-md) 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
}

.logo span {
  font-size: 24px;
  font-weight: 700;
  color: var(--plum-500);
}

nav a {
  margin-left: var(--space-lg);
  color: var(--gray-700);
  font-weight: 500;
}

nav a:hover {
  color: var(--plum-500);
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  gap: 4px;
  margin-left: var(--space-lg);
  background: var(--gray-100);
  padding: 4px;
  border-radius: 8px;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  color: var(--plum-500);
}

.lang-btn.active {
  background: var(--white);
  color: var(--plum-500);
  box-shadow: var(--shadow-sm);
}

nav {
  display: flex;
  align-items: center;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--plum-50) 0%, var(--white) 40%, var(--amber-50) 70%, var(--coral-50) 100%);
  padding: var(--space-xxl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--amber-100) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--coral-50) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero .container {
  max-width: 1000px;
  position: relative;
  z-index: 1;
}

.hero-logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-lg);
}

.hero-logo-wrapper::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: linear-gradient(135deg, var(--plum-400), var(--amber-400), var(--coral-400));
  border-radius: 32px;
  z-index: -1;
  animation: rotate-gradient 4s linear infinite;
}

@keyframes rotate-gradient {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -10px rgba(168, 85, 247, 0.4);
  display: block;
  transition: transform 0.3s;
}

.hero-logo:hover {
  transform: scale(1.05);
}

.hero h1 {
  font-size: 42px;
  color: var(--gray-900);
  margin-bottom: var(--space-md);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--plum-500), var(--coral-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 22px;
  color: var(--gray-700);
  margin-bottom: var(--space-xl);
}

/* Download Buttons */
.download-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--plum-600);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-900);
  border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
  border-color: var(--plum-500);
  color: var(--plum-500);
}

.btn svg {
  width: 24px;
  height: 24px;
}

/* Pill Highlight Section */
.pill-highlight {
  padding: var(--space-xxl) 0;
  background: linear-gradient(135deg, var(--plum-50) 0%, var(--white) 50%, var(--coral-50) 100%);
  position: relative;
  overflow: hidden;
}

.pill-highlight::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--plum-100) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.pill-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-xxl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.pill-content-single {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.pill-info .badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--plum-500), var(--coral-500));
  color: var(--white);
  padding: var(--space-xs) var(--space-md);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.feature-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--plum-500), var(--coral-500));
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-md);
  white-space: nowrap;
}

.pill-info h2 {
  font-size: 36px;
  color: var(--gray-900);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.pill-info > p {
  font-size: 18px;
  color: var(--gray-700);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.pill-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pill-features li {
  padding: var(--space-sm) 0;
  font-size: 16px;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pill-visual {
  text-align: center;
  background: linear-gradient(135deg, var(--white) 0%, var(--plum-50) 100%);
  padding: var(--space-xxl);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -10px rgba(168, 85, 247, 0.3);
  border: 2px solid var(--plum-100);
}

/* Features Section */
.features {
  padding: var(--space-xxl) 0;
  background: var(--white);
  scroll-margin-top: 80px;
}

.features h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: var(--space-xl);
  color: var(--gray-900);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background: var(--gray-100);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid transparent;
}

.feature-card:nth-child(1) { border-left-color: var(--plum-400); }
.feature-card:nth-child(2) { border-left-color: var(--amber-400); }
.feature-card:nth-child(3) { border-left-color: var(--coral-400); }
.feature-card:nth-child(4) { border-left-color: var(--plum-500); }
.feature-card:nth-child(5) { border-left-color: var(--amber-500); }
.feature-card:nth-child(6) { border-left-color: var(--coral-500); }

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: var(--space-sm);
  color: var(--gray-900);
}

.feature-card p {
  color: var(--gray-700);
  font-size: 16px;
}

/* How it Works */
.how-it-works {
  padding: var(--space-xxl) 0;
  background: linear-gradient(135deg, var(--amber-50) 0%, var(--white) 50%, var(--plum-50) 100%);
  scroll-margin-top: 80px;
}

.how-it-works h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: var(--space-xl);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-number {
  width: 56px;
  height: 56px;
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.2);
}

.step:nth-child(1) .step-number { background: var(--plum-500); }
.step:nth-child(2) .step-number { background: var(--amber-500); }
.step:nth-child(3) .step-number { background: var(--coral-500); }
.step:nth-child(4) .step-number { background: linear-gradient(135deg, var(--plum-500), var(--coral-500)); }

.step h3 {
  font-size: 18px;
  margin-bottom: var(--space-xs);
}

.step p {
  color: var(--gray-600);
  font-size: 15px;
}

/* Screenshots Gallery */
.screenshots {
  padding: var(--space-xxl) 0;
  background: linear-gradient(135deg, var(--coral-50) 0%, var(--white) 50%, var(--amber-50) 100%);
  overflow: hidden;
  scroll-margin-top: 80px;
}

.screenshots h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: var(--space-xl);
}

.screenshots-gallery {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  padding: var(--space-md) var(--space-lg);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--plum-400) var(--gray-100);
}

.screenshots-gallery::-webkit-scrollbar {
  height: 8px;
}

.screenshots-gallery::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}

.screenshots-gallery::-webkit-scrollbar-thumb {
  background: var(--plum-400);
  border-radius: 4px;
}

.phone-frame {
  flex: 0 0 auto;
  width: 260px;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 
    0 25px 50px -12px rgba(168, 85, 247, 0.25),
    0 0 0 1px rgba(168, 85, 247, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  scroll-snap-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 12px;
  z-index: 10;
}

.phone-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 36px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--plum-400), var(--amber-400)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.phone-frame:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 
    0 35px 60px -15px rgba(168, 85, 247, 0.35),
    0 0 0 1px rgba(168, 85, 247, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Gamification Section */
.gamification {
  padding: var(--space-xxl) 0;
  background: linear-gradient(to bottom, var(--plum-50), var(--white));
}

.gamification-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: center;
}

.gamification h2 {
  font-size: 32px;
  margin-bottom: var(--space-sm);
}

.gamification p {
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
}

.badges-preview {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.badge-bronze {
  background: var(--amber-100);
  border: 3px solid var(--amber-500);
}

.badge-silver {
  background: var(--gray-100);
  border: 3px solid var(--gray-400);
}

.badge-gold {
  background: #FEF9C3;
  border: 3px solid #EAB308;
}

.badge-platinum {
  background: var(--plum-100);
  border: 3px solid var(--plum-400);
}

/* Download Section */
.download {
  padding: var(--space-xxl) 0;
  background: linear-gradient(135deg, var(--plum-500) 0%, var(--coral-500) 100%);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 80px;
}

.download::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--amber-400) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.download h2 {
  font-size: 32px;
  margin-bottom: var(--space-md);
  position: relative;
}

.download p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  position: relative;
}

.download .download-buttons {
  justify-content: center;
  position: relative;
}

.download .btn-primary {
  background: var(--white);
  color: var(--coral-500);
}

.download .btn-primary:hover {
  background: var(--amber-400);
  color: var(--gray-900);
}

.download .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.download .btn-secondary:hover {
  background: var(--white);
  color: var(--plum-600);
}

/* Footer */
footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--space-md) 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

footer .logo span {
  color: var(--white);
}

footer nav a {
  color: var(--gray-400);
  margin-left: var(--space-lg);
}

footer nav a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.social-link {
  display: inline-flex;
  color: var(--gray-400);
  transition: color 160ms ease;
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.social-link:hover {
  color: var(--white);
}

.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;
}

/* Privacy Page */
.legal-page {
  padding: var(--space-xxl) var(--space-lg);
  max-width: 1024px;
  margin: 0 auto;
  background: var(--white);
  min-height: calc(100vh - 200px);
}

.legal-page h1 {
  color: var(--plum-500);
  font-size: 32px;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.legal-page h2 {
  color: var(--plum-500);
  font-size: 22px;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-page p {
  margin-bottom: var(--space-md);
  color: var(--gray-700);
}

.legal-page a {
  color: var(--plum-500);
}

.legal-page .last-update {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
}

.legal-page ul, .legal-page ol {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
  color: var(--gray-700);
}

.legal-page li {
  margin-bottom: var(--space-sm);
}

/* Account Deletion Page */
.deletion-method {
  background: var(--plum-50);
  border-left: 4px solid var(--plum-500);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  border-radius: var(--radius-sm);
}

.deletion-method h3 {
  color: var(--plum-600);
  font-size: 20px;
  margin-bottom: var(--space-md);
}

.deletion-method ol {
  margin-left: var(--space-lg);
}

.deletion-method .note {
  margin-top: var(--space-md);
  font-size: 14px;
  font-style: italic;
  color: var(--gray-600);
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border-radius: var(--radius-sm);
}

.email-contact {
  text-align: center;
  margin: var(--space-lg) 0;
}

.alternatives {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.alternative-card {
  background: var(--amber-50);
  border: 2px solid var(--amber-400);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
}

.alternative-card h4 {
  color: var(--amber-600);
  margin-bottom: var(--space-sm);
  font-size: 18px;
}

.alternative-card p {
  font-size: 14px;
  color: var(--gray-700);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero .tagline {
    font-size: 18px;
  }

  .pill-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .pill-info h2 {
    font-size: 28px;
  }

  .pill-visual {
    order: -1;
    padding: var(--space-lg);
  }

  .pill-visual p:first-of-type {
    font-size: 80px !important;
  }

  .features h2,
  .how-it-works h2,
  .screenshots h2,
  .gamification h2,
  .download h2 {
    font-size: 26px;
  }

  .gamification-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .badges-preview {
    justify-content: center;
  }

  .phone-frame {
    width: 220px;
  }

  header .container {
    flex-direction: column;
    gap: var(--space-md);
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    margin: 0 var(--space-sm);
  }

  .lang-switcher {
    margin-left: 0;
    margin-top: var(--space-sm);
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }

  footer nav a {
    margin: 0 var(--space-sm);
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .hero-logo {
    width: 100px;
    height: 100px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .pill-info h2 {
    font-size: 24px;
  }

}

/* Landing-page refinement: keep the warm brand palette, remove visual noise. */
:root {
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --shadow-sm: 0 1px 2px rgba(31, 41, 55, 0.08);
  --shadow-md: 0 10px 24px rgba(31, 41, 55, 0.08);
}

body { background: var(--white); }
header { border-bottom: 1px solid var(--gray-100); box-shadow: none; }
.hero, .pill-highlight, .how-it-works, .screenshots, .gamification { background: var(--white); }
.hero { padding: 80px 0 72px; border-bottom: 1px solid var(--gray-100); }
.hero::before, .hero::after, .pill-highlight::before, .download::before { display: none; }
.hero-logo-wrapper::before { animation: none; background: var(--plum-500); inset: -5px; border-radius: 17px; }
.hero-logo { width: 112px; height: 112px; border-radius: 12px; box-shadow: var(--shadow-md); }
.hero-logo:hover { transform: none; }
.pill-highlight { padding: 64px 0; border-bottom: 1px solid var(--gray-100); }
.feature-badge { background: var(--plum-100); color: var(--plum-600); border-radius: 999px; padding: 6px 12px; }
.feature-card { background: var(--white); border: 1px solid var(--gray-100); border-left-width: 1px; border-radius: var(--radius-md); text-align: left; }
.feature-card:nth-child(n) { border-left-color: var(--gray-100); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--plum-400); }
.how-it-works { border-bottom: 1px solid var(--gray-100); }
.phone-frame { width: 240px; border-radius: 28px; box-shadow: var(--shadow-md); background: var(--white); }
.phone-frame::after { display: none; }
.phone-frame:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.phone-frame img { border-radius: 18px; }
.gamification { padding: 64px 0; }
.download { background: var(--plum-600); }
section .container { animation: section-enter 480ms ease both; }
@keyframes section-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
/* Direction update: editorial color bands with the app as the visual anchor. */
.hero {
  padding: 96px 0 88px;
  background-color: #f7f2ff;
  background-image:
    linear-gradient(rgba(147, 51, 234, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 51, 234, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #fbf8ff 0%, #f0e3ff 100%);
  background-size: 34px 34px, 34px 34px, auto;
  border-bottom: 0;
}

.hero::before {
  display: block;
  inset: auto 0 0;
  width: auto;
  height: 8px;
  background: linear-gradient(90deg, var(--coral-500), var(--amber-400), var(--plum-500));
  opacity: 1;
}

.hero .container { max-width: 900px; }
.hero-logo-wrapper::before {
  inset: -9px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--coral-500), var(--plum-500));
  animation: logo-float 4s ease-in-out infinite;
}
.hero-logo { width: 124px; height: 124px; border-radius: 16px; box-shadow: 0 18px 28px rgba(88, 28, 135, 0.22); }
.hero h1 { font-size: clamp(38px, 4.5vw, 54px); letter-spacing: 0; }
.hero .tagline { max-width: 760px; margin-left: auto; margin-right: auto; font-size: 19px; }

.pill-highlight {
  padding: 76px 0;
  background: #ffffff;
  border-bottom: 0;
}
.pill-content-single {
  max-width: 920px;
  padding: 42px 48px;
  border-left: 8px solid var(--plum-500);
  background: linear-gradient(105deg, #fff 0%, #fff7ed 100%);
  box-shadow: 12px 12px 0 var(--amber-100);
}
.feature-badge { background: var(--plum-600); color: var(--white); box-shadow: 3px 3px 0 var(--amber-400); }
.pill-info h2 { font-size: clamp(30px, 3.5vw, 42px); }
.pill-features { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.pill-features li { padding: 0; font-weight: 600; }

.features { padding: 80px 0; background: #f7f2ff; }
.features h2, .how-it-works h2, .screenshots h2, .gamification h2, .download h2 { letter-spacing: 0; }
.feature-card {
  padding: 28px;
  border: 0;
  border-top: 5px solid var(--plum-500);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 8px 0 rgba(147, 51, 234, 0.08);
}
.feature-card:nth-child(2) { border-top-color: var(--amber-500); }
.feature-card:nth-child(3) { border-top-color: var(--coral-500); }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 28px rgba(88, 28, 135, 0.16); }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 20px; background: var(--plum-50); border-radius: 50%; }

.how-it-works { padding: 80px 0; background: var(--white); border-bottom: 0; }
.step { padding: 0 16px; }
.step-number { box-shadow: 5px 5px 0 var(--gray-100); }

.screenshots { padding: 80px 0; background: #2b0e47; }
.screenshots h2 { color: var(--white); }
.screenshots-gallery { padding: 24px 8px 28px; scrollbar-color: var(--amber-400) rgba(255, 255, 255, 0.18); }
.phone-frame { width: 250px; padding: 10px; background: #fff; border: 4px solid rgba(255, 255, 255, 0.18); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32); }
.phone-frame:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 28px 46px rgba(0, 0, 0, 0.4); }

.gamification { padding: 80px 0; background: #fff7ed; }
.download { background: linear-gradient(120deg, var(--plum-700), var(--plum-500)); }

@keyframes logo-float {
  50% { transform: translateY(-6px); }
}

@media (max-width: 768px) {
  .hero { padding: 64px 0 56px; background-size: 26px 26px, 26px 26px, auto; }
  .hero-logo { width: 96px; height: 96px; }
  .pill-highlight, .features, .how-it-works, .screenshots, .gamification { padding: 56px 0; }
  .pill-content-single { padding: 32px 24px; box-shadow: 7px 7px 0 var(--amber-100); }
  .pill-info > p { font-size: 16px; }
  .pill-features { display: block; }
  .pill-features li { padding: var(--space-sm) 0; }
  .phone-frame { width: 220px; }
  .download-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-wrapper::before { animation: none; }
}

@media (min-width: 860px) {
  .hero .container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 32px;
    align-items: center;
    max-width: 1024px;
    text-align: left;
  }
  .hero-logo-wrapper { grid-row: 1 / span 2; margin: 0; }
  .hero h1, .hero .tagline { grid-column: 2; margin-left: 0; margin-right: 0; }
  .hero h1 { margin-bottom: 8px; }
  .hero .tagline { margin-bottom: 0; }
}
