/* ============================================= */
/* V17: iOS DARK GLASSMORPHISM DESIGN SYSTEM     */
/* ============================================= */

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-glow: rgba(37, 99, 235, 0.3);
    --bg-base: #000000;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    --text: #ffffff;
    --text-dim: #888888;
    --text-muted: rgba(255, 255, 255, 0.5);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-pill: 20px;
    --glass-blur: 20px;
    --section-pad: 80px;
    --container-max: 1100px;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: var(--bg-base);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Subtle grain overlay */
.grain-overlay {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glass-bg { display: none; }

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

/* ===== GLASSMORPHISM UTILITY ===== */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* ===== TYPOGRAPHY ===== */
.text-accent { color: var(--primary-light); }

.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text);
}
.section-header p {
    font-size: 14px;
    color: var(--text-dim);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease;
}
.logo:hover { transform: scale(1.02); }
.logo span { color: var(--primary-light); }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* Mobile Menu Toggle */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-nav-toggle { display: block; }
    
    /* Responsive Spacing for Mobile */
    main { padding-top: 60px; }
    /* Home page header already has padding, so we only adjust non-home sections if needed */
    .portfolio-section, .pricing-section, .transparency-section, .faq-section, .final-cta-section {
        padding-top: 40px !important;
    }
    header { padding-top: 20px !important; }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-overlay a {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-overlay.active a {
    transform: translateY(0);
}

/* ===== BUTTONS ===== */
.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-main:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}
.glow-primary { box-shadow: 0 0 20px var(--primary-glow); }
.cta-center { text-align: center; margin-top: 32px; }

/* ===== HERO ===== */
header {
    padding: 80px 0 60px;
    position: relative;
    background: linear-gradient(180deg, #000 0%, #0a0a0f 100%);
}
.hero-container { text-align: center; }
.hero-content { max-width: 640px; margin: 0 auto; }

.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px 16px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}

/* Hero Metrics 2x2 Grid */
.hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}
.metric-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    transition: border-color var(--transition);
}
.metric-card:hover { border-color: var(--border-hover); }
.metric-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}
.metric-label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* ===== STATS SECTION ===== */
.stats-section { padding: 40px 0; }
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}
.stat-item { text-align: center; flex: 1; }
.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
}
.stat-item p {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== TRUST FACTS ===== */
.trust-facts-section { padding: var(--section-pad) 0; }
.trust-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.trust-fact-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color var(--transition);
}
.trust-fact-card:hover { border-color: var(--border-hover); }
.tf-icon { color: var(--primary-light); margin-bottom: 16px; }
.tf-icon svg { stroke: var(--primary-light); }
.trust-fact-card h3 { font-size: 16px; margin-bottom: 12px; font-weight: 700; }
.tf-list { list-style: none; padding: 0; }
.tf-list li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 0 4px 18px;
    position: relative;
    line-height: 1.5;
}
.tf-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: 700;
    font-size: 11px;
}

/* ===== PROBLEMS ===== */
.problems-section { padding: var(--section-pad) 0; }
.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}
.problem-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color var(--transition);
}
.problem-card:hover { border-color: var(--border-hover); }
.p-icon { font-size: 20px; margin-bottom: 10px; }
.problem-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.problem-card p { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

/* ===== FEATURES ===== */
.features-section { padding: var(--section-pad) 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.feature-card, .neon-card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 24px !important;
    transition: border-color var(--transition);
    box-shadow: none !important;
}
.feature-card:hover, .neon-card:hover { border-color: var(--border-hover) !important; }
.f-icon { color: var(--primary-light); margin-bottom: 12px; }
.f-icon svg { stroke: var(--primary-light); }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ===== WORKFLOW / ROADMAP ===== */
.workflow-section { padding: var(--section-pad) 0; }
.roadmap-container { max-width: 600px; margin: 0 auto; position: relative; padding-left: 32px; }
.roadmap-line {
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.06);
}
.roadmap-line-progress {
    width: 100%;
    height: 0;
    background: var(--primary);
    transition: height 1s ease;
}
.roadmap-step {
    position: relative;
    margin-bottom: 32px;
}
.roadmap-dot {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-base);
}
.roadmap-content .step-num {
    font-size: 11px;
    color: var(--primary-light);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.roadmap-content h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.roadmap-content p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Step Guarantee Badge */
.step-guarantee {
    margin-top: 8px;
    font-size: 11px;
    color: var(--primary-light);
    font-weight: 600;
    background: rgba(37, 99, 235, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    display: inline-block;
}

/* ===== LOSSES ===== */
.losses-section { padding: var(--section-pad) 0; }
.losses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.loss-card, .loss-card.highlight {
    background: rgba(239, 68, 68, 0.04) !important;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    border-radius: var(--radius) !important;
    padding: 24px !important;
    text-align: center;
    animation: none !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.loss-card:hover, .loss-card.highlight:hover {
    border-color: rgba(239, 68, 68, 0.45) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}
.loss-val {
    font-size: 28px;
    font-weight: 800;
    color: #ef4444;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}
.loss-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.loss-cta { text-align: center; margin-top: 32px; }

/* ===== WHY US ===== */
.why-us-section { padding: var(--section-pad) 0; }
.agency-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.agency-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color var(--transition);
}
.agency-card:hover { border-color: var(--border-hover); }
.agency-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.agency-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ===== ROI Calculator ===== */
.roi-section { padding: var(--section-pad) 0; }
.roi-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    backdrop-filter: blur(var(--glass-blur));
}
.roi-inputs { margin-bottom: 24px; }
.input-group { margin-bottom: 16px; }
.input-group label {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 500;
}
.input-group input[type="range"] {
    width: 100%;
    margin-top: 8px;
    accent-color: var(--primary);
}
.roi-result { text-align: center; }
.roi-result h3 { font-size: 14px; color: var(--text-dim); margin-bottom: 8px; }
.savings-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-light);
}
.savings-note { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* ===== PROCESS STEPS ===== */
.process-steps-section { padding: var(--section-pad) 0; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color var(--transition);
}
.step-card:hover { border-color: var(--border-hover); }
.step-card .step-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 8px;
}
.step-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ===== SCENARIOS ===== */
.scenarios-section { padding: var(--section-pad) 0; }
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.scenario-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color var(--transition);
}
.scenario-card:hover { border-color: var(--border-hover); }
.s-icon { font-size: 24px; margin-bottom: 12px; }
.scenario-card h4 { font-size: 14px; font-weight: 700; color: var(--primary-light); margin-bottom: 10px; }
.scenario-card ul { list-style: none; padding: 0; }
.scenario-card ul li {
    font-size: 13px; color: var(--text-muted); padding: 3px 0 3px 14px; position: relative;
}
.scenario-card ul li::before { content: '→'; position: absolute; left: 0; color: var(--primary-light); font-size: 11px; }

/* ===== COMPARISON ===== */
.comparison-section { padding: var(--section-pad) 0; }
.comparison-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: start;
    max-width: 700px;
    margin: 0 auto;
}
.comp-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.comp-box h3 { font-size: 13px; font-weight: 700; margin-bottom: 16px; letter-spacing: 1px; text-transform: uppercase; }
.comp-box.left h3 { color: #ef4444; }
.comp-box.right h3 { color: #22c55e; }
.comp-box ul { list-style: none; padding: 0; }
.comp-box ul li { font-size: 13px; color: var(--text-muted); padding: 6px 0; display: flex; align-items: center; gap: 8px; }
.cross { color: #ef4444; font-weight: 700; }
.check { color: #22c55e; font-weight: 700; }
.comp-divider {
    align-self: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dim);
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
}

/* ===== TRANSPARENCY ===== */
.transparency-section { padding: var(--section-pad) 0; }
.transparency-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.trans-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.trans-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.trans-item p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.trans-item a { color: var(--primary-light); }

/* ===== SKILLS ===== */
.skills-section { padding: var(--section-pad) 0; }
#skills-canvas-container {
    max-width: 600px;
    margin: 0 auto;
    aspect-ratio: 16/9;
}
#skills-canvas { width: 100%; height: 100%; }

/* ===== PORTFOLIO / CASES ===== */
.portfolio-section { padding: var(--section-pad) 0; }
.case-studies-grid { max-width: 900px; margin: 0 auto; }
.case-study-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 16px;
    align-items: center;
    backdrop-filter: blur(var(--glass-blur));
}
.case-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-light);
    background: rgba(37, 99, 235, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}
.case-details h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.case-meta { display: flex; gap: 24px; margin-bottom: 12px; }
.meta-item strong { font-size: 11px; color: var(--text-dim); display: block; text-transform: uppercase; letter-spacing: 0.5px; }
.meta-item span { font-size: 16px; font-weight: 700; color: var(--text); }
.case-description p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.case-preview img, .case-img {
    width: 100%;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 12px;
    display: flex;
    gap: 20px;
    align-items: center;
    backdrop-filter: blur(var(--glass-blur));
}
.case-metrics { flex-shrink: 0; }
.m-val { font-size: 24px; font-weight: 800; color: var(--primary-light); }
.m-lbl { font-size: 11px; color: var(--text-dim); text-transform: uppercase; }
.case-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.case-info p { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.case-saving { color: var(--primary-light) !important; font-weight: 600 !important; font-size: 13px !important; margin-top: 8px; }

/* Case Comparison Tables */
.case-comparison-table {
    width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 12px;
    border-radius: 8px; overflow: hidden;
}
.case-comparison-table thead th {
    background: rgba(255, 255, 255, 0.03); color: var(--text-dim); padding: 8px 12px;
    text-align: left; font-weight: 600; font-size: 11px; text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}
.case-comparison-table tbody td {
    padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--text-muted);
}
.val-bad { color: #ef4444 !important; font-weight: 700; }
.val-good { color: #22c55e !important; font-weight: 700; }

/* Client Logos */
.client-logos-strip { margin-top: 40px; text-align: center; }
.logos-label { font-size: 11px; color: var(--text-muted); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 2px; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.client-logo {
    font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.25); padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.06); border-radius: 8px;
    transition: all var(--transition);
}
.client-logo:hover { color: var(--primary-light); border-color: var(--primary-light); }

/* ===== NICHES ===== */
.niches-section { padding: var(--section-pad) 0; }
.niches-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.niche-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; text-align: center; transition: border-color var(--transition);
}
.niche-card:hover { border-color: var(--border-hover); }
.n-icon { color: var(--primary-light); margin-bottom: 10px; }
.n-icon svg { stroke: var(--primary-light); }
.niche-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.niche-card p { font-size: 12px; color: var(--text-muted); }

/* ===== PRICING ===== */
.pricing-section { padding: var(--section-pad) 0; }
.price-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    backdrop-filter: blur(var(--glass-blur));
    transition: border-color var(--transition);
    position: relative;
}
.card:hover { border-color: var(--border-hover); }
.card.featured {
    border-color: var(--primary) !important;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.1);
}
.badge {
    position: absolute;
    top: -1px; right: 20px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
    letter-spacing: 0.5px;
}
.p-header h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.price { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 20px; }
.card ul { list-style: none; padding: 0; margin-bottom: 24px; }
.card ul li {
    font-size: 13px; color: var(--text-muted); padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* ===== CONSTRUCTOR ===== */
.price-constructor-section { padding: var(--section-pad) 0; }
.constructor-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}
.options-grid { display: grid; gap: 8px; }
.option-item {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-sm); cursor: pointer;
    transition: border-color var(--transition);
}
.option-item:hover { border-color: var(--border-hover); }
.checkbox-custom {
    width: 18px; height: 18px; border: 2px solid var(--border); border-radius: 4px;
    flex-shrink: 0; position: relative;
}
input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary); border-color: var(--primary);
}
input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓'; position: absolute; inset: 0; display: flex; align-items: center;
    justify-content: center; color: #fff; font-size: 12px; font-weight: 700;
}
input[type="checkbox"] { display: none; }
.option-info h4 { font-size: 14px; font-weight: 600; }
.option-info p { font-size: 12px; color: var(--text-muted); }
.option-price { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--primary-light); white-space: nowrap; }
.total-price-box {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 24px; padding: 20px; background: rgba(37,99,235,0.05);
    border: 1px solid rgba(37,99,235,0.15); border-radius: var(--radius);
}
.total-label { font-size: 14px; color: var(--text-dim); }
.total-amount {
    font-size: 28px !important; font-weight: 800; color: var(--primary-light);
    text-shadow: none !important; animation: none !important;
}

/* ===== GUARANTEES ===== */
.guarantees-section { padding: var(--section-pad) 0; }
.guarantees-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.guarantee-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; text-align: center; transition: border-color var(--transition);
}
.guarantee-card:hover { border-color: var(--border-hover); }
.g-icon { font-size: 28px; margin-bottom: 12px; }
.guarantee-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.guarantee-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ===== QUALITY CHECKLIST ===== */
.quality-checklist-section { padding: var(--section-pad) 0; }
.checklist-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 800px; margin: 0 auto;
}
.cl-item {
    font-size: 13px; color: var(--text-muted); padding: 10px 14px;
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px; line-height: 1.4;
}

/* ===== TG CONFIGURATOR ===== */
.tg-config-section { padding: var(--section-pad) 0; }
.tg-config-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 800px; margin: 0 auto; }
.tg-step {
    text-align: center; padding: 24px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.tg-step-num {
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; font-weight: 800; font-size: 14px; color: #fff;
    background: var(--primary);
}
.tg-step h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.tg-step p { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* ===== FAQ ===== */
.faq-section { padding: var(--section-pad) 0; }
.faq-bot-container { max-width: 700px; margin: 0 auto; }
.faq-item {
    margin-bottom: 8px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    overflow: hidden;
}
.faq-q {
    padding: 14px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
}
.faq-q::after { content: '+'; color: var(--text-dim); font-size: 18px; }
.faq-a {
    padding: 0 18px 14px; font-size: 13px; color: var(--text-muted); line-height: 1.6;
    display: none;
}
.faq-item.active .faq-a { display: block; }
.faq-item.active .faq-q::after { content: '−'; }

/* ===== FINAL CTA ===== */
.final-cta-section {
    padding: var(--section-pad) 0;
    background: rgba(37, 99, 235, 0.03);
}
.cta-inner { text-align: center; max-width: 800px; margin: 0 auto; }
.cta-inner h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.contact-option-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
}
.contact-option-card:hover { border-color: var(--border-hover) !important; }
.telegram-audit-card {
    background: rgba(37, 99, 235, 0.05) !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
}
.telegram-audit-card:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15) !important;
    transform: translateY(-3px) !important;
}
.cta-pill {
    background: var(--primary) !important;
    box-shadow: 0 4px 15px var(--primary-glow) !important;
}

/* ===== FAB ===== */
.fab-telegram {
    position: fixed; bottom: 24px; left: 24px;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--primary); display: flex; align-items: center; justify-content: center;
    font-size: 20px; text-decoration: none; z-index: 1000;
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: all var(--transition);
}
.fab-telegram:hover { transform: scale(1.1); box-shadow: 0 6px 30px var(--primary-glow); }
.fab-pulse {
    position: absolute; width: 100%; height: 100%; border-radius: 50%;
    border: 2px solid var(--primary); animation: fabPulse 2s ease-out infinite; pointer-events: none;
}
@keyframes fabPulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.8); opacity: 0; } }

/* ===== CHAT WIDGET ===== */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 1000; }
.chat-toggle {
    width: 52px; height: 52px; border-radius: 50%; border: none;
    background: var(--primary); color: #fff; font-size: 20px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px var(--primary-glow); transition: all var(--transition);
}
.chat-toggle:hover { transform: scale(1.1); }
.close-icon { display: none; }
.chat-widget.active .chat-icon { display: none; }
.chat-widget.active .close-icon { display: inline; font-size: 24px; }
.chat-window {
    display: none; position: absolute; bottom: 64px; right: 0;
    width: 350px; max-height: 500px;
    background: rgba(15, 15, 15, 0.95); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; flex-direction: column;
}
.chat-widget.active .chat-window { display: flex; }
.chat-header {
    padding: 14px 16px; display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
}
.bot-avatar { font-size: 24px; }
.bot-status h4 { font-size: 14px; font-weight: 600; }
.bot-status span { font-size: 11px; color: #22c55e; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; max-height: 350px; }
.message { margin-bottom: 12px; }
.msg-text {
    display: inline-block; padding: 10px 14px; border-radius: 14px;
    font-size: 13px; line-height: 1.4; max-width: 85%;
}
.message.bot .msg-text {
    background: rgba(255,255,255,0.06); color: var(--text);
    border-bottom-left-radius: 4px;
}
.message.user .msg-text {
    background: var(--primary); color: #fff;
    border-bottom-right-radius: 4px; margin-left: auto;
}
.message.user { text-align: right; }
.msg-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; display: block; }
.chat-input-area {
    display: flex; padding: 12px; border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
#chat-input {
    flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    border-radius: 20px; padding: 8px 14px; color: var(--text); font-size: 13px;
    outline: none;
}
#chat-send {
    background: var(--primary); border: none; color: #fff; width: 36px; height: 36px;
    border-radius: 50%; margin-left: 8px; cursor: pointer; font-size: 14px;
}

/* ===== CASE MODAL ===== */
.case-modal {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
    align-items: center; justify-content: center;
}
.case-modal.active { display: flex; }
.case-modal-content {
    background: #111; border: 1px solid var(--border); border-radius: var(--radius);
    max-width: 600px; width: 90%; max-height: 80vh; overflow-y: auto; position: relative;
}
.close-case {
    position: absolute; top: 16px; right: 16px; font-size: 24px;
    color: var(--text-dim); cursor: pointer; z-index: 10;
}
.modal-img { width: 100%; border-radius: var(--radius) var(--radius) 0 0; max-height: 250px; object-fit: cover; }
.modal-details { padding: 24px; }
.modal-details h3 { color: var(--primary-light) !important; font-size: 20px !important; margin-bottom: 8px; }
.modal-subtitle { color: var(--text-dim) !important; font-size: 13px !important; margin-bottom: 20px !important; }

/* Modal Metrics Table */
.modal-metrics-table {
    width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 13px;
}
.modal-metrics-table thead th {
    background: rgba(255,255,255,0.03); color: var(--text-dim); padding: 10px 12px;
    text-align: left; font-weight: 600; font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.5px; border-bottom: 1px solid var(--border);
}
.modal-metrics-table tbody td {
    padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text-muted);
}
.modal-metrics-table tbody tr:hover { background: rgba(255,255,255,0.02); }

/* Modal Quote */
.modal-quote {
    display: flex; gap: 12px; align-items: flex-start;
    background: rgba(37, 99, 235, 0.06); border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px; margin-bottom: 20px;
}
.quote-icon { font-size: 24px; flex-shrink: 0; }
.modal-quote p { font-size: 13px !important; color: var(--text) !important; line-height: 1.6 !important; margin: 0 !important; }
.modal-quote strong { color: var(--primary-light); }

/* Modal Tech Stack */
.modal-stack { margin-bottom: 20px; }
.stack-label { font-size: 11px !important; color: var(--text-dim) !important; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px !important; }
.stack-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-badge {
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    padding: 6px 12px; border-radius: 50px;
    transition: all var(--transition);
}
.stack-badge:hover { border-color: var(--primary-light); color: var(--primary-light); }

/* Modal CTA */
.modal-cta { text-align: center; padding-top: 8px; }
.modal-cta-btn {
    width: 100%; justify-content: center; height: 44px; font-size: 14px !important;
    border-radius: var(--radius-sm) !important;
}

/* ===== ANIMATIONS ===== */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulseGlow { 0%,100% { opacity: 0.8; } 50% { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    :root { --section-pad: 48px; }

    .nav-links a:not(.btn-nav) { display: none; }
    nav { padding: 10px 16px; }

    h1 { font-size: 26px !important; }
    .section-header h2 { font-size: 22px; }

    .hero-content { text-align: center; }
    .hero-btns { flex-direction: row; justify-content: center; }
    .hero-metrics { max-width: 100%; }

    .trust-facts-grid,
    .features-grid,
    .agency-grid,
    .scenarios-grid,
    .transparency-grid { grid-template-columns: 1fr !important; }

    .problems-grid { grid-template-columns: 1fr 1fr; }
    .losses-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .niches-grid { grid-template-columns: 1fr 1fr; }
    .price-cards { grid-template-columns: 1fr; }
    .guarantees-grid { grid-template-columns: 1fr 1fr; }
    .checklist-grid { grid-template-columns: 1fr; }
    .tg-config-grid { grid-template-columns: 1fr; }

    .comparison-container { grid-template-columns: 1fr; }
    .comp-divider { text-align: center; }

    .case-study-hero { grid-template-columns: 1fr; }
    .case-card { flex-direction: column; }

    .total-price-box { flex-direction: column; text-align: center; }

    .chat-window { width: calc(100vw - 32px); right: -8px; }

    .fab-telegram { width: 44px; height: 44px; font-size: 16px; bottom: 16px; left: 16px; }

    .contact-options { flex-direction: column !important; }
    .contact-option-card { min-width: unset !important; }
}

@media (max-width: 390px) {
    h1 { font-size: 24px !important; line-height: 1.2 !important; }
    .hero-subtitle { font-size: 13px; }
    .hero-btns a { font-size: 13px; padding: 0 14px; height: 38px; }
    .metric-val { font-size: 20px; }
    .metric-label { font-size: 10px; }
    .metric-card { padding: 14px 10px; }
}

/* ===== MOBILE INTERACTIVITY ===== */
@media (max-width: 768px) {
    /* Shift audit button slightly right */
    .hero-btns { padding-left: 12px; }

    /* Tap-bounce on all icons */
    .p-icon, .f-icon, .g-icon, .s-icon, .tf-icon, .n-icon, .tg-step-num,
    .metric-card, .cl-item, .step-card .step-num {
        transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
        cursor: pointer;
    }
    .p-icon:active, .f-icon:active, .g-icon:active, .s-icon:active,
    .tf-icon:active, .n-icon:active, .tg-step-num:active {
        transform: scale(1.3);
    }

    /* Hover-like pulse on metric cards */
    .metric-card:active {
        transform: scale(1.05);
        border-color: var(--primary-light);
    }

    /* Subtle float animation on problem icons */
    .p-icon { animation: iconFloat 3s ease-in-out infinite; }
    .problem-card:nth-child(2) .p-icon { animation-delay: 0.5s; }
    .problem-card:nth-child(3) .p-icon { animation-delay: 1s; }
    .problem-card:nth-child(4) .p-icon { animation-delay: 1.5s; }

    /* Feature icons gentle pulse */
    .f-icon svg { animation: iconPulse 2.5s ease-in-out infinite; }
    .feature-card:nth-child(2) .f-icon svg { animation-delay: 0.4s; }
    .feature-card:nth-child(3) .f-icon svg { animation-delay: 0.8s; }
    .feature-card:nth-child(4) .f-icon svg { animation-delay: 1.2s; }

    /* Guarantee icons wiggle on scroll-in */
    .guarantee-card .g-icon { animation: iconWiggle 0.6s ease-in-out; }

    /* Scenario icons rotate slightly */
    .s-icon { transition: transform 0.3s ease; }
    .scenario-card:active .s-icon { transform: rotate(15deg) scale(1.2); }

    /* Trust fact icons glow on tap */
    .tf-icon:active svg { stroke: #fff; filter: drop-shadow(0 0 8px var(--primary-light)); }

    /* Checklist items tap feedback */
    .cl-item:active {
        transform: scale(0.97);
        background: rgba(37, 99, 235, 0.08);
        border-color: rgba(37, 99, 235, 0.2);
    }

    /* Step numbers bounce */
    .step-card .step-num { animation: iconPulse 3s ease-in-out infinite; }
    .step-card:nth-child(2) .step-num { animation-delay: 0.3s; }
    .step-card:nth-child(3) .step-num { animation-delay: 0.6s; }
    .step-card:nth-child(4) .step-num { animation-delay: 0.9s; }
    .step-card:nth-child(5) .step-num { animation-delay: 1.2s; }
    .step-card:nth-child(6) .step-num { animation-delay: 1.5s; }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}
@keyframes iconWiggle {
    0% { transform: rotate(0); }
    25% { transform: rotate(-8deg); }
    50% { transform: rotate(8deg); }
    75% { transform: rotate(-4deg); }
    100% { transform: rotate(0); }
}
