/* ============================================================
   FLUX DESIGN SYSTEM — madebyflux.com
   Premium agency: off-white & black alternating, electric accent
   ============================================================ */

:root, [data-theme="light"] {
  /* Type Scale — fluid clamp */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* 4px Spacing System */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Flux Palette — Light (off-white surfaces) */
  --color-bg:             #F5F4F0;
  --color-surface:        #EDECEA;
  --color-surface-2:      #E5E4E0;
  --color-surface-offset: #F0EFEB;
  --color-divider:        #D8D7D3;
  --color-border:         #C8C7C3;

  /* Text */
  --color-text:           #111111;
  --color-text-muted:     #6B6B6B;
  --color-text-faint:     #A0A0A0;
  --color-text-inverse:   #F5F4F0;

  /* Accent — electric violet */
  --color-primary:        #6C3AE0;
  --color-primary-hover:  #5A2FC0;
  --color-primary-active: #4A2599;

  /* Dark section (inverted) colors — used via .section-dark */
  --color-dark-bg:        #0A0A0A;
  --color-dark-surface:   #141414;
  --color-dark-text:      #F0F0F0;
  --color-dark-text-muted:#8A8A8A;

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

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-max: 1440px;

  /* Fonts */
  --font-display: 'Clash Display', 'Arial Black', sans-serif;
  --font-body: 'Satoshi', 'Inter', 'Helvetica Neue', sans-serif;
}

/* No light/dark toggle needed — site uses explicit section coloring (off-white + black) */

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

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-16));
}

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

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
}

.section-dark {
  background-color: var(--color-dark-bg);
  color: var(--color-dark-text);
}

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

.section-light {
  background-color: var(--color-bg);
  color: var(--color-text);
}

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

.display-hero {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.display-large {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.display-medium {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.heading-section {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.text-body {
  font-size: var(--text-base);
  line-height: 1.65;
}

.text-body-lg {
  font-size: var(--text-lg);
  line-height: 1.5;
}

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

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

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

.text-balance {
  text-wrap: balance;
}

/* ============================================================
   TAG / LABEL
   ============================================================ */

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}

.section-dark .tag::before {
  background: var(--color-primary);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-8);
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: #2A2A2A;
  box-shadow: var(--shadow-md);
}

.section-dark .btn-primary {
  background: #FFFFFF;
  color: #000000;
}
.section-dark .btn-primary:hover {
  background: #E0E0E0;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-text);
}

.section-dark .btn-outline {
  color: var(--color-dark-text);
  border-color: rgba(255,255,255,0.25);
}
.section-dark .btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
}

/* Large CTA button */
.btn-lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-10);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  transition: background 0.4s var(--ease-out),
              backdrop-filter 0.4s var(--ease-out),
              padding 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out),
              color 0.3s var(--ease-out);
}

.nav--scrolled {
  background: rgba(245, 244, 240, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-3) 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

/* Nav over dark sections */
.nav--dark {
  color: var(--color-dark-text);
}

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

.nav--dark .nav__logo svg rect {
  fill: var(--color-dark-text);
}

.nav--dark .nav__logo svg path {
  stroke: var(--color-dark-bg);
}

.nav--dark .nav__links a {
  color: rgba(255,255,255,0.6);
}

.nav--dark .nav__links a:hover {
  color: #FFFFFF;
}

.nav--dark .nav__hamburger span {
  background: #FFFFFF;
}

.nav--dark.nav--scrolled {
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.nav--dark .btn-primary.nav__cta {
  background: #FFFFFF;
  color: #000000;
}
.nav--dark .btn-primary.nav__cta:hover {
  background: #E0E0E0;
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: inherit;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease-out);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__cta {
  font-size: var(--text-sm) !important;
  padding: var(--space-2) var(--space-6) !important;
}

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

/* Mobile nav overlay */
.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.nav__mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}
.nav__mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.nav__mobile-menu a.btn-primary {
  color: var(--color-text-inverse);
  font-size: var(--text-base);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile-menu { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--space-24);
  padding-bottom: var(--space-16);
  position: relative;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__headline {
  max-width: 14ch;
}

.hero__sub {
  max-width: 48ch;
  margin-top: var(--space-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.hero__scroll-cue {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scroll-cue 2s ease-in-out infinite;
}

@keyframes scroll-cue {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   GRID UTILITIES
   ============================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-10);
  }
}

/* ============================================================
   BEFORE/AFTER SHOWCASE
   ============================================================ */

.showcase-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.showcase-card__browser {
  background: #1A1A1A;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.showcase-card__toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: #222;
}

.showcase-card__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.showcase-card__dot--red { background: #FF5F57; }
.showcase-card__dot--yellow { background: #FEBC2E; }
.showcase-card__dot--green { background: #28C840; }

.showcase-card__url {
  flex: 1;
  margin-left: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: #333;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: #888;
  font-family: var(--font-body);
}

.showcase-card__body {
  position: relative;
  overflow: hidden;
}

.showcase-label {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.showcase-label--before {
  background: rgba(255,255,255,0.1);
  color: #888;
}

.showcase-label--after {
  background: var(--color-primary);
  color: #FFF;
}

/* ============================================================
   PROCESS / STEPS
   ============================================================ */

.step-card {
  position: relative;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--color-dark-surface);
  border: 1px solid rgba(255,255,255,0.06);
}

.step-card__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.step-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.step-card__desc {
  font-size: var(--text-base);
  color: var(--color-dark-text-muted);
  line-height: 1.6;
}

/* ============================================================
   PRICING
   ============================================================ */

.pricing-card {
  padding: var(--space-10);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  background: var(--color-dark-bg);
  color: var(--color-dark-text);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.pricing-card__badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #FFF;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.pricing-card__price span {
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 400;
  opacity: 0.6;
}

.pricing-card__features {
  list-style: none;
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.pricing-card__features li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  mask-size: 12px;
  -webkit-mask-size: 12px;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.pricing-card--featured .pricing-card__features li::before {
  background: #FFFFFF;
}

.pricing-card__cta {
  margin-top: var(--space-8);
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */

.testimonial-card {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
}

.testimonial-card__quote {
  font-size: var(--text-lg);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: var(--space-6);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary);
}

.testimonial-card__name {
  font-weight: 600;
  font-size: var(--text-sm);
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */

.compare-table {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.compare-table__header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.compare-table__header .compare-table__label {
  padding: var(--space-5) var(--space-6);
}

.compare-table__header .compare-table__col {
  padding: var(--space-5) var(--space-6);
  text-align: center;
}

.compare-table__col-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.compare-table__col--them .compare-table__col-title {
  color: var(--color-dark-text-muted);
}

.compare-table__col--us .compare-table__col-title {
  color: var(--color-primary);
}

.compare-table__col--us {
  background: rgba(108,58,224,0.06);
}

.compare-table__header .compare-table__col--us {
  background: rgba(108,58,224,0.1);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.compare-table__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s var(--ease-out);
}

.compare-table__row:hover {
  background: rgba(255,255,255,0.02);
}

.compare-table__row--last .compare-table__col--us {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.compare-table__row .compare-table__label {
  padding: var(--space-5) var(--space-6);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-dark-text);
  display: flex;
  align-items: center;
}

.compare-table__row .compare-table__col {
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.compare-val {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
}

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

.compare-val--good {
  color: #FFFFFF;
  font-weight: 600;
}

/* Mobile comparison table */
@media (max-width: 640px) {
  .compare-table__header,
  .compare-table__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .compare-table__header {
    display: none;
  }

  .compare-table__row {
    padding: var(--space-5) var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .compare-table__row .compare-table__label {
    padding: 0;
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-dark-text-muted);
  }

  .compare-table__row .compare-table__col {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    justify-content: flex-start;
    text-align: left;
  }

  .compare-table__col--them {
    background: rgba(255,255,255,0.03);
  }

  .compare-table__col--us {
    background: rgba(108,58,224,0.12);
  }

  .compare-val--bad::before {
    content: '\2715 ';
    color: rgba(255,100,100,0.5);
    margin-right: var(--space-2);
  }

  .compare-val--good::before {
    content: '\2713 ';
    color: var(--color-primary);
    margin-right: var(--space-2);
  }
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-item {
  border-bottom: 1px solid var(--color-divider);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: inherit;
  background: none;
  border: none;
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  transition: transform 0.3s var(--ease-out);
}

.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s var(--ease-out);
  opacity: 0;
}

.faq-item.active .faq-item__answer {
  opacity: 1;
}

.faq-item__answer-inner {
  padding-bottom: var(--space-6);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================================
   CTA SECTION (massive closing)
   ============================================================ */

.cta-section {
  text-align: center;
  padding-block: clamp(var(--space-20), 12vw, var(--space-32));
}

.cta-section__headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 1rem + 8vw, 10rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

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

.footer {
  padding: var(--space-12) 0 var(--space-8);
  border-top: 1px solid var(--color-divider);
}

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

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.footer__links a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer__links a:hover {
  color: var(--color-text);
}

/* ============================================================
   SCROLL REVEAL (CSS-native with @supports fallback)
   ============================================================ */

.reveal {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* Stagger delays */
.reveal-d1 { animation-delay: 0s; }
.reveal-d2 { animation-delay: 60ms; }
.reveal-d3 { animation-delay: 120ms; }
.reveal-d4 { animation-delay: 180ms; }

/* ============================================================
   STAT / METRIC
   ============================================================ */

.stat {
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

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

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

@media (max-width: 768px) {
  .hero__headline {
    max-width: 100%;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .step-card {
    padding: var(--space-6);
  }

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

  .cta-section__headline {
    font-size: clamp(2.5rem, 1rem + 10vw, 5rem);
  }

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

  /* Device showcase — scale down for mobile */
  .device-showcase-wrapper {
    transform: scale(0.65);
    transform-origin: top center;
    margin-bottom: -120px;
  }
}

/* ============================================================
   UTILITY
   ============================================================ */

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

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

.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.mx-auto { margin-inline: auto; }
.max-w-prose { max-width: 65ch; }
.max-w-narrow { max-width: var(--content-narrow); }

/* Decorative gradient mesh background for hero */
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-gradient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.hero-gradient__orb--1 {
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  top: -10%;
  right: -5%;
}

.hero-gradient__orb--2 {
  width: 400px;
  height: 400px;
  background: #E040FB;
  bottom: 10%;
  left: 10%;
  opacity: 0.1;
}

/* Visual rhythm — full-bleed divider line */
.divider-line {
  width: 100%;
  height: 1px;
  background: var(--color-divider);
}

.section-dark .divider-line {
  background: rgba(255,255,255,0.08);
}

/* Animated logo mark */
@keyframes logo-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}
