/* ===================================
   DECODR DESIGN SYSTEM — EDITORIAL WARMTH
   Premium, light-dark balanced aesthetic
   =================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&display=swap');

/* --- CSS Variables --- */
:root {
  /* Toast/Accent Colors — Refined Golden Amber */
  --color-accent: #E8A54D;
  --color-accent-dark: #C88B3D;
  --color-accent-light: #F5C76D;
  --color-accent-subtle: rgba(232, 165, 77, 0.08);
  --color-accent-glow: rgba(232, 165, 77, 0.25);

  /* Light Theme Colors */
  --bg-light: #FAFAF8;
  --bg-white: #FFFFFF;
  --bg-cream: #F5F4F0;
  --text-dark: #1A1A1A;
  --text-dark-secondary: #5A5A5A;
  --text-dark-muted: #8A8A8A;
  --border-light: rgba(26, 26, 26, 0.08);
  --border-light-strong: rgba(26, 26, 26, 0.12);

  /* Dark Theme Colors */
  --bg-dark: #1A1A1A;
  --bg-dark-card: #242424;
  --bg-dark-elevated: #2A2A2A;
  --text-light: #FAFAFA;
  --text-light-secondary: #A8A8A8;
  --text-light-muted: #6A6A6A;
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-dark-strong: rgba(255, 255, 255, 0.15);

  /* Status Colors */
  --color-success: #22C55E;
  --color-error: #EF4444;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes — Fluid Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;

  /* Spacing */
  --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;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows — Subtle & Elegant */
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 26, 26, 0.06);
  --shadow-lg: 0 12px 40px rgba(26, 26, 26, 0.08);
  --shadow-xl: 0 24px 60px rgba(26, 26, 26, 0.12);
  --shadow-accent: 0 8px 30px rgba(232, 165, 77, 0.2);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;

  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

/* Serif emphasis within text */
.text-serif {
  font-family: var(--font-display);
}

.text-serif-italic {
  font-family: var(--font-display);
  font-style: italic;
}

em,
.emphasis {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

p {
  color: var(--text-dark-secondary);
  line-height: 1.7;
  font-weight: 400;
}

/* Text Colors */
.text-accent {
  color: var(--color-accent);
}

.text-primary {
  color: var(--color-accent);
}

.text-muted {
  color: var(--text-dark-muted);
}

.text-secondary {
  color: var(--text-dark-secondary);
}

.text-center {
  text-align: center;
}

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

.container--narrow {
  max-width: var(--container-narrow);
}

/* --- Sections --- */
.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section--hero {
  padding-top: 10rem;
  padding-bottom: var(--space-4xl);
  overflow: hidden;
}

/* Subtle Dot Grid Background */
.hero__dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.15) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, black 25%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Light Section (Default) */
.section--light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section--light p {
  color: var(--text-dark-secondary);
}

/* White Section */
.section--white {
  background: var(--bg-white);
  color: var(--text-dark);
}

/* Dark Section */
.section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section--dark p {
  color: var(--text-light-secondary);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--text-light);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-4xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  display: block;
}

.section__title {
  margin-bottom: var(--space-lg);
}

.section__subtitle {
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--duration-base) var(--ease-out);
}

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

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--text-dark);
}

.nav__logo img {
  width: 40px;
  height: 40px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-dark-secondary);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--duration-base) var(--ease-out);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-dark);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  margin-left: var(--space-xl);
}

.nav__cta.desktop {
  display: inline-flex;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 10000;
  position: relative;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease-out);
  transform-origin: center;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Nav */
.nav__mobile {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100dvh;
  background: var(--bg-white);
  padding: calc(80px + var(--space-lg)) var(--space-lg) calc(var(--space-xl) + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.nav__mobile.active {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile .nav__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.nav__mobile .nav__link {
  font-size: clamp(1.125rem, 5vw, 1.35rem);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-dark);
}

.nav__mobile .nav__cta {
  margin-left: 0;
  margin-top: var(--space-lg);
  width: 100%;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn--secondary {
  background: var(--bg-white);
  color: var(--text-dark);
  border: 1px solid var(--border-light-strong);
  box-shadow: var(--shadow-sm);
}

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

/* Dark variant for dark sections */
.section--dark .btn--secondary {
  background: var(--bg-dark-card);
  color: var(--text-light);
  border-color: var(--border-dark-strong);
}

.section--dark .btn--secondary:hover {
  border-color: var(--color-accent);
  background: var(--bg-dark-elevated);
}

.btn--ghost {
  color: var(--text-dark-secondary);
  padding: 0.5rem 1rem;
}

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

.btn--full {
  width: 100%;
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 1.125rem 2.25rem;
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-accent-subtle);
  color: var(--color-accent-dark);
  border: 1px solid rgba(232, 165, 77, 0.15);
}

.badge--popular {
  background: var(--color-accent);
  color: var(--text-dark);
  border: none;
  font-weight: 700;
}

/* --- Cards --- */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--duration-base) var(--ease-out);
}

.card:hover {
  border-color: var(--border-light-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Feature Card */
.card--feature {
  padding: var(--space-2xl);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.card--feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--color-accent);
  transition: height var(--duration-slow) var(--ease-out);
}

.card--feature:hover::before {
  height: 100%;
}

.card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-subtle);
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
}

.card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

.card__description {
  font-size: var(--text-base);
  line-height: 1.7;
}

/* --- Pricing Cards --- */
.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--duration-base) var(--ease-out);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card--featured {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-accent);
}

.pricing-card--featured:hover {
  box-shadow: 0 24px 60px rgba(232, 165, 77, 0.25);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.pricing-card__name {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-dark);
}

.pricing-card__period {
  color: var(--text-dark-muted);
  font-size: var(--text-sm);
}

.pricing-card__original {
  font-size: var(--text-sm);
  color: var(--text-dark-muted);
  text-decoration: line-through;
  margin-bottom: var(--space-xs);
}

.pricing-card__savings {
  display: inline-block;
  font-size: var(--text-xs);
  color: var(--color-success);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.pricing-card__description {
  font-size: var(--text-sm);
  color: var(--text-dark-secondary);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-light);
}

.pricing-card__features {
  flex: 1;
  margin-bottom: var(--space-xl);
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-dark-secondary);
  margin-bottom: var(--space-sm);
}

.pricing-card__feature::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Grid Layouts --- */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--features {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid--pricing {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-light);
}

/* Decorative gradient orb */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-accent-subtle) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.8;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 165, 77, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero__badge {
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.hero__title {
  max-width: 850px;
  margin: 0 auto var(--space-xl);
  font-size: var(--text-5xl);
  animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

.hero__subtitle {
  font-size: var(--text-xl);
  max-width: 650px;
  margin: 0 auto var(--space-2xl);
  color: var(--text-dark-secondary);
  animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}

/* --- Pricing Cards --- */
.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--duration-base) var(--ease-out);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card--featured {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-accent);
}

.pricing-card--featured:hover {
  box-shadow: 0 24px 60px rgba(232, 165, 77, 0.25);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.pricing-card__name {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-dark);
}

.pricing-card__period {
  color: var(--text-dark-muted);
  font-size: var(--text-sm);
}

.pricing-card__original {
  font-size: var(--text-sm);
  color: var(--text-dark-muted);
  text-decoration: line-through;
  margin-bottom: var(--space-xs);
}

.pricing-card__savings {
  display: inline-block;
  font-size: var(--text-xs);
  color: var(--color-success);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.pricing-card__description {
  font-size: var(--text-sm);
  color: var(--text-dark-secondary);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-light);
}

.pricing-card__features {
  flex: 1;
  margin-bottom: var(--space-xl);
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-dark-secondary);
  margin-bottom: var(--space-sm);
}

.pricing-card__feature::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Grid Layouts --- */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--features {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid--pricing {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-light);
}

/* Decorative gradient orb */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-accent-subtle) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.8;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 165, 77, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero__badge {
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.hero__title {
  max-width: 850px;
  margin: 0 auto var(--space-xl);
  font-size: var(--text-5xl);
  animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

.hero__subtitle {
  font-size: var(--text-xl);
  max-width: 650px;
  margin: 0 auto var(--space-2xl);
  color: var(--text-dark-secondary);
  animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}

.hero__image {
  margin-top: var(--space-2xl);
  position: relative;
  animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

/* --- Hero Screenshot --- */
.hero__screenshot {
  display: block;
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  border: 2px dashed var(--border-light-strong);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* --- Screenshot Placeholder --- */
.placeholder {
  background: var(--bg-white);
  border: 2px dashed var(--border-light-strong);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark-muted);
  font-size: var(--text-sm);
  min-height: 300px;
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.placeholder--feature {
  min-height: 180px;
  margin-top: var(--space-lg);
}

/* ===================================
   BENTO GRID - FEATURES SECTION
   =================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

/* Grid spans for layout */
.bento-card--tall {
  grid-row: span 2;
}

.bento-card--wide {
  grid-column: span 2;
}

/* Bento Card Styles */
.bento-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  /* Enhancement 4: Stronger resting shadow */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}



/* Enhancement 1: Soft inner glow on hover */
.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(232, 165, 77, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.bento-card:hover::after {
  opacity: 1;
}

.bento-card:hover {
  border-color: var(--color-toast);
  box-shadow: var(--shadow-lg);
  /* Enhancement 5: Scale micro-animation */
  transform: translateY(-4px) scale(1.02);
}

/* Accent cards with subtle gradient */
.bento-card--accent {
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(232, 165, 77, 0.05) 100%);
}

.bento-card__icon {
  width: 48px;
  height: 48px;
  background: var(--color-toast-bg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--color-toast);
  flex-shrink: 0;
  /* Enhancement 2: Icon transition */
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  position: relative;
  z-index: 1;
}

/* Enhancement 2: Icon lift on hover */
.bento-card:hover .bento-card__icon {
  transform: scale(1.1);
  background: rgba(232, 165, 77, 0.15);
}

.bento-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.bento-card__desc {
  font-size: var(--text-base);
  color: var(--text-dark-secondary);
  line-height: 1.5;
}

/* Inner Layouts */
.bento-card__row {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.bento-card__visual {
  margin-top: auto;
  padding-top: var(--space-lg);
}

/* Folder Chips Visual */
.folder-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.folder-chip {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Tag Chips Visual */
.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tag-chip {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag-chip--red {
  background: #fee2e2;
  color: #dc2626;
}

.tag-chip--blue {
  background: #dbeafe;
  color: #2563eb;
}

.tag-chip--green {
  background: #dcfce7;
  color: #16a34a;
}

/* Source Icons Visual */
.source-icons {
  display: flex;
  gap: var(--space-md);
  font-size: 1.5rem;
  opacity: 0.8;
}

/* Progress Bar Visual */
.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.progress-info__label {
  color: var(--text-secondary-light);
}

.progress-info__percent {
  color: var(--color-accent);
  font-weight: 600;
}

.progress-bar {
  height: 6px;
  width: 100%;
  background: var(--bg-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  width: 65%;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

/* Responsive Bento Grid */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card--tall {
    grid-row: span 1;
  }

  .bento-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .bento-card--tall,
  .bento-card--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Keep wide cards consistent with stacked card content on small screens */
  .bento-card__row {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .bento-card__row .bento-card__icon {
    margin-bottom: 0;
  }
}

/* --- Problem Section --- */
.problem {
  background: var(--bg-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  border: 1px solid var(--border-light);
  position: relative;
}

/* Toast accent bar on left */
.problem::before {
  content: '';
  position: absolute;
  left: 0;
  top: var(--space-2xl);
  bottom: var(--space-2xl);
  width: 4px;
  background: var(--color-accent);
  border-radius: 0 4px 4px 0;
}

.problem__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.problem__title {
  margin-bottom: var(--space-xl);
  color: var(--text-dark);
}

.problem__content {
  max-width: 700px;
}

.problem__content p {
  margin-bottom: var(--space-lg);
  font-size: var(--text-lg);
  line-height: 1.8;
}

.problem__content p:last-child {
  color: var(--color-accent-dark);
  font-weight: 600;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
}

/* --- How It Works / Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  position: relative;
}

/* Animated connector line track */
.steps__line {
  position: absolute;
  top: 24px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: var(--border-default);
  z-index: 0;
  border-radius: 1px;
}

/* Animated progress fill */
.steps__line-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light), var(--color-accent));
  border-radius: 1px;
  transition: width 2s ease-out;
}

.steps.animate .steps__line-progress {
  width: 100%;
}

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

/* Step numbers hidden initially, revealed progressively */
.step__number {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border: 2px solid var(--border-default);
  color: var(--text-dark-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  border-radius: var(--radius-full);
  transition: all 0.5s ease-out;
}

/* Step content faded initially */
.step__title,
.step__description {
  transition: opacity 0.5s ease-out;
}

/* Steps 2 and 3 completely hidden initially */
.step--2 .step__number,
.step--3 .step__number {
  opacity: 0;
  transform: scale(0.8);
}

.step--2 .step__title,
.step--2 .step__description,
.step--3 .step__title,
.step--3 .step__description {
  opacity: 0;
}

/* Step 1 visible by default */
.step--1 .step__number {
  opacity: 1;
  transform: scale(1);
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

/* Step 1 always visible first */
.steps.animate .step--1 .step__number {
  opacity: 1;
  transform: scale(1);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transition-delay: 0s;
}

.steps.animate .step--1 .step__title,
.steps.animate .step--1 .step__description {
  opacity: 1;
  transition-delay: 0.1s;
}

/* Step 2 reveals as line reaches it */
.steps.animate .step--2 .step__number {
  opacity: 1;
  transform: scale(1);
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  transition-delay: 0.8s;
}

.steps.animate .step--2 .step__title,
.steps.animate .step--2 .step__description {
  opacity: 1;
  transition-delay: 0.9s;
}

/* Step 3 reveals as line reaches end */
.steps.animate .step--3 .step__number {
  opacity: 1;
  transform: scale(1);
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  transition-delay: 1.6s;
}

.steps.animate .step--3 .step__title,
.steps.animate .step--3 .step__description {
  opacity: 1;
  transition-delay: 1.7s;
}

.step:hover .step__number {
  background: var(--color-accent) !important;
  color: #fff !important;
  transform: scale(1.1);
  border-color: var(--color-accent-dark) !important;
  box-shadow: 0 4px 12px rgba(232, 165, 77, 0.3);
  transition-delay: 0s !important;
}

.step__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

.step__description {
  font-size: var(--text-sm);
  color: var(--text-dark-secondary);
}

/* --- Built For Section --- */
.built-for__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.built-for__item {
  padding: var(--space-xl);
  background: var(--bg-dark-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-dark);
  transition: all var(--duration-base) var(--ease-out);
}

.built-for__item:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.built-for__type {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.built-for__description {
  font-size: var(--text-base);
  color: var(--text-light-secondary);
  line-height: 1.7;
}

/* --- Privacy Brief --- */
.privacy-brief {
  text-align: center;
  padding: var(--space-3xl);
  background: var(--bg-white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
}

.privacy-brief__title {
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

.privacy-brief__content {
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  font-size: var(--text-lg);
}

/* --- Final CTA --- */
.final-cta {
  text-align: center;
  padding: var(--space-4xl);
  background: linear-gradient(135deg, var(--color-accent-subtle) 0%, rgba(232, 165, 77, 0.02) 100%);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(232, 165, 77, 0.15);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-accent-subtle) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta__title {
  margin-bottom: var(--space-md);
  position: relative;
}

.final-cta__subtitle {
  margin-bottom: var(--space-2xl);
  font-size: var(--text-lg);
  position: relative;
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  font-size: var(--text-xl);
  font-weight: 400;
  transition: all var(--duration-base) var(--ease-out);
  color: var(--text-dark-muted);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out),
    padding var(--duration-slow) var(--ease-out);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-xl);
}

.faq-answer p {
  font-size: var(--text-base);
  line-height: 1.8;
}

/* --- Changelog --- */
.changelog-entry {
  position: relative;
  padding-left: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  border-left: 2px solid var(--border-light);
}

.changelog-entry::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  border: 3px solid var(--bg-light);
}

.changelog-date {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.changelog-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.changelog-list {
  list-style: disc;
  padding-left: var(--space-lg);
}

.changelog-list li {
  font-size: var(--text-base);
  color: var(--text-dark-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

/* --- Contact Cards --- */
.contact-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.contact-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--duration-base) var(--ease-out);
}

.contact-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}

.contact-card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

.contact-card__description {
  font-size: var(--text-base);
  color: var(--text-dark-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.contact-card__link {
  color: var(--color-accent);
  font-weight: 600;
  transition: color var(--duration-fast) var(--ease-out);
}

.contact-card__link:hover {
  color: var(--color-accent-dark);
}

/* --- Privacy / Legal Content --- */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

.privacy-content p {
  font-size: var(--text-base);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.privacy-content ul {
  list-style: disc;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.privacy-content li {
  font-size: var(--text-base);
  color: var(--text-dark-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

/* --- Comparison Table --- */
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table thead {
  background: var(--bg-cream);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table th:not(:first-child) {
  text-align: center;
}

.comparison-table td:not(:first-child) {
  text-align: center;
  font-weight: 500;
}

.comparison-table tbody tr:hover {
  background: var(--bg-cream);
}

.comparison-table .check {
  color: var(--color-success);
  font-weight: 700;
}

.comparison-table .cross {
  color: var(--text-dark-muted);
}

@media (max-width: 640px) {

  /* Mobile-friendly comparison layout: each feature becomes a compact card */
  .table-container {
    overflow: visible;
  }

  .comparison-table {
    display: block;
    min-width: 0;
    background: transparent;
    box-shadow: none;
    border-collapse: separate;
    border-spacing: 0;
  }

  .comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .comparison-table tbody {
    display: grid;
    gap: var(--space-md);
  }

  .comparison-table tbody tr {
    display: block;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: var(--space-md);
  }

  .comparison-table tbody tr:hover {
    background: var(--bg-white);
  }

  .comparison-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    width: 100%;
    border-bottom: none;
    padding: 0;
    text-align: left;
  }

  .comparison-table td:first-child {
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-light);
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-dark);
  }

  .comparison-table td:first-child::before {
    content: none;
  }

  .comparison-table td:nth-child(2),
  .comparison-table td:nth-child(3) {
    padding-top: var(--space-xs);
    font-size: var(--text-sm);
  }

  .comparison-table td:nth-child(2)::before,
  .comparison-table td:nth-child(3)::before {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dark-muted);
  }

  .comparison-table td:nth-child(2)::before {
    content: 'Free';
  }

  .comparison-table td:nth-child(3)::before {
    content: 'Plus';
  }

  .comparison-table td:not(:first-child) {
    text-align: right;
  }

  .comparison-table .check,
  .comparison-table .cross {
    font-size: var(--text-base);
  }
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4xl);
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--border-dark);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.footer__logo img {
  width: 40px;
  height: 40px;
}

.footer__tagline {
  color: var(--text-light-secondary);
  font-size: var(--text-sm);
}

.footer__links {
  display: flex;
  gap: var(--space-4xl);
}

.footer__column h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

.footer__column ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__column a {
  color: var(--text-light-secondary);
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__column a:hover {
  color: var(--color-accent);
}

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

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--text-light-muted);
}

.footer__email {
  font-size: var(--text-sm);
  color: var(--text-light-muted);
}

.footer__email a {
  color: var(--color-accent);
}

.footer__email a:hover {
  color: var(--color-accent-light);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--duration-slow) var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children>* {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-children.visible>*:nth-child(1) {
  animation: fadeInUp 0.5s var(--ease-out) 0.0s forwards;
}

.stagger-children.visible>*:nth-child(2) {
  animation: fadeInUp 0.5s var(--ease-out) 0.1s forwards;
}

.stagger-children.visible>*:nth-child(3) {
  animation: fadeInUp 0.5s var(--ease-out) 0.2s forwards;
}

.stagger-children.visible>*:nth-child(4) {
  animation: fadeInUp 0.5s var(--ease-out) 0.3s forwards;
}

.stagger-children.visible>*:nth-child(5) {
  animation: fadeInUp 0.5s var(--ease-out) 0.4s forwards;
}

.stagger-children.visible>*:nth-child(6) {
  animation: fadeInUp 0.5s var(--ease-out) 0.5s forwards;
}

/* --- Utility Classes --- */
.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mt-2xl {
  margin-top: var(--space-2xl);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  :root {
    --text-5xl: 3rem;
    --text-4xl: 2.25rem;
  }

  .grid--pricing {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps::before {
    display: none;
  }

  .footer__top {
    flex-direction: column;
    gap: var(--space-2xl);
  }

  .footer__links {
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .section--hero {
    padding-top: 6rem;
  }

  .nav__links,
  .nav__cta.desktop {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__mobile {
    display: block;
  }

  .privacy-brief {
    padding: var(--space-2xl) var(--space-lg);
  }

  .privacy-brief__content {
    max-width: 34ch;
    margin-bottom: var(--space-lg);
  }

  .privacy-brief .btn {
    display: flex;
    width: min(100%, 24rem);
    margin: 0 auto;
    text-align: center;
    white-space: normal;
  }

  .grid--features,
  .grid--2,
  .built-for__grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .grid--pricing {
    grid-template-columns: 1fr;
  }

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

  /* Hide horizontal line on mobile since steps stack vertically */
  .steps__line {
    display: none;
  }

  /* Make all steps visible on mobile (no animation dependency on line) */
  .step--2 .step__number,
  .step--3 .step__number,
  .step--2 .step__title,
  .step--2 .step__description,
  .step--3 .step__title,
  .step--3 .step__description {
    opacity: 1;
    transform: scale(1);
  }

  .step .step__number {
    border-color: var(--color-accent);
    color: var(--color-accent);
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .hero__image {
    margin-top: var(--space-lg);
  }

  .problem {
    padding: var(--space-xl) var(--space-lg);
  }

  .problem::before {
    top: var(--space-md);
    bottom: var(--space-md);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
  }

  /* Responsive paragraph and subtitle sizing */
  p,
  .section__subtitle,
  .hero__subtitle,
  .privacy-brief__content {
    font-size: var(--text-base);
  }

  .problem__content p {
    font-size: var(--text-base);
  }

  .problem__content p:last-child {
    font-size: var(--text-lg);
  }

  .comparison-table {
    font-size: var(--text-sm);
  }

  .comparison-table th,
  .comparison-table td {
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  :root {
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .section__header {
    margin-bottom: var(--space-2xl);
  }

  .card--feature {
    padding: var(--space-xl);
  }

  .pricing-card {
    padding: var(--space-xl);
  }

  .final-cta {
    padding: var(--space-2xl);
  }

  .privacy-brief {
    padding: var(--space-xl) var(--space-md);
  }

  .privacy-brief__content {
    max-width: none;
  }

  .problem {
    padding: var(--space-lg) var(--space-md);
  }

  /* Extra small screen text sizing */
  p,
  .section__subtitle,
  .hero__subtitle,
  .privacy-brief__content {
    font-size: var(--text-sm);
  }

  .bento-card__desc {
    font-size: var(--text-sm);
  }

  .step__description {
    font-size: var(--text-xs);
  }
}

/* --- 3D Tilt Card Effect --- */
.tilt-card {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.tilt-card__inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.tilt-card__glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0) 50%,
      rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease-out;
  pointer-events: none;
  z-index: 10;
}

.tilt-card:hover .tilt-card__glare {
  opacity: 1;
}

.tilt-card .hero__screenshot {
  transition: box-shadow 0.3s ease-out;
}

.tilt-card:hover .hero__screenshot {
  box-shadow:
    0 25px 50px -12px rgba(26, 26, 26, 0.15),
    0 0 0 1px rgba(26, 26, 26, 0.05);
}

/* Disable tilt on touch devices */
@media (hover: none) {
  .tilt-card__inner {
    transform: none !important;
  }

  .tilt-card__glare {
    display: none;
  }
}

/* --- Morphing Word Animation --- */
.morphing-word {
  display: inline-block;
  position: relative;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.morphing-word.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.morphing-word.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* --- Animated Gradient Border --- */
.gradient-border {
  position: relative;
  padding: 2px;
  border-radius: var(--radius-xl);
  background: linear-gradient(var(--gradient-angle, 0deg),
      var(--color-accent) 0%,
      var(--color-accent-light) 25%,
      #F8D49A 50%,
      var(--color-accent-light) 75%,
      var(--color-accent) 100%);
  animation: gradient-rotate 4s linear infinite;
}

.gradient-border .tilt-card__inner {
  background: var(--bg-white);
  border-radius: calc(var(--radius-xl) - 2px);
  overflow: hidden;
}

.gradient-border .placeholder--hero {
  border: none;
  box-shadow: none;
  background: var(--bg-white);
}

@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes gradient-rotate {
  0% {
    --gradient-angle: 0deg;
  }

  100% {
    --gradient-angle: 360deg;
  }
}

/* Fallback for browsers that don't support @property */
@supports not (background: paint(something)) {
  .gradient-border {
    background: linear-gradient(135deg,
        var(--color-accent) 0%,
        var(--color-accent-light) 50%,
        var(--color-accent) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease-in-out infinite;
  }

  @keyframes gradient-shift {

    0%,
    100% {
      background-position: 0% 50%;
    }

    50% {
      background-position: 100% 50%;
    }
  }
}

/* ===================================
   FLOATING FEATURE CHIPS
   =================================== */

/* Hero Content Wrapper (for chip positioning) */
.hero__content {
  position: relative;
  z-index: 1;
}

/* Floating Feature Chips */
.floating-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-white);
  border: 1px solid var(--border-light-strong);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  z-index: 0;
  opacity: 0.75;
  cursor: default;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.floating-chip svg {
  color: var(--color-toast);
  flex-shrink: 0;
}

.floating-chip:hover {
  opacity: 1;
  transform: scale(1.08) translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-toast);
}

/* Scattered Chip Positions - More random/organic placement */
.floating-chip--1 {
  /* Folders */
  top: -8%;
  left: 12%;
}

.floating-chip--2 {
  /* Tags */
  top: 5%;
  right: 3%;
}

.floating-chip--3 {
  /* Import */
  top: 35%;
  left: -12%;
}

.floating-chip--4 {
  /* ChatGPT */
  top: 18%;
  right: -10%;
}

.floating-chip--5 {
  /* Claude */
  top: 65%;
  left: -8%;
}

.floating-chip--6 {
  /* YouTube */
  top: 48%;
  right: -6%;
}

.floating-chip--7 {
  /* Prompts */
  bottom: -5%;
  left: 8%;
}

.floating-chip--8 {
  /* PDF Tools */
  bottom: 12%;
  right: 2%;
}

/* Responsive - Hide chips on smaller screens */
@media (max-width: 1024px) {
  .floating-chip {
    display: none;
  }
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Highlight Text --- */
.highlight {
  background: linear-gradient(120deg, var(--color-accent-subtle) 0%, rgba(232, 165, 77, 0.15) 100%);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--color-accent-dark);
  font-weight: 500;
  position: relative;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, background 0.3s ease;
}

/* Staggered reveal when parent becomes visible */
.animate-on-scroll.visible .highlight--stagger-1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.animate-on-scroll.visible .highlight--stagger-2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.animate-on-scroll.visible .highlight--stagger-3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.9s;
}

/* Hover glow effect */
.highlight:hover {
  background: linear-gradient(120deg, rgba(232, 165, 77, 0.25) 0%, rgba(232, 165, 77, 0.35) 100%);
}

/* Tooltip styling */
.highlight[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-dark);
  color: var(--color-accent);
  padding: 0.5em 0.75em;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
  box-shadow: var(--shadow-lg);
}

/* Tooltip arrow */
.highlight[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--bg-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Show tooltip on hover */
.highlight[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.highlight[data-tooltip]:hover::before {
  opacity: 1;
}

/* --- Section Dot Grid for Dark Sections --- */
.section--has-dots {
  position: relative;
  overflow: hidden;
}

.section__dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, black 25%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Light section dot grid variant */
.section--has-dots-light {
  position: relative;
  overflow: hidden;
}

.section__dot-grid--dark {
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
}

/* --- Magnetic Button --- */
.btn--magnetic {
  transition: transform 0.15s ease-out, background 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

/* --- Privacy Brief Tilt Effect --- */
.privacy-brief[data-tilt] {
  perspective: 1000px;
  transform-style: preserve-3d;
  position: relative;
}

.privacy-brief .tilt-card__inner {
  transform-style: preserve-3d;
  will-change: transform;
}

.privacy-brief .tilt-card__glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}