/* ============================================================
   ComflexAi — Design System
   Технологичный минимализм, инженерная строгость
   ============================================================ */

/* --- CSS Variables ---------------------------------------- */
:root {
  --color-primary:    #0055b8;
  --color-primary-dk: #003d8a;
  --color-primary-lt: #e6f0ff;
  --color-accent:     #ff9500;
  --color-accent-dk:  #e08200;
  --color-white:      #ffffff;
  --color-bg-subtle:  #f8fafc;
  --color-bg-light:   #e6f0ff;
  --color-text:       #0f172a;
  --color-text-muted: #4b5563;
  --color-neutral:    #9ca3af;
  --color-border:     #e2e8f0;
  --font-main:        'Inter', system-ui, sans-serif;
  --radius-sm:        6px;
  --radius:           8px;
  --radius-lg:        12px;
  --shadow-sm:        0 1px 3px rgba(0, 0, 0, 0.07);
  --shadow-md:        0 4px 16px rgba(0, 85, 184, 0.10);
  --shadow-lg:        0 8px 32px rgba(0, 85, 184, 0.14);
  --container:        1320px;
  --gap-section:      100px;
  --gap-section-md:   70px;
  --gap-section-sm:   48px;
  --nav-height:       70px;
  --transition:       0.22s ease;
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}
h1 { font-size: clamp(32px, 4.5vw, 52px); }
h2 { font-size: clamp(26px, 3.5vw, 40px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: clamp(18px, 2vw, 22px); }
p  { color: var(--color-text-muted); line-height: 1.7; }

.text-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }

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

/* --- Section base ------------------------------------------ */
.cf-section {
  padding: var(--gap-section) 0;
}
.cf-section--alt {
  background: var(--color-bg-subtle);
}
.cf-section--blue {
  background: var(--color-primary);
  color: var(--color-white);
}
.cf-section--blue h1,
.cf-section--blue h2,
.cf-section--blue h3,
.cf-section--blue p { color: var(--color-white); }

.cf-section__header {
  margin-bottom: 56px;
}
.cf-section__header h2 { margin-bottom: 16px; }
.cf-section__header p { max-width: 600px; }
.cf-section__header.text-center p { margin: 0 auto; }

/* --- Badge / label ----------------------------------------- */
.cf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-bg-light);
  border: 1px solid rgba(0, 85, 184, 0.18);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.cf-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transition);
}
.cf-nav.scrolled {
  box-shadow: var(--shadow-md);
}
.cf-nav__inner {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  gap: 40px;
}
.cf-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.cf-nav__logo-icon {
  width: 32px; height: 32px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.cf-nav__logo-icon svg { fill: white; }

.cf-nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.cf-nav__item {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.cf-nav__item:hover,
.cf-nav__item.active {
  color: var(--color-primary);
  background: var(--color-bg-light);
}
.cf-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Mobile nav */
.cf-nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--color-text);
  margin-left: auto;
}
.cf-nav__mobile {
  display: none;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 16px 0 24px;
  box-shadow: var(--shadow-md);
}
.cf-nav__mobile.open { display: block; }
.cf-nav__mobile-item {
  display: block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition), background var(--transition);
}
.cf-nav__mobile-item:hover { color: var(--color-primary); background: var(--color-bg-light); }
.cf-nav__mobile-cta {
  margin: 16px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.cf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.cf-btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.cf-btn--primary:hover {
  background: var(--color-accent-dk);
  border-color: var(--color-accent-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.35);
}
.cf-btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.cf-btn--secondary:hover {
  background: var(--color-bg-light);
  transform: translateY(-1px);
}
.cf-btn--white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}
.cf-btn--white:hover {
  background: var(--color-bg-light);
  transform: translateY(-1px);
}
.cf-btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}
.cf-btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--color-white);
}
.cf-btn--lg {
  font-size: 16px;
  padding: 14px 36px;
}
.cf-btn--sm {
  font-size: 14px;
  padding: 8px 20px;
}
.cf-btn--full { width: 100%; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.cf-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-bg-light) 100%);
  overflow: hidden;
}
.cf-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cf-hero__title { margin-bottom: 20px; }
.cf-hero__title em {
  font-style: normal;
  color: var(--color-primary);
}
.cf-hero__subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 520px;
}
.cf-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.cf-hero__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.cf-hero__stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.cf-hero__stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}
.cf-hero__visual {
  position: relative;
}
.cf-hero__diagram {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.cf-hero__diagram-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
/* Chat-style diagram */
.cf-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cf-chat__msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.cf-chat__msg--bot .cf-chat__bubble {
  background: var(--color-bg-light);
  color: var(--color-text);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
}
.cf-chat__msg--user {
  flex-direction: row-reverse;
}
.cf-chat__msg--user .cf-chat__bubble {
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius) 0 var(--radius) var(--radius);
}
.cf-chat__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.cf-chat__avatar--bot { background: var(--color-primary); color: white; }
.cf-chat__avatar--user { background: var(--color-accent); color: white; }
.cf-chat__bubble {
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 240px;
}
.cf-chat__status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-muted);
}
.cf-chat__status-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.cf-problem__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.cf-problem__card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.cf-problem__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cf-problem__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cf-problem__header h4 { margin: 0; font-size: 17px; }
.cf-problem__icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: #fff3e0;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.cf-problem__card p { font-size: 14px; }

/* ============================================================
   SOLUTION SECTION
   ============================================================ */
.cf-solution__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.cf-solution__text h2 { margin-bottom: 16px; }
.cf-solution__text p { margin-bottom: 24px; }
.cf-solution__steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cf-solution__step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.cf-solution__step-num {
  width: 32px; height: 32px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.cf-solution__step h4 { font-size: 16px; margin-bottom: 4px; }
.cf-solution__step p { font-size: 14px; }
.cf-solution__visual {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.cf-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cf-flow__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.cf-flow__item:last-child { border-bottom: none; }
.cf-flow__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}
.cf-flow__label { font-size: 14px; font-weight: 500; }
.cf-flow__arrow {
  margin-left: auto;
  font-size: 12px;
  color: var(--color-neutral);
}

/* ============================================================
   FEATURES
   ============================================================ */
.cf-features__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
/* Row 1: 3 cards wide — wide funnel top */
.cf-features__grid .cf-feature-card:nth-child(1) { grid-column: 1 / 5; }
.cf-features__grid .cf-feature-card:nth-child(2) { grid-column: 5 / 9; }
.cf-features__grid .cf-feature-card:nth-child(3) { grid-column: 9 / 13; }
/* Row 2: 2 cards centered — narrow funnel bottom */
.cf-features__grid .cf-feature-card:nth-child(4) { grid-column: 2 / 7; }
.cf-features__grid .cf-feature-card:nth-child(5) { grid-column: 7 / 12; }
.cf-feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.cf-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.cf-feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: rgba(0,85,184,0.20); }
.cf-feature-card:hover::before { transform: scaleX(1); }
.cf-feature-card__icon {
  width: 44px; height: 44px;
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 12px;
  vertical-align: middle;
}
.cf-feature-card__header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.cf-feature-card__header h3 { margin: 0; }
.cf-feature-card__icon svg, .cf-feature-card__icon i {
  font-size: 22px;
  color: var(--color-primary);
}
.cf-feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.cf-feature-card p { font-size: 13px; line-height: 1.55; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.cf-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.cf-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 10%; right: 10%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}
.cf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.cf-step__num {
  width: 56px; height: 56px;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.cf-step__active .cf-step__num {
  background: var(--color-primary);
  color: white;
}
.cf-step__body { display: contents; }
.cf-step h4 { font-size: 15px; margin-bottom: 8px; }
.cf-step p { font-size: 13px; }

/* ============================================================
   ADVANTAGES
   ============================================================ */
.cf-advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cf-advantage {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.cf-advantage__value {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.cf-advantage__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}
.cf-advantage__desc { font-size: 13px; }

/* ============================================================
   SOCIAL PROOF / CAROUSEL
   ============================================================ */
.cf-carousel {
  position: relative;
}
.cf-carousel__viewport {
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-bottom: 24px;
}
.cf-carousel__viewport::-webkit-scrollbar { display: none; }
.cf-carousel__track {
  display: flex;
  gap: 24px;
}
.cf-case {
  flex: 0 0 calc(50% - 12px);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}
.cf-case__industry {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.cf-case h4 { margin-bottom: 10px; font-size: clamp(16px,1.6vw,19px); }
.cf-case p { font-size: 14px; margin-bottom: 20px; flex: 1; }
.cf-case__stats {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.cf-case__stat {
  flex: 1;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
}
.cf-case__stat-val {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}
.cf-case__stat-lbl {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 3px;
}
.cf-case__result {
  display: inline-block;
  font-weight: 600;
  color: #16a34a;
  font-size: 13px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
}
.cf-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.cf-carousel__btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text);
  flex-shrink: 0;
  transition: box-shadow var(--transition), background var(--transition);
}
.cf-carousel__btn:hover { box-shadow: var(--shadow-md); background: var(--color-bg-light); }
.cf-carousel__dots {
  display: flex; gap: 8px; align-items: center;
}
.cf-carousel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none; cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.cf-carousel__dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .cf-case {
    flex: 0 0 100%;
    padding: 24px 20px;
  }
}

/* ============================================================
   TRUST
   ============================================================ */
.cf-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cf-trust-card {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.cf-trust-card__icon {
  width: 56px; height: 56px;
  background: var(--color-bg-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
  color: var(--color-primary);
}
.cf-trust-card h3 { font-size: 20px; margin-bottom: 10px; }
.cf-trust-card p { font-size: 14px; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cf-cta {
  background: var(--color-primary);
  padding: 100px 0;
  text-align: center;
}
.cf-cta h2 { color: white; margin-bottom: 16px; font-size: clamp(28px,3vw,40px); }
.cf-cta p { color: rgba(255,255,255,0.80); margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cf-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.cf-footer {
  background: #0a1628;
  color: rgba(255,255,255,0.75);
  padding: 64px 0 36px;
}
.cf-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.cf-footer__logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700;
  color: white; margin-bottom: 14px;
}
.cf-footer__desc { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.cf-footer__col h5 {
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.cf-footer__link {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.60);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.cf-footer__link:hover { color: white; }
.cf-footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,0.40);
}

/* ============================================================
   PRICING
   ============================================================ */
.cf-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cf-pricing-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.cf-pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cf-pricing-card--featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.cf-pricing__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--color-accent); color: white;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  padding: 4px 16px; border-radius: 20px; white-space: nowrap;
}
.cf-pricing-card h3 { font-size: 20px; margin-bottom: 8px; }
.cf-pricing-card__price {
  font-size: 40px; font-weight: 700; color: var(--color-primary);
  line-height: 1; margin: 20px 0 6px;
}
.cf-pricing-card__period { font-size: 13px; color: var(--color-neutral); margin-bottom: 24px; }
.cf-pricing-card__features { text-align: left; margin-bottom: 28px; }
.cf-pricing-card__feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}
.cf-pricing-card__feature:last-child { border-bottom: none; }
.cf-pricing-card__check { color: #22c55e; font-size: 16px; flex-shrink: 0; }

.cf-pricing-addon {
  margin-top: 40px;
  text-align: center;
}
.cf-pricing-addon__card {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 32px;
}
.cf-pricing-addon__header h4 { font-size: 16px; margin-bottom: 4px; }
.cf-pricing-addon__header .text-muted { font-size: 13px; margin: 0; }
.cf-pricing-addon__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cf-pricing-addon__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}
.cf-pricing-addon__discount {
  font-size: 13px;
  color: var(--color-neutral);
}

.cf-pricing-note {
  margin-top: 24px;
  text-align: center;
}
.cf-pricing-note p {
  font-size: 13px;
  color: var(--color-neutral);
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================
   CANVAS NEURAL BACKGROUND
   ============================================================ */
#cf-neural-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   ANIMATIONS (fade-in on scroll)
   ============================================================ */
.cf-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.cf-animate.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --gap-section: var(--gap-section-md); }
  .cf-hero__grid, .cf-solution__grid { grid-template-columns: 1fr; gap: 40px; }
  .cf-hero__visual { display: none; }
  .cf-steps { grid-template-columns: 1fr; }
  .cf-steps::before { display: none; }
  .cf-step { flex-direction: row; text-align: left; align-items: flex-start; gap: 16px; padding: 0; }
  .cf-step__num { margin-bottom: 0; flex-shrink: 0; }
  .cf-step__body { display: block; min-width: 0; }
  .cf-step__body h4 { margin-top: 12px; }
  .cf-step__body p { margin-top: 4px; }
  .cf-features__grid { grid-template-columns: repeat(2, 1fr); }
  .cf-features__grid .cf-feature-card:nth-child(1),
  .cf-features__grid .cf-feature-card:nth-child(2),
  .cf-features__grid .cf-feature-card:nth-child(3),
  .cf-features__grid .cf-feature-card:nth-child(4),
  .cf-features__grid .cf-feature-card:nth-child(5) { grid-column: span 1; }
  .cf-features__grid .cf-feature-card:last-child { grid-column: span 2; }
  .cf-advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .cf-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --gap-section: var(--gap-section-sm); }
  .cf-nav__menu, .cf-nav__actions { display: none; }
  .cf-nav__hamburger { display: flex; }
  .cf-hero__actions { flex-direction: column; }
  .cf-hero__actions .cf-btn { width: 100%; justify-content: center; }
  .cf-problem__grid { grid-template-columns: 1fr; }
  .cf-features__grid { grid-template-columns: 1fr; }
  .cf-features__grid .cf-feature-card { grid-column: span 1 !important; }
  .cf-advantages__grid { grid-template-columns: 1fr; }
  .cf-proof__numbers { grid-template-columns: 1fr; gap: 24px; }
  .cf-cases { grid-template-columns: 1fr; }
  .cf-trust__grid { grid-template-columns: 1fr; }
  .cf-pricing { grid-template-columns: 1fr; }
  .cf-footer__grid { grid-template-columns: 1fr; }
  .cf-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cf-cta__actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .cf-container { padding: 0 16px; }
  .cf-hero__stats { flex-direction: column; gap: 16px; }
}

/* ============================================================
   LANDING ADDITIONS — screenshots + draft banner
   ============================================================ */

/* Draft announcement banner (above nav) */
.cf-draft-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  background: #0055b8;
  color: white;
  text-align: center;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 500;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cf-draft-banner a {
  color: #ff9500;
  text-decoration: underline;
  font-weight: 600;
}

/* Push nav below the draft banner */
.cf-nav { top: 32px; }

/* Extra hero top padding to account for draft banner */
.cf-hero { padding-top: calc(var(--nav-height) + 32px + 80px); }

/* Screenshots section */
.cf-screenshots__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.cf-screenshots__tab {
  padding: 9px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  background: var(--color-white);
  transition: all var(--transition);
}
.cf-screenshots__tab:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.cf-screenshots__tab.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.cf-screenshots__pane { display: none; }
.cf-screenshots__pane.active { display: block; }
.cf-screenshots__img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  width: 100%;
}
.cf-screenshots__caption {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 16px;
}

/* Hide all section cf-badges except hero */
.cf-badge { display: none; }
.cf-badge--hero { display: inline-flex; }


/* ============================================================
   Demo Request Modal
   ============================================================ */
.cf-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.cf-modal-overlay.open { display: flex; }

.cf-modal {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: cf-modal-in 0.22s ease;
}
@keyframes cf-modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cf-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.cf-modal__close:hover { color: var(--color-text); }

.cf-modal__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}
.cf-modal__sub {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.cf-modal__field { margin-bottom: 16px; }
.cf-modal__field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.cf-modal__field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition);
  outline: none;
}
.cf-modal__field input:focus { border-color: var(--color-primary); }
.cf-modal__field input::placeholder { color: var(--color-neutral); }

.cf-modal__submit {
  width: 100%;
  margin-top: 8px;
}

.cf-modal__note {
  font-size: 12px;
  color: var(--color-neutral);
  text-align: center;
  margin-top: 12px;
}

.cf-modal__success {
  display: none;
  text-align: center;
  padding: 16px 0;
}
.cf-modal__success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.cf-modal__success h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.cf-modal__success p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.cf-modal__error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

@media (max-width: 480px) {
  .cf-modal { padding: 28px 20px; }
}
