/* ============================================
   SEGMENTS.CSS - Segments Platform Page
   F1Key Website — Producto Estrella
   ============================================ */

/* ==================== */
/* HERO SECTION */
/* ==================== */

.segments-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    background: var(--color-surface-base);
}

.segments-hero .hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(220, 20, 60, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(220, 20, 60, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.segments-hero .hero-content {
    padding: 140px 0 80px;
    width: 100%;
}

.segments-hero .hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Hero Badge */
.segments-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-ferrari-red);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-ferrari-red);
    animation: blink-dot 2s ease-in-out infinite;
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Hero Title */
.segments-hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.2rem, 4vw, 3.75rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-bottom: 24px;
}

.segments-hero-title .line-accent {
    display: block;
    color: var(--color-ferrari-red);
}

/* Hero Description */
.segments-hero-desc {
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-light-gray);
    margin-bottom: 40px;
    max-width: 480px;
}

/* Hero Stats */
.segments-hero-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stat-pill {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 20px;
    background: var(--color-surface-2);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--border-radius-md);
    min-width: 120px;
    transition: border-color 0.3s ease;
}

.hero-stat-pill:hover {
    border-color: rgba(220, 20, 60, 0.3);
}

.hero-stat-pill .stat-val {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-ferrari-red);
    line-height: 1;
}

.hero-stat-pill .stat-lbl {
    font-size: 0.75rem;
    color: var(--color-light-gray);
    letter-spacing: 0.05em;
}

/* Hero CTAs */
.segments-hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==================== */
/* HERO VISUAL — PLATFORM PREVIEW */
/* ==================== */

.platform-preview {
    background: var(--color-surface-1);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    overflow: visible;
}

.platform-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-ferrari-red), transparent);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-logo {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.preview-logo span {
    color: var(--color-ferrari-red);
}

.preview-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: #4CAF50;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.preview-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4CAF50;
    animation: blink-dot 1.5s ease-in-out infinite;
}

/* Niche Rows */
.preview-niches {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.preview-niche-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--color-surface-2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease;
}

.preview-niche-row:hover {
    border-color: rgba(220, 20, 60, 0.2);
}

.niche-row-icon {
    font-size: 1.2rem;
    width: 32px;
    text-align: center;
}

.niche-row-info {
    flex: 1;
}

.niche-row-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-white);
    display: block;
}

.niche-row-sub {
    font-size: 0.7rem;
    color: var(--color-light-gray);
}

.niche-row-bar {
    width: 80px;
    height: 4px;
    background: var(--color-surface-3);
    border-radius: 2px;
    overflow: hidden;
}

.niche-row-bar-fill {
    height: 100%;
    background: var(--color-ferrari-red);
    border-radius: 2px;
    animation: bar-fill-in 1.5s ease-out forwards;
}

@keyframes bar-fill-in {
    from { width: 0; }
}

.niche-row-status {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 100px;
}

.status-live {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-beta {
    background: rgba(255, 193, 7, 0.12);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-next {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-light-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-style: dashed;
}

/* Preview Stats Row */
.preview-stats-row {
    display: flex;
    gap: 12px;
}

.preview-stat-box {
    flex: 1;
    padding: 12px;
    background: var(--color-surface-2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.preview-stat-box .p-val {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-ferrari-red);
    display: block;
}

.preview-stat-box .p-lbl {
    font-size: 0.65rem;
    color: var(--color-light-gray);
    letter-spacing: 0.05em;
}

/* Floating badges on hero visual */
.preview-float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--color-surface-2);
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: 100px;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-white);
}

.preview-float-badge svg {
    color: var(--color-ferrari-red);
}

.pfb-1 {
    top: -12px;
    right: 20px;
    animation: float-1 4s ease-in-out infinite;
}

.pfb-2 {
    bottom: -12px;
    left: 20px;
    animation: float-2 4.5s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ==================== */
/* PROBLEM SECTION */
/* ==================== */

.problem-section {
    background: var(--color-surface-1);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.problem-card {
    background: var(--color-surface-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
    padding: 28px 24px;
    position: relative;
    transition: all 0.3s ease;
}

.problem-card:hover {
    border-color: rgba(220, 20, 60, 0.25);
    transform: translateY(-4px);
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(220, 20, 60, 0.4);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.problem-card:hover::before {
    opacity: 1;
}

.problem-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(220, 20, 60, 0.08);
    border: 1px solid rgba(220, 20, 60, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
}

.problem-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-light-gray);
}

.problem-stat {
    display: inline-block;
    margin-top: 16px;
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 900;
    color: rgba(220, 20, 60, 0.5);
}

/* ==================== */
/* DIAGRAM 1 — ECOSYSTEM */
/* ==================== */

.ecosystem-section {
    background: var(--color-surface-base);
}

.ecosystem-diagram {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 960px;
    margin: 64px auto 0;
    position: relative;
}

/* Sides */
.eco-side {
    flex: 1;
    min-width: 0;
    padding: 32px;
    background: var(--color-surface-1);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.25s ease;
}

.eco-side:hover {
    border-color: rgba(255, 255, 255, 0.13);
}

.eco-side-label {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-ferrari-red);
    margin-bottom: 4px;
}

.eco-side-subtitle {
    font-size: 0.85rem;
    color: var(--color-light-gray);
    margin-bottom: 8px;
}

.eco-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eco-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--color-surface-2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--color-white);
    font-weight: 500;
    transition: border-color 0.2s ease;
}

.eco-item:hover {
    border-color: rgba(220, 20, 60, 0.2);
}

.eco-item-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-ferrari-red);
}

.eco-platform-tag {
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--color-light-gray);
    letter-spacing: 0.08em;
    text-align: center;
    padding: 5px 12px;
    background: var(--color-surface-2);
    border-radius: 100px;
    align-self: center;
    border: 1px solid rgba(255,255,255,0.06);
}

/* Connectors */
.eco-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0 8px;
    gap: 12px;
    width: 72px;
    flex-shrink: 0;
}

.eco-arrow-line {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(220, 20, 60, 0.5);
}

.eco-arrow-line svg {
    color: rgba(220, 20, 60, 0.5);
    flex-shrink: 0;
}

.eco-dashes {
    flex: 1;
    height: 1px;
    border-top: 1px dashed rgba(220, 20, 60, 0.35);
    width: 28px;
}

/* Platform Core (Center) */
.eco-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-platform-core {
    position: relative;
    width: 148px;
    height: 148px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(220, 20, 60, 0.2);
}

.eco-ring-3 {
    width: 148px;
    height: 148px;
    animation: pulse-ring 3s ease-out infinite;
}

.eco-ring-2 {
    width: 118px;
    height: 118px;
    border-color: rgba(220, 20, 60, 0.3);
    animation: pulse-ring 3s ease-out infinite 0.5s;
}

.eco-ring-1 {
    width: 90px;
    height: 90px;
    border-color: rgba(220, 20, 60, 0.5);
    background: rgba(220, 20, 60, 0.04);
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.6; }
    70% { transform: scale(1.08); opacity: 0.1; }
    100% { transform: scale(1.1); opacity: 0; }
}

.eco-core-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.eco-core-name {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--color-white);
    text-transform: uppercase;
}

.eco-core-sub {
    font-size: 0.6rem;
    color: var(--color-light-gray);
    letter-spacing: 0.05em;
}

/* ==================== */
/* DIAGRAM 2 — PLATFORM LAYERS */
/* ==================== */

.platform-section {
    background: var(--color-surface-1);
}

.layers-diagram {
    max-width: 860px;
    margin: 64px auto 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.platform-layer {
    display: flex;
    align-items: stretch;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.platform-layer:first-child {
    border-radius: 12px 12px 0 0;
}

.platform-layer:last-child {
    border-radius: 0 0 12px 12px;
}

/* Badge column */
.layer-badge-col {
    width: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
}

.layer-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.badge-yours {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-light-gray);
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.badge-included {
    background: rgba(220, 20, 60, 0.1);
    color: var(--color-ferrari-red);
    border: 1px solid rgba(220, 20, 60, 0.25);
}

/* Content column */
.layer-content-col {
    flex: 1;
    padding: 20px 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.layer-title {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.02em;
}

.layer-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.layer-modules span {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 500;
}

/* Yours layers */
.layer-yours {
    background: var(--color-surface-base);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-bottom: none;
}

.layer-yours .layer-modules span {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-light-gray);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Included layers */
.layer-included {
    background: var(--color-surface-2);
    border: 1px solid rgba(220, 20, 60, 0.12);
    border-bottom: none;
}

.layer-included .layer-modules span {
    background: rgba(220, 20, 60, 0.07);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(220, 20, 60, 0.15);
}

/* Infrastructure layer (bottom, most prominent) */
.layer-infra {
    background: var(--color-surface-2);
    border: 1px solid rgba(220, 20, 60, 0.3);
    position: relative;
}

.layer-infra::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220,20,60,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.layer-infra .layer-title {
    color: var(--color-ferrari-red);
}

.layer-infra .layer-modules span {
    background: rgba(220, 20, 60, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(220, 20, 60, 0.25);
}

/* Divider between "yours" and "included" */
.layers-separator {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    background: var(--color-surface-1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.layers-sep-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(220,20,60,0.4), transparent);
}

.layers-sep-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-ferrari-red);
    letter-spacing: 0.06em;
    white-space: nowrap;
    text-transform: uppercase;
}

/* ==================== */
/* DIAGRAM 3 — SPEED COMPARISON */
/* ==================== */

.speed-section {
    background: var(--color-surface-base);
}

.speed-diagram {
    max-width: 920px;
    margin: 64px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.speed-track {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.speed-track-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.speed-track-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-light-gray);
}

.speed-track-total {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-light-gray);
}

.speed-track-total.fast {
    color: var(--color-ferrari-red);
}

.speed-phases {
    display: flex;
    gap: 3px;
    height: 52px;
    align-items: stretch;
}

/* Traditional phases — many small blocks filling full width */
.speed-traditional .speed-phases {
    width: 100%;
}

.speed-phase {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.6);
    background: var(--color-surface-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.2s ease;
}

.speed-traditional .speed-phase:hover {
    background: var(--color-surface-3);
    color: rgba(255, 255, 255, 0.8);
}

/* Segments phases — 2 blocks + launch */
.speed-segments .speed-phases {
    width: 100%;
}

.speed-segments .speed-phase {
    background: rgba(220, 20, 60, 0.08);
    border-color: rgba(220, 20, 60, 0.2);
    color: rgba(255, 255, 255, 0.85);
}

.speed-phase-id {
    flex: 1.5;
}

.speed-phase-feat {
    flex: 2.5;
}

.speed-phase-launch {
    flex: 0.8;
    background: rgba(220, 20, 60, 0.2);
    border-color: rgba(220, 20, 60, 0.4);
    color: var(--color-white);
    font-weight: 700;
}

/* Spacer to align segments track with traditional */
.speed-segments-spacer {
    flex: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

.speed-saving-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.25);
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.06em;
}

/* Axis/ruler below */
.speed-axis {
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 4px;
}

.speed-axis-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
}

.speed-axis-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

.speed-comparison-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(76, 175, 80, 0.06);
    border: 1px solid rgba(76, 175, 80, 0.15);
    border-radius: 10px;
    margin-top: 8px;
}

.speed-comparison-note svg {
    color: #4CAF50;
    flex-shrink: 0;
}

.speed-comparison-note p {
    font-size: 0.875rem;
    color: var(--color-light-gray);
    line-height: 1.5;
}

.speed-comparison-note strong {
    color: var(--color-white);
}

/* ==================== */
/* DIAGRAM 4 — NICHE HUB */
/* ==================== */

.niches-section {
    background: var(--color-surface-1);
}

.niche-hub-diagram {
    max-width: 800px;
    margin: 64px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
}

/* Hub Center */
.hub-center {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hub-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(220, 20, 60, 0.25);
}

.hub-ring-outer {
    width: 120px;
    height: 120px;
    animation: pulse-ring 3.5s ease-out infinite;
}

.hub-ring-inner {
    width: 90px;
    height: 90px;
    border-color: rgba(220, 20, 60, 0.4);
    background: rgba(220, 20, 60, 0.04);
}

.hub-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.hub-title {
    font-family: var(--font-primary);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--color-white);
    text-transform: uppercase;
}

.hub-sub {
    font-size: 0.55rem;
    color: var(--color-light-gray);
    letter-spacing: 0.04em;
}

/* Spokes connecting hub to nodes */
.hub-spokes-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
    width: 100%;
    margin-top: 0;
}

.hub-spoke {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.spoke-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, rgba(220,20,60,0.4) 0%, rgba(220,20,60,0.15) 100%);
}

.spoke-line-dashed {
    background: none;
    border-left: 1px dashed rgba(255,255,255,0.15);
}

/* Niche nodes */
.niche-node {
    width: 160px;
    padding: 20px 18px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.niche-node:hover {
    transform: translateY(-4px);
}

.niche-node-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.niche-node-name {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-white);
}

.niche-node-type {
    font-size: 0.72rem;
    color: var(--color-light-gray);
}

.niche-node-status {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
}

/* Active node */
.niche-node-active {
    background: var(--color-surface-2);
    border: 1px solid rgba(76, 175, 80, 0.25);
}

.niche-node-active .niche-node-status {
    background: rgba(76, 175, 80, 0.12);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.25);
}

/* Beta node */
.niche-node-beta {
    background: var(--color-surface-2);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.niche-node-beta .niche-node-status {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.25);
}

/* Next node */
.niche-node-next {
    background: var(--color-surface-1);
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.niche-node-next .niche-node-name {
    color: var(--color-light-gray);
}

.niche-node-next .niche-node-status {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-light-gray);
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.niche-node-icon-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 1.2rem;
}

/* ==================== */
/* NICHE CARDS (below hub) */
/* ==================== */

.niche-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 48px auto 0;
}

.niche-card {
    background: var(--color-surface-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.niche-card:hover {
    transform: translateY(-6px);
    border-color: rgba(220, 20, 60, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.niche-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.niche-card-emoji {
    font-size: 2rem;
}

.niche-card-status {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
}

.niche-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 8px;
}

.niche-card-tagline {
    font-size: 0.85rem;
    color: var(--color-light-gray);
    line-height: 1.5;
    margin-bottom: 20px;
}

.niche-audiences {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.niche-audience-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--color-surface-3);
    border-radius: 8px;
}

.niche-audience-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-ferrari-red);
    min-width: 60px;
}

.niche-audience-desc {
    font-size: 0.78rem;
    color: var(--color-light-gray);
}

/* Next niche card */
.niche-card-next {
    background: var(--color-surface-1);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 240px;
}

.niche-card-next:hover {
    border-color: rgba(220, 20, 60, 0.3);
    border-style: solid;
}

.niche-next-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.6rem;
    color: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.niche-card-next:hover .niche-next-icon {
    border-color: rgba(220, 20, 60, 0.4);
    color: var(--color-ferrari-red);
}

.niche-card-next h3 {
    color: var(--color-light-gray);
    font-size: 1rem;
}

.niche-card-next p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
    margin-top: 8px;
}

/* ==================== */
/* INVESTOR SECTION */
/* ==================== */

.investor-section {
    background: var(--color-surface-base);
}

.dual-revenue-visual {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
    max-width: 800px;
    margin: 48px auto 0;
    background: var(--color-surface-1);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
}

.revenue-side {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.revenue-side-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-ferrari-red);
}

.revenue-side-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
}

.revenue-side-plans {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.rev-plan {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--color-light-gray);
}

.rev-plan::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(220, 20, 60, 0.5);
    flex-shrink: 0;
}

.revenue-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(220, 20, 60, 0.04);
}

.revenue-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.rev-plus {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-ferrari-red);
    line-height: 1;
}

.rev-equals {
    font-size: 0.65rem;
    color: var(--color-light-gray);
    letter-spacing: 0.08em;
}

.rev-result {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-white);
    text-align: center;
    white-space: nowrap;
}

/* Investor stats grid */
.investor-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.investor-stat-card {
    padding: 28px;
    background: var(--color-surface-1);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.investor-stat-card:hover {
    border-color: rgba(220, 20, 60, 0.2);
    transform: translateY(-4px);
}

.investor-stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(220, 20, 60, 0.08);
    border: 1px solid rgba(220, 20, 60, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.investor-stat-value {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-white);
    display: block;
    margin-bottom: 4px;
}

.investor-stat-label {
    font-size: 0.82rem;
    color: var(--color-light-gray);
    line-height: 1.4;
}

/* ==================== */
/* SEGMENTS CTA SECTION */
/* ==================== */

.segments-cta-section {
    background: var(--color-surface-1);
    position: relative;
    overflow: hidden;
}

.segments-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(220,20,60,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.segments-cta-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.segments-cta-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-ferrari-red);
    margin-bottom: 20px;
    display: block;
}

.segments-cta-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: 20px;
}

.segments-cta-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-light-gray);
    margin-bottom: 40px;
}

.segments-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== */
/* SECTION SUBTITLES OVERRIDE */
/* ==================== */

.section-subtitle-segments {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-ferrari-red);
    margin-bottom: 16px;
    display: block;
}

/* Section h2 within segments page — scale down from global 4rem max */
.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: -0.02em;
}

/* ==================== */
/* INCLUDED FEATURES LIST */
/* ==================== */

.included-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 860px;
    margin: 32px auto 0;
}

.included-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--color-surface-1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--color-light-gray);
    transition: all 0.2s ease;
}

.included-feature-item:hover {
    border-color: rgba(220, 20, 60, 0.2);
    color: var(--color-white);
}

.included-feature-item svg {
    color: var(--color-ferrari-red);
    flex-shrink: 0;
}

/* ==================== */
/* RESPONSIVE — TABLETS */
/* ==================== */

@media (max-width: 1100px) {
    .segments-hero .hero-layout {

        gap: 40px;
    }

    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .niche-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .investor-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== */
/* RESPONSIVE — TABLET M (900px) */
/* ==================== */

@media (max-width: 900px) {
    .ecosystem-diagram {
        max-width: 100%;
    }

    .eco-connector {
        width: 48px;
        padding: 0 4px;
    }

    .eco-side {
        padding: 20px;
    }

    .eco-item {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .eco-platform-core {
        width: 120px;
        height: 120px;
    }

    .eco-ring-3 { width: 120px; height: 120px; }
    .eco-ring-2 { width: 96px;  height: 96px;  }
    .eco-ring-1 { width: 72px;  height: 72px;  }
}

/* ==================== */
/* RESPONSIVE — MOBILE */
/* ==================== */

@media (max-width: 768px) {
    .segments-hero .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .segments-hero .hero-text {
        order: 1;
    }

    .segments-hero .hero-visual-col {
        order: 2;
    }

    .segments-hero-stats {
        gap: 12px;
    }

    .hero-stat-pill {
        min-width: 100px;
        flex: 1;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .eco-connector {
        display: none;
    }

    /* Narrative order: Providers → Platform Core → Clients */
    .eco-side.eco-providers { order: 1; }
    .eco-center             { order: 2; }
    .eco-side.eco-clients   { order: 3; }

    .ecosystem-diagram {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .eco-side {
        padding: 20px;
    }

    /* Compact core — acts as visual bridge between cards */
    .eco-center {
        padding: 6px 0;
        position: relative;
    }

    /* Vertical dotted connectors top and bottom of the core */
    .eco-center::before,
    .eco-center::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 1px;
        height: 18px;
        background: linear-gradient(to bottom,
            rgba(220, 20, 60, 0),
            rgba(220, 20, 60, 0.45),
            rgba(220, 20, 60, 0));
    }

    .eco-center::before { top: -14px; }
    .eco-center::after  { bottom: -14px; }

    .eco-platform-core {
        width: 100px;
        height: 100px;
    }

    .eco-ring-3 { width: 100px; height: 100px; }
    .eco-ring-2 { width: 78px; height: 78px; }
    .eco-ring-1 { width: 58px; height: 58px; }

    .speed-phase {
        font-size: 0.6rem;
        padding: 3px 4px;
    }

    .hub-spokes-row {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .niche-node {
        width: 130px;
    }

    .niche-cards-grid {
        grid-template-columns: 1fr;
    }

    .dual-revenue-visual {
        grid-template-columns: 1fr;
    }

    .revenue-center {
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 16px;
    }

    .investor-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .included-features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .layers-diagram {
        margin-top: 40px;
    }

    .layer-badge-col {
        width: 80px;
        padding: 12px 8px;
    }

    .layer-badge {
        font-size: 0.58rem;
        padding: 4px 7px;
    }
}

@media (max-width: 480px) {
    .segments-hero-ctas {
        flex-direction: column;
    }

    .included-features-grid {
        grid-template-columns: 1fr;
    }

    .hub-spokes-row {
        flex-direction: column;
        align-items: center;
    }

    .spoke-line {
        height: 24px;
    }
}

/* ============================================================ */
/* PHASE 4 — DEMO SECTION */
/* ============================================================ */

.demo-section {
    background: var(--color-surface-1);
}

/* Tab Switcher */
.demo-tabs {
    display: flex;
    gap: 0;
    max-width: 600px;
    margin: 48px auto 0;
    background: var(--color-surface-2);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.demo-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
    color: var(--color-light-gray);
    font-family: var(--font-secondary);
}

.demo-tab-btn > span:first-child {
    font-weight: 700;
    font-size: 0.9rem;
    color: inherit;
}

.demo-tab-desc {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    opacity: 0.7;
}

.demo-tab-btn.active {
    background: var(--color-surface-3);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.demo-tab-btn.active > span:first-child {
    color: var(--color-ferrari-red);
}

/* Panels */
.demo-panel {
    display: none;
    margin-top: 32px;
    animation: panelFadeIn 0.35s ease;
}

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

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Desktop Frame (Providers) ─── */
.demo-device-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
}

.demo-desktop-frame {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    background: var(--color-surface-2);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.desktop-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--color-surface-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.desktop-dots {
    display: flex;
    gap: 5px;
}

.desktop-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.desktop-dot:nth-child(1) { background: #FF5F57; }
.desktop-dot:nth-child(2) { background: #FFBD2E; }
.desktop-dot:nth-child(3) { background: #28CA41; }

.desktop-url-bar {
    flex: 1;
    height: 24px;
    background: var(--color-surface-2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
    font-size: 0.65rem;
    color: var(--color-light-gray);
}

.desktop-url-bar::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #28CA41;
    flex-shrink: 0;
}

.desktop-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 420px;
}

/* Sidebar */
.desktop-sidebar {
    background: var(--color-surface-3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 12px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--color-white);
}

.sidebar-logo span {
    color: var(--color-ferrari-red);
}

.mock-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    font-size: 0.78rem;
    color: var(--color-light-gray);
    cursor: pointer;
    animation: mockFadeIn 0.35s ease forwards;
    opacity: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.mock-nav-item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--color-white);
}

.mock-nav-item.active {
    background: rgba(220, 20, 60, 0.1);
    color: var(--color-ferrari-red);
    border-right: 2px solid var(--color-ferrari-red);
}

.mock-nav-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Main Content */
.desktop-main {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.desktop-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mock-page-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-white);
}

.mock-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.mock-badge-green {
    background: rgba(76, 175, 80, 0.12);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.25);
}

/* Stats row */
.mock-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.mock-stat {
    padding: 14px 16px;
    background: var(--color-surface-3);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    animation: mockFadeIn 0.35s ease forwards;
    opacity: 0;
}

.mock-stat-val {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-white);
    display: block;
}

.mock-stat-lbl {
    font-size: 0.65rem;
    color: var(--color-light-gray);
    display: block;
    margin-top: 2px;
}

/* Table */
.mock-table {
    background: var(--color-surface-3);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

.mock-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mock-th {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

.mock-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    animation: mockFadeIn 0.35s ease forwards;
    opacity: 0;
    transition: background 0.15s ease;
}

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

.mock-row:hover { background: rgba(255,255,255,0.02); }

.mock-cell {
    font-size: 0.75rem;
    color: var(--color-light-gray);
    display: flex;
    align-items: center;
}

.mock-cell:first-child { color: var(--color-white); font-weight: 500; }

.mock-chip {
    font-size: 0.6rem;
    padding: 2px 7px;
    border-radius: 100px;
    font-weight: 600;
}

.mock-chip-green { background: rgba(76,175,80,0.12); color: #4CAF50; }
.mock-chip-yellow { background: rgba(255,193,7,0.12); color: #FFC107; }
.mock-chip-red { background: rgba(220,20,60,0.12); color: var(--color-ferrari-red); }

/* ─── Mobile Frame (Clients) ─── */
.demo-mobile-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: flex-start;
}

.demo-mobile-frame {
    width: 320px;
    background: var(--color-surface-2);
    border-radius: 36px;
    border: 4px solid var(--color-surface-3);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    position: relative;
}

.mobile-notch {
    width: 80px;
    height: 20px;
    background: var(--color-surface-3);
    border-radius: 0 0 14px 14px;
    margin: 0 auto;
}

.mobile-screen {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 520px;
}

.mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
}

.mobile-app-name {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-white);
}

.mobile-app-name span { color: var(--color-ferrari-red); }

.mobile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-ferrari-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
}

.mobile-search {
    background: var(--color-surface-3);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.06);
}

.mobile-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-light-gray);
}

.mock-feed-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    background: var(--color-surface-3);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    animation: mockFadeIn 0.35s ease forwards;
    opacity: 0;
    transition: border-color 0.2s ease;
}

.mock-feed-item:hover {
    border-color: rgba(220,20,60,0.2);
}

.mock-feed-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.mock-feed-info {
    flex: 1;
}

.mock-feed-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-white);
    display: block;
}

.mock-feed-sub {
    font-size: 0.65rem;
    color: var(--color-light-gray);
}

.mock-feed-cta {
    font-size: 0.65rem;
    padding: 4px 8px;
    background: rgba(220,20,60,0.12);
    color: var(--color-ferrari-red);
    border-radius: 6px;
    border: 1px solid rgba(220,20,60,0.2);
    white-space: nowrap;
}

.mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto;
}

.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.55rem;
    color: var(--color-light-gray);
    padding: 4px 8px;
}

.mobile-nav-btn.active { color: var(--color-ferrari-red); }

/* Demo description beside device */
.demo-device-desc {
    max-width: 260px;
    padding-top: 40px;
}

.demo-device-desc h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 12px;
    line-height: 1.3;
}

.demo-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--color-light-gray);
}

.demo-feature-list li::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 12l2 2 4-4' stroke='%23DC143C' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.demo-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 10px 20px;
    background: rgba(220, 20, 60, 0.12);
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 8px;
    color: var(--color-ferrari-red);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.demo-cta-btn:hover {
    background: rgba(220, 20, 60, 0.2);
    transform: translateY(-2px);
}

@keyframes mockFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
    .demo-device-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .demo-device-desc {
        max-width: 100%;
        padding-top: 0;
    }
    .demo-mobile-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .desktop-layout {
        grid-template-columns: 160px 1fr;
    }
    .mock-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .demo-desktop-frame {
        display: none;
    }
    .demo-tabs {
        max-width: 100%;
    }
}

/* ============================================================ */
/* PHASE 5 — SEGMENTS CONTACT SECTION */
/* ============================================================ */

.segments-contact-section {
    background: var(--color-surface-base);
    position: relative;
    overflow: hidden;
}

.segments-contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(220,20,60,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.segments-contact-section .container {
    position: relative;
    z-index: 1;
}

/* Audience Cards */
.audience-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 32px 0;
}

.audience-card {
    display: block;
    cursor: pointer;
    position: relative;
}

.audience-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.audience-card-inner {
    padding: 20px;
    background: var(--color-surface-2);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    box-sizing: border-box;
}

.audience-card-inner:hover {
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.04);
}

.audience-card.selected .audience-card-inner {
    border-color: rgba(220, 20, 60, 0.4);
    background: rgba(220, 20, 60, 0.05);
    box-shadow: 0 0 0 1px rgba(220, 20, 60, 0.12), 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Card top row: icon + check indicator */
.ac-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2px;
}

.ac-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(220, 20, 60, 0.08);
    border: 1px solid rgba(220, 20, 60, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-ferrari-red);
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ac-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ac-check svg {
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.18s ease, transform 0.18s ease;
    color: #fff;
}

.audience-card.selected .ac-icon {
    background: rgba(220, 20, 60, 0.14);
    border-color: rgba(220, 20, 60, 0.35);
}

.audience-card.selected .ac-check {
    background: var(--color-ferrari-red);
    border-color: var(--color-ferrari-red);
}

.audience-card.selected .ac-check svg {
    opacity: 1;
    transform: scale(1);
}

.audience-card.selected .audience-card-inner h4 {
    color: var(--color-ferrari-red);
}

.audience-card-inner h4 {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.3;
    margin: 0;
    transition: color 0.2s ease;
}

.audience-card-inner p {
    font-size: 0.78rem;
    color: var(--color-light-gray);
    line-height: 1.5;
    margin: 0;
}

/* Shake animation for validation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

.audience-cards.shake {
    animation: shake 0.5s ease;
}

/* Form wrapper */
.segments-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

/* Step navigation */
.form-step-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: space-between;
    align-items: center;
}

.form-step-nav .btn-back {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--color-light-gray);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: var(--font-secondary);
}

.form-step-nav .btn-back:hover {
    border-color: rgba(255,255,255,0.25);
    color: var(--color-white);
}

.form-step-nav .btn-next {
    margin-left: auto;
}

/* Audience step only — center the next btn */
.audience-step-nav {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* Alt CTA (WhatsApp below form) */
.seg-alt-cta {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.seg-alt-cta p {
    font-size: 0.85rem;
    color: var(--color-light-gray);
}

.seg-alt-cta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-white);
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.seg-alt-cta a:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.04);
}

/* Progress connector filled state */
.progress-connector.filled {
    background: #10b981;
}

/* Form success message */
.form-success {
    text-align: center;
    padding: 48px 24px;
}

.form-success .success-icon {
    width: 72px;
    height: 72px;
    background: rgba(16, 185, 129, 0.12);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.form-success h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--color-light-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .audience-cards {
        grid-template-columns: 1fr;
    }
    .form-step-nav {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .form-step-nav .btn-next {
        margin-left: 0;
    }
    .seg-alt-cta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .demo-tabs {
        flex-direction: column;
        padding: 4px;
    }
    .demo-tab-btn {
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
    }
}


/* ============================================================ */
/* SEGMENTS BRAND IDENTITY SYSTEM                               */
/*                                                               */
/* Acento propio: --seg-accent  #38BDF8  (Electric Sky Blue)   */
/*                                                               */
/* Narrativa de color:                                           */
/*   Ferrari Red → F1Key · urgencia · problemas                 */
/*   Sky Blue    → Segments · plataforma · soluciones           */
/* ============================================================ */

/* ── Custom properties ──────────────────────────────────────── */
body.segments-page {
    --seg-accent:        #38BDF8;
    --seg-accent-dim:    rgba(56, 189, 248, 0.09);
    --seg-accent-border: rgba(56, 189, 248, 0.20);
    --seg-accent-strong: rgba(56, 189, 248, 0.30);
}

/* ── Dot-grid background texture (blueprint/dashboard feel) ─── */
/* The main site has no texture — this creates an instant        */
/* visual environment distinct from the F1Key marketing page.   */
body.segments-page {
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.030) 1px,
        transparent 1px
    );
    background-size: 28px 28px;
}

/* ── Nav breadcrumb  "F1Key  ›  Segments" ───────────────────── */
.nav-segments-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #38BDF8; /* fallback for browsers before custom property resolves */
    color: var(--seg-accent, #38BDF8);
    opacity: 0.85;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    margin-left: 6px;
}

.nav-segments-breadcrumb .breadcrumb-sep {
    color: rgba(255, 255, 255, 0.22);
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1;
}

/* ── Section eyebrows ───────────────────────────────────────── */
body.segments-page .section-subtitle-segments,
body.segments-page .segments-cta-eyebrow {
    color: var(--seg-accent);
}

/* ── Hero ─────────────────────────────────────────────────── */
/* Extra teal glow orb — alongside the existing red one */
body.segments-page .segments-hero .hero-bg {
    background:
        radial-gradient(ellipse 60% 50% at 70% 50%,  rgba(220, 20, 60, 0.04)   0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%,  rgba(220, 20, 60, 0.03)   0%, transparent 60%),
        radial-gradient(ellipse 55% 60% at 12% 12%,  rgba(56, 189, 248, 0.06)  0%, transparent 65%);
}

/* Title accent word: red → blue gradient */
body.segments-page .segments-hero-title .line-accent {
    background: linear-gradient(100deg, var(--color-ferrari-red) 0%, var(--seg-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Stat pills: teal on hover */
body.segments-page .hero-stat-pill:hover {
    border-color: var(--seg-accent-border);
}

/* Platform preview: "SEGMENTS" wordmark + float badges */
body.segments-page .preview-logo span {
    color: var(--seg-accent);
}

body.segments-page .preview-float-badge {
    border-color: var(--seg-accent-border);
}

/* ── Ecosystem diagram / "Cómo Funciona" ───────────────────── */
body.segments-page .eco-side-label {
    color: var(--seg-accent);
}

body.segments-page .eco-arrow-line,
body.segments-page .eco-arrow-line svg {
    color: rgba(56, 189, 248, 0.45);
}

body.segments-page .eco-dashes {
    border-color: rgba(56, 189, 248, 0.28);
}

body.segments-page .eco-ring-3 {
    border-color: rgba(56, 189, 248, 0.12);
}

body.segments-page .eco-ring-2 {
    border-color: rgba(56, 189, 248, 0.26);
}

body.segments-page .eco-ring-1 {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.04);
}

body.segments-page .eco-item:hover {
    border-color: rgba(56, 189, 248, 0.18);
}

body.segments-page .eco-platform-tag {
    border-color: rgba(56, 189, 248, 0.14);
    color: var(--seg-accent);
}

body.segments-page .eco-side:hover {
    border-color: var(--seg-accent-border);
}

body.segments-page .eco-center::before,
body.segments-page .eco-center::after {
    background: linear-gradient(to bottom,
        rgba(56, 189, 248, 0),
        rgba(56, 189, 248, 0.4),
        rgba(56, 189, 248, 0));
}

/* ── Platform layers / "La Plataforma" ─────────────────────── */
body.segments-page .badge-included {
    background: var(--seg-accent-dim);
    color: var(--seg-accent);
    border-color: var(--seg-accent-border);
}

body.segments-page .layer-included {
    border-color: rgba(56, 189, 248, 0.10);
}

body.segments-page .layer-included .layer-modules span {
    background: rgba(56, 189, 248, 0.07);
    border-color: rgba(56, 189, 248, 0.14);
}

body.segments-page .layer-infra {
    border-color: rgba(56, 189, 248, 0.28);
}

body.segments-page .layer-infra::before {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, transparent 60%);
}

body.segments-page .layer-infra .layer-title {
    color: var(--seg-accent);
}

body.segments-page .layer-infra .layer-modules span {
    background: rgba(56, 189, 248, 0.10);
    border-color: rgba(56, 189, 248, 0.22);
}

body.segments-page .layers-sep-line {
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.40), transparent);
}

body.segments-page .layers-sep-text {
    color: var(--seg-accent);
}

body.segments-page .included-feature-item svg {
    color: var(--seg-accent);
}

body.segments-page .included-feature-item:hover {
    border-color: rgba(56, 189, 248, 0.18);
    color: var(--color-white);
}

/* ── Speed comparison / "La Ventaja" ───────────────────────── */
body.segments-page .speed-track-total.fast {
    color: var(--seg-accent);
}

body.segments-page .speed-segments .speed-phase {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.20);
}

body.segments-page .speed-phase-launch {
    background: rgba(56, 189, 248, 0.20);
    border-color: rgba(56, 189, 248, 0.40);
    color: var(--color-white);
}

/* ── Niche hub / "El Modelo" ────────────────────────────────── */
body.segments-page .hub-ring-outer {
    border-color: rgba(56, 189, 248, 0.18);
}

body.segments-page .hub-ring-inner {
    border-color: rgba(56, 189, 248, 0.36);
    background: rgba(56, 189, 248, 0.04);
}

body.segments-page .spoke-line {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.36) 0%, rgba(56, 189, 248, 0.10) 100%);
}

body.segments-page .niche-audience-label {
    color: var(--seg-accent);
}

body.segments-page .niche-card:hover {
    border-color: rgba(56, 189, 248, 0.18);
}

body.segments-page .niche-card-next:hover {
    border-color: rgba(56, 189, 248, 0.30);
    border-style: solid;
}

body.segments-page .niche-card-next:hover .niche-next-icon {
    border-color: rgba(56, 189, 248, 0.40);
    color: var(--seg-accent);
}

/* ── Investor section / "Para Inversores" ──────────────────── */
body.segments-page .investor-stat-card:hover {
    border-color: rgba(56, 189, 248, 0.22);
}

body.segments-page .investor-stat-icon {
    background: var(--seg-accent-dim);
    border-color: var(--seg-accent-border);
}

body.segments-page .investor-stat-icon svg {
    color: var(--seg-accent);
}

body.segments-page .investor-stat-value {
    color: var(--seg-accent);
}

body.segments-page .revenue-side-label {
    color: var(--seg-accent);
}

body.segments-page .rev-plan::before {
    background: rgba(56, 189, 248, 0.50);
}

/* ── Demo section / "En Acción" ─────────────────────────────── */
body.segments-page .demo-tab-btn.active > span:first-child {
    color: var(--seg-accent);
}

/* ── Contact form / "¿Tenés un nicho?" ─────────────────────── */
body.segments-page .audience-card-inner:hover {
    border-color: rgba(56, 189, 248, 0.18);
}

body.segments-page .audience-card.selected .audience-card-inner {
    border-color: rgba(56, 189, 248, 0.4);
    background: var(--seg-accent-dim);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.15), 0 8px 24px rgba(0, 0, 0, 0.2);
}

body.segments-page .ac-icon {
    background: var(--seg-accent-dim);
    border-color: var(--seg-accent-border);
    color: var(--seg-accent);
}

body.segments-page .audience-card.selected .ac-icon {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.35);
}

body.segments-page .audience-card.selected .ac-check {
    background: var(--seg-accent);
    border-color: var(--seg-accent);
}

body.segments-page .audience-card.selected .audience-card-inner h4 {
    color: var(--seg-accent);
}

/* Contact section background: teal glow instead of red */
body.segments-page .segments-contact-section::before {
    background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
}
