/* Frontpage Scandinavian Minimalist — v1
   Light, clean, restrained. Uses design tokens from universal-scandi.css.
   All class names match the existing HTML structure exactly.
   ============================================================ */

/* Section backgrounds use chained gradients — no dividers needed.
   Each section's start color matches the previous section's end color. */

/* Color clouds — ambient gradient wash */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle 380px at 8% 12%, rgba(209, 77, 106, 0.42), transparent 65%),
    radial-gradient(ellipse 420px 280px at 88% 6%, rgba(115, 83, 186, 0.36), transparent 60%),
    radial-gradient(ellipse 300px 380px at 42% 88%, rgba(45, 159, 214, 0.33), transparent 60%);
  filter: blur(80px);
  animation: cloudPulse1 8s ease-in-out infinite;
}

body::after {
  background:
    radial-gradient(ellipse 340px 260px at 72% 48%, rgba(209, 77, 106, 0.26), transparent 55%),
    radial-gradient(circle 300px at 18% 58%, rgba(115, 83, 186, 0.22), transparent 55%);
  filter: blur(80px);
  animation: cloudPulse2 11s ease-in-out infinite;
}

@keyframes cloudPulse1 {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.08); }
}

@keyframes cloudPulse2 {
  0%, 100% { opacity: 1; transform: scale(1.05); }
  50%      { opacity: 0.55; transform: scale(0.95); }
}

body > *:not(header) {
  position: relative;
  z-index: 1;
}

/* ============================================
   HERO GLOBE SECTION  (globe hidden, clean light hero)
   ============================================ */

.hero-globe-section {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
    background: transparent;
    padding: 140px 0 0;
}

/* Hide the 3D globe entirely */
#globe-canvas-container {
    display: none;
}

#globe-canvas-container canvas {
    display: none;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    pointer-events: none;
}

.hero-overlay > * {
    pointer-events: auto;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: var(--primary-text);
    letter-spacing: -1px;
    line-height: 1.15;
    text-shadow: none;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: var(--secondary-text);
    max-width: 600px;
    margin-bottom: 32px;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* Hero inline CTA — between subtitle and pipeline badges */
.hero-cta-inline {
    margin-bottom: 52px;
}

/* ============================================
   PIPELINE BADGES  (clean white cards, no glass)
   ============================================ */

.pipeline-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 44px;
}

.pipeline-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 28px 18px;
    min-width: 100px;
    position: relative;
    overflow: hidden;

    background: var(--secondary-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);

    color: var(--primary-text);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Remove glass sheen pseudo-element */
.pipeline-badge::before {
    display: none;
}

/* Subtle colored bottom accent line per card */
.pipeline-badge::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    pointer-events: none;
    z-index: 3;
}

/* Search badge — cyan (1st child) */
.pipeline-badge:first-child::after { background: #2D9FD6; }
.pipeline-badge:first-child svg { color: #2D9FD6; }
.pipeline-badge:first-child { background: rgba(14, 165, 233, 0.04); }

/* Database badge — purple (last child) */
.pipeline-badge:last-child::after { background: #7353BA; }
.pipeline-badge:last-child svg { color: #7353BA; }
.pipeline-badge:last-child { background: rgba(124, 58, 237, 0.04); }

.pipeline-badge svg {
    opacity: 0.9;
}

.pipeline-badge span {
    position: relative;
    z-index: 3;
}

/* Active highlight — glows when connected showcase tab is selected */
.pipeline-badge:first-child.highlighted {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 4px 20px rgba(45, 159, 214, 0.3), 0 0 0 2px rgba(45, 159, 214, 0.15);
    border-color: rgba(45, 159, 214, 0.4);
    background: rgba(45, 159, 214, 0.08);
}

.pipeline-badge:last-child.highlighted {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 4px 20px rgba(115, 83, 186, 0.3), 0 0 0 2px rgba(115, 83, 186, 0.15);
    border-color: rgba(115, 83, 186, 0.4);
    background: rgba(115, 83, 186, 0.08);
}

/* Hover — gentle lift */
.pipeline-badge:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--page-border);
}

/* Arrow connectors between cards */
.pipeline-connector {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    width: 28px;
    height: 28px;
    justify-content: center;
}

.pipeline-connector svg {
    width: 22px;
    height: 22px;
    color: var(--muted-text);
    animation: arrowPulse 2.5s ease-in-out infinite;
}

/* Remove glowing halo behind arrow */
.pipeline-connector::before {
    display: none;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 0.8; transform: translateX(2px); }
}

/* Only one connector remains between Search and Database */

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

.hero-cta-text {
    font-size: 0.95rem;
    color: var(--secondary-text);
    margin-bottom: 14px;
    letter-spacing: 0.01em;
}

.primary-button {
    font-size: 1.1rem;
    padding: 14px 34px;
}

.secondary-button {
    background-color: var(--secondary-bg);
    border: 1px solid var(--page-border);
    color: var(--secondary-text);
    font-size: 1.1rem;
    padding: 12px 30px;
}

/* ============================================
   FLOW BANDS  (connection tubes: badges → showcase tabs)
   ============================================ */

.flow-bands {
    /* JS positions this absolutely within <main> */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 5;
}

.flow-bands-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* ── Tube layer: solid background pipe ── */
.flow-tube {
    fill: none;
    stroke-linecap: round;
    stroke-width: 4;
}

.flow-tube-cyan {
    stroke: rgba(45, 159, 214, 0.50);
}

.flow-tube-purple {
    stroke: rgba(115, 83, 186, 0.42);
}

/* ── Matter layer: circular glowing orbs ── */
.flow-matter {
    fill: none;
    stroke-linecap: round;
    /* tiny dash + large gap = circular dots */
    stroke-dasharray: 0.1 160;
}

/* Cyan matter: Search → Google Maps Search + Smart Search */
.flow-matter-cyan {
    stroke: #5BBDE8;
    stroke-width: 8;
    filter: drop-shadow(0 0 6px rgba(45, 159, 214, 0.7));
}

.flow-matter-c1 {
    animation: flowMoveCyan 4.4s linear infinite, flowGlowCyan 3s ease-in-out infinite;
}

.flow-matter-c2 {
    animation: flowMoveCyan 4.4s 0.7s linear infinite, flowGlowCyan 3s 0.4s ease-in-out infinite;
}

/* Purple matter: Database → Enrich & Evaluate + Upload & Export */
.flow-matter-purple {
    stroke: #9B7FD4;
    stroke-width: 8;
    filter: drop-shadow(0 0 6px rgba(115, 83, 186, 0.7));
}

.flow-matter-p1 {
    animation: flowMovePurple 4.8s linear infinite, flowGlowPurple 3s ease-in-out infinite;
}

.flow-matter-p2 {
    animation: flowMovePurple 4.8s 0.8s linear infinite, flowGlowPurple 3s 0.5s ease-in-out infinite;
}

/* Flow movement: matter traveling down the tube */
@keyframes flowMoveCyan {
    0%   { stroke-dashoffset: 80; }
    100% { stroke-dashoffset: -80; }
}

@keyframes flowMovePurple {
    0%   { stroke-dashoffset: 80; }
    100% { stroke-dashoffset: -80; }
}

/* Glow pulse: orbs brighten and dim as they travel */
@keyframes flowGlowCyan {
    0%   { filter: drop-shadow(0 0 4px rgba(45, 159, 214, 0.4)); }
    50%  { filter: drop-shadow(0 0 12px rgba(45, 159, 214, 0.9)) drop-shadow(0 0 20px rgba(45, 159, 214, 0.4)); }
    100% { filter: drop-shadow(0 0 4px rgba(45, 159, 214, 0.4)); }
}

@keyframes flowGlowPurple {
    0%   { filter: drop-shadow(0 0 4px rgba(115, 83, 186, 0.4)); }
    50%  { filter: drop-shadow(0 0 12px rgba(115, 83, 186, 0.9)) drop-shadow(0 0 20px rgba(115, 83, 186, 0.4)); }
    100% { filter: drop-shadow(0 0 4px rgba(115, 83, 186, 0.4)); }
}

/* ============================================
   FEATURE SHOWCASE  (tabbed carousel, juristic-inspired)
   ============================================ */

.feature-showcase {
    padding: 0 0 100px;
    background: transparent;
    position: relative;
}

/* CTA relocated below the showcase card */
.showcase-cta {
    text-align: center;
    padding: 48px 20px 0;
}

/* Hide old features-overview if still in DOM */
.features-overview { display: none; }

.showcase-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    background: var(--secondary-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* ── Tab bar ── */
.showcase-tabs {
    display: flex;
    border-bottom: 1px solid var(--page-border);
    padding: 0;
    background: var(--tertiary-bg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.showcase-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--muted-text);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
}

.showcase-tab:hover {
    color: var(--secondary-text);
    background: rgba(0, 0, 0, 0.02);
}

.showcase-tab.active {
    color: var(--primary-text);
    font-weight: 600;
    background: var(--secondary-bg);
    border-bottom-color: var(--highlight-color);
}

.showcase-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.showcase-tab-icon svg {
    width: 18px;
    height: 18px;
}

/* Tab accent colors */
.showcase-tab[data-tab="0"].active { border-bottom-color: #2D9FD6; }
.showcase-tab[data-tab="0"].active .showcase-tab-icon { color: #2D9FD6; }
.showcase-tab[data-tab="1"].active { border-bottom-color: #7353BA; }
.showcase-tab[data-tab="1"].active .showcase-tab-icon { color: #7353BA; }
.showcase-tab[data-tab="2"].active { border-bottom-color: #D14D6A; }
.showcase-tab[data-tab="2"].active .showcase-tab-icon { color: #D14D6A; }
.showcase-tab[data-tab="3"].active { border-bottom-color: #2DA87A; }
.showcase-tab[data-tab="3"].active .showcase-tab-icon { color: #2DA87A; }

/* ── Card wrapper ── */
.showcase-card-wrapper {
    position: relative;
    min-height: 360px;
}

/* ── Cards ── */
.showcase-cards {
    position: relative;
    width: 100%;
    min-height: 360px;
}

.showcase-card {
    display: none;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.showcase-card.active {
    display: grid;
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.showcase-card.slide-out-left {
    display: grid;
    opacity: 0;
    transform: translateX(-30px);
}

.showcase-card.slide-in-right {
    display: grid;
    opacity: 0;
    transform: translateX(30px);
}

/* ── Placeholder image area ── */
.showcase-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
}

.showcase-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

/* ── Showcase screenshot images ── */
.showcase-screenshot {
    position: relative;
    width: 100%;
    height: 100%;
}

.showcase-screenshot img {
    border-radius: 12px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    background: #fff;
}

.showcase-card:hover .showcase-screenshot img {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.16),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Single image layout */
.showcase-screenshot.single img {
    width: 100%;
    height: auto;
    display: block;
}

.showcase-card:hover .showcase-screenshot.single img {
    transform: translateY(-4px) scale(1.01);
}

/* Stacked dual-image layout */
.showcase-screenshot.stacked {
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-screenshot.stacked img {
    position: absolute;
    width: 72%;
    height: auto;
}

.showcase-screenshot.stacked .sc-back {
    top: 0;
    left: 0;
    z-index: 1;
    transform: rotate(-3deg) translateY(4px);
    opacity: 0.85;
}

.showcase-screenshot.stacked .sc-front {
    bottom: 0;
    right: 0;
    top: auto;
    z-index: 2;
    transform: rotate(2deg) translateY(-4px);
}

.showcase-card:hover .showcase-screenshot.stacked .sc-back {
    transform: rotate(-4deg) translateY(0px) scale(1.01);
}

.showcase-card:hover .showcase-screenshot.stacked .sc-front {
    transform: rotate(1deg) translateY(-8px) scale(1.02);
}

/* Card 0: results as wide backdrop, input floating on right */
.showcase-card[data-index="0"] .showcase-screenshot.stacked .sc-back {
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    border-radius: 10px;
}
.showcase-card[data-index="0"] .showcase-screenshot.stacked .sc-front {
    width: 48%;
    right: -4%;
    bottom: auto;
    top: 4%;
    transform: none;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.08);
}
.showcase-card[data-index="0"]:hover .showcase-screenshot.stacked .sc-back {
    transform: translate(-50%, -50%) scale(1.01);
}
.showcase-card[data-index="0"]:hover .showcase-screenshot.stacked .sc-front {
    transform: translateY(-4px) scale(1.02);
}

/* Per-card glow accent behind images */
.showcase-screenshot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 60%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(40px);
    opacity: 0.35;
    pointer-events: none;
}

.showcase-card[data-index="0"] .showcase-screenshot::before {
    background: radial-gradient(ellipse, rgba(45, 159, 214, 0.4), transparent 70%);
}
.showcase-card[data-index="1"] .showcase-screenshot::before {
    background: radial-gradient(ellipse, rgba(232, 168, 56, 0.4), transparent 70%);
}
.showcase-card[data-index="2"] .showcase-screenshot::before {
    background: radial-gradient(ellipse, rgba(115, 83, 186, 0.4), transparent 70%);
}
.showcase-card[data-index="3"] .showcase-screenshot::before {
    background: radial-gradient(ellipse, rgba(45, 168, 122, 0.4), transparent 70%);
}

/* Per-card accent tint */
.showcase-card[data-index="0"] .showcase-placeholder {
    background: linear-gradient(135deg, rgba(45, 159, 214, 0.06) 0%, rgba(45, 159, 214, 0.02) 100%);
}
.showcase-card[data-index="1"] .showcase-placeholder {
    background: linear-gradient(135deg, rgba(232, 168, 56, 0.06) 0%, rgba(232, 168, 56, 0.02) 100%);
}
.showcase-card[data-index="2"] .showcase-placeholder {
    background: linear-gradient(135deg, rgba(115, 83, 186, 0.06) 0%, rgba(115, 83, 186, 0.02) 100%);
}
.showcase-card[data-index="3"] .showcase-placeholder {
    background: linear-gradient(135deg, rgba(45, 168, 122, 0.06) 0%, rgba(45, 168, 122, 0.02) 100%);
}

/* Card 3: larger images for Upload, Export & API */
.showcase-card[data-index="3"] .showcase-screenshot.stacked .sc-back {
    width: 103%;
    top: -8%;
    left: 6%;
}
.showcase-card[data-index="3"] .showcase-screenshot.stacked .sc-front {
    width: 85%;
    left: 5%;
}

/* ── Content side ── */
.showcase-content {
    padding: 48px 48px 48px 16px;
}

.showcase-content-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

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

/* Content icon accent colors */
.showcase-card[data-index="0"] .showcase-content-icon {
    background: rgba(45, 159, 214, 0.08);
    border: 1px solid rgba(45, 159, 214, 0.2);
    color: #2D9FD6;
}
.showcase-card[data-index="1"] .showcase-content-icon {
    background: rgba(232, 168, 56, 0.08);
    border: 1px solid rgba(232, 168, 56, 0.2);
    color: #E8A838;
}
.showcase-card[data-index="2"] .showcase-content-icon {
    background: rgba(115, 83, 186, 0.08);
    border: 1px solid rgba(115, 83, 186, 0.2);
    color: #7353BA;
}
.showcase-card[data-index="3"] .showcase-content-icon {
    background: rgba(45, 168, 122, 0.08);
    border: 1px solid rgba(45, 168, 122, 0.2);
    color: #2DA87A;
}

.showcase-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-text);
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

.showcase-tagline {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 16px 0;
}

.showcase-card[data-index="0"] .showcase-tagline { color: #2D9FD6; }
.showcase-card[data-index="1"] .showcase-tagline { color: #E8A838; }
.showcase-card[data-index="2"] .showcase-tagline { color: #7353BA; }
.showcase-card[data-index="3"] .showcase-tagline { color: #2DA87A; }

.showcase-content p:last-child {
    color: var(--secondary-text);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* ── Navigation arrows ── */
.showcase-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-bg);
    border: 1px solid var(--page-border);
    box-shadow: var(--shadow-md);
    color: var(--secondary-text);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    line-height: 1;
    padding: 0;
    font-family: inherit;
}

.showcase-arrow:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-50%) scale(1.08);
    color: var(--primary-text);
}

.showcase-prev {
    left: 16px;
}

.showcase-next {
    right: 16px;
}

/* ── Dot indicators ── */
.showcase-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 0 24px 0;
}

.showcase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--page-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.showcase-dot.active {
    background: var(--highlight-color);
    transform: scale(1.25);
}

/* Keep old feature-card/icon rules hidden but available for other pages */
.feature-card, .feature-icon { display: none; }

/* ============================================
   AI WORKFLOW SECTION  (white cards, colored top accent)
   ============================================ */

.ai-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

/* Remove ambient glow */
.ai-section::before {
    display: none;
}

.ai-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.section-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2.6rem;
    margin-bottom: 20px;
    color: var(--primary-text);
    letter-spacing: -0.5px;
}

.ai-workflow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 56px;
    gap: 24px;
}

.workflow-step {
    padding: 44px 28px 34px;
    position: relative;
    text-align: center;

    background: var(--secondary-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);

    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Per-card colored top accent line */
.workflow-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    pointer-events: none;
}

.workflow-step:nth-child(1)::before { background: linear-gradient(90deg, #D14D6A, #C44A6E); }
.workflow-step:nth-child(2)::before { background: linear-gradient(90deg, #B8456E, #8B50A8); }
.workflow-step:nth-child(3)::before { background: linear-gradient(90deg, #8B50A8, #5B6BBF); }
.workflow-step:nth-child(4)::before { background: linear-gradient(90deg, #5B6BBF, #2D9FD6); }

/* Hover — gentle lift */
.workflow-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* Step number badge */
.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    letter-spacing: 0;
}

/* Per-step graded number badges — red→purple→blue progression */
.workflow-step:nth-child(1) .step-number { background: linear-gradient(135deg, #D14D6A 0%, #C44A6E 100%); box-shadow: var(--shadow-sm); }
.workflow-step:nth-child(2) .step-number { background: linear-gradient(135deg, #B8456E 0%, #8B50A8 100%); box-shadow: var(--shadow-sm); }
.workflow-step:nth-child(3) .step-number { background: linear-gradient(135deg, #8B50A8 0%, #5B6BBF 100%); box-shadow: var(--shadow-sm); }
.workflow-step:nth-child(4) .step-number { background: linear-gradient(135deg, #5B6BBF 0%, #2D9FD6 100%); box-shadow: var(--shadow-sm); }

/* Fallback for the generic selector in original */
.workflow-step .step-number {
    background: linear-gradient(135deg, #D14D6A 0%, #7353BA 100%);
    box-shadow: var(--shadow-sm);
}

.workflow-step h4 {
    font-family: 'Inter', sans-serif;
    margin-top: 14px;
    margin-bottom: 16px;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--primary-text);
    letter-spacing: -0.01em;
}

.workflow-step p {
    color: var(--secondary-text);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.65;
}

/* ============================================
   CTA SECTION  (clean light background)
   ============================================ */

.cta-section {
    padding: 100px 0 110px;
    background: transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Remove multi-layer ambient glow */
.cta-section::before {
    display: none;
}

/* Removed: section divider line */

.cta-section h1, .cta-section h2 {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-text);
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 44px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Screen-reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   ENRICHMENT SECTION  (clean light, no spinning rings)
   ============================================ */

.enrichment-section {
    padding: 120px 0 140px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Remove colored radial-gradient overlays */
.enrichment-section::before {
    display: none;
}

/* Removed: section divider line */

.enrichment-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.enrichment-header {
    text-align: center;
    margin-bottom: 70px;
}

.enrichment-subtitle {
    font-size: 1.15rem;
    color: var(--secondary-text);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.enrichment-note {
    text-align: center;
    color: var(--muted-text);
    font-size: 0.9rem;
    margin-top: 60px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.enrichment-link {
    color: #2D9FD6;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.enrichment-link:hover {
    color: var(--primary-text);
    text-decoration: underline;
}

/* Bring Your Own Leads callout */
.enrich-own-callout {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 780px;
    margin: 32px auto 0;
    padding: 20px 28px;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: var(--radius-lg);
    text-align: left;
}

.enrich-own-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: var(--radius-md);
    color: #2DA87A;
}

.enrich-own-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.enrich-own-text strong {
    font-size: 0.95rem;
    color: var(--primary-text);
    font-weight: 600;
}

.enrich-own-text span {
    font-size: 0.85rem;
    color: var(--muted-text);
    line-height: 1.5;
}

.enrich-own-link {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2DA87A;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.enrich-own-link:hover {
    color: #059669;
}

/* -- Central Hub (simplified, no spinning rings, no expanding pulse) -- */

.enrichment-orbit-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 920px;
    margin: 0 auto;
}

.enrichment-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    z-index: 10;
}

.hub-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
}

.hub-number {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-text);
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: none;
}

.hub-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 6px;
    line-height: 1.3;
}

/* Simple subtle circle background instead of animated glow */
.hub-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--tertiary-bg);
    border: 1px solid var(--page-border);
    animation: none;
    z-index: 1;
}

/* Static ring instead of spinning */
.hub-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--page-border);
    animation: none;
    z-index: 2;
}

.hub-ring-outer {
    width: 170px;
    height: 170px;
    border: 1px dashed var(--page-border);
    animation: none;
}

/* Remove expanding pulse rings */
.enrichment-hub::before,
.enrichment-hub::after {
    display: none;
}

/* -- Enrichment Cards (white, subtle shadow, reduced float) -- */

.enrichment-cards-orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.enrichment-card {
    position: absolute;
    width: 240px;
    padding: 24px 20px 20px;
    border-radius: var(--radius-xl);
    text-align: center;
    overflow: hidden;

    background: var(--secondary-bg);
    border: 1px solid var(--page-border);
    box-shadow: var(--shadow-lg);

    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    animation: enrichFloat1 6s ease-in-out infinite;
}

/* Card positions — 3 rows x 2 columns */
.enrichment-card-1 { top: 0%; left: 4%; animation-delay: 0s; }
.enrichment-card-2 { top: 0%; right: 4%; left: auto; animation-delay: -1s; }
.enrichment-card-3 { top: 34%; left: 0%; animation-delay: -2s; animation-name: enrichFloat3; }
.enrichment-card-4 { top: 34%; right: 0%; left: auto; animation-delay: -3s; animation-name: enrichFloat4; }
.enrichment-card-5 { top: 74%; left: 4%; animation-delay: -4s; animation-name: enrichFloat5; }
.enrichment-card-6 { top: 74%; right: 4%; left: auto; animation-delay: -5s; animation-name: enrichFloat6; }

/* 6 unique keyframes — translateY only, max +/-4px, duration 6s */
@keyframes enrichFloat1 {
    0%, 100% { transform: translateY(0px); }
    33% { transform: translateY(-6px); }
    66% { transform: translateY(3px); }
}

.enrichment-card-2 { animation-name: enrichFloat2; }
@keyframes enrichFloat2 {
    0%, 100% { transform: translateY(0px); }
    33% { transform: translateY(-4.5px); }
    66% { transform: translateY(4.5px); }
}

@keyframes enrichFloat3 {
    0%, 100% { transform: translateY(0px); }
    33% { transform: translateY(-6px); }
    66% { transform: translateY(1.5px); }
}

@keyframes enrichFloat4 {
    0%, 100% { transform: translateY(0px); }
    33% { transform: translateY(-3px); }
    66% { transform: translateY(6px); }
}

@keyframes enrichFloat5 {
    0%, 100% { transform: translateY(0px); }
    33% { transform: translateY(-4.5px); }
    66% { transform: translateY(3px); }
}

@keyframes enrichFloat6 {
    0%, 100% { transform: translateY(0px); }
    33% { transform: translateY(-6px); }
    66% { transform: translateY(1.5px); }
}


/* Card hover */
.enrichment-card:hover {
    animation-play-state: paused;
    z-index: 20;
    box-shadow: var(--shadow-xl);
    border-color: var(--page-border);
}

/* -- Card Icon (simple colored circle) -- */

.enrichment-card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enrichment-card-1 .enrichment-card-icon { background: rgba(14, 165, 233, 0.08); border: 1px solid rgba(14, 165, 233, 0.18); color: #2D9FD6; }
.enrichment-card-2 .enrichment-card-icon { background: rgba(124, 58, 237, 0.08); border: 1px solid rgba(124, 58, 237, 0.18); color: #7353BA; }
.enrichment-card-3 .enrichment-card-icon { background: rgba(230, 57, 98, 0.08); border: 1px solid rgba(230, 57, 98, 0.18); color: #D14D6A; }
.enrichment-card-4 .enrichment-card-icon { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.18); color: #2DA87A; }
.enrichment-card-5 .enrichment-card-icon { background: rgba(14, 165, 233, 0.08); border: 1px solid rgba(14, 165, 233, 0.18); color: #2D9FD6; }
.enrichment-card-6 .enrichment-card-icon { background: rgba(124, 58, 237, 0.08); border: 1px solid rgba(124, 58, 237, 0.18); color: #7353BA; }

/* -- Card Accent — subtle bottom border line -- */

.enrichment-card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    pointer-events: none;
}

.enrichment-card-1 .enrichment-card-accent { background: #2D9FD6; }
.enrichment-card-2 .enrichment-card-accent { background: #7353BA; }
.enrichment-card-3 .enrichment-card-accent { background: #D14D6A; }
.enrichment-card-4 .enrichment-card-accent { background: #2DA87A; }
.enrichment-card-5 .enrichment-card-accent { background: #2D9FD6; }
.enrichment-card-6 .enrichment-card-accent { background: #7353BA; }

/* -- Card Typography -- */

.enrichment-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 10px;
    margin-top: 0;
    letter-spacing: -0.01em;
}

.enrichment-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.enrichment-card li {
    font-size: 0.78rem;
    color: var(--secondary-text);
    line-height: 1.5;
    padding: 2px 0;
    position: relative;
    padding-left: 14px;
    text-align: left;
}

.enrichment-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.enrichment-card-1 li::before { background: #2D9FD6; }
.enrichment-card-2 li::before { background: #7353BA; }
.enrichment-card-3 li::before { background: #D14D6A; }
.enrichment-card-4 li::before { background: #2DA87A; }
.enrichment-card-5 li::before { background: #2D9FD6; }
.enrichment-card-6 li::before { background: #7353BA; }

/* ============================================
   API TEASER SECTION  (clean white cards)
   ============================================ */

.api-teaser-section {
    padding: 90px 0 100px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Remove colored radial-gradient overlays */
.api-teaser-section::before {
    display: none;
}

.api-teaser-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    position: relative;
}

.api-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

.api-teaser-card {
    background: var(--secondary-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.api-teaser-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.api-teaser-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(124, 58, 237, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #7353BA;
}

.api-teaser-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 10px;
}

.api-teaser-card p {
    font-size: 0.9rem;
    color: var(--secondary-text);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-globe-section {
        padding: 80px 0 0;
    }

    /* Hide flow bands on mobile — too complex to position */
    .flow-bands {
        display: none;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
        padding: 0 8px;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 8px;
    }

    .hero-cta-inline {
        margin-bottom: 28px;
    }

    .hero-cta-inline .primary-button {
        width: auto;
        padding: 12px 28px;
    }

    .pipeline-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .pipeline-connector {
        display: none;
    }

    .pipeline-badge {
        padding: 16px 20px 14px;
        min-width: 80px;
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .pipeline-badge:hover {
        transform: translateY(-2px);
    }

    .pipeline-badge::before {
        display: none;
    }

    /* Feature showcase — single column on tablet */
    .showcase-container {
        margin: 0 16px;
        border-radius: var(--radius-lg);
    }

    .showcase-card {
        grid-template-columns: 1fr !important;
    }

    .showcase-image {
        padding: 24px 20px 0;
    }

    .showcase-placeholder {
        overflow: hidden;
        border-radius: 10px;
        aspect-ratio: 16 / 10;
    }

    .showcase-screenshot.stacked img {
        width: 65%;
    }

    .showcase-screenshot.stacked .sc-back {
        transform: rotate(-2deg) translateY(2px);
    }

    .showcase-screenshot.stacked .sc-front {
        transform: rotate(1deg) translateY(-2px);
    }

    /* Card 0 overrides for mobile */
    .showcase-card[data-index="0"] .showcase-screenshot.stacked .sc-back {
        width: 95%;
    }

    .showcase-card[data-index="0"] .showcase-screenshot.stacked .sc-front {
        width: 44%;
        right: 0;
        top: 6%;
    }

    /* Disable hover transforms on mobile */
    .showcase-card:hover .showcase-screenshot.stacked .sc-back,
    .showcase-card:hover .showcase-screenshot.stacked .sc-front,
    .showcase-card[data-index="0"]:hover .showcase-screenshot.stacked .sc-back,
    .showcase-card[data-index="0"]:hover .showcase-screenshot.stacked .sc-front {
        transform: none;
    }

    .showcase-card[data-index="0"]:hover .showcase-screenshot.stacked .sc-back {
        transform: translate(-50%, -50%);
    }

    .showcase-content {
        padding: 20px 24px 28px;
    }

    .showcase-content h3 {
        font-size: 1.35rem;
    }

    .showcase-arrow {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }

    .showcase-prev { left: 8px; }
    .showcase-next { right: 8px; }

    .showcase-card-wrapper {
        min-height: auto;
    }

    .showcase-cards {
        min-height: auto;
    }

    .ai-workflow {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .workflow-step {
        padding: 38px 22px 28px;
    }

    .workflow-step:hover {
        transform: translateY(-2px);
    }

    .section-content h2 {
        font-size: 2rem;
    }

    .feature-showcase {
        padding: 30px 0 60px;
    }

    .ai-section {
        padding: 70px 0;
    }

    .cta-section {
        padding: 70px 0 80px;
    }

    /* Enrichment section — collapse to grid */
    .enrichment-section {
        padding: 80px 0 90px;
    }

    .enrichment-header {
        margin-bottom: 40px;
    }

    .enrichment-orbit-wrapper {
        height: auto;
    }

    .enrichment-hub {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto 40px;
    }

    .enrichment-hub::before,
    .enrichment-hub::after {
        display: none;
    }

    .enrichment-cards-orbit {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 10px;
    }

    .enrichment-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        transform: none !important;
        animation: none !important;
        box-shadow: var(--shadow-sm);
    }

    .enrichment-card:hover {
        transform: translateY(-4px) !important;
        box-shadow: var(--shadow-md);
    }

    .enrichment-note {
        margin-top: 40px;
    }

    .api-teaser-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
        letter-spacing: -0.3px;
    }

    .section-content h2 {
        font-size: 1.5rem;
    }

    .ai-workflow {
        grid-template-columns: 1fr;
    }

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

    /* Showcase tabs — horizontal scroll on small mobile */
    .showcase-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }

    .showcase-tabs::-webkit-scrollbar {
        display: none;
    }

    .showcase-container {
        margin: 0 10px;
    }

    .showcase-tab {
        padding: 14px 12px;
        font-size: 0.78rem;
        gap: 5px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .showcase-tab-icon {
        width: 16px;
        height: 16px;
    }

    .showcase-tab-icon svg {
        width: 14px;
        height: 14px;
    }

    .showcase-image {
        padding: 24px 16px 0;
    }

    .showcase-content {
        padding: 20px 16px 24px;
    }

    .showcase-content h3 {
        font-size: 1.2rem;
    }

    .showcase-arrow {
        display: none;
    }

    .feature-showcase {
        padding: 20px 0 50px;
    }

    /* CTA section — tighter on mobile */
    .cta-section h2 {
        font-size: 1.4rem;
    }

    .cta-section p {
        font-size: 0.95rem;
        padding: 0 8px;
    }

    .enrich-own-callout {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .api-teaser-header h2 {
        font-size: 1.5rem;
    }

    .hero-globe-section {
        padding: 90px 0 0;
    }
}
