/* ═══════════════════════════════════════════════════════
   style_index.css  —  styles specific to index.html
   Requires: style_common.css
   ═══════════════════════════════════════════════════════ */

html { scroll-padding-top: 16rem; }

/* Override fadeUp — index uses a slightly larger translateY */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── HERO overrides ── */
/* index hero fills the full viewport and centers content */
.hero {
    min-height: 100vh;
    justify-content: center;
    padding: 10rem 3rem 6rem;
    border-bottom: none;
}

.hero::before {
    background:
        radial-gradient(ellipse 55% 60% at 75% 40%, rgba(200,80,255,0.1) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 25% 60%, rgba(0,212,255,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 30% 40% at 60% 90%, rgba(57,232,122,0.05) 0%, transparent 50%);
}

.hero-eyebrow { margin-bottom: 1.5rem; animation: fadeUp 0.6s 0.1s forwards; }

.hero h1 {
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1.0;
    max-width: 14ch;
    animation: fadeUp 0.7s 0.25s forwards;
}

.hero-sub {
    margin-top: 2rem;
    font-size: 1.15rem;
    max-width: 46ch;
    line-height: 1.7;
    animation: fadeUp 0.7s 0.4s forwards;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.7s 0.55s forwards;
}

/* ── SECTION LABEL override ── */
.section-label { font-size: 0.7rem; margin-bottom: 1rem; }

/* ── SECTION BASE ── */
section { padding: 6rem 3rem; }

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    max-width: 22ch;
}

.section-body {
    margin-top: 1.25rem;
    color: #7aa8bc;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 52ch;
}

/* ── LOGOS BAR ── */
.logos-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.75rem 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logos-bar-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.logos-placeholder { flex: 1; display: flex; align-items: center; gap: 3rem; }

.logo-pill {
    height: 28px;
    background: rgba(0,212,255,0.07);
    border: 1px solid rgba(0,212,255,0.1);
    border-radius: 2px;
    flex: 1;
    max-width: 120px;
}

/* ── MEET FRACTAL ── */
.meet { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

/* ── TABLE SECTION ── */
.table-section {
    background: var(--mid2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.comparison-table th {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th:first-child  { color: var(--muted); }
.comparison-table th:nth-child(2) { color: var(--muted); }
.comparison-table th:nth-child(3) { color: var(--accent); }

.comparison-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    color: #6a9ab0;
    vertical-align: middle;
}

.comparison-table td:first-child  { color: var(--white); font-weight: 500; }
.comparison-table td:nth-child(3) { color: var(--accent); font-weight: 500; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(0,212,255,0.03); }

/* ── STEPS ── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.step {
    background: var(--mid);
    border: 1px solid var(--border2);
    padding: 2.5rem;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.step:hover {
    border-color: rgba(0,212,255,0.35);
    box-shadow: 0 0 30px rgba(0,212,255,0.06);
}

.step-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(0,212,255,0.1);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.step h3 { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.step p { color: #7aa8bc; font-size: 0.92rem; font-weight: 300; line-height: 1.7; }

.step-ctas { display: flex; gap: 1rem; margin-top: 3.5rem; }

/* ── VERTICALS ── */
.verticals { margin-top: 3rem; display: grid; gap: 0; border: 1px solid var(--border); }

.vertical-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.vertical-row:last-child { border-bottom: none; }
.vertical-row:hover { background: rgba(0,212,255,0.03); }

.vertical-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    padding: 1.5rem 2rem;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    color: var(--accent);
}

.vertical-stat { padding: 1.5rem 2rem; font-size: 0.9rem; color: #7aa8bc; display: flex; align-items: center; font-weight: 300; }

/* ── CTA SECTION ── */
.cta-section {
    background: var(--mid2);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 7rem 3rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 50% 50%, rgba(200,80,255,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 30% 80%, rgba(0,212,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section .section-title { margin: 0 auto; text-align: center; max-width: none; }
.cta-section .section-body { margin: 1.5rem auto 2.5rem; text-align: center; }
.cta-section .hero-ctas { justify-content: center; opacity: 1; animation: none; }

/* ── STAT BLOCK ── */
.stat-block {
    background: var(--mid);
    border: 1px solid var(--border);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 20% 20%, rgba(200,80,255,0.07) 0%, transparent 60%);
    pointer-events: none;
}

.stat-item { display: flex; align-items: baseline; gap: 0.75rem; }

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff, #c850ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label { color: var(--muted); font-size: 0.9rem; }

/* ── TABLE WRAPPER ── */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 3rem;
}

.table-wrapper .comparison-table { margin-top: 0; min-width: 560px; }

/* ── DIVIDER ── */
hr { border: none; border-top: 1px solid var(--border); }

/* ── TABLET ── */
@media (max-width: 1024px) {
    section { padding: 5rem 2rem; }
    .hero { padding: 9rem 2rem 5rem; }
    .logos-bar { padding: 1.5rem 2rem; gap: 1.5rem; }
    .meet { gap: 3rem; }
    .steps { grid-template-columns: 1fr 1fr; }
    .cta-section { padding: 6rem 2rem; }
}

/* ── MOBILE ── */
@media (max-width: 767px) {
    .hero {
        min-height: 100svh;
        padding: 7rem 1.25rem 4rem;
        justify-content: flex-end;
    }

    .hero h1 { font-size: clamp(2.6rem, 10vw, 3.5rem); max-width: 100%; }
    .hero-sub { font-size: 1rem; max-width: 100%; }
    .hero-ctas { flex-direction: column; align-items: flex-start; }
    .btn { width: 100%; justify-content: center; }

    section { padding: 4rem 1.25rem; }
    .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); max-width: 100%; }
    .section-body { max-width: 100%; }

    .logos-bar { flex-direction: column; align-items: flex-start; padding: 1.25rem; gap: 1rem; }
    .logos-placeholder { gap: 1rem; flex-wrap: wrap; }
    .logo-pill { max-width: 80px; }

    .meet { grid-template-columns: 1fr; gap: 2rem; }
    .stat-block { padding: 2rem 1.5rem; }
    .stat-number { font-size: 2.25rem; }

    .steps { grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
    .step { padding: 1.75rem 1.5rem; }
    .step-ctas { flex-direction: column; margin-top: 2rem; }

    .vertical-row { grid-template-columns: 1fr; }
    .vertical-name { border-right: none; border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; font-size: 0.8rem; }
    .vertical-stat { padding: 1rem 1.25rem; font-size: 0.88rem; }

    .cta-section { padding: 5rem 1.25rem; }
    .cta-section .hero-ctas { flex-direction: column; align-items: center; }

    section[style*="max-width:700px"] { max-width: 100% !important; }
}

@media (max-width: 380px) {
    .hero h1 { font-size: 2.3rem; }
    .stat-number { font-size: 2rem; }
}
