/* ============================================================
   MoreSales One-Pager — Design System & Styles
   MOBILE-FIRST Architecture (base = 320px+)
   Light theme, monochrome, rigorous UI
   ============================================================ */

/* -------------------------
   CSS VARIABLES (DESIGN TOKENS)
   ------------------------- */
:root {
  /* ── Colors: Backgrounds ── */
  --color-bg-primary:       #F7F7F7;
  --color-bg-secondary:     #FFFFFF;
  --color-bg-tertiary:      #F0F0F0;
  --color-bg-card:          #FFFFFF;
  --color-bg-card-hover:    #FAFAFA;
  --color-bg-card-featured: #111111;
  --color-bg-nav:           rgba(247, 247, 247, 0.92);

  /* ── Colors: Text ── */
  --color-text-primary:     #111111;
  --color-text-secondary:   #555555;
  --color-text-muted:       #888888;
  --color-heading-muted:    #999999;

  /* ── Colors: Accent (monochrome) ── */
  --color-accent:           #111111;
  --color-accent-hover:     #333333;
  --color-accent-muted:     rgba(17, 17, 17, 0.05);
  --color-accent-strong:    rgba(17, 17, 17, 0.10);

  /* ── Colors: Borders ── */
  --color-border:           #E5E5E5;
  --color-border-light:     #D0D0D0;
  --color-border-accent:    rgba(17, 17, 17, 0.20);

  /* ── Colors: Form Inputs ── */
  --color-input-bg:         #FFFFFF;
  --color-input-bg-readonly:#F0F0F0;
  --color-input-text:       #111111;
  --color-input-placeholder:#999999;
  --color-input-border:     #D0D0D0;
  --color-input-focus:      #111111;

  /* ── Colors: Semantic ── */
  --color-error:            #DC2626;
  --color-success:          #16A34A;

  /* ── Typography ── */
  --font-primary:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fw-regular:       400;
  --fw-medium:        500;
  --fw-semibold:      600;
  --fw-bold:          700;
  --fw-extrabold:     800;

  /* ── Font Sizes (fluid-ready) ── */
  --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.5rem;
  --text-5xl:  3.25rem;
  --text-6xl:  4rem;

  /* ── Line Heights ── */
  --lh-tight:   1.1;
  --lh-snug:    1.25;
  --lh-normal:  1.5;
  --lh-relaxed: 1.7;

  /* ── Spacing ── */
  --space-2xs:  0.25rem;
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2rem;
  --space-xl:   3rem;
  --space-2xl:  4rem;
  --space-3xl:  6rem;
  --space-section: 4rem;  /* mobile base */

  /* ── Layout ── */
  --max-width:   1200px;
  --nav-height:  60px;   /* mobile base */

  /* ── Border Radius ── */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-btn:  10px;

  /* ── Shadows ── */
  --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg:   0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-glow-strong: 0 8px 40px rgba(0, 0, 0, 0.10);
  --shadow-card:       0 2px 20px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.08);

  /* ── Transitions ── */
  --ease-base:   250ms ease;
  --ease-fast:   150ms ease;
  --ease-slow:   400ms ease;

  /* ── Animations ── */
  --reveal-duration: 0.45s;
  --reveal-easing:   cubic-bezier(0.25, 0.46, 0.45, 0.94); /* ease-out */
  --reveal-distance: 20px; /* Reduced from 30px to prevent CLS */
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease-fast);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg-primary);
}


/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.text-accent {
  color: var(--color-text-primary);
  font-weight: var(--fw-bold);
}

.text-accent-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-accent-link:hover {
  color: var(--color-accent-hover);
}

.section-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
  display: inline-block;
  position: relative;
}

.section-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-label.is-visible::after,
.section-label:hover::after {
  width: 100%;
}

.section-heading {
  font-size: clamp(var(--text-2xl), 6vw, var(--text-5xl));
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  color: var(--color-heading-muted);
}

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 640px;
  margin-bottom: var(--space-2xl);
}


/* ============================================================
   BUTTONS — touch-target compliant (min 44px)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px; /* WCAG touch target */
  padding: 14px 32px;
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background var(--ease-base), color var(--ease-base),
              border-color var(--ease-base), box-shadow var(--ease-base);
  text-align: center;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg-primary);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-glow);
}

.btn--outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-light);
}

.btn--outline:hover {
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
  background: var(--color-accent-muted);
}

.btn--full {
  width: 100%;
}


/* ============================================================
   NAVIGATION — mobile base
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--color-bg-nav);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--ease-base);
}

.nav--scrolled {
  box-shadow: var(--shadow-md);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.nav__logo {
  font-size: var(--text-xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__logo-sub {
  font-size: 0.55rem;
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 1px;
}

.nav__logo-mark {
  color: var(--color-text-primary);
}

.nav__logo-accent {
  color: var(--color-accent);
}

/* Hidden on mobile — shown on desktop */
.nav__links,
.nav__cta {
  display: none;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  transition: color var(--ease-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--ease-base);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-text-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  background: var(--color-accent);
  color: var(--color-bg-primary);
  border-radius: var(--radius-btn);
  transition: background var(--ease-base), box-shadow var(--ease-base);
}

.nav__cta:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-glow);
}

/* Burger — shown on mobile */
.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;  /* WCAG touch target */
  height: 44px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  -webkit-tap-highlight-color: transparent;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--ease-base), opacity var(--ease-fast);
}

.nav__burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__burger.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(247, 247, 247, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease-slow);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.mobile-menu__link {
  font-size: var(--text-2xl);
  font-weight: var(--fw-semibold);
  color: var(--color-text-secondary);
  transition: color var(--ease-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-menu__link:hover {
  color: var(--color-text-primary);
}

.mobile-menu__cta {
  margin-top: var(--space-sm);
  padding: 14px 40px;
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  background: var(--color-accent);
  color: var(--color-bg-primary);
  border-radius: var(--radius-btn);
  min-height: 48px;
  display: flex;
  align-items: center;
}


/* ============================================================
   HERO — mobile base
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-2xl);
  background: var(--color-bg-primary);
  overflow: hidden;
}

/* Hero gradient mesh — mobile gets subtle radial depth */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 15% 20%, rgba(17,17,17,0.03) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 85% 70%, rgba(17,17,17,0.025) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 50% 50%, rgba(17,17,17,0.015) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

/* Animated floating shapes in hero background */
.hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__bg-shape--1 {
  width: 300px;
  height: 300px;
  top: -60px;
  right: -80px;
  border: 2px solid var(--color-accent);
  opacity: 0.05;
  animation: float 15s ease-in-out infinite, fade-in-shape 1s 0.5s ease forwards;
}

.hero__bg-shape--2 {
  width: 180px;
  height: 180px;
  bottom: 10%;
  left: -50px;
  background: var(--color-accent);
  opacity: 0;
  animation: float 12s ease-in-out infinite reverse, fade-in-shape 1s 0.8s ease forwards;
}

.hero__bg-shape--3 {
  width: 80px;
  height: 80px;
  top: 40%;
  right: 15%;
  background: var(--color-accent);
  border-radius: 12px;
  opacity: 0;
  animation: float-rotate 18s ease-in-out infinite, fade-in-shape 1s 1.1s ease forwards;
}

.hero__bg-shape--4 {
  width: 40px;
  height: 40px;
  bottom: 25%;
  left: 20%;
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  opacity: 0;
  animation: float-rotate 14s ease-in-out infinite reverse, fade-in-shape 1s 1.4s ease forwards;
}

/* Grid dot pattern behind hero */
.hero__bg-dots {
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 100px;
  height: 140px;
  background-image: radial-gradient(circle, var(--color-accent) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  animation: fade-in-shape 1s 1.2s ease forwards;
}

@keyframes fade-in-shape {
  to { opacity: 0.04; }
}

/* Animated line accent below hero heading on mobile */
.hero__heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin-top: var(--space-sm);
  border-radius: 2px;
  animation: hero-line-grow 1.5s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-line-grow {
  from { width: 0; opacity: 0; }
  to   { width: 80px; opacity: 1; }
}

.hero__label {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.hero__heading {
  font-size: clamp(var(--text-3xl), 8vw, var(--text-6xl));
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

.hero__heading--accent {
  color: var(--color-heading-muted);
  background: linear-gradient(135deg, var(--color-heading-muted) 0%, #bbb 50%, var(--color-heading-muted) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-text 6s ease-in-out infinite;
}

@keyframes shimmer-text {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

.hero__sub {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 560px;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.hero__actions .btn {
  width: 100%;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.hero__stat-value {
  display: flex;
  align-items: baseline;
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hero__stat-prefix {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.hero__stat-suffix {
  font-size: 0.7em;
  font-weight: var(--fw-semibold);
  color: var(--color-heading-muted);
  margin-left: 1px;
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Hero stat divider lines */
.hero__stat {
  position: relative;
}

.hero__stats > .hero__stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(var(--space-lg) / -2);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-border);
  display: none;
}


/* ============================================================
   ABOUT / FEATURES — mobile base (1 column)
   ============================================================ */
.about {
  padding: var(--space-section) 0;
  background: var(--color-bg-secondary);
  position: relative;
}

/* Smooth gradient transition from hero (grey) to about (white) */
.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, var(--color-bg-primary), var(--color-bg-secondary));
  pointer-events: none;
  z-index: 0;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--ease-base), background var(--ease-base), transform var(--ease-base), box-shadow var(--ease-base);
  box-shadow: var(--shadow-card);
}

.feature-card:hover {
  border-color: var(--color-border-light);
  background: var(--color-bg-card-hover);
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-card-hover);
}

.feature-card:active {
  transform: translateY(-2px) scale(0.99);
  transition-duration: 100ms;
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-accent-muted);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.feature-card__title {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}


/* ============================================================
   MODULES SECTION — mobile base (1 column)
   ============================================================ */
.modules {
  padding: var(--space-section) 0;
  background: var(--color-bg-tertiary);
}

.modules-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.module-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--ease-base), box-shadow var(--ease-base), transform var(--ease-base);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.module-card:hover {
  border-color: var(--color-border-accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px) scale(1.01);
}

.module-card:active {
  transform: translateY(-2px) scale(0.99);
  transition-duration: 100ms;
}

.module-card__number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: var(--text-4xl);
  font-weight: var(--fw-extrabold);
  color: rgba(0, 0, 0, 0.04);
  line-height: 1;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.module-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-accent-muted);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.module-card__title {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2xs);
}

.module-card__subtitle {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
}

.module-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-md);
}

.module-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.module-card__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-normal);
}

.module-card__list li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}


/* ============================================================
   INTEGRATIONS SECTION — mobile base
   ============================================================ */
.integrations {
  padding: var(--space-section) 0;
  background: var(--color-bg-secondary);
  overflow: hidden;
  position: relative;
}

/* Smooth gradient from modules (tertiary grey) */
.integrations::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, var(--color-bg-tertiary), var(--color-bg-secondary));
  pointer-events: none;
  z-index: 0;
}

/* --- Marquee (infinite scroll) --- */
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: var(--space-xl) 0;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: var(--space-lg);
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause on hover for accessibility */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
}

.marquee__item {
  flex-shrink: 0;
}

.marquee__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 72px;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: border-color var(--ease-base), transform 0.3s ease, box-shadow 0.3s ease;
}

.marquee__logo:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.marquee__logo-sub {
  font-size: var(--text-xs);
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
  line-height: 1;
  margin-bottom: 2px;
}

/* Platform-specific accent colors */
.marquee__logo--temu { border-left: 3px solid #FF6900; }
.marquee__logo--allegro { border-left: 3px solid #FF5A00; }
.marquee__logo--amazon { border-left: 3px solid #FF9900; }
.marquee__logo--baselinker { border-left: 3px solid #00A8E8; }
.marquee__logo--shoper { border-left: 3px solid #00C853; }
.marquee__logo--woo { border-left: 3px solid #96588A; }
.marquee__logo--shopify { border-left: 3px solid #95BF47; }

/* --- Integration badges grid (mobile = 1 col) --- */
.integrations-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.integration-badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-normal);
  transition: border-color var(--ease-base), transform 0.3s ease, box-shadow 0.3s ease;
}

.integration-badge:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.integration-badge svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

/* Alternating left accent colors for integration badges */
.integration-badge:nth-child(1) { border-left: 3px solid #FF6900; }
.integration-badge:nth-child(2) { border-left: 3px solid #FF5A00; }
.integration-badge:nth-child(3) { border-left: 3px solid #FF9900; }
.integration-badge:nth-child(4) { border-left: 3px solid #00A8E8; }
.integration-badge:nth-child(5) { border-left: 3px solid #00C853; }
.integration-badge:nth-child(6) { border-left: 3px solid #96588A; }
.integration-badge:nth-child(7) { border-left: 3px solid #95BF47; }
.integration-badge:nth-child(8) { border-left: 3px solid #111111; }


/* ============================================================
   PRICING SECTION — mobile base (1 column, border-radius: 0)
   ============================================================ */
.pricing {
  padding: var(--space-section) 0;
  background: var(--color-bg-primary);
  overflow: hidden;
}

/* Subtle animated noise/grain texture for visual depth */
.pricing::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 20% 80%, rgba(17,17,17,0.02) 0%, transparent 70%),
    radial-gradient(ellipse 600px 600px at 80% 20%, rgba(17,17,17,0.018) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pricing-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease-base), box-shadow var(--ease-base), transform var(--ease-base);
  box-shadow: var(--shadow-card);
}

.pricing-card:hover {
  border-color: var(--color-border-light);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px) scale(1.015);
}

/* Featured Scale card — inverted color scheme */
.pricing-card--featured {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow-strong);
  animation: pulse-glow 4s ease-in-out infinite;
}

.pricing-card--featured:hover {
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.15);
  animation-play-state: paused;
}

.pricing-card--featured .pricing-card__name,
.pricing-card--featured .pricing-card__desc,
.pricing-card--featured .pricing-card__amount,
.pricing-card--featured .pricing-card__currency span,
.pricing-card--featured .pricing-card__period,
.pricing-card--featured .pricing-card__features li {
  color: var(--color-bg-primary);
}

.pricing-card--featured .pricing-card__price {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.pricing-card--featured .pricing-card__features li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

.pricing-card--featured .btn--primary {
  background: var(--color-bg-primary);
  color: var(--color-accent);
}

.pricing-card--featured .btn--primary:hover {
  background: #FFFFFF;
  color: var(--color-accent);
}

.pricing-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: var(--color-bg-primary);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  padding: 6px 20px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--color-accent);
}

.pricing-card__header {
  margin-bottom: var(--space-lg);
}

.pricing-card__name {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-xs);
}

.pricing-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-normal);
}

.pricing-card__price {
  display: flex;
  align-items: flex-end;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.pricing-card__amount {
  font-size: var(--text-5xl);
  font-weight: var(--fw-extrabold);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

.pricing-card__amount--custom {
  font-size: var(--text-3xl);
}

.pricing-card__currency {
  display: flex;
  flex-direction: column;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  padding-bottom: 6px;
}

.pricing-card__period {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-grow: 1;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-normal);
}

.pricing-card__features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.pricing__note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2xl);
  line-height: var(--lh-relaxed);
}


/* --- Pricing: Trial Banner --- */
.pricing-trial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-2xl);
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  text-align: center;
  border-radius: var(--radius-lg);
}

.pricing-trial__badge {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  letter-spacing: 0.06em;
}

.pricing-trial__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 520px;
}


/* --- Pricing: SLA block (inside each card) --- */
.pricing-card__sla {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.pricing-card__sla-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-card__sla-value {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-normal);
}

/* SLA inside featured card — inverted colors */
.pricing-card--featured .pricing-card__sla {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.pricing-card--featured .pricing-card__sla-label,
.pricing-card--featured .pricing-card__sla-value {
  color: var(--color-bg-primary);
}


/* ============================================================
   DEPLOYMENT & INFRASTRUCTURE TABLE — mobile base (1 col)
   ============================================================ */
.deploy {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.deploy__label {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
}

.deploy__intro {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-xl);
  max-width: 600px;
}

.deploy-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.deploy-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: border-color var(--ease-base), box-shadow var(--ease-base), transform var(--ease-base);
  box-shadow: var(--shadow-card);
}

.deploy-card:hover {
  border-color: var(--color-border-light);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* Featured deploy card — inverted (Cloud / Opcja A) */
.deploy-card--featured {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-primary);
}

.deploy-card--featured .deploy-card__tag,
.deploy-card--featured .deploy-card__title,
.deploy-card--featured .deploy-card__desc,
.deploy-card--featured dt,
.deploy-card--featured dd,
.deploy-card--featured dd strong,
.deploy-card--featured dd span {
  color: var(--color-bg-primary);
}

.deploy-card--featured .deploy-card__row {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.deploy-card__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.deploy-card__tag {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  letter-spacing: 0.06em;
}

.deploy-card__title {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
}

.deploy-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}

.deploy-card__details {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.deploy-card__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.deploy-card__row:last-child {
  border-bottom: none;
}

.deploy-card__row dt {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.deploy-card__row dd {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  line-height: var(--lh-normal);
}

.deploy-card__row dd strong {
  font-weight: var(--fw-bold);
}


/* ============================================================
   CONTACT SECTION — mobile base (1 column)
   ============================================================ */
.contact {
  padding: var(--space-section) 0;
  background: var(--color-bg-secondary);
  overflow: hidden;
}

/* Subtle gradient sweep at bottom of contact */
.contact::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(17,17,17,0.015) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-form__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.contact-form__label {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
}

.contact-form__input {
  width: 100%;
  min-height: 48px; /* WCAG touch target */
  padding: 12px 16px;
  font-size: var(--text-base);
  background: var(--color-input-bg);
  color: var(--color-input-text);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
  -webkit-tap-highlight-color: transparent;
}

.contact-form__input::placeholder {
  color: var(--color-input-placeholder);
}

.contact-form__input:focus {
  border-color: var(--color-input-focus);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12);
}

/* Readonly inputs = grey background per spec */
.contact-form__input[readonly] {
  background: var(--color-input-bg-readonly);
  cursor: not-allowed;
}

/* Invalid state */
.contact-form__input:user-invalid,
.contact-form__input.is-invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.1);
}

.contact-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: var(--color-input-bg);
  padding-right: 40px;
  cursor: pointer;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
}

/* Checkbox — 44px touch area */
.contact-form__consent {
  margin-top: var(--space-xs);
}

.contact-form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  line-height: var(--lh-normal);
  position: relative;
  /* Touch area wrapper */
  min-height: 44px;
  padding-top: 2px;
}

.contact-form__checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 44px;   /* WCAG touch target */
  height: 44px;
  top: -8px;
  left: -8px;
  cursor: pointer;
  z-index: 1;
}

.contact-form__checkbox-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid var(--color-input-border);
  border-radius: 0;
  background: var(--color-input-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease-fast), border-color var(--ease-fast);
  margin-top: 0;
  position: relative;
  z-index: 0;
}

.contact-form__checkbox-label input:checked + .contact-form__checkbox-mark {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.contact-form__checkbox-label input:checked + .contact-form__checkbox-mark::after {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.contact-form__checkbox-label input:focus-visible + .contact-form__checkbox-mark {
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.15);
}

/* Honeypot */
.contact-form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

/* Error messages */
.contact-form__error {
  font-size: var(--text-xs);
  color: var(--color-error);
  min-height: 0;
  overflow: hidden;
  transition: min-height var(--ease-fast);
}

.contact-form__error.is-visible {
  min-height: 18px;
}

/* Submit button — rigorous, no icons, sharp */
.contact-form__submit {
  margin-top: var(--space-sm);
  padding: 16px 32px;
  font-size: var(--text-base);
  min-height: 52px;
}

/* Status message */
.contact-form__status {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  text-align: center;
  min-height: 0;
  overflow: hidden;
  transition: min-height var(--ease-base), padding var(--ease-base);
}

.contact-form__status.is-success {
  color: var(--color-success);
  min-height: 36px;
  padding: var(--space-xs) 0;
}

.contact-form__status.is-error {
  color: var(--color-error);
  min-height: 36px;
  padding: var(--space-xs) 0;
}

/* Contact Info Sidebar */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: relative;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  opacity: 0.4;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.contact-info::after {
  content: '';
  position: absolute;
  bottom: 30px;
  right: -10px;
  width: 60px;
  height: 60px;
  background: var(--color-accent-muted);
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
  animation: float 6s ease-in-out infinite reverse;
}

.contact-info__block {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact-info__heading {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2xs);
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  min-height: 44px; /* touch target */
}

.contact-info__item svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.contact-info__item a:hover {
  color: var(--color-accent);
}

.contact-info__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}


/* ============================================================
   FOOTER — mobile base
   ============================================================ */
.footer {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--ease-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer__links a:hover {
  color: var(--color-text-primary);
}


/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.nav__lang {
  display: none; /* hidden on mobile — shown in mobile menu */
  align-items: center;
  gap: 2px;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  margin-left: var(--space-sm);
}

.nav__lang-sep {
  color: var(--color-text-muted);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.nav__lang-btn {
  background: none;
  border: none;
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px 6px;
  transition: color var(--ease-fast);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.nav__lang-btn:hover {
  color: var(--color-text-primary);
}

.nav__lang-btn.is-active {
  color: var(--color-text-primary);
  font-weight: var(--fw-bold);
}

/* Mobile language switcher — inside mobile menu */
.mobile-menu__lang {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
}

.mobile-menu__lang .nav__lang-btn {
  font-size: var(--text-sm);
  padding: 8px 12px;
  min-height: 44px;
}

.mobile-menu__lang .nav__lang-sep {
  font-size: var(--text-sm);
}


/* ============================================================
   PAGE LOADER — e-commerce themed (rising bars)
   ============================================================ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.page-loader__icon {
  position: relative;
  width: 56px;
  height: 56px;
}

/* Shopping bag outline */
.page-loader__icon svg {
  width: 56px;
  height: 56px;
  color: var(--color-accent);
}

.page-loader__bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
}

.page-loader__bars span {
  width: 7px;
  background: var(--color-accent);
  border-radius: 4px;
  transform-origin: bottom;
  animation: loader-bar 1.2s ease-in-out infinite;
}

.page-loader__bars span:nth-child(1) { height: 14px; animation-delay: 0s; }
.page-loader__bars span:nth-child(2) { height: 24px; animation-delay: 0.12s; }
.page-loader__bars span:nth-child(3) { height: 18px; animation-delay: 0.24s; }
.page-loader__bars span:nth-child(4) { height: 32px; animation-delay: 0.36s; }
.page-loader__bars span:nth-child(5) { height: 26px; animation-delay: 0.48s; }

@keyframes loader-bar {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(1.8); opacity: 1; }
}

.page-loader__text {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: var(--fw-extrabold);
  color: var(--color-accent);
  letter-spacing: -0.03em;
}

.page-loader__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: var(--fw-medium);
  margin-top: -0.5rem;
}


/* ============================================================
   HERO VISUAL — CRM dashboard mockup (desktop only)
   ============================================================ */
.hero__visual {
  display: none;
}

.hero__mockup {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  animation: float 6s ease-in-out infinite;
}

.hero__mockup:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.12);
  animation-play-state: paused;
}

.hero__mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: var(--color-bg-tertiary);
  border-bottom: 1px solid var(--color-border);
}

.hero__mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border-light);
}

.hero__mockup-dot:first-child { background: #FF5F57; }
.hero__mockup-dot:nth-child(2) { background: #FEBC2E; }
.hero__mockup-dot:nth-child(3) { background: #28C840; }

.hero__mockup-title {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.hero__mockup-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__mockup-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 110px;
  padding: 12px 0;
}

.hero__mockup-bar {
  flex: 1;
  background: var(--color-accent);
  border-radius: 6px 6px 0 0;
  height: 50%;
  opacity: 0;
  animation: mockup-bar-rise 0.6s ease forwards;
}

.hero__mockup-bar--1 { --bar-h: 40%; }
.hero__mockup-bar--2 { --bar-h: 65%; }
.hero__mockup-bar--3 { --bar-h: 45%; }
.hero__mockup-bar--4 { --bar-h: 80%; }
.hero__mockup-bar--5 { --bar-h: 55%; }
.hero__mockup-bar--6 { --bar-h: 95%; }

.hero__mockup-bar:nth-child(odd) {
  background: var(--color-accent-muted);
  border: 1px solid var(--color-border);
}

.hero__mockup-bar:nth-child(1) { animation-delay: 0.8s; }
.hero__mockup-bar:nth-child(2) { animation-delay: 0.95s; }
.hero__mockup-bar:nth-child(3) { animation-delay: 1.1s; }
.hero__mockup-bar:nth-child(4) { animation-delay: 1.25s; }
.hero__mockup-bar:nth-child(5) { animation-delay: 1.4s; }
.hero__mockup-bar:nth-child(6) { animation-delay: 1.55s; }

@keyframes mockup-bar-rise {
  from { height: 0; opacity: 0; }
  to { height: var(--bar-h, 50%); opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(0); }
  50%      { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--shadow-glow-strong); }
  50%      { box-shadow: 0 12px 50px rgba(0, 0, 0, 0.14); }
}

.hero__mockup-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero__mockup-metric {
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__mockup-metric-value {
  font-size: 1.35rem;
  font-weight: var(--fw-extrabold);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.hero__mockup-metric-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
}

.hero__mockup-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__mockup-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.hero__mockup-row:last-child {
  border-bottom: none;
}

.hero__mockup-row span:first-child {
  width: 40%;
  height: 10px;
  background: var(--color-bg-tertiary);
  border-radius: 5px;
}

.hero__mockup-row span:last-child {
  width: 20%;
  height: 10px;
  background: var(--color-accent-muted);
  border-radius: 5px;
  margin-left: auto;
}


/* ============================================================
   FOOTER STATS — animated counters
   ============================================================ */
.footer__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding-bottom: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.footer__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs);
}

.footer__stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.footer__stat-number {
  font-size: var(--text-4xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.footer__stat-suffix {
  font-size: var(--text-4xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-heading-muted);
  letter-spacing: -0.03em;
  line-height: 1;
}

.footer__stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
}


/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
  padding: var(--space-md) var(--space-sm);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner.is-hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.cookie-banner__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-xs);
}

.cookie-banner__accept,
.cookie-banner__decline {
  padding: 10px 24px;
  font-size: var(--text-sm);
  min-height: 44px;
  border-radius: var(--radius-btn);
}

@media (min-width: 601px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
  }

  .cookie-banner__actions {
    flex-shrink: 0;
  }
}


/* ============================================================
   SCROLL REVEAL — CLS-safe animations
   Elements reserve their natural space (no display:none/height:0).
   Only opacity + transform change — no layout shift.
   ============================================================ */

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1100;
  background: transparent;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 60ms linear;
}


/* ============================================================
   HOW IT WORKS / PROCESS (4-step timeline) — mobile base
   ============================================================ */
/* ============================================================
   PROCESS / HOW IT WORKS — redesigned mobile timeline
   ============================================================ */
.process {
  padding: var(--space-section) 0;
  background: var(--color-bg-tertiary);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient transition from previous section */
.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--color-bg-secondary), var(--color-bg-tertiary));
  pointer-events: none;
}

.process-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  counter-reset: process-step;
}

.process-step {
  position: relative;
  padding-left: 64px;
  padding-bottom: var(--space-xl);
  counter-increment: process-step;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-step__number {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-bg-primary);
  font-size: var(--text-sm);
  font-weight: var(--fw-extrabold);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover .process-step__number {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(17, 17, 17, 0.2);
}

.process-step__connector {
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-border));
  z-index: 1;
}

.process-step:last-child .process-step__connector {
  display: none;
}

.process-step__title {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2xs);
  transition: color 0.3s ease;
}

.process-step:hover .process-step__title {
  color: var(--color-accent);
}

.process-step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 520px;
}


/* ============================================================
   TESTIMONIALS — mobile base (1 column)
   ============================================================ */
.testimonials {
  padding: var(--space-section) 0;
  background: var(--color-bg-tertiary);
  overflow: hidden;
}

.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.testimonial-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: border-color var(--ease-base), box-shadow var(--ease-base), transform var(--ease-base);
  box-shadow: var(--shadow-card);
}

.testimonial-card:hover {
  border-color: var(--color-border-light);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
  transform: translateY(-8px) scale(1.02);
}

.testimonial-card:active {
  transform: translateY(-2px) scale(0.99);
  transition-duration: 100ms;
}

.testimonial-card__stars {
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  letter-spacing: 2px;
}

.testimonial-card__text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  font-style: normal;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: auto;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.testimonial-card__name {
  display: block;
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

.testimonial-card__role {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
}


/* ============================================================
   FAQ ACCORDION — mobile base
   ============================================================ */
.faq {
  padding: var(--space-section) 0;
  background: var(--color-bg-secondary);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) 0;
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--ease-fast);
  min-height: 48px;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::marker {
  display: none;
  content: '';
}

/* Chevron icon */
.faq-item__question::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: var(--space-sm);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform var(--ease-base);
}

.faq-item[open] > .faq-item__question::after {
  transform: rotate(180deg);
}

.faq-item__question:hover {
  color: var(--color-accent-hover);
}

.faq-item__answer {
  padding: 0 0 var(--space-md) 0;
}

.faq-item__answer p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 640px;
}


/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-bg-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--ease-base), visibility var(--ease-base), transform var(--ease-base), background var(--ease-fast);
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-glow);
}


/* ============================================================
   DECORATIVE BACKGROUND ELEMENTS — enhanced visibility
   ============================================================ */
.section-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.pricing,
.faq,
.contact,
.testimonials,
.features,
.hero {
  position: relative;
}

.pricing > .container,
.faq > .container,
.contact > .container,
.testimonials > .container,
.features > .container {
  position: relative;
  z-index: 1;
}

/* Floating dots — more visible */
.deco-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.06;
}

.deco-dot--1 {
  width: 240px;
  height: 240px;
  top: 8%;
  right: -50px;
  animation: float 12s ease-in-out infinite;
}

.deco-dot--2 {
  width: 100px;
  height: 100px;
  bottom: 18%;
  left: 4%;
  animation: float 8s ease-in-out infinite reverse;
}

.deco-dot--3 {
  width: 160px;
  height: 160px;
  top: 12%;
  left: -40px;
  animation: float 10s ease-in-out infinite;
}

/* Animated rings — bolder strokes */
.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  opacity: 0.08;
}

.deco-ring--1 {
  width: 340px;
  height: 340px;
  bottom: -100px;
  left: -80px;
  animation: spin-slow 30s linear infinite;
}

.deco-ring--2 {
  width: 220px;
  height: 220px;
  top: -50px;
  right: 8%;
  animation: spin-slow 25s linear infinite reverse;
}

.deco-ring--3 {
  width: 260px;
  height: 260px;
  bottom: -70px;
  right: -50px;
  animation: spin-slow 35s linear infinite;
}

/* Animated lines — SVG-feel drawing strokes */
.deco-line {
  position: absolute;
  background: var(--color-accent);
  opacity: 0.07;
}

.deco-line--1 {
  width: 2px;
  height: 260px;
  top: 15%;
  left: 7%;
  transform-origin: top;
  animation: line-draw 5s ease-in-out infinite alternate;
}

.deco-line--2 {
  width: 180px;
  height: 2px;
  bottom: 22%;
  right: 4%;
  transform-origin: right;
  animation: line-draw-h 6s ease-in-out infinite alternate;
}

/* Dot grid pattern — enlarged */
.deco-grid {
  position: absolute;
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
  width: 160px;
  height: 260px;
  background-image: radial-gradient(circle, var(--color-accent) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  opacity: 0.07;
}

/* NEW: Floating tiles/squares */
.deco-tile {
  position: absolute;
  background: var(--color-accent);
  opacity: 0.04;
  border-radius: 6px;
}

.deco-tile--1 {
  width: 60px;
  height: 60px;
  top: 25%;
  right: 12%;
  animation: float-rotate 14s ease-in-out infinite;
}

.deco-tile--2 {
  width: 40px;
  height: 40px;
  bottom: 30%;
  left: 8%;
  animation: float-rotate 11s ease-in-out infinite reverse;
}

.deco-tile--3 {
  width: 80px;
  height: 80px;
  top: 60%;
  right: 3%;
  animation: float-rotate 18s ease-in-out infinite;
  opacity: 0.03;
}

/* NEW: Cross/plus marks */
.deco-cross {
  position: absolute;
  width: 24px;
  height: 24px;
  opacity: 0.1;
}

.deco-cross::before,
.deco-cross::after {
  content: '';
  position: absolute;
  background: var(--color-accent);
}

.deco-cross::before {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.deco-cross::after {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.deco-cross--1 {
  top: 20%;
  right: 20%;
  animation: spin-slow 20s linear infinite;
}

.deco-cross--2 {
  bottom: 35%;
  left: 12%;
  animation: spin-slow 15s linear infinite reverse;
}

/* NEW: Animated path/connector lines between sections */
.deco-path {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.deco-path svg {
  position: absolute;
  width: 100%;
  height: 100%;
}

.deco-path svg path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  opacity: 0.06;
  stroke-dasharray: 8 12;
  animation: dash-flow 20s linear infinite;
}

/* Section divider animated line */
.section-divider {
  position: relative;
  height: 1px;
  background: var(--color-border);
  overflow: hidden;
}

.section-divider::after {
  content: '';
  position: absolute;
  height: 100%;
  width: 80px;
  background: var(--color-accent);
  animation: divider-sweep 4s ease-in-out infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes line-draw {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 0.07; }
  100% { transform: scaleY(0.2); opacity: 0.02; }
}

@keyframes line-draw-h {
  0%   { transform: scaleX(0); opacity: 0; }
  40%  { transform: scaleX(1); opacity: 0.07; }
  100% { transform: scaleX(0.3); opacity: 0.02; }
}

@keyframes float-rotate {
  0%   { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-15px) rotate(5deg); }
  50%  { transform: translateY(5px) rotate(-3deg); }
  75%  { transform: translateY(-8px) rotate(2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes dash-flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -200; }
}

@keyframes divider-sweep {
  0%   { left: -80px; }
  100% { left: 100%; }
}


/* ============================================================
   ENHANCED CARD HOVER — gradient sweep + 3D lift
   ============================================================ */
.feature-card,
.module-card,
.testimonial-card,
.pricing-card:not(.pricing-card--featured),
.deploy-card {
  position: relative;
  overflow: hidden;
}

/* Gradient sweep overlay */
.feature-card::after,
.module-card::after,
.testimonial-card::after,
.pricing-card:not(.pricing-card--featured)::after,
.deploy-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 30%, rgba(17,17,17,0.06) 50%, transparent 70%);
  background-size: 300% 300%;
  background-position: 100% 100%;
  opacity: 0;
  transition: opacity 0.5s ease, background-position 0.8s ease;
  pointer-events: none;
  z-index: -1;
}

.feature-card:hover::after,
.module-card:hover::after,
.testimonial-card:hover::after,
.pricing-card:not(.pricing-card--featured):hover::after,
.deploy-card:hover::after {
  opacity: 1;
  background-position: 0% 0%;
}

/* Top accent line that animates in on hover */
.feature-card::before,
.module-card::before,
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.pricing-card--featured::before {
  background: var(--color-bg-primary);
}

.feature-card:hover::before,
.module-card:hover::before,
.pricing-card:hover::before {
  transform: scaleX(1);
}

/* Card inner content lift */
.feature-card:hover .feature-card__icon,
.module-card:hover .module-card__number {
  transform: translateY(-3px);
  transition: transform 0.3s ease;
}


/* ============================================================
   ENHANCED FORM — accent line, input animations, submit shimmer
   ============================================================ */
.contact-form {
  position: relative;
  padding-top: var(--space-sm);
}

/* Animated accent bar at top of form */
.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: form-accent-width 3s ease-in-out infinite alternate;
}

@keyframes form-accent-width {
  0%   { width: 60px; }
  100% { width: 120px; }
}

.contact-form__group {
  position: relative;
}

/* Animated underline on focus */
.contact-form__group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}

.contact-form__group:focus-within::after {
  transform: scaleX(1);
}

.contact-form__input {
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast), transform 0.2s ease;
}

.contact-form__input:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Label animation on focus */
.contact-form__label {
  transition: color 0.2s ease, letter-spacing 0.3s ease;
}

.contact-form__group:focus-within .contact-form__label {
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

/* Submit button — shimmer + lift */
.contact-form__submit {
  transition: background var(--ease-base), color var(--ease-base),
              box-shadow var(--ease-base), transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.contact-form__submit::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s ease;
}

.contact-form__submit:hover::after {
  left: 100%;
}

.contact-form__submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.contact-form__submit:active {
  transform: translateY(0);
  transition-duration: 80ms;
}


/* ============================================================
   FAQ ACCORDION — enhanced animations + accent indicators
   ============================================================ */
.faq-item {
  transition: background 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.faq-item:hover {
  background: var(--color-accent-muted);
}

.faq-item__answer {
  overflow: hidden;
  animation: faq-slide-down 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item:not([open]) .faq-item__answer {
  animation: none;
}

@keyframes faq-slide-down {
  from { opacity: 0; transform: translateY(-12px); max-height: 0; }
  to   { opacity: 1; transform: translateY(0); max-height: 500px; }
}

.faq-item__question {
  transition: color var(--ease-fast), padding-left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[open] > .faq-item__question {
  color: var(--color-accent);
  padding-left: 12px;
}

/* Left accent bar on open */
.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[open]::before {
  transform: scaleY(1);
}

/* Number counter for FAQ items */
.faq-item {
  counter-increment: faq-counter;
}

/* ============================================================
   SCROLL REVEAL — CLS-safe animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance)) scale(0.98);
  transition: opacity var(--reveal-duration) var(--reveal-easing),
              transform var(--reveal-duration) var(--reveal-easing);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Direction variants for richer mobile feel */
.reveal--left {
  transform: translateX(-30px);
}

.reveal--right {
  transform: translateX(30px);
}

.reveal--scale {
  transform: scale(0.92);
}

.reveal--left.is-visible,
.reveal--right.is-visible,
.reveal--scale.is-visible {
  transform: translateX(0) scale(1);
}

/* Staggered children */
.reveal-stagger > .reveal {
  transition-delay: calc(var(--stagger, 0) * 80ms);
}

/* Stagger from JS --stagger custom property */
.reveal.is-visible {
  transition-delay: calc(var(--stagger, 0) * 60ms);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__mockup {
    animation: none;
  }
  .hero__heading--accent {
    animation: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    color: var(--color-heading-muted);
  }
  .pricing-card--featured {
    animation: none;
  }
  .section-label::after {
    width: 100%;
    transition: none;
  }
}


/* ============================================================
   RESPONSIVE — TABLET (min-width: 601px)
   ============================================================ */
@media (min-width: 601px) {
  :root {
    --space-section: 5rem;
    --nav-height: 64px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .section-sub {
    font-size: var(--text-lg);
  }

  .hero__stat-value {
    font-size: var(--text-3xl);
  }

  /* Show stat dividers on tablet+ */
  .hero__stats > .hero__stat:not(:last-child)::after {
    display: block;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-3xl);
  }

  .hero__sub {
    font-size: var(--text-lg);
  }

  .hero__actions {
    flex-direction: row;
  }

  .hero__actions .btn {
    width: auto;
  }

  /* Features — 2 columns */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  /* Modules — 2 columns */
  .modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  /* Integrations badges — 2 columns */
  .integrations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  /* Pricing — 2x2 grid on tablet */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: none;
    align-items: stretch;
  }

  /* Deploy — 2 columns on tablet */
  .deploy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .deploy-card__row {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }

  /* Process — horizontal cards on tablet with connecting line */
  .process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-2xl);
  }

  .process-step {
    padding-left: 0;
    padding-top: 60px;
    padding-bottom: 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 60px var(--space-lg) var(--space-lg);
    transition: border-color var(--ease-base), box-shadow var(--ease-base), transform var(--ease-base);
  }

  .process-step:hover {
    border-color: var(--color-border-light);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
  }

  .process-step__number {
    left: var(--space-lg);
    top: var(--space-md);
  }

  .process-step__connector {
    display: none;
  }

  /* Testimonials — 2 columns */
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid .testimonial-card:last-child {
    grid-column: 1 / -1;
  }

  /* Contact form rows — 2 columns */
  .contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  /* Footer */
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer__brand {
    align-items: flex-start;
  }

  .footer__links {
    gap: var(--space-lg);
  }
}


/* ============================================================
   RESPONSIVE — DESKTOP (min-width: 969px)
   ============================================================ */
@media (min-width: 969px) {
  :root {
    --space-section: 5.5rem;
    --nav-height: 72px;
  }

  html {
    scroll-padding-top: calc(var(--nav-height) + 24px);
  }

  /* Floating rounded nav on desktop */
  .nav {
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: calc(var(--max-width) + 48px);
    border-radius: var(--radius-xl);
    border-bottom: none;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav--scrolled {
    box-shadow: var(--shadow-lg);
  }

  /* Show desktop nav, hide burger */
  .nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__lang {
    display: flex;
  }

  .nav__burger {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + var(--space-2xl) + 12px);
    padding-bottom: var(--space-section);
  }

  .hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-2xl);
    align-items: center;
  }

  .hero__visual {
    display: block;
  }

  .hero__label {
    margin-bottom: var(--space-sm);
  }

  .hero__heading {
    margin-bottom: var(--space-sm);
  }

  .hero__sub {
    margin-bottom: var(--space-lg);
  }

  .hero__actions {
    margin-bottom: var(--space-2xl);
  }

  .hero__heading::after {
    display: none;
  }

  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    border-top: none;
    padding-top: 0;
  }

  /* Features — 3 columns */
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-card {
    padding: var(--space-xl);
  }

  /* Modules — 2 columns (large cards) */
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .module-card {
    padding: var(--space-xl);
  }

  .module-card__number {
    font-size: var(--text-6xl);
  }

  /* Integrations badges — 4 columns */
  .integrations-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Pricing — 2×2 grid on desktop (full container width, equal height) */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    align-items: stretch;
  }

  .pricing-card {
    padding: var(--space-2xl) var(--space-xl);
  }

  /* Deploy — keep 2 columns, wider gap */
  .deploy-grid {
    gap: var(--space-lg);
  }

  /* Process — 4 columns on desktop, card style */
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }

  .process-step {
    padding: 60px var(--space-md) var(--space-lg);
  }

  /* Testimonials — 3 columns on desktop */
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid .testimonial-card:last-child {
    grid-column: auto;
  }

  /* FAQ — 2-column layout (heading left, questions right) */
  .faq {
    position: relative;
  }

  .faq > .container {
    display: grid;
    grid-template-columns: 320px 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 0 var(--space-2xl);
    align-items: start;
  }

  .faq > .container > .section-label {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: var(--space-sm);
  }

  .faq > .container > .section-heading {
    grid-column: 1;
    grid-row: 2;
    position: sticky;
    top: calc(var(--nav-height) + 32px);
  }

  .faq-list {
    grid-column: 2;
    grid-row: 1 / -1;
    max-width: none;
  }

  /* Contact — 2 columns */
  .contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
  }

  .contact-info {
    padding-top: var(--space-lg);
  }
}
