/* =================================================================
   LiketoMe Landing Page Stylesheet - OPTIMIZED VERSION
   Version 8.0 - PageSpeed 95+ & CLS 0
   ================================================================= */

/* =================================================================
   CRITICAL: CLS FIXES - Fixed dimensions to prevent layout shift
   ================================================================= */

:root {
    --primary: #3ea8ff;
    --accent: #2de370;
    --dark-bg: #050815;
    --text-light: #e5e7eb;
    --text-gray: #b0b0b0;
    --theme-dark: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--theme-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* =================================================================
   HEADER - FIXED HEIGHT FOR CLS
   ================================================================= */
.header {
    background: var(--theme-dark);
    border-bottom: 1px solid #374151;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px; /* FIXED HEIGHT */
    min-height: 72px;
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand img {
    height: 40px;
    width: 160px; /* FIXED WIDTH */
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-nav {
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary-nav {
    background: var(--accent);
    color: #000;
}

.btn-primary-nav:hover {
    background: #25c867;
}

.btn-secondary-nav {
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-secondary-nav:hover {
    background: var(--accent);
    color: #000;
}

/* =================================================================
   HERO - FIXED DIMENSIONS FOR CLS
   ================================================================= */
.hero {
    padding: 40px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--theme-dark);
    min-height: calc(100vh - 72px);
}

.hero-inner {
    max-width: 1300px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 50px;
    align-items: center;
}

.hero-text {
    max-width: 580px;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 12px;
    min-height: 20px; /* FIXED */
}

.hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.15;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
    min-height: 120px; /* FIXED - prevents CLS on font load */
}

.highlight {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.6;
    min-height: 52px; /* FIXED */
}

.hero-cta-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
    min-height: 52px; /* FIXED */
}

.pulse-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 40px;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 3s infinite;
    border: none;
    cursor: pointer;
}

.pulse-btn:hover {
    background: #26c261;
    transform: translateY(-2px);
}

.pulse-btn:active {
    transform: scale(0.98);
}

.hero-subnote {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-gray);
    min-height: 24px; /* FIXED */
}

.hero-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* VIDEO WRAPPER - FIXED DIMENSIONS FOR CLS */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 255, 153, 0.1);
    background: #0a0e1c; /* Placeholder color */
    min-height: 533px; /* FIXED HEIGHT = 300 * 16/9 */
}

.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.volume-toggle-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
}

/* =================================================================
   TRUSTED BY - FIXED HEIGHTS FOR CLS
   ================================================================= */
.trusted-by {
    padding: 40px 20px;
    text-align: center;
    background: var(--theme-dark);
    min-height: 140px; /* FIXED */
}

.trusted-by-container {
    max-width: 900px;
    margin: 0 auto;
}

.trusted-by-title {
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 24px;
    font-size: 1.1rem;
    min-height: 28px; /* FIXED */
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    min-height: 45px; /* FIXED */
}

/* LOGO IMAGES - FIXED DIMENSIONS FOR CLS */
.trusted-logos img {
    height: 45px;
    width: auto;
    min-width: 80px; /* Minimum width reservation */
    max-width: 150px;
    opacity: 0.8;
    transition: all 0.3s ease;
    object-fit: contain;
}

.trusted-logos img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* =================================================================
   CASE SECTION
   ================================================================= */
.case {
    padding: 80px 20px 70px;
    max-width: 1200px;
    margin: 0 auto;
}

.case h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary);
}

.case-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 24px 32px;
    text-align: center;
    min-width: 180px;
    min-height: 120px; /* FIXED */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.stat-card h3 {
    color: var(--accent);
    font-size: 2.1rem;
    margin-bottom: 4px;
}

.stat-card p {
    font-size: 0.98rem;
    color: var(--text-gray);
}

.case-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.case-copy h3 {
    color: var(--primary);
    margin-bottom: 8px;
    margin-top: 8px;
}

.case-copy p {
    color: var(--text-light);
    font-size: 1.02rem;
    margin-bottom: 10px;
}

.case-quote {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* QUOTE PHOTO - FIXED DIMENSIONS FOR CLS */
.quote-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    margin-bottom: 16px;
}

blockquote {
    font-style: italic;
    color: #e5e7eb;
    font-size: 1.03rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.quote-name a {
    color: #8ab4f8;
    text-decoration: none;
}

.quote-name {
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0;
}

.quote-position {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* =================================================================
   HOW IT WORKS
   ================================================================= */
.how {
    background: var(--theme-dark);
    padding: 60px 20px 40px;
}

.how .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.how .section-header h2 {
    background: linear-gradient(135deg, #4a9eff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 15px;
}

.how .section-header p {
    color: var(--text-gray);
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 24px;
    padding: 60px 25px 30px;
    text-align: left;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 320px; /* FIXED */
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.step-card-icon-wrapper {
    position: absolute;
    top: -28px;
    left: 25px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #4b5563;
}

.icon-chat { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.icon-smart { background: linear-gradient(135deg, #f472b6, #ec4899); }
.icon-ai { background: linear-gradient(135deg, #818cf8, #a78bfa); }

.step-card-icon {
    font-size: 2rem;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #fff;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    font-size: 1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.feature-text {
    font-size: 0.95rem;
    color: var(--text-light);
}

.feature-text strong {
    font-weight: 600;
    color: #fff;
}

.result-text {
    font-size: 1rem;
    color: var(--text-gray);
}

.result-text strong {
    color: var(--text-light);
}

/* =================================================================
   CALCULATOR
   ================================================================= */
#calculator {
    padding: 80px 20px;
    background: var(--theme-dark);
    scroll-margin-top: 80px;
}

.calculator-eyebrow {
    display: block;
    width: fit-content;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #9ca3af;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: default;
    user-select: none;
}

.calculator-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 48px;
}

.calculator-header h2 {
    font-size: 2.5rem;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 20px;
}

.highlight-orange {
    color: #ff6b35;
}

.calculator-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto 48px;
}

.calc-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 80px; /* FIXED */
}

.calc-benefit-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.calc-benefit-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Progress Indicator */
.progress-indicator {
    margin-bottom: 40px;
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 0.7;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(62, 168, 255, 0.5);
}

.progress-step.completed .step-number {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-align: center;
}

.progress-step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.5s ease;
    border-radius: 3px;
    width: 25%;
}

.calculator-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(62, 168, 255, 0.3);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.calculator-intro {
    text-align: center;
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.calculator-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.input-group input {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s ease;
    min-height: 48px; /* FIXED for touch targets */
}

.input-group input:focus {
    border-color: var(--primary);
}

.info-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip-content {
    visibility: hidden;
    opacity: 0;
    width: 250px;
    background-color: #1e293b;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
}

.info-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

.calculate-btn {
    grid-column: 1 / -1;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.1s ease;
    min-height: 48px; /* FIXED */
}

.calculate-btn:hover {
    background: #3395e6;
}

.calculate-btn:active {
    transform: scale(0.98);
}

.info-box.error-message {
    background-color: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.4);
    color: #ff5252;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
}

.info-box.success {
    background-color: rgba(45, 227, 112, 0.1);
    border: 1px solid rgba(45, 227, 112, 0.4);
    text-align: center;
    padding: 20px;
    border-radius: 12px;
}

/* Results */
.results-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.main-goal-display {
    background: rgba(45, 227, 112, 0.1);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 20px auto 30px auto;
    max-width: 550px;
}

.main-goal-display .result-value {
    font-size: 3rem;
    color: var(--accent);
    line-height: 1.1;
    filter: blur(8px);
    cursor: pointer;
}

.main-goal-display .result-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Hide scenario grid (blur gating) */
.scenario-grid {
    display: none !important;
}

.results-summary {
    display: none !important;
}

.detailed-plan-gate {
    background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(255,140,0,0.1) 100%);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
}

.unlock-header h3 {
    color: #ffd700;
    margin-bottom: 15px;
}

.unlock-header p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.unlock-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.unlock-features li {
    font-size: 1rem;
    color: var(--text-light);
}

#telegramBtn {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #000;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 20px 40px;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    border: 2px solid #fff;
    animation: glow-pulse 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

#telegramBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.7);
}

#telegramBtn:active {
    transform: scale(0.95);
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
    }
}

.form-note {
    color: #888;
    margin-top: 10px;
    font-size: 0.9rem;
}

.calculator-disclaimer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    filter: blur(3px);
    opacity: 0.6;
}

.calculator-disclaimer p {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 4px;
}

/* =================================================================
   CTA SECTION
   ================================================================= */
.cta {
    background: var(--theme-dark);
    padding: 40px 20px;
}

.cta-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.cta-section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.cta-section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.cta-container-hybrid {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
}

.cta-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.telegram-box {
    border-color: rgba(62, 168, 255, 0.3);
    background: radial-gradient(circle at top center, rgba(62, 168, 255, 0.1), transparent);
    text-align: center;
}

.badge-fast {
    background: #3ea8ff;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
}

.cta-box h2, .cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.cta-desc, .form-desc {
    color: #b0b0b0;
    margin-bottom: 20px;
}

.cta-benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
    display: inline-block;
}

.cta-benefits-list li {
    margin-bottom: 8px;
    color: #e5e7eb;
    font-size: 1rem;
}

.telegram-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 48px;
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    color: white;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.telegram-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.4);
}

.telegram-cta-button:active {
    transform: scale(0.95);
}

.telegram-cta-button svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.cta-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    position: relative;
}

.cta-divider span {
    background: #222;
    color: #777;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.cta-divider::before {
    content: '';
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 50%;
    width: 1px;
    background: rgba(255,255,255,0.1);
}

.form-box {
    background: rgba(20, 20, 20, 0.6);
}

.hybrid-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 1rem;
    outline: none;
    min-height: 48px; /* FIXED */
}

.input-wrapper input:focus {
    border-color: #2de370;
}

.form-submit-btn {
    width: 100%;
    padding: 16px;
    border-radius: 10px;
    background: transparent;
    border: 2px solid #2de370;
    color: #2de370;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 48px; /* FIXED */
}

.form-submit-btn:hover {
    background: #2de370;
    color: black;
}

.form-submit-btn:active {
    transform: scale(0.95);
}

.privacy-note {
    font-size: 0.75rem;
    color: #555;
    margin-top: 15px;
    text-align: center;
}

.privacy-note a {
    color: #555;
    text-decoration: underline;
}

/* =================================================================
   CASE STUDIES
   ================================================================= */
.case-studies {
    padding: 80px 20px;
    background: var(--theme-dark);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.bridge-text {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1rem;
    color: var(--text-gray);
}

.bridge-text strong {
    color: var(--primary);
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.case-study-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    min-height: 500px; /* FIXED */
}

.case-study-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.case-study-card .problem {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.case-study-metrics {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-item {
    text-align: center;
    padding: 0 10px;
}

.metric-item .value {
    color: var(--text-light);
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 0 8px rgba(45, 227, 112, 0.6);
}

.metric-item .change {
    font-size: 1rem;
    color: var(--accent);
}

.metric-item .label {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
}

.testimonial {
    font-style: italic;
    color: var(--text-light);
    font-size: 1rem;
    margin-top: auto;
    padding-left: 15px;
    border-left: 3px solid var(--primary);
}

.testimonial .author {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: var(--text-gray);
    margin-top: 10px;
    font-size: 0.9rem;
}

/* =================================================================
   MOBILE CASE SECTION
   ================================================================= */
.case-mobile {
    display: none;
}

.case-desktop {
    display: block;
}

.before-after-mobile {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
}

.comparison-header {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.before-number {
    color: #ff6b6b;
}

.after-number {
    color: var(--accent);
}

.arrow {
    color: var(--text-gray);
    font-size: 1.5rem;
}

.comparison-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.growth-badge {
    display: inline-block;
    background: var(--accent);
    color: #000;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.mobile-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.feature-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 15px;
    border-radius: 10px;
}

.mobile-result {
    background: rgba(45, 227, 112, 0.1);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    color: var(--text-light);
}

.mobile-result strong {
    color: var(--accent);
}

/* =================================================================
   MODAL
   ================================================================= */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #111827;
    border: 1px solid #374151;
    color: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    color: #9ca3af;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

.close-modal:hover {
    color: #fff;
}

.legal-text {
    margin: 20px 0;
    font-size: 0.9rem;
    color: #d1d5db;
}

.legal-text h3 {
    margin-top: 20px;
    color: #fff;
}

.modal-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
}

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer {
    width: 100%;
    background-color: #020305;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.footer-content a {
    color: #3ea8ff;
    text-decoration: none;
}

/* =================================================================
   ANIMATIONS
   ================================================================= */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(45, 227, 112, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(45, 227, 112, 0.8);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =================================================================
   MOBILE MENU
   ================================================================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1201;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* =================================================================
   RESPONSIVE - MOBILE
   ================================================================= */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero h1 {
        min-height: auto;
    }
    
    .hero-cta-buttons {
        justify-content: center;
    }
    
    .case-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-container-hybrid {
        flex-direction: column;
    }
    
    .cta-divider {
        width: 100%;
        height: 50px;
        margin: 20px 0;
    }
    
    .cta-divider::before {
        width: 80%;
        height: 1px;
        top: 50%;
        left: 10%;
    }
}

@media (max-width: 768px) {
    .header {
        height: 64px;
    }
    
    .header-inner {
        padding: 14px 16px;
    }
    
    .brand img {
        height: 32px;
        width: 128px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--theme-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        gap: 25px;
    }
    
    .nav.open {
        opacity: 1;
        visibility: visible;
    }
    
    .nav a {
        font-size: 1.8rem;
    }
    
    .case-mobile {
        display: block;
    }
    
    .case-desktop {
        display: none;
    }
    
    .steps-container,
    .case-study-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-form {
        grid-template-columns: 1fr;
    }
    
    .calculator-benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .step-card-icon-wrapper {
        left: 50%;
        transform: translateX(-50%);
    }
    
    #calculator {
        scroll-margin-top: 70px;
        padding-top: 50px;
    }
    
    .calculator-header h2 {
        font-size: 1.8rem;
    }
    
    .progress-steps {
        gap: 8px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .trusted-logos {
        gap: 20px;
    }
    
    .trusted-logos img {
        height: 35px;
        min-width: 60px;
    }
    
    .video-wrapper {
        max-width: 250px;
        min-height: 444px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    #telegramBtn {
        width: 100%;
        font-size: 1.1rem;
        padding: 18px 30px;
    }
    
    .case-study-card {
        min-height: auto;
    }
    
    .step-card {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .calculator-header h2 {
        font-size: 1.5rem;
    }
    
    .step-label {
        font-size: 0.65rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .comparison-numbers {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}

/* =================================================================
   DISABLE CURSOR ON NON-CLICKABLE ELEMENTS
   ================================================================= */
h1, h2, h3, p, blockquote, .stat-card, .case-study-card,
.case h2, .case-studies h2, .bridge-text, .problem, .testimonial,
.calculator-eyebrow, .hero-eyebrow, .hero-subnote {
    cursor: default;
}

a, button, .btn-nav, .pulse-btn, .telegram-cta-button, .menu-toggle {
    cursor: pointer;
}
