:root {
    --primary: #249D9F;
    --primary-hover: #1d7e80;
    --text-main: #111827;
    --text-secondary: #5e626a;
    --border-color: #e7eaf0;
    --bg-main: #ffffff;
    --bg-secondary: #f9fafb;
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --radius-lg: 14px;
    --radius-md: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "FS Pro", "SF Pro Display", "SF Pro Text", ui-sans-serif, -apple-system, "system-ui", system-ui, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 800px;
}

/* Typography */
h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(36, 157, 159, 0.2);
    background-color: var(--primary-hover);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-main);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 1.25rem 0;
}

nav.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    box-shadow: 0 1px 0 var(--border-color);
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    white-space: nowrap;
    /* Prevent brand text wrapping */
    gap: 12px;
}

.nav-logo {
    height: 42px;
    /* Increased by ~5px on each side (total 10px height increase) */
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    /* Curved borders for logo */
    display: block;
}

.brand-metric {
    font-weight: 800;
    /* Bold */
    font-size: 1.75rem;
    /* Slightly larger scale */
    color: var(--text-main);
    /* Using the #111827 color */
}

.brand-outbound {
    font-weight: 300;
    /* Thin */
    font-size: 1.75rem;
    /* Same scale as Metric */
    color: var(--text-main);
    /* Using the #111827 color */
    letter-spacing: -0.02em;
}

.brand-name {
    display: inline-flex;
    align-items: baseline;
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9375rem;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 12rem 0 6rem;
    background: linear-gradient(180deg, #fcfdff 0%, #fff 100%);
    overflow: hidden;
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-container-simple {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content-center {
    max-width: 900px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--primary);
}

.hero-subcopy {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Dashboard Section */
.dashboard-section {
    padding: 0 0 8rem;
    background-color: white;
}

.dashboard-wrapper {
    background-color: var(--text-main);
    color: white;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.3);
    display: flex;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    height: 600px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform, box-shadow;
    transform: perspective(2000px) translate3d(0, 0, 0);
}

/* Higher specificity to override animation state */
.dashboard-section .dashboard-wrapper:hover {
    transform: perspective(2000px) translate3d(0, 0, 50px) scale(1.02);
    box-shadow: 0 70px 140px -30px rgba(0, 10, 30, 0.15);
}

.dashboard-sidebar {
    width: 64px;
    background-color: rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 1.5rem;
}

.sidebar-logo {
    width: 100%;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo img {
    width: 100%;
    height: auto;
    max-height: 32px;
    object-fit: contain;
    border-radius: 6px;
    filter: invert(1) brightness(2);
    /* Curved borders for sidebar logo */
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.sidebar-nav i {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-nav i.active,
.sidebar-nav i:hover {
    color: var(--primary);
}

.sidebar-footer {
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.dashboard-main {
    flex: 1;
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.header-info h2 {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
    color: white;
}

.header-filter {
    padding: 0.4rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.metric-card {
    padding: 0.5rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-value {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.trend {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 600;
}

.trend.up {
    background-color: #dcfce7;
    color: #166534;
}

.trend.down {
    background-color: #fee2e2;
    color: #991b1b;
}

.trend.mid {
    background-color: #fef9c3;
    color: #854d0e;
}

.highlight-blue {
    background-color: var(--primary);
    border-color: var(--primary);
}

.text-white {
    color: #fff !important;
}

.chart-container {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chart-header {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    padding-bottom: 1.5rem;
}

.chart-area {
    flex: 1;
    position: relative;
}

.main-chart {
    width: 100%;
    height: 100%;
    display: block;
}

.main-chart path {
    transition: stroke 0.5s ease, fill 0.5s ease;
}

#chartGradient stop {
    transition: stop-color 0.5s ease;
}

.dashboard-wrapper:hover .main-chart path[stroke] {
    stroke: #136aec;
}

.dashboard-wrapper:hover #chartGradient stop {
    stop-color: #2e75df;
}

.chart-x-axis {
    display: flex;
    justify-content: space-between;
    padding-left: 3.5rem;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* Problem vs Solution */
.problem-solution {
    padding: 8rem 0;
    background-color: white;
}

.toggle-container {
    display: flex;
    justify-content: center;
    background-color: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 100px;
    width: max-content;
    margin: 0 auto 3rem;
}

.toggle-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    border: none;
    background: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.toggle-btn.active {
    background-color: white;
    color: var(--text-main);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.comparison-card {
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background-color: white;
    transition: var(--transition);
}

.comparison-card h3 {
    margin-bottom: 2rem;
}

.comparison-card ul {
    list-style: none;
}

.comparison.fit-card ul li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fit-card ul li.animate-on-scroll {
    opacity: 0;
    transform: translateY(15px);
}

.fit-card ul li.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.comparison-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
}

.comparison-card i {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.icon-red {
    color: #ef4444;
}

.icon-green {
    color: #10b981;
}

.problem-card.dimmed,
.solution-card.dimmed {
    opacity: 0.4;
    filter: grayscale(1);
}

.comparison-card.highlighted {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px var(--primary), 0 40px 80px -15px rgba(37, 99, 235, 0.2) !important;
    transform: translateY(-5px);
}

/* How it Works */
.how-it-works {
    padding: 4rem 0;
    background-color: white;
}

.system-box {
    background-color: #1a202c;
    /* Slightly lighter than the cards */
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.15);
}

.system-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-large,
.card-medium,
.card-small {
    background-color: var(--text-main);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
}

.card-large h3,
.card-medium h3,
.card-small h3 {
    color: white;
}

.card-large p,
.card-medium p,
.card-small p {
    color: rgba(255, 255, 255, 0.6);
}

/* Higher specificity to override .animate-on-scroll.visible */
#system .card-large:hover,
#system .card-medium:hover,
#system .feature-bottom-row .card-small:hover {
    transform: scale(1.05);
    /* Slightly increased to make it more obvious */
    border-color: var(--primary);
    z-index: 20;
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
}

.card-large {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
}

.card-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-medium {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    flex: 1;
}


.icon-box {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box i {
    width: 20px !important;
    height: 20px !important;
}

.icon-box.blue {
    background-color: rgba(36, 157, 159, 0.15);
    color: #38b2ac;
}

.icon-box.green {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.icon-box.purple {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.icon-box.orange {
    background-color: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.icon-box.cyan {
    background-color: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
}

.feature-bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.card-small {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
}


.card-small:hover,
.card-medium:hover,
.card-large:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.05);
}

/* Calendar UI */
.calendar-ui {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.calendar-header {
    display: grid;
    grid-template-columns: 60px repeat(5, 1fr);
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.day-label {
    text-align: center;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

.calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calendar-row {
    display: grid;
    grid-template-columns: 60px repeat(5, 1fr);
    min-height: 32px;
}

.time-slot {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.day-slot {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2px;
    position: relative;
}

.cal-event {
    background-color: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cal-event.show {
    opacity: 1;
    transform: scale(1);
}

/* Process Section */
.process-section {
    padding: 8rem 0;
    background-color: white;
}

.process-horizontal {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1), transform 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-badge {
    padding: 0.4rem 0.8rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.step-icon-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.process-step i {
    width: 32px;
    height: 32px;
    color: var(--text-main);
}

.step-connector {
    position: absolute;
    top: 50%;
    left: 48px;
    right: -1rem;
    height: 1px;
    background-color: var(--border-color);
    z-index: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.step-description p {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.step-description ul {
    list-style: none;
}

.step-description li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.25rem;
}

.step-description li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #f97316;
    /* Muted orange from reference */
    font-weight: bold;
}

.pipeline-preview {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pipeline-bar {
    height: 32px;
    background: #f1f5f9;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.pipeline-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--primary);
    opacity: 0.1;
}

.pipeline-bar span {
    position: relative;
    z-index: 1;
    padding-left: 12px;
    line-height: 32px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Who it's For */
.who-it-is-for {
    padding: 8rem 0;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.fit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.fit-card {
    padding: 3rem;
    border-radius: var(--radius-lg);
    background-color: white;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.fit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.fit-card.best-fit::before {
    background-color: #10b981;
}

.fit-card.not-fit::before {
    background-color: #ef4444;
}

.fit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.05);
}

.card-status-badge {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
}

.card-status-badge.success {
    background-color: #dcfce7;
    color: #166534;
}

.card-status-badge.warning {
    background-color: #fee2e2;
    color: #991b1b;
}

.fit-card h3 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.fit-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fit-card li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.0625rem;
}

.fit-icon-wrapper {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.best-fit .fit-icon-wrapper {
    background-color: #dcfce7;
    color: #10b981;
}

.not-fit .fit-icon-wrapper {
    background-color: #fee2e2;
    color: #ef4444;
}

.fit-icon-wrapper i {
    width: 14px;
    height: 14px;
    stroke-width: 3px;
}

/* ROI Calculator */
.roi-calculator {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
}

.calculator-card {
    background-color: var(--text-main);
    color: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.3);
    display: flex;
    overflow: hidden;
}

.calc-inputs {
    flex: 1.2;
    padding: 2rem 2.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-outputs {
    flex: 1;
    padding: 2.5rem;
    background-color: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calc-outputs .btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-outputs .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.input-group {
    margin-bottom: 1.25rem;
}

.label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.label-row label {
    font-weight: 600;
    font-size: 0.9375rem;
    color: white;
}

.value-display {
    color: var(--primary);
    font-weight: 700;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

.output-item.highlight {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.output-item.highlight .output-label {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.output-item.highlight .output-value {
    font-size: 3.5rem;
    color: var(--primary);
    line-height: 1;
}

.output-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.output-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.output-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    text-align: center;
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.trust-microcopy {
    font-size: 0.875rem;
}

/* FAQ */
.faq-section {
    padding: 8rem 0;
    background-color: #111826;
    color: white;
}

.faq-section h2 {
    color: white;
}

.faq-section p {
    color: rgba(255, 255, 255, 0.7);
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.125rem;
    text-align: left;
    transition: var(--transition);
    color: white;
}

.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.accordion-item.active .accordion-header {
    background-color: rgba(255, 255, 255, 0.05);
}

.accordion-item.active i {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
}

.accordion-content p {
    padding: 0 1.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
footer {
    padding: 4rem 0;
    background-color: #111826;
    color: white;
}

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

.footer-brand p {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

footer .brand-metric,
footer .brand-outbound {
    color: white;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

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

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0;
}

.social-link {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.social-link i {
    width: 20px;
    height: 20px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

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

.icon-blue {
    color: #249D9F;
}

.icon-green {
    color: #10b981;
}

.icon-purple {
    color: #8b5cf6;
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-subcopy {
        margin: 0 auto 2rem;
    }

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

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

    .calculator-card {
        flex-direction: column;
    }

    .calc-inputs,
    .calc-outputs {
        padding: 2rem;
    }

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

    .fit-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .feature-bottom-row {
        grid-template-columns: 1fr;
    }

    .output-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Flywheel Section */
.flywheel-scroller {
    position: relative;
    background-color: var(--bg-main);
    padding-bottom: 0;
    /* Let the sticky height handle spacing */
}

.flywheel-container {
    padding: 0;
    max-width: 1300px;
    height: 100%;
}

.flywheel-sticky-wrapper {
    display: flex;
    height: calc(100vh - 70px);
    position: sticky;
    top: 70px;
    overflow: hidden;
    align-items: center;
    gap: 4rem;
    padding: 2rem 4rem;
}

.cards-left {
    flex: 1;
    position: relative;
    height: 600px;
    /* Base height for stacking */
}

.stacking-card {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    will-change: transform, opacity;
}

/* Base stack positions - cards start off-screen or stacked below */
.stacking-card {
    transform: translateY(120%) scale(0.95);
    opacity: 0;
    z-index: 1;
}

.stacking-card.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    z-index: 10;
}

/* Stacking logic: when a card is "above" another, it stays at the top but staggered */
.stacking-card.stacked {
    transform: translateY(-20px) scale(0.98);
    opacity: 0.7;
    z-index: 5;
}

.stacking-card.stacked-deep {
    transform: translateY(-40px) scale(0.95);
    opacity: 0.4;
    z-index: 2;
}

.card-step {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.stacking-card h3 {
    margin-bottom: 1.5rem;
}

.stacking-card p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.stacking-card ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stacking-card ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.stacking-card ul li i {
    color: var(--primary);
    width: 18px;
    height: 18px;
}

.flywheel-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flywheel-visual {
    width: 100%;
    max-width: 500px;
}

.flywheel-svg {
    width: 100%;
    height: auto;
}

.flywheel-bg-circle {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.neon-line {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 2;
    transition: stroke 0.4s ease, stroke-width 0.4s ease;
}

.node-rect {
    fill: white;
    stroke: var(--border-color);
    stroke-width: 1px;
    transition: all 0.4s ease;
}

.node-text {
    font-size: 12px;
    font-weight: 600;
    fill: var(--text-secondary);
    transition: fill 0.4s ease;
}

.hub-rect {
    fill: white;
    stroke: var(--primary);
    stroke-width: 2px;
}

.hub-text-main {
    font-size: 14px;
    font-weight: 500;
    fill: var(--text-secondary);
}

.hub-text-sub {
    font-size: 14px;
    font-weight: 700;
    fill: var(--text-main);
}

/* Active Node Styling */
.node-group.active .node-rect {
    stroke: var(--primary);
    stroke-width: 2px;
    filter: drop-shadow(0 0 8px rgba(36, 157, 159, 0.3));
}

.node-group.active .node-text {
    fill: var(--primary);
}

.connector.active {
    stroke: var(--primary);
    stroke-width: 3px;
}

@media (max-width: 968px) {
    .flywheel-sticky-wrapper {
        flex-direction: column-reverse;
        height: auto;
        position: relative;
        padding: 4rem 2rem;
        gap: 2rem;
    }

    .cards-left {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .stacking-card {
        position: relative;
        transform: none !important;
        opacity: 1 !important;
    }

    .flywheel-right {
        max-width: 300px;
        margin-bottom: 2rem;
    }
}