/* =====================================================
   UNIVAXIA — Complete Redesign
   Alternating dark/light sections, dynamic header,
   Rich animations, Notion-inspired theme switching
   ===================================================== */

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

:root {
    /* Dark theme palette */
    --dark-bg: #09111a;
    --dark-surface: #0f1c28;
    --dark-border: rgba(90,200,200,.15);
    --teal: #3D9B9B;
    --cyan: #5ac8c8;
    --cyan-bright: #00e5ff;
    --text-on-dark: #e8edf2;
    --muted-on-dark: #7a8fa3;

    /* Light theme palette */
    --light-bg: #f8fafc;
    --light-surface: #ffffff;
    --light-border: #e2e8f0;
    --text-on-light: #0f1c28;
    --muted-on-light: #64748b;
    --accent-on-light: #0e7490;

    /* Shared */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    /* Gradient accent */
    --grad: linear-gradient(135deg, var(--teal), var(--cyan));
    --grad-text: linear-gradient(135deg, #3D9B9B, #5ac8c8, #a8e6d9);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    overflow-x: hidden;
    line-height: 1.65;
}

/* ===== SECTION THEMES ===== */
.section-dark {
    background: var(--dark-bg);
    color: var(--text-on-dark);
}
.section-light {
    background: var(--light-bg);
    color: var(--text-on-light);
}

/* ===== LAYOUT ===== */
.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}
.wrap.narrow { max-width: 900px; }

/* ===== TYPOGRAPHY SYSTEM ===== */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; line-height: 1.12; }

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

h2 em { font-style: normal; font-weight: 800; }
.section-light h2 em { color: var(--accent-on-light); }
.section-dark h2 em { color: var(--cyan); }

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== EYEBROWS & LABELS ===== */
.section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-on-light);
    margin-bottom: 1.2rem;
    padding: 0.4rem 1rem;
    border: 1.5px solid currentColor;
    border-radius: 50px;
}
.section-eyebrow.light {
    color: var(--cyan);
    border-color: var(--cyan);
}

.section-hd {
    max-width: 680px;
    margin-bottom: 4rem;
}
.section-hd p {
    margin-top: 1rem;
    font-size: 1.05rem;
    line-height: 1.75;
}
.section-light .section-hd p { color: var(--muted-on-light); }
.section-dark .section-hd p { color: var(--muted-on-dark); }
.section-hd.light { max-width: 680px; }

/* ===== HEADER / NAV ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    animation: slideDown 0.7s cubic-bezier(.34,1.56,.64,1);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-60px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Dark header mode (over dark sections) */
header.header-dark {
    background: rgba(9, 17, 26, 0.88);
    border-bottom: 1px solid rgba(90,200,200,.18);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
header.header-dark .logo-text,
header.header-dark .nav-link { color: var(--text-on-dark); }
header.header-dark .nav-link:hover { color: var(--cyan); }
header.header-dark .cta-button {
    background: var(--grad);
    color: var(--dark-bg);
}
header.header-dark .hamburger span { background: var(--text-on-dark); }

/* Light header mode (over light sections) */
header.header-light {
    background: rgba(248, 250, 252, 0.92);
    border-bottom: 1px solid var(--light-border);
    box-shadow: 0 1px 20px rgba(0,0,0,.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
header.header-light .logo-text,
header.header-light .nav-link { color: var(--text-on-light); }
header.header-light .nav-link:hover { color: var(--accent-on-light); }
header.header-light .cta-button {
    background: var(--text-on-light);
    color: var(--light-bg);
}
header.header-light .hamburger span { background: var(--text-on-light); }

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    transition: transform 0.3s;
    flex-shrink: 0;
}
.logo:hover { transform: scale(1.04); }
.logo-img { height: 44px; width: auto; }
.logo-text {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    transition: color 0.3s;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad);
    transition: width 0.35s cubic-bezier(.34,1.56,.64,1);
    border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.cta-button {
    padding: 0.65rem 1.6rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}
.cta-button:hover { transform: translateY(-2px); opacity: 0.9; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.hamburger span {
    width: 24px;
    height: 2px;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(.34,1.56,.64,1);
    display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

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

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(90,200,200,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90,200,200,.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(61,155,155,.25) 0%, transparent 70%);
    top: -15%; right: -8%;
    animation: drift 12s ease-in-out infinite;
}
.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(168,230,217,.12) 0%, transparent 70%);
    bottom: 10%; left: -5%;
    animation: drift 16s ease-in-out infinite 2s;
}
.orb-3 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(90,200,200,.18) 0%, transparent 70%);
    top: 20%; left: -10%;
    animation: drift 14s ease-in-out infinite 1s;
}
.orb-4 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(61,155,155,.22) 0%, transparent 70%);
    top: -20%; right: -15%;
    animation: drift 18s ease-in-out infinite 3s;
}

@keyframes drift {
    0%, 100% { transform: translate(0,0); }
    33% { transform: translate(30px, -40px); }
    66% { transform: translate(-20px, 25px); }
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    border: 1.5px solid rgba(90,200,200,.4);
    border-radius: 50px;
}

.hero-text h1 { color: var(--text-on-dark); margin-bottom: 1.5rem; }

.hero-lead {
    font-size: 1.1rem;
    color: var(--muted-on-dark);
    margin-bottom: 2.2rem;
    max-width: 520px;
    line-height: 1.78;
}

.hero-cta { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 3rem; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--grad);
    color: var(--dark-bg);
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 0 30px rgba(90,200,200,.3);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.25);
    transform: translateX(-110%) skewX(-15deg);
    transition: transform 0.5s;
}
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 0 50px rgba(90,200,200,.5); }
.btn-primary:hover::before { transform: translateX(110%) skewX(-15deg); }
.btn-primary.lg { padding: 1.1rem 2.5rem; font-size: 1rem; }
.btn-primary i { transition: transform 0.3s; }
.btn-primary:hover i { transform: translateX(4px); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2rem;
    border: 1.5px solid rgba(90,200,200,.45);
    border-radius: 50px;
    background: transparent;
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-ghost:hover {
    background: rgba(90,200,200,.1);
    border-color: var(--cyan);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(90,200,200,.15);
}
.stat { display: flex; flex-direction: column; }
.stat strong {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.stat span { font-size: 0.75rem; color: var(--muted-on-dark); margin-top: 0.2rem; }
.stat-sep { width: 1px; height: 40px; background: rgba(90,200,200,.2); }

/* Dashboard Card */
.hero-visual { position: relative; }
.dash-card {
    background: rgba(15, 28, 40, 0.85);
    border: 1px solid rgba(90,200,200,.25);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(90,200,200,.08);
    animation: cardFloat 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
.dash-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.dash-header {
    padding: 1rem 1.4rem;
    background: rgba(9,17,26,.6);
    border-bottom: 1px solid rgba(90,200,200,.12);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }
.dash-title { font-size: 0.78rem; font-weight: 600; color: var(--muted-on-dark); margin-left: auto; }

.dash-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.2rem; }

.dash-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: #4ade80;
    font-weight: 600;
}
.pulse-dot {
    width: 8px; height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
    50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

.dash-metric { display: flex; flex-direction: column; gap: 0.4rem; }
.dm-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted-on-dark); }
.dm-pct { font-weight: 700; color: var(--cyan); }
.dm-pct.green { color: #4ade80; }
.dm-pct.cyan { color: var(--cyan-bright); }
.dm-track {
    height: 5px;
    background: rgba(255,255,255,.08);
    border-radius: 4px;
    overflow: hidden;
}
.dm-fill {
    height: 100%;
    background: var(--grad);
    border-radius: 4px;
    width: 0;
    animation: fillBar 1.8s ease-out 0.8s forwards;
    --target-width: var(--w);
}
.dm-fill.green { background: linear-gradient(90deg, #22c55e, #4ade80); }
.dm-fill.cyan { background: linear-gradient(90deg, var(--teal), var(--cyan-bright)); }
@keyframes fillBar { to { width: var(--target-width); } }

.dash-feed { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.5rem; border-top: 1px solid rgba(90,200,200,.1); }
.feed-row { display: flex; align-items: center; gap: 0.7rem; font-size: 0.75rem; color: var(--muted-on-dark); }
.tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.tag.valid { background: rgba(74,222,128,.15); color: #4ade80; border: 1px solid rgba(74,222,128,.3); }
.tag.warn { background: rgba(251,191,36,.15); color: #fbbf24; border: 1px solid rgba(251,191,36,.3); }

.card-glow {
    position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(90,200,200,.25) 0%, transparent 70%);
    top: 50%; right: -80px;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 1;
    animation: drift 8s ease-in-out infinite;
}

.scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--muted-on-dark);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.scue-bar {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    animation: scuePulse 2s ease-in-out infinite;
}
@keyframes scuePulse {
    0%, 100% { opacity: 1; height: 40px; }
    50% { opacity: 0.4; height: 24px; }
}

/* ===== SOLUTIONS ===== */
.solutions { padding: 8rem 0; }
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sol-card {
    background: var(--light-surface);
    border: 1.5px solid var(--light-border);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    position: relative;
    cursor: default;
    transition: all 0.4s cubic-bezier(.34,1.56,.64,1);
    overflow: hidden;
}
.sol-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61,155,155,.07) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}
.sol-card:hover {
    transform: translateY(-10px);
    border-color: rgba(61,155,155,.4);
    box-shadow: 0 20px 50px rgba(61,155,155,.12);
}
.sol-card:hover::before { opacity: 1; }

.sol-icon { font-size: 2.2rem; margin-bottom: 1.2rem; display: block; }
.sol-card h3 { color: var(--text-on-light); margin-bottom: 0.8rem; }
.sol-card p { color: var(--muted-on-light); font-size: 0.93rem; line-height: 1.7; margin-bottom: 1.3rem; }

.chip {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(61,155,155,.15), rgba(90,200,200,.15));
    color: var(--accent-on-light);
    border: 1px solid rgba(61,155,155,.25);
}

.sol-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--light-border);
    font-size: 0.9rem;
    transition: all 0.3s;
}
.sol-card:hover .sol-arrow { color: var(--accent-on-light); transform: translate(3px,-3px); }

/* ===== FEATURES ===== */
.features { padding: 8rem 0; position: relative; overflow: hidden; }

.feat-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feat-item {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(90,200,200,.1);
    cursor: default;
    transition: all 0.3s;
    position: relative;
}
.feat-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 0; height: 100%;
    background: rgba(90,200,200,.04);
    transition: width 0.4s ease;
    border-radius: var(--radius-sm);
}
.feat-item:hover::before { width: 100%; }
.feat-item:hover { padding-left: 1rem; }
.feat-item:last-child { border-bottom: none; }

.feat-num {
    font-family: 'Syne', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
    min-width: 80px;
}

.feat-body h3 { color: var(--text-on-dark); margin-bottom: 0.5rem; font-size: 1.35rem; }
.feat-body p { color: var(--muted-on-dark); font-size: 0.98rem; max-width: 620px; }

/* ===== CURRENXIA ===== */
.currenxia { padding: 8rem 0; }

.cx-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 5rem;
}
.cx-left h2 { color: var(--text-on-light); margin: 1rem 0 1.5rem; }
.cx-left h2 em { color: var(--accent-on-light); }
.cx-left p { color: var(--muted-on-light); font-size: 1rem; line-height: 1.8; margin-bottom: 1.8rem; }

.badge-pill {
    display: inline-block;
    background: var(--grad);
    color: var(--dark-bg);
    padding: 0.55rem 1.5rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.cx-stat-card {
    background: var(--light-surface);
    border: 1.5px solid var(--light-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: 0 8px 40px rgba(0,0,0,.06);
}
.cx-icon-wrap { font-size: 4rem; text-align: center; margin-bottom: 2rem; }
.cx-stats { display: flex; flex-direction: column; gap: 1.5rem; }
.cx-stat { display: flex; flex-direction: column; }
.cx-stat strong {
    font-family: 'Syne', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.cx-stat span { font-size: 0.85rem; color: var(--muted-on-light); }

.pipeline-label {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-on-light);
    margin-bottom: 2rem;
    text-align: center;
}

.pipeline {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.pipe-step {
    background: var(--light-surface);
    border: 1.5px solid var(--light-border);
    border-radius: var(--radius-md);
    padding: 1.8rem 1.5rem;
    text-align: center;
    flex: 1;
    min-width: 160px;
    transition: all 0.35s cubic-bezier(.34,1.56,.64,1);
}
.pipe-step:hover {
    border-color: rgba(61,155,155,.45);
    box-shadow: 0 10px 30px rgba(61,155,155,.12);
    transform: translateY(-6px);
}

.pipe-num {
    width: 44px; height: 44px;
    background: var(--grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 auto 1rem;
}

.pipe-step h4 { color: var(--accent-on-light); margin-bottom: 0.4rem; }
.pipe-step p { color: var(--muted-on-light); font-size: 0.82rem; line-height: 1.55; }

.pipe-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    color: rgba(61,155,155,.5);
    font-size: 0.9rem;
    flex-shrink: 0;
}

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

.cx-feat {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--light-surface);
    border: 1.5px solid var(--light-border);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    transition: all 0.35s cubic-bezier(.34,1.56,.64,1);
}
.cx-feat:hover {
    border-color: rgba(61,155,155,.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(61,155,155,.1);
}

.cx-check {
    width: 36px; height: 36px;
    background: var(--grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    font-weight: 900;
    font-size: 1rem;
    flex-shrink: 0;
}

.cx-feat h3 { color: var(--text-on-light); margin-bottom: 0.4rem; font-size: 1rem; }
.cx-feat p { color: var(--muted-on-light); font-size: 0.85rem; line-height: 1.65; }

/* ===== CTA SECTION ===== */
.cta-section { padding: 8rem 0; position: relative; overflow: hidden; }

.cta-box {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(90,200,200,.2);
    border-radius: var(--radius-xl);
    padding: 5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}
.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(90,200,200,.12) 0%, transparent 60%);
}

.cta-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    border: 1.5px solid rgba(90,200,200,.4);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.cta-box h2 {
    color: var(--text-on-dark);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}
.cta-box p {
    color: var(--muted-on-dark);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CONTACT ===== */
.contact { padding: 8rem 0; }

.contact-form {
    background: var(--light-surface);
    border: 1.5px solid var(--light-border);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: 0 10px 50px rgba(0,0,0,.06);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { margin-bottom: 1.2rem; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-on-light);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--light-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-on-light);
    background: var(--light-bg);
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #94a3b8; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(61,155,155,.15);
    background: #fff;
}

.form-group textarea { min-height: 140px; resize: vertical; }
.form-group select { cursor: pointer; }
.form-group select option { background: #fff; color: var(--text-on-light); }

.error-message {
    display: none;
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.3rem;
}
.form-group.error input,
.form-group.error textarea,
.form-group.error select { border-color: #ef4444; }
.form-group.error .error-message { display: block; }

.btn-submit {
    width: 100%;
    padding: 1.1rem;
    background: var(--grad);
    color: var(--dark-bg);
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(61,155,155,.3);
}
.btn-submit:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 8px 35px rgba(61,155,155,.5); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    display: none;
    animation: fadeInUp 0.4s ease;
}
.form-message.success {
    display: block;
    background: rgba(74,222,128,.1);
    color: #16a34a;
    border: 1px solid rgba(74,222,128,.3);
}
.form-message.error {
    display: block;
    background: rgba(239,68,68,.1);
    color: #dc2626;
    border: 1px solid rgba(239,68,68,.3);
}

/* ===== FOOTER ===== */
.site-footer { padding: 4rem 0 2.5rem; border-top: 1px solid rgba(90,200,200,.12); }
.footer-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.footer-logo { height: 36px; width: auto; }
.footer-brand span {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-on-dark);
}
.footer-tagline { color: var(--muted-on-dark); font-size: 0.9rem; }
.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a {
    text-decoration: none;
    color: var(--muted-on-dark);
    font-size: 0.88rem;
    transition: color 0.3s;
}
.footer-nav a:hover { color: var(--cyan); }
.footer-copy {
    color: rgba(122,143,163,.5);
    font-size: 0.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(90,200,200,.08);
    width: 100%;
}

/* ===== WHATSAPP ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,.45);
    transition: all 0.3s cubic-bezier(.34,1.56,.64,1);
    z-index: 999;
    animation: slideInUp 0.6s ease-out 0.8s both;
}
.whatsapp-btn:hover { transform: scale(1.15); box-shadow: 0 8px 35px rgba(37,211,102,.6); }

/* ===== SCROLL ANIMATIONS ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--d, 0s);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--d, 0s);
}
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--d, 0s);
}
.revealed {
    opacity: 1 !important;
    transform: none !important;
}

/* Delay helpers for h1 */
.d1 { transition-delay: 0.1s !important; }
.d2 { transition-delay: 0.2s !important; }
.d3 { transition-delay: 0.35s !important; }
.d4 { transition-delay: 0.5s !important; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
    .cx-features { grid-template-columns: repeat(2, 1fr); }
    .cx-split { grid-template-columns: 1fr; gap: 3rem; }
    .pipeline { flex-direction: column; }
    .pipe-arrow { transform: rotate(90deg); margin: -0.3rem auto; }
    .pipe-step { min-width: auto; width: 100%; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 5%; }
    .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; }
    .feat-item { gap: 1.5rem; }
    .feat-num { font-size: 2.5rem; min-width: 60px; }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: fixed;
        top: 70px; left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        z-index: 1000;
    }
    nav ul li a {
        display: block;
        padding: 0.9rem 5%;
        border-bottom: 1px solid;
    }
    header.header-dark nav ul {
        background: rgba(9,17,26,.97);
        border-bottom: 1px solid rgba(90,200,200,.15);
    }
    header.header-dark nav ul li a { border-color: rgba(90,200,200,.08); }
    header.header-light nav ul {
        background: rgba(248,250,252,.97);
        border-bottom: 1px solid var(--light-border);
        box-shadow: 0 10px 30px rgba(0,0,0,.08);
    }
    header.header-light nav ul li a { border-color: var(--light-border); }
    nav ul.active { display: flex; }

    .hamburger { display: flex; }
    .cta-button { display: none; }

    .solutions-grid,
    .cx-features { grid-template-columns: 1fr; }

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

    .hero-stats { flex-wrap: wrap; gap: 1.2rem; }
    .stat-sep { display: none; }

    .cta-box { padding: 3rem 2rem; }
    .contact-form { padding: 2rem 1.5rem; }

    .feat-item:hover { padding-left: 0; }
}

@media (max-width: 500px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero-inner { padding: 3rem 5%; }
    .solutions, .features, .currenxia, .contact, .cta-section { padding: 5rem 0; }

    .footer-nav { gap: 1rem; }

    .whatsapp-btn { bottom: 18px; right: 18px; width: 52px; height: 52px; font-size: 1.5rem; }

    .dash-card { font-size: 0.9em; }
}
