/* ===== VARIABLES ===== */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2233;
    --bg-card-hover: #1f2a3d;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #1e293b;
    --border-light: #334155;

    /* Brand colors (from CashFlow logo) */
    --cf-red: #E8143E;
    --cf-red-hover: #c91135;
    --cf-red-light: rgba(232, 20, 62, 0.1);
    --cf-red-glow: rgba(232, 20, 62, 0.3);

    /* Flow colors */
    --flow-red: #E8143E;
    --flow-green: #38A169;
    --flow-blue: #3182CE;
    --flow-yellow: #ECC94B;
    --flow-gray: #A0AEC0;

    /* CTA */
    --cta-primary: #E8143E;
    --cta-primary-hover: #c91135;
    --cta-secondary: #3182CE;

    /* Spacing */
    --section-padding: 64px;
    --container-max: 1200px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 12px 0;
}

.navbar.scrolled {
    border-bottom-color: var(--border-color);
    padding: 8px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
}

.nav-logo-img {
    height: 36px;
    width: 36px;
    object-fit: contain;
}

.logo-cf {
    background: var(--cf-red);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 13px;
}

.logo-name {
    color: var(--text-primary);
    font-size: 14px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.nav-link.nav-cta {
    background: var(--cf-red);
    color: #fff;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 10px;
}

.nav-link.nav-cta:hover {
    background: var(--cf-red-hover);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-primary {
    background: var(--cta-primary);
    color: #fff;
    box-shadow: 0 4px 16px var(--cf-red-glow);
}

.btn-primary:hover {
    background: var(--cta-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232, 20, 62, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 15px;
    border-radius: 14px;
    width: 100%;
    max-width: 360px;
}

/* ===== HERO ===== */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(232, 20, 62, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(232, 20, 62, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(232, 20, 62, 0.15);
    border: 1px solid rgba(232, 20, 62, 0.4);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 460px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    max-width: 420px;
}

.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(232, 20, 62, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.hero-image img {
    width: 100%;
    max-width: 380px;
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 50px rgba(0,0,0,0.4), 0 0 80px rgba(232, 20, 62, 0.15);
    object-fit: cover;
    aspect-ratio: 3/4;
    position: relative;
    z-index: 1;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--section-padding) 0;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-badge {
    display: inline-block;
    padding: 5px 14px;
    background: var(--cf-red-light);
    border: 1px solid rgba(232, 20, 62, 0.2);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-title.text-left {
    text-align: left;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== WHAT IS CASHFLOW ===== */
.what-is-arrow {
    display: none;
}

.what-is-grid {
    display: block;
    margin-bottom: 32px;
}

.what-is-cards-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.what-is-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all 0.3s;
    text-align: center;
}

.what-is-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-3px);
}

.what-is-icon {
    width: 44px;
    height: 44px;
    background: var(--cf-red-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.what-is-icon svg {
    width: 20px;
    height: 20px;
    color: var(--cf-red);
}

.what-is-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.what-is-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== DISCLAIMER BLOCK ===== */
.disclaimer-block {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(236, 201, 75, 0.05);
    border: 1px solid rgba(236, 201, 75, 0.12);
    border-radius: var(--radius-md);
    margin-top: 32px;
}

.disclaimer-icon {
    width: 18px;
    height: 18px;
    color: var(--flow-yellow);
    flex-shrink: 0;
    margin-top: 1px;
}

.disclaimer-block p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== FLOW CARDS ===== */
/* Carousel */
.flows-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.flows-carousel {
    overflow: hidden;
    flex: 1;
}

.flows-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    align-items: flex-start;
}

.flows-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

.flows-arrow:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.flows-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.flows-arrow svg {
    width: 18px;
    height: 18px;
}

.flow-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    border-top: 3px solid;
    transition: all 0.3s;
    min-width: calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
    flex-shrink: 0;
}

.flow-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    border-color: var(--border-light);
}

.flow-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.flow-card.expanded .flow-body {
    max-height: 600px;
}

.flow-expand-icon {
    width: 18px;
    height: 18px;
    margin-left: auto;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s;
    cursor: pointer;
    padding: 4px;
    margin-top: -2px;
    box-sizing: content-box;
    border-radius: 50%;
}

.flow-expand-icon:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}

.flow-card.expanded .flow-expand-icon {
    transform: rotate(180deg);
}

.flow-red { border-top-color: var(--flow-red); }
.flow-green { border-top-color: var(--flow-green); }
.flow-blue { border-top-color: var(--flow-blue); }
.flow-yellow { border-top-color: var(--flow-yellow); }
.flow-gray { border-top-color: var(--flow-gray); }

.flow-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

.flow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.flow-dot-red { background: var(--flow-red); }
.flow-dot-green { background: var(--flow-green); }
.flow-dot-blue { background: var(--flow-blue); }
.flow-dot-yellow { background: var(--flow-yellow); }
.flow-dot-gray { background: var(--flow-gray); }

.flow-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.flow-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
}

.flow-for {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flow-preview {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
    transition: opacity 0.3s, max-height 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flow-card.expanded .flow-preview {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.flow-details {
    margin-bottom: 12px;
}

.flow-details li {
    position: relative;
    padding-left: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.5;
}

.flow-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-muted);
}

.flow-red .flow-details li::before { background: var(--flow-red); }
.flow-green .flow-details li::before { background: var(--flow-green); }
.flow-blue .flow-details li::before { background: var(--flow-blue); }
.flow-yellow .flow-details li::before { background: var(--flow-yellow); }
.flow-gray .flow-details li::before { background: var(--flow-gray); }

.flow-subtypes {
    margin-bottom: 12px;
}

.flow-subtype {
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.5;
}

.flow-subtype strong {
    color: var(--text-primary);
}

.flow-table-wrap {
    margin-bottom: 12px;
}

.flow-table-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.flow-mini-table {
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.fmt-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 14px;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.fmt-row:last-child {
    border-bottom: none;
}

.fmt-row span:first-child {
    color: var(--text-secondary);
}

.fmt-row span:last-child {
    color: var(--cta-primary);
    font-weight: 600;
}

.flow-examples {
    margin-bottom: 12px;
}

.flow-example-item {
    padding: 8px 14px;
    background: rgba(49, 130, 206, 0.08);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.flow-warning {
    padding: 10px 14px;
    background: rgba(229, 62, 62, 0.08);
    border-left: 3px solid var(--flow-red);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== STEPS ===== */
.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
    position: relative;
}

.step-card {
    text-align: center;
    padding: 16px 12px;
    flex: 1;
    max-width: 240px;
    position: relative;
}

.step-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--cf-red);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.step-icon {
    width: 56px;
    height: 56px;
    background: var(--cf-red-light);
    border: 2px solid rgba(232, 20, 62, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    position: relative;
    z-index: 1;
}

.step-icon svg {
    width: 22px;
    height: 22px;
    color: var(--cf-red);
}

.step-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.step-connector {
    width: 32px;
    height: 24px;
    margin-top: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(232, 20, 62, 0.35);
    background: none;
    position: relative;
}

.step-connector::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: 2px;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.steps-cta {
    text-align: center;
}

.steps-cta p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ===== LEADER SECTION ===== */
.leader-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0 48px;
    align-items: start;
}

.leader-header {
    grid-column: 2;
    grid-row: 1;
}

.leader-image {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
}

.leader-content {
    grid-column: 2;
    grid-row: 2;
}

.leader-image img {
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 400px;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.leader-bio {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.leader-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.leader-benefits li:last-child {
    border-bottom: none;
}

.leader-benefits svg {
    width: 18px;
    height: 18px;
    color: var(--cf-red);
    flex-shrink: 0;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    gap: 12px;
}

.faq-question svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ===== CALCULATOR ===== */
.calc-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.calc-tab {
    padding: 10px 20px;
    border-radius: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.calc-tab:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
}

.calc-tab.active {
    background: var(--cta-primary);
    border-color: var(--cta-primary);
    color: #fff;
}

.calc-panel {
    display: none;
    max-width: 560px;
    margin: 0 auto;
}

.calc-panel.active {
    display: block;
}

.calc-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
}

.calc-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.calc-input-group input[type="number"],
.calc-input-group select {
    padding: 12px 40px 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

.calc-input-group input:focus,
.calc-input-group select:focus {
    border-color: var(--cta-primary);
}

.calc-input-group input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
}

.calc-input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cta-primary);
    cursor: pointer;
    box-shadow: 0 2px 8px var(--cf-red-glow);
}

.calc-range-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--cta-primary);
}

.calc-result {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.calc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.calc-result-item:last-child {
    border-bottom: none;
}

.calc-result-item.highlight {
    background: var(--cf-red-light);
}

.calc-result-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.calc-result-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.calc-result-item.highlight .calc-result-value {
    color: var(--cta-primary);
    font-size: 18px;
}

/* ===== RISKS ===== */
.risks-carousel-wrap {
    position: relative;
}

.risks-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.risks-track {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.risks-grid {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.risks-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

.risks-arrow:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.risks-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.risks-arrow svg {
    width: 16px;
    height: 16px;
}

.risk-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 24px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
    flex-shrink: 0;
}

.risk-card svg {
    width: 28px;
    height: 28px;
    color: var(--flow-yellow);
    flex-shrink: 0;
}

.risk-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== CONTACT ===== */
.section-contact {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: var(--section-padding) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-image {
    display: flex;
    justify-content: center;
}

.contact-image img {
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    width: 340px;
    max-width: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.contact-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
    max-width: 420px;
}

.contact-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.contact-btn svg {
    width: 18px;
    height: 18px;
}

.contact-instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: #fff;
}

.contact-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(131, 58, 180, 0.35);
}

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.contact-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    transition: color 0.3s, transform 0.3s;
}

.contact-social-icon:hover {
    color: #e1306c;
    transform: translateY(-2px);
}

.contact-social-icon svg {
    width: 22px;
    height: 22px;
}

.contact-telegram {
    background: #0088cc;
    color: #fff;
}

.contact-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.35);
}

.contact-micro {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ===== FOOTER ===== */
.footer {
    padding: 48px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.footer-logo img {
    width: 32px;
    height: 32px;
}

.footer-logo span {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-role {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--text-muted);
    transition: color 0.3s;
}

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

.footer-socials a svg {
    width: 18px;
    height: 18px;
}

.footer-nav h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer-nav a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 0;
    transition: color 0.3s;
}

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

.footer-disclaimer {
    padding: 20px;
    background: rgba(236, 201, 75, 0.03);
    border: 1px solid rgba(236, 201, 75, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.footer-disclaimer p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 6px;
}

.footer-disclaimer p:last-child {
    margin-bottom: 0;
}

.footer-bottom {
    text-align: center;
    padding: 20px 20px 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== STICKY CTA ===== */
.sticky-cta-bar {
    display: none;
    position: fixed;
    bottom: 16px;
    right: 16px;
    left: auto;
    padding: 0;
    background: transparent;
    z-index: 999;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s, transform 0.3s;
}

.sticky-cta-bar.visible {
    opacity: 1;
    transform: translateY(0);
}

.sticky-cta {
    display: none;
    padding: 0;
    background: var(--cta-primary);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px var(--cf-red-glow);
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    width: 50px;
    height: 50px;
}

.sticky-cta svg {
    width: 22px;
    height: 22px;
}

.sticky-cta:hover {
    background: var(--cta-primary-hover);
    box-shadow: 0 6px 24px rgba(232, 20, 62, 0.45);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-disclaimer {
        margin: 0 auto;
    }

    .hero-image {
        display: none;
    }

    .hero-image-mobile {
        display: flex !important;
        justify-content: center;
        margin-bottom: 24px;
    }

    .hero-image-mobile img {
        max-width: 240px;
        width: 100%;
        border-radius: var(--radius-xl);
        box-shadow: 0 16px 50px rgba(0,0,0,0.4), 0 0 80px rgba(232, 20, 62, 0.15);
        object-fit: cover;
        aspect-ratio: 3/4;
    }

    .leader-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        text-align: center;
        gap: 16px;
    }

    .leader-header {
        grid-column: 1;
        grid-row: auto;
        order: 1;
    }

    .leader-image {
        grid-column: 1;
        grid-row: auto;
        order: 2;
    }

    .leader-content {
        grid-column: 1;
        grid-row: auto;
        order: 3;
    }

    .leader-content .section-title,
    .leader-header .section-title,
    .leader-header .section-title.text-left {
        text-align: center;
    }

    .leader-bio {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 16px;
        padding: 0 12px;
    }

    .leader-image img {
        max-width: 240px;
        margin: 0 auto;
    }

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

    .leader-benefits {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 16px;
        display: inline-flex;
        flex-direction: column;
    }

    .leader-benefits li {
        font-size: 14px;
        gap: 8px;
        padding: 8px 0;
    }

    .leader-benefits svg {
        width: 14px;
        height: 14px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .contact-image img {
        margin: 0 auto;
        max-width: 260px;
    }

    .contact-content .section-title {
        text-align: center;
    }

    .contact-buttons {
        justify-content: center;
    }

    .btn-lg {
        margin: 0 auto;
    }

    /* ===== CALCULATOR TABLET ===== */
    #calculator .container {
        padding: 0 48px;
    }

    .calc-panel {
        max-width: 480px;
        margin: 0 auto;
    }

    .disclaimer-block {
        max-width: 100%;
        margin: 24px auto 0;
    }

    /* ===== FAQ TABLET ===== */
    #faq .container {
        padding: 0 48px;
    }

    .faq-list {
        max-width: 500px;
        margin: 0 auto;
    }

    /* ===== RISKS TABLET ===== */
    #risks .container {
        padding: 0 32px;
    }

    .risk-card {
        min-width: calc((100% - 32px) / 3);
        max-width: calc((100% - 32px) / 3);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 48px;
    }

    /* Mobile fade-in animation support */
    .fade-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
    .fade-in {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .container {
        padding: 0 16px;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-bottom: 20px;
    }

    .step-card {
        padding: 12px 16px;
        max-width: 260px;
    }

    .step-number {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .step-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 10px;
    }

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

    .step-card h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .step-card p {
        font-size: 14px;
        line-height: 1.5;
    }

    .step-connector {
        width: 20px;
        height: 24px;
        margin-top: 0;
        background: none;
    }

    .step-connector::before {
        width: 2px;
        height: 16px;
    }

    .step-connector::after {
        right: auto;
        bottom: 0;
        transform: rotate(135deg);
        width: 7px;
        height: 7px;
    }

    .steps-cta {
        margin-top: 0;
    }

    .steps-cta p {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 16px;
        left: auto;
        bottom: auto;
        background: rgba(20, 25, 38, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        z-index: 999;
        border-radius: 12px;
        padding: 8px 0;
        border: 1px solid var(--border-color);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        min-width: 220px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        font-size: 14px;
        padding: 12px 20px;
        border-radius: 0;
        display: block;
    }

    .nav-link:hover,
    .nav-link:focus,
    .nav-link:active {
        background: rgba(255, 255, 255, 0.04);
        outline: none;
        box-shadow: none;
    }

    .nav-menu li:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-menu .nav-cta {
        background: none;
        border: none;
        padding: 12px 20px;
        font-size: 14px;
        color: var(--accent-red);
        border-radius: 0;
    }

    .nav-menu .nav-cta:hover,
    .nav-menu .nav-cta:focus,
    .nav-menu .nav-cta:active {
        background: rgba(228, 49, 79, 0.15);
        outline: none;
        box-shadow: none;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
        outline: none;
        box-shadow: none;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-toggle:focus,
    .nav-toggle:active {
        outline: none;
        box-shadow: none;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 80px 0 32px;
    }

    .hero-title {
        font-size: 24px;
        line-height: 1.2;
        padding: 0;
        letter-spacing: -0.3px;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.6;
        padding: 0 16px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 14px;
        margin-bottom: 14px;
    }

    .hero-image img {
        max-width: 240px;
    }

    .hero-image-mobile img {
        max-width: 240px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 15px;
        max-width: 280px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
        max-width: 280px;
    }

    .hero-actions .btn {
        max-width: 260px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-badge {
        font-size: 11px;
    }

    .what-is-carousel-wrap {
        display: flex;
        align-items: stretch;
        gap: 6px;
        margin-bottom: 24px;
    }

    .what-is-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        min-width: 32px;
        border-radius: 50%;
        border: 1px solid var(--border-light);
        background: var(--bg-card);
        color: var(--text-primary);
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.3s;
        align-self: center;
    }

    .what-is-arrow:hover {
        background: var(--bg-card-hover);
    }

    .what-is-arrow svg {
        width: 14px;
        height: 14px;
    }

    .what-is-grid {
        overflow: hidden;
        flex: 1;
        margin-bottom: 0;
    }

    .what-is-cards-track {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    }

    .what-is-grid::-webkit-scrollbar {
        display: none;
    }

    .what-is-card {
        min-width: 100%;
        max-width: 100%;
        flex-shrink: 0;
        padding: 20px 16px;
    }

    .what-is-card h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .what-is-card p {
        font-size: 14px;
        line-height: 1.5;
    }

    .what-is-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 10px;
    }

    .what-is-icon svg {
        width: 18px;
        height: 18px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    .flows-carousel-wrap {
        gap: 6px;
        align-items: center;
    }

    .flows-arrow {
        display: flex;
        position: static;
        width: 32px;
        height: 32px;
        min-width: 32px;
        transform: none;
    }

    .flows-carousel {
        overflow: hidden;
        flex: 1;
    }

    .flows-track {
        gap: 0;
        transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    }

    .flow-card {
        min-width: 100%;
        max-width: 100%;
        padding: 16px;
    }

    .flow-name {
        font-size: 14px;
        white-space: nowrap;
    }

    .flow-tag {
        font-size: 12px;
        padding: 2px 8px;
    }

    .flow-card-header {
        margin-bottom: 8px;
        gap: 8px;
    }

    .flow-dot {
        width: 10px;
        height: 10px;
        margin-top: 4px;
    }

    .flow-for {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .flow-preview {
        font-size: 13px;
        line-height: 1.5;
        -webkit-line-clamp: 2;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .sticky-cta-bar {
        display: flex;
    }

    .sticky-cta {
        display: inline-flex;
    }

    .calc-tabs {
        gap: 6px;
    }

    .calc-tab {
        padding: 8px 14px;
        font-size: 12px;
    }

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

    /* ===== CALCULATOR MOBILE ===== */
    .calc-tabs {
        gap: 4px;
        margin-bottom: 20px;
    }

    .calc-tab {
        padding: 7px 12px;
        font-size: 12px;
    }

    #calculator .container {
        padding: 0 16px;
    }

    .calc-panel {
        max-width: 310px;
        margin: 0 auto;
    }

    .calc-grid {
        gap: 14px;
        margin-bottom: 18px;
    }

    .calc-input-group label {
        font-size: 14px;
    }

    .calc-input-group input[type="number"],
    .calc-input-group select {
        padding: 10px 36px 10px 14px;
        font-size: 14px;
    }

    .calc-result-item {
        padding: 10px 14px;
    }

    .calc-result-label {
        font-size: 12px;
    }

    .calc-result-value {
        font-size: 14px;
    }

    .calc-result-item.highlight .calc-result-value {
        font-size: 16px;
    }

    .disclaimer-block {
        max-width: 100%;
        margin: 24px auto 0;
        padding: 12px 14px;
    }

    .disclaimer-block p {
        font-size: 13px;
    }

    /* ===== FAQ MOBILE ===== */
    #faq .container {
        padding: 0 28px;
    }

    .faq-list {
        max-width: 100%;
        margin: 0 auto;
    }

    .faq-question {
        font-size: 15px;
        padding: 14px 0;
        gap: 10px;
    }

    .faq-question svg {
        width: 16px;
        height: 16px;
    }

    .faq-answer p {
        font-size: 14px;
        padding-bottom: 12px;
    }

    /* ===== RISKS MOBILE ===== */
    #risks .container {
        padding: 0 20px;
    }

    .risks-track {
        overflow: hidden;
    }

    .risks-carousel {
        gap: 8px;
    }

    .risks-grid {
        gap: 12px;
    }

    .risk-card {
        min-width: calc(100vw - 112px);
        max-width: calc(100vw - 112px);
        padding: 18px 16px;
        gap: 10px;
        box-sizing: border-box;
    }

    .risk-card svg {
        width: 24px;
        height: 24px;
    }

    .risk-card p {
        font-size: 14px;
        line-height: 1.5;
    }

    .risks-arrow {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .risks-arrow svg {
        width: 12px;
        height: 12px;
    }

    /* ===== CONTACT MOBILE ===== */
    .section-contact {
        padding: 36px 0;
    }

    .contact-grid {
        gap: 24px;
    }

    .contact-image img {
        width: 240px;
        max-width: 240px;
        border-radius: var(--radius-lg);
    }

    .contact-subtitle {
        font-size: 15px;
        margin-bottom: 18px;
        max-width: 100%;
        padding: 0 8px;
    }

    .contact-btn {
        padding: 14px 28px;
        font-size: 15px;
        border-radius: 12px;
    }

    .contact-btn svg {
        width: 16px;
        height: 16px;
    }

    .contact-buttons {
        justify-content: center;
        gap: 8px;
        margin-bottom: 16px;
    }

    .contact-socials {
        justify-content: center;
    }

    #contact .contact-micro {
        font-size: 13px;
        text-align: center;
        max-width: 100%;
        margin-top: 24px;
        margin-left: auto;
        margin-right: auto;
    }

    /* ===== FOOTER MOBILE ===== */
    .footer {
        padding: 32px 0 16px;
    }

    .footer-grid {
        margin-bottom: 16px;
    }

    .footer-logo img {
        width: 28px;
        height: 28px;
    }

    .footer-logo span {
        font-size: 14px;
    }

    .footer-role {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-socials a {
        width: 24px;
        height: 24px;
    }

    .footer-socials a svg {
        width: 16px;
        height: 16px;
    }

    .footer-disclaimer {
        padding: 14px;
        margin-bottom: 14px;
        text-align: center;
    }

    .footer-disclaimer p {
        font-size: 11px;
        line-height: 1.5;
    }

    .footer-bottom {
        padding-top: 10px;
        margin-top: 20px;
    }

    .footer-bottom p {
        font-size: 13px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: auto;
        min-width: 200px;
        max-width: 260px;
    }

    .nav-logo-img {
        height: 32px;
        width: 32px;
    }

    .logo-name {
        font-size: 14px;
    }
}
