:root {
    --bg-color: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-blue: #0071e3;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
    --gradient-text: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
    --gradient-accent: linear-gradient(135deg, #0071e3 0%, #2997ff 100%);

    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-large: 24px;
    --radius-medium: 16px;

    --spacing-section: 120px;
    --spacing-element: 24px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Background Animation */
/* Background Animation */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #fbfbfd;
}

/* Background Gradients Override */
body::before {
    display: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1.main-title {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-element);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mega-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 50%, #C49204 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(253, 185, 49, 0.3);
}

.text-destructive {
    color: #ff3b30;
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: var(--spacing-element);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.05rem;
    color: #424245;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Structural Components */
.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--spacing-section) 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-wrapper {
    width: 100%;
    max-width: 900px;
}

/* Glassmorphism */
/* Glassmorphism Panels (Premium/Chic) */
.glass-panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-medium);
    padding: 3rem;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(220, 220, 250, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

/* Add a subtle sheen/volume effect */
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 40%);
    pointer-events: none;
}

.glass-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-medium);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), inset 0 0 20px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 1);
}

.warning-card {
    border: 1px solid rgba(255, 59, 48, 0.2);
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.05) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.glass-accent {
    background: rgba(0, 113, 227, 0.05);
    /* very light blue */
    border-radius: var(--radius-medium);
    padding: 2rem;
    border: 1px solid rgba(0, 113, 227, 0.1);
}

/* Specific Section Styles */

/* Hero */
.hero-header {
    margin-bottom: 3rem;
    text-align: center;
}

.subtitle {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero-body {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.highlight-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

.note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2rem;
}

/* Section Labels */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

/* Diagnosis Grid */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

.large-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin: 1rem 0;
}

.stat-highlight {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-blue);
}

/* Timeline (Block 4) */
.timeline {
    display: grid;
    gap: 2rem;
}

.timeline-item {
    padding: 2rem;
    position: relative;
    border-left: 4px solid var(--accent-blue);
}

.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stage-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
}

.stage-time {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.result-badge {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Comparison */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

.you-col {
    border: 2px solid var(--accent-blue);
    position: relative;
}

.you-col::after {
    content: 'ВЫ';
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent-blue);
    color: white;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 4px;
}

/* Table */
.growth-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.growth-table th,
.growth-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
}

.growth-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Offer */
.offer-card {
    text-align: center;
}

.price-tag {
    margin: 2rem 0;
}

.amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.includes,
.additional-costs {
    text-align: left;
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1.2rem 3rem;
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.5);
}

.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 113, 227, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0);
    }
}

/* Animations - Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Lists */
ul.check-list li::marker,
ul.styled-list li::marker {
    content: '✔️ ';
    color: var(--accent-blue);
}

ul li {
    margin-bottom: 0.5rem;
    color: #424245;
}

/* Utilities */
.mt-small {
    margin-top: 1rem;
}

.mt-medium {
    margin-top: 2rem;
}

.mt-large {
    margin-top: 3rem;
}

.centered {
    text-align: center;
}

/* Footer */
.footer {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Context Box in Block 7 */
.context-box {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 113, 227, 0.2);
    border-radius: var(--radius-medium);
    padding: 1.5rem;
    display: inline-block;
    text-align: left;
    max-width: 600px;
}

.highlight-note {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-note:last-child {
    margin-bottom: 0;
}

.highlight-note strong {
    color: var(--accent-blue);
    font-weight: 600;
}

/* --- Round 5 Features --- */

/* 1. Animated Chart */
/* --- Block 7: Proof Redesign --- */
.proof-header {
    margin-bottom: 3rem;
    position: relative;
}

.subtitle-large {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: -1rem;
}

.context-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: inline-flex;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.metric-item .icon {
    font-size: 1.5rem;
    background: white;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
}

.metric-item p {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
}

.text-sm {
    font-size: 0.8rem;
    font-weight: 400;
}

.proof-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Give chart slightly more space */
    gap: 3rem;
    align-items: start;
}

@media (max-width: 850px) {
    .proof-main-grid {
        grid-template-columns: 1fr;
    }
}

.proof-col-text {
    padding-right: 1rem;
}

.year-marker {
    display: inline-block;
    padding: 4px 12px;
    background: #e5e5ea;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.year-marker.text-accent {
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent-blue);
}

.stat-row {
    margin: 1.5rem 0;
}

.stat-val {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.divider {
    border: none;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.clean-list {
    list-style: none;
    padding: 0;
}

.clean-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.clean-list li::before {
    content: "•";
    color: var(--text-secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.challenge-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 59, 48, 0.05);
    /* very light red */
    border-left: 3px solid #ff3b30;
    border-radius: 0 12px 12px 0;
}

.challenge-box strong {
    color: #ff3b30;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.challenge-box p {
    margin: 0;
    font-size: 0.95rem;
}

.growth-caption {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--accent-blue);
    font-weight: 600;
}

/* 1. Animated Chart (SVG Organic) */
.organic-chart {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Enhanced shadow */
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.growth-curve {
    width: 100%;
    height: auto;
    overflow: visible;
}

.curve-line {
    fill: none;
    stroke: var(--accent-blue);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2.5s ease-out;
}

.curve-area {
    fill: url(#curveGradient);
    opacity: 0;
    transition: opacity 1.5s ease-in 1s;
}

.chart-point circle {
    fill: white;
    stroke: var(--accent-blue);
    stroke-width: 2;
    transition: all 0.3s ease;
}

.chart-point text {
    font-family: var(--font-body);
    font-size: 12px;
    fill: var(--text-secondary);
    text-anchor: middle;
}

.chart-point .val-text {
    font-size: 14px;
    font-weight: 600;
    fill: var(--text-primary);
}

.chart-point.highlight-point circle {
    fill: var(--accent-blue);
    stroke: white;
    stroke-width: 3;
    r: 6;
}

.chart-point.highlight-point .val-text {
    fill: var(--accent-blue);
    font-size: 16px;
    font-weight: 700;
}

/* Animation trigger class */
.chart-container.active .curve-line {
    stroke-dashoffset: 0;
}

.chart-container.active .curve-area {
    opacity: 1;
}

.chart-point {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease-out;
}

.chart-container.active .chart-point {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger points */
.chart-container.active .chart-point:nth-child(3) {
    transition-delay: 0.5s;
}

/* point 1 */
.chart-container.active .chart-point:nth-child(4) {
    transition-delay: 0.7s;
}

/* point 2 */
.chart-container.active .chart-point:nth-child(5) {
    transition-delay: 0.9s;
}

/* ... */
.chart-container.active .chart-point:nth-child(6) {
    transition-delay: 1.1s;
}

.chart-container.active .chart-point:nth-child(7) {
    transition-delay: 1.3s;
}

.chart-container.active .chart-point:nth-child(8) {
    transition-delay: 1.5s;
}


/* 2. Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 90%;
    max-width: 400px;
}

.sticky-cta.visible {
    transform: translateX(-50%) translateY(0);
}

.sticky-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-content span {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.sticky-button {
    background: var(--text-primary);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}


/* 3. AI Widget */
.ai-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    font-family: var(--font-body);
}

.ai-toggle {
    width: 60px;
    height: 60px;
    background: var(--text-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.ai-toggle:hover {
    transform: scale(1.05);
}

.pulsate::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--text-primary);
    animation: ping 2s infinite;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.ai-icon {
    font-size: 1.5rem;
}

.ai-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Chat Window */
.ai-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    height: 450px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ai-window.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

.ai-header {
    background: #f5f5f7;
    padding: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ai-avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 10px;
}

.ai-info {
    flex: 1;
}

.ai-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.ai-status {
    display: block;
    font-size: 0.7rem;
    color: #34c759;
}

.ai-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.ai-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #fff;
    font-size: 0.9rem;
}

.message {
    padding: 10px 14px;
    border-radius: 18px;
    margin-bottom: 10px;
    max-width: 85%;
    line-height: 1.4;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.message.bot {
    background: #f2f2f7;
    color: black;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.message.user {
    background: var(--accent-blue);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    margin-left: auto;
}

.ai-controls {
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fafafa;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-btn {
    background: #fff;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-btn:hover {
    background: var(--accent-blue);
    color: white;
}