/* =========================================
   ASIS AI — Landing v5
   Premium Business Luxury
   Clean, status, elegant, no neon
   ========================================= */

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

:root {
    color-scheme: light only;
    /* Тёмная палитра (Hero) */
    --bg-dark: #0F1115;
    --bg-dark-surface: #1A1D22;
    --text-on-dark: #F7F4EE;
    --text-on-dark-sec: #C8C1B7;
    --border-dark: rgba(200, 169, 107, 0.22);
    
    /* Светлая палитра (Основа) */
    --bg-light: #F7F3EC;
    --bg-light-alt: #F2EEE6;
    --bg-card: #FFFDF9;
    --text-primary: #1C1B19;
    --text-secondary: #5F5A52;
    --border-light: #E6D8BF;

    /* Акценты */
    --accent: #C8A96B;
    --accent-hover: #B8924F;
    --accent-light: rgba(200, 169, 107, 0.1);

    /* Утилиты */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --transition: 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-soft: 0 12px 32px rgba(28, 27, 25, 0.04);
    --shadow-hover: 0 16px 48px rgba(28, 27, 25, 0.08);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Onest', 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- CRITICAL: Global responsive base --- */
img, video, iframe { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; flex-shrink: 0; }
svg:not([width]) { width: 1em; height: 1em; }
section { position: relative; z-index: 1; overflow: hidden; }

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Onest', sans-serif;
    color: var(--text-primary);
    margin-bottom: 0.5em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 56px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 16px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent);
    color: #FFFDF9;
    box-shadow: 0 4px 14px rgba(200, 169, 107, 0.25);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 146, 79, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-on-dark);
    border: 1px solid var(--border-dark);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.btn-lg {
    padding: 20px 48px;
    font-size: 1.125rem;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 24px;
    transition: var(--transition);
    background: rgba(15, 17, 21, 0.0);
}

.site-header.scrolled {
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
    padding: 8px 24px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-on-dark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-on-dark-sec);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--text-on-dark);
}

.nav-cta {
    background: rgba(255,255,255,0.05);
    color: var(--text-on-dark) !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-dark);
}

.nav-cta:hover {
    background: var(--accent);
    color: #fff !important;
    border-color: var(--accent);
}

/* Mobile menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--text-on-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* =========================================
   HERO (DARK)
   ========================================= */
.hero {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(200,169,107,0.15) 0%, rgba(15,17,21,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-avatar-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent) 0%, rgba(200,169,107,0.1) 100%);
    margin-bottom: 40px;
}

.hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-dark);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 900px;
    color: var(--text-on-dark);
}

.hero-accent {
    color: var(--accent);
    display: block;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
    margin-top: 16px;
    letter-spacing: -0.01em;
}

.hero-emphasis {
    font-size: 1.125rem;
    color: var(--text-on-dark-sec);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}

.hero-badges li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-on-dark-sec);
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dark);
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

.hero-badges li .badge-icon {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* =========================================
   PAIN SECTION (LIGHT)
   ========================================= */
.pain {
    padding: 120px 0;
    background-color: var(--bg-light-alt);
    border-bottom: 1px solid var(--border-light);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 56px;
}

.pain-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.pain-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.pain-icon-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.pain-icon-wrap svg {
    width: 20px;
    height: 20px;
}

.pain-item p {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.pain-conclusion {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.pain-conclusion p {
    color: var(--text-secondary);
}
.pain-conclusion p::first-line {
    color: var(--text-primary);
}

/* =========================================
   FEATURES
   ========================================= */
.features {
    padding: 120px 0;
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

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

.f-icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--bg-light-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 24px;
}

.f-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =========================================
   PRODUCT SHOWCASE
   ========================================= */
.showcase {
    padding: 120px 0;
    background-color: var(--bg-light-alt);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.showcase-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.showcase-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.showcase-img-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 400px;
    background: var(--bg-light);
}

.showcase-img-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
}

/* =========================================
   CASE STUDY
   ========================================= */
.case {
    padding: 120px 0;
    background-color: var(--bg-light);
}

.carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-track {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.carousel-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    min-width: 100%;
}

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 48px;
    display: flex;
    flex-direction: column;
}

.case-label {
    align-self: flex-start;
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-light);
    color: var(--accent-hover);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.case-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 32px 0 16px;
}

.case-story {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.case-story strong {
    color: var(--text-primary);
    font-weight: 600;
}

.case-results h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.case-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.case-metric {
    padding: 24px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.case-metric .metric-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-hover);
    margin-bottom: 8px;
    line-height: 1;
}

.case-metric .metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: block;
}

.case-quote {
    padding: 24px;
    background: var(--bg-light-alt);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Carousel controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-btn:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
    transform: scale(1.05);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

/* =========================================
   ALTERNATIVES
   ========================================= */
.alternatives {
    padding: 120px 0;
    background-color: var(--bg-light-alt);
}

.alt-table-wrap {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.alt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.alt-table th,
.alt-table td {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.alt-table thead th {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-light);
}

.alt-table tbody td {
    color: var(--text-secondary);
}

.alt-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-light);
    width: 25%;
}

.alt-table .alt-highlight {
    background: var(--accent-light);
    color: var(--text-primary) !important;
    font-weight: 700;
}

.alt-table thead .alt-highlight {
    color: var(--accent-hover) !important;
    border-top: 3px solid var(--accent);
}

.alt-table tbody tr:last-child td {
    border-bottom: none;
}

.alt-cta {
    text-align: center;
    margin-top: 48px;
}

/* =========================================
   STEPS
   ========================================= */
.steps {
    padding: 120px 0;
    background-color: var(--bg-light);
}

.steps-track {
    display: flex;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.step-card {
    flex: 1;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 2;
}

.step-num {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    color: var(--accent-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =========================================
   PRICING
   ========================================= */
.pricing {
    padding: 120px 0;
    background-color: var(--bg-light-alt);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: var(--transition);
}

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

.pricing-card.featured {
    padding: 48px 40px;
    border-color: var(--accent);
    box-shadow: 0 16px 48px rgba(200, 169, 107, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #FFFDF9;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.pricing-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.pricing-price-box {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.pricing-features li svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.cta-card {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    border-radius: var(--radius-lg);
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
}

.cta-card h2 {
    color: var(--text-on-dark);
    margin-bottom: 40px;
}

.cta-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    list-style: none;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    color: var(--text-on-dark-sec);
}

.cta-list li svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* =========================================
   FAQ
   ========================================= */
.faq {
    padding: 120px 0;
    background-color: var(--bg-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

.faq-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =========================================
   FOOTER CONTACT
   ========================================= */
.footer-contact {
    padding: 80px 0 0;
    background-color: var(--bg-light-alt);
    text-align: center;
}

.footer-contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--border-light);
}

.footer-contact-buttons .btn-secondary {
    color: var(--text-primary);
    border-color: var(--border-light);
}
.footer-contact-buttons .btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(0,0,0,0.02);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background-color: var(--bg-light-alt);
    padding: 64px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.footer-logo span {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom a {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
}

/* =========================================
   REVEAL UTILS
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   MEDIA QUERIES (MOBILE)
   ========================================= */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .steps-track {
        flex-wrap: wrap;
        justify-content: center;
    }

    .step-card {
        flex: 0 0 calc(33.33% - 16px);
    }

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

    .case-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    /* Hide nav, show burger from tablet */
    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(15, 17, 21, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-dark);
        z-index: 100;
    }
    .nav-links.open { display: flex; }
    .burger { display: flex; }
}

@media (max-width: 768px) {
    /* Fix horizontal overflow */
    html, body { overflow-x: hidden; width: 100%; }
    .container { max-width: 100%; padding: 0 16px; }
    .header-inner { max-width: 100%; }

    /* --- Hero --- */
    .hero {
        padding: 120px 0 64px;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .hero-accent {
        font-size: 1.1rem;
    }

    .hero-avatar-wrapper {
        width: 80px;
        height: 80px;
    }

    .hero-emphasis {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .hero-bg-accent {
        width: 400px;
        height: 400px;
    }

    /* --- Global section override (like v4) --- */
    h2 {
        font-size: 1.5rem !important;
    }

    section {
        padding: 64px 0 !important;
    }

    .section-header {
        margin-bottom: 32px;
    }

    /* --- Grids to 1 column --- */
    .pain-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

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

    /* --- Steps vertical --- */
    .steps-track {
        flex-direction: column;
    }

    .step-card {
        flex: 1;
    }

    /* --- Case metrics 2-col on mobile --- */
    .case-results-grid {
        grid-template-columns: 1fr 1fr;
    }

    .case-card {
        padding: 28px 20px;
    }

    /* --- Showcase centered --- */
    .showcase-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .showcase-img-wrap {
        height: auto;
        max-height: 360px;
    }

    /* --- ALL buttons full-width (key v4 pattern) --- */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
        max-width: 320px;
    }

    /* --- Badges compact --- */
    .hero-badges {
        gap: 6px;
    }

    .hero-badges li {
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    /* --- Footer --- */
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    /* --- CTA --- */
    .cta-card {
        padding: 32px 20px;
    }

    .cta-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* --- Pricing --- */
    .pricing-card {
        padding: 28px 20px;
    }

    .pricing-card.featured {
        padding: 32px 20px;
    }

    .pricing-price {
        font-size: 1.4rem;
    }

    /* --- Table scrollable --- */
    .alt-table {
        min-width: 560px;
        font-size: 0.82rem;
    }

    .alt-table th,
    .alt-table td {
        padding: 12px 10px;
    }

    /* --- Pain items tighter --- */
    .pain-item {
        padding: 16px;
        gap: 14px;
    }

    .pain-icon-wrap {
        width: 40px;
        height: 40px;
    }

    .pain-icon-wrap svg {
        width: 18px;
        height: 18px;
    }

    .pain-conclusion {
        padding: 24px 16px;
    }

    /* --- FAQ items tighter --- */
    .faq-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-accent {
        font-size: 1rem;
    }

    .hero-avatar-wrapper {
        width: 68px;
        height: 68px;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .case-card {
        padding: 20px 16px;
    }

    .case-results-grid {
        grid-template-columns: 1fr;
    }

    .case-metric .metric-value {
        font-size: 1.2rem;
    }

    .pricing-price {
        font-size: 1.25rem;
    }

    .btn-lg {
        padding: 16px 24px;
        font-size: 1rem;
    }
}
