/* ═══════════════════════════════════════════════════════════════════════════
   NexoFiber — style.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Custom properties ─────────────────────────────────────────────────── */
:root {
    --clr-primary:     #00b4d8;
    --clr-primary-dk:  #0077b6;
    --clr-accent:      #00e5ff;
    --clr-dark:        #0a0f1e;
    --clr-dark-mid:    #0d2137;
    --clr-dark-card:   #111827;
    --clr-text:        #1e293b;
    --clr-text-light:  #e2e8f0;
    --clr-text-muted:  #64748b;
    --clr-bg-white:    #ffffff;
    --clr-bg-gray:     #f0f4f8;
    --clr-success:     #22c55e;
    --clr-warning:     #f59e0b;
    --clr-border:      #e2e8f0;
    --clr-border-dk:   #1e3a5f;

    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:  0 4px 24px rgba(0,0,0,.08);
    --shadow-lg:  0 10px 40px rgba(0,0,0,.12);
    --shadow-glow: 0 0 30px rgba(0,180,216,.25);

    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 20px;

    --transition: 0.25s ease;
    --header-h:  72px;
}

/* ── 2. Base ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background: var(--clr-bg-white);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    margin: 0;
    line-height: 1.2;
    color: inherit;
}

p { margin: 0 0 1rem; }
img, svg { max-width: 100%; display: block; }
a { color: var(--clr-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-primary-dk); }

/* ── 3. Layout ────────────────────────────────────────────────────────────── */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-light { background: var(--clr-bg-white); }
.section-gray  { background: var(--clr-bg-gray); }

/* ── 4. Typography helpers ────────────────────────────────────────────────── */
.section-label {
    font-family: var(--font-display);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--clr-primary);
    margin-bottom: .75rem;
    text-align: center;
}.section-label.align-left {
    text-align: left;
}
.section-label.light { color: var(--clr-accent); }

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    color: var(--clr-text);
    margin-bottom: 1rem;
}
.section-title.light { color: var(--clr-text-light); }
.section-title.left  { text-align: left; }

.section-subtitle {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    text-align: center;
    margin-bottom: 3rem;
}
.section-subtitle.light { color: var(--clr-text-light); opacity: .8; }
.section-subtitle.left  { text-align: left; }

.section-text {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* ── 5. Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), box-shadow var(--transition),
                transform var(--transition);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
}
.btn-primary:hover {
    background: var(--clr-primary-dk);
    border-color: var(--clr-primary-dk);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--clr-text-light);
    border-color: rgba(255,255,255,.4);
}
.btn-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.7);
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    color: var(--clr-text-light);
    border-color: rgba(255,255,255,.35);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-color: rgba(255,255,255,.65);
}

.btn-large { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ── 6. Header ────────────────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
    background: rgba(10,15,30,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.header-inner {
    display: flex;
    align-items: center;
    height: var(--header-h);
    gap: 2rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}
.logo svg { flex-shrink: 0; }
.logo img {
    height: 36px;
    width: auto;
    flex-shrink: 0;
    display: block;
    transition: filter var(--transition), opacity var(--transition);
}
.logo:hover { color: var(--clr-accent); }
.logo:hover img {
    filter: brightness(1.15) drop-shadow(0 0 6px rgba(0,229,255,.45));
}

/* Nav */
#main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}
#main-nav ul {
    display: flex;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
#main-nav ul li a {
    display: block;
    padding: .5rem .9rem;
    color: rgba(255,255,255,.75);
    font-size: .9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
#main-nav ul li a:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    gap: .2rem;
}
.lang-switcher a {
    font-size: .75rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: rgba(255,255,255,.5);
    padding: .2rem .4rem;
    border-radius: 4px;
    letter-spacing: .04em;
    transition: color var(--transition), background var(--transition);
}
.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--clr-accent);
    background: rgba(0,229,255,.1);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}
.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── 7. Hero ──────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: var(--header-h) 0 0;
}

/* Animated gradient background */
.parallax-hero {
    background: linear-gradient(-45deg, #0a0f1e, #0d2137, #071a30, #060e1c);
    background-size: 400% 400%;
    animation: hero-gradient 18s ease infinite;
}

@keyframes hero-gradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Particle canvas area */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .18;
    animation: blob-drift 20s ease-in-out infinite alternate;
}
.hero-particles::before {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    background: var(--clr-primary);
}
.hero-particles::after {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: 10%;
    background: var(--clr-accent);
    animation-delay: -10s;
    animation-duration: 15s;
}

@keyframes blob-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(60px, 40px) scale(1.15); }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 80px 24px;
}

.hero-content { color: var(--clr-text-light); }

.hero-title {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 700;
    background: linear-gradient(135deg, #fff 20%, var(--clr-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    color: rgba(255,255,255,.8);
    margin-bottom: .75rem;
    line-height: 1.4;
}

.hero-text {
    font-size: 1rem;
    color: rgba(255,255,255,.55);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Dashboard mockup */
.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.dashboard-mockup {
    width: 100%;
    max-width: 480px;
    background: rgba(13,33,55,.8);
    border: 1px solid var(--clr-border-dk);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,.5), 0 0 60px rgba(0,180,216,.1);
    backdrop-filter: blur(10px);
}

.dash-topbar {
    height: 28px;
    background: rgba(10,15,30,.6);
    border-bottom: 1px solid var(--clr-border-dk);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
}
.dash-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
}

.dash-sidebar {
    position: absolute;
    left: 0;
    top: 28px;
    bottom: 0;
    width: 44px;
    background: rgba(10,15,30,.5);
    border-right: 1px solid var(--clr-border-dk);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
}

.dashboard-mockup { position: relative; }
.dash-content {
    margin-left: 44px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
}

.dash-item {
    width: 26px;
    height: 5px;
    background: rgba(255,255,255,.12);
    border-radius: 3px;
}
.dash-item.active {
    background: var(--clr-primary);
    box-shadow: 0 0 8px var(--clr-primary);
}

.dash-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius-sm);
    padding: 14px;
}
.dash-card.large { flex: 1; }

.dash-pulse {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,180,216,.15);
    border: 2px solid var(--clr-primary);
    margin-bottom: 10px;
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,180,216,.4); }
    50%       { box-shadow: 0 0 0 8px rgba(0,180,216,0); }
}

.dash-lines { display: flex; flex-direction: column; gap: 6px; }
.dash-line {
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,.12);
}
.dash-line.w80 { width: 80%; }
.dash-line.w60 { width: 60%; }
.dash-line.w90 { width: 90%; }
.dash-line.accent { background: rgba(0,180,216,.4); }

.dash-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.dash-card.small { padding: 10px; }

.dash-stat {
    height: 28px;
    border-radius: 4px;
    animation: bar-grow 2s ease-out forwards;
    transform-origin: bottom;
}
.dash-stat.green  { background: linear-gradient(to top, #22c55e, #4ade80); height: 20px; }
.dash-stat.blue   { background: linear-gradient(to top, var(--clr-primary), var(--clr-accent)); height: 28px; }
.dash-stat.orange { background: linear-gradient(to top, #f59e0b, #fcd34d); height: 16px; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.4);
    animation: bounce-down 2s ease-in-out infinite;
    z-index: 2;
}
@keyframes bounce-down {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── 8. About / Stats ─────────────────────────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--clr-bg-gray);
    border: 1px solid var(--clr-border);
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--clr-primary);
    line-height: 1;
    margin-bottom: .5rem;
}

.stat-lbl {
    display: block;
    font-size: .9rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

/* ── 9. Modules ───────────────────────────────────────────────────────────── */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.module-card {
    background: var(--clr-bg-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.module-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--clr-primary);
}

.module-icon {
    width: 52px;
    height: 52px;
    background: rgba(0,180,216,.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--clr-primary);
    transition: background var(--transition);
}
.module-card:hover .module-icon {
    background: rgba(0,180,216,.18);
}
.module-icon svg { width: 26px; height: 26px; }

.module-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: .75rem;
}

.module-card p {
    font-size: .9rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.module-link {
    font-size: .875rem;
    font-weight: 600;
    color: var(--clr-primary);
    display: inline-block;
}
.module-link:hover { color: var(--clr-primary-dk); }

/* ── 10. Parallax dark sections ───────────────────────────────────────────── */
.parallax-dark {
    background-color: var(--clr-dark);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(0,119,182,.25) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0,180,216,.15) 0%, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--clr-text-light);
}

/* ── 11. Features grid ────────────────────────────────────────────────────── */
.features-section { padding: 120px 0; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

.feature-item {
    padding: 2rem;
    border: 1px solid var(--clr-border-dk);
    border-radius: var(--radius);
    background: rgba(255,255,255,.03);
    transition: background var(--transition), border-color var(--transition);
}
.feature-item:hover {
    background: rgba(0,180,216,.07);
    border-color: rgba(0,180,216,.4);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(0,180,216,.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    margin-bottom: 1.25rem;
}
.feature-icon svg { width: 24px; height: 24px; }

.feature-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-text-light);
    margin-bottom: .6rem;
}

.feature-item p {
    font-size: .875rem;
    color: rgba(226,232,240,.6);
    line-height: 1.6;
    margin: 0;
}

/* ── 12. Vendors ──────────────────────────────────────────────────────────── */
.vendors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.vendor-badge {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 2rem;
    background: var(--clr-bg-gray);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-text);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.vendor-badge svg { width: 28px; height: 28px; color: var(--clr-primary); }
.vendor-badge:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--clr-primary);
    transform: translateY(-2px);
}

/* ── 13. Text + Visual sections ───────────────────────────────────────────── */
.tv-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.text-visual-section.reversed .tv-inner {
    direction: rtl;
}
.text-visual-section.reversed .tv-inner > * {
    direction: ltr;
}

.tv-text .section-label { display: block; margin-bottom: .5rem; }

.tv-text p {
    color: var(--clr-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Checklist */
.check-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.check-list li {
    padding-left: 1.75rem;
    position: relative;
    font-size: .95rem;
    color: var(--clr-text-muted);
}
.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .4em;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0,180,216,.15);
    border: 2px solid var(--clr-primary);
}
.check-list li::after {
    content: '';
    position: absolute;
    left: 4px;
    top: .65em;
    width: 6px;
    height: 4px;
    border-left: 2px solid var(--clr-primary);
    border-bottom: 2px solid var(--clr-primary);
    transform: rotate(-45deg);
}

/* Terminal mockup */
.terminal-mockup {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    font-family: 'Courier New', Courier, monospace;
}

.term-header {
    height: 32px;
    background: #161b22;
    border-bottom: 1px solid #30363d;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
}

.term-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.term-dot.red    { background: #ff5f57; }
.term-dot.yellow { background: #ffbd2e; }
.term-dot.green  { background: #28ca41; }

.term-body {
    padding: 16px 20px;
    font-size: .82rem;
    line-height: 1.8;
}

.term-line { color: #c9d1d9; white-space: nowrap; overflow: hidden; }
.term-line.output { padding-left: 1rem; }

.term-prompt { color: var(--clr-accent); margin-right: .5rem; }
.term-key { color: #8b949e; }
.term-val { color: #79c0ff; }
.term-val.green  { color: #3fb950; }
.term-val.blue   { color: #79c0ff; }

.blink-cursor {
    color: var(--clr-accent);
    animation: blink 1.2s step-end infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Map mockup */
.map-mockup {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--clr-border);
}

.map-bg {
    background: #1a2537;
    padding: 0;
    line-height: 0;
}
.map-bg svg { width: 100%; }

/* ── 14. Pricing ──────────────────────────────────────────────────────────── */
.pricing-section { padding: 120px 0; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
    align-items: start;
}

.pricing-card {
    min-height: 472px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--clr-border-dk);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    position: relative;
    transition: border-color var(--transition), background var(--transition);
    text-align: center;
}
.pricing-card:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(0,180,216,.4);
}

.pricing-card.featured {
    background: rgba(0,180,216,.1);
    border-color: var(--clr-primary);
    box-shadow: 0 0 40px rgba(0,180,216,.2);
    transform: scale(1.04);
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-primary);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: .06em;
    padding: .3rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

.plan-header h3 {
    font-size: 1.35rem;
    color: var(--clr-text-light);
    margin-bottom: .25rem;
}
.plan-desc {
    font-size: .85rem;
    color: rgba(226,232,240,.5);
    margin-bottom: 1.5rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .25rem;
    margin-bottom: 2rem;
}
.price {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--clr-accent);
    line-height: 1;
}
.price-custom { font-size: 2rem; }
.period {
    font-size: .95rem;
    color: rgba(226,232,240,.5);
}

.plan-features {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.plan-features li {
    font-size: .9rem;
    color: rgba(226,232,240,.75);
    padding-left: 1.5rem;
    position: relative;
}
.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--clr-success);
    font-weight: 700;
}

/* ── 15. Contact form ─────────────────────────────────────────────────────── */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.form-group.full { margin-bottom: 1.25rem; }

.form-group label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--clr-text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: .75rem 1rem;
    background: var(--clr-bg-gray);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--clr-text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(0,180,216,.15);
}
.form-group textarea { resize: vertical; line-height: 1.6; }

/* Honeypot — must be visually hidden but not display:none (bots can detect that) */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    tab-size: -1;
}

.form-submit { text-align: center; margin-top: 1.5rem; }

.form-feedback {
    margin-top: 1.25rem;
    text-align: center;
    font-size: .95rem;
    min-height: 1.5rem;
    border-radius: var(--radius-sm);
    padding: .6rem 1rem;
    display: none;
}
.form-feedback.success {
    display: block;
    background: rgba(34,197,94,.1);
    color: #15803d;
    border: 1px solid rgba(34,197,94,.3);
}
.form-feedback.error {
    display: block;
    background: rgba(239,68,68,.08);
    color: #dc2626;
    border: 1px solid rgba(239,68,68,.2);
}

/* ── 16. Footer ───────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--clr-dark);
    color: rgba(226,232,240,.65);
    padding: 72px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-brand .logo { margin-bottom: 1rem; color: #fff; }

.footer-brand p {
    font-size: .9rem;
    line-height: 1.6;
    max-width: 280px;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h5 {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.footer-col ul li a {
    font-size: .9rem;
    color: rgba(226,232,240,.5);
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--clr-accent); }

.footer-bottom {
    padding: 1.5rem 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: .85rem;
    color: rgba(226,232,240,.3);
    margin: 0;
}

.footer-bottom .lang-switcher a {
    color: rgba(255,255,255,.3);
}

/* ── Back to top ──────────────────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--clr-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,180,216,.4);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, background .2s ease, box-shadow .2s ease;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.back-to-top:hover {
    background: var(--clr-primary-dk);
    box-shadow: 0 6px 28px rgba(0,180,216,.55);
}
@media (max-width: 480px) {
    .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px; }
}

/* ── 17. Animations (scroll-driven) ──────────────────────────────────────── */
.animate-fade-up,
.animate-fade-left,
.animate-fade-right {
    opacity: 0;
    transition: opacity .7s ease, transform .7s ease;
}

.animate-fade-up    { transform: translateY(32px); }
.animate-fade-left  { transform: translateX(40px); }
.animate-fade-right { transform: translateX(-40px); }

.animate-fade-up.visible,
.animate-fade-left.visible,
.animate-fade-right.visible {
    opacity: 1;
    transform: none;
}

/* Stagger children inside a parent with .stagger-children class */
.stagger-children > *:nth-child(1) { transition-delay: .0s; }
.stagger-children > *:nth-child(2) { transition-delay: .1s; }
.stagger-children > *:nth-child(3) { transition-delay: .2s; }
.stagger-children > *:nth-child(4) { transition-delay: .3s; }
.stagger-children > *:nth-child(5) { transition-delay: .4s; }
.stagger-children > *:nth-child(6) { transition-delay: .5s; }

/* ── 18. Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    :root { --header-h: 64px; }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding: 60px 24px 80px;
    }
    .hero-visual { justify-content: center; }
    .hero-text { margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }

    .tv-inner { grid-template-columns: 1fr; gap: 3rem; }
    .text-visual-section.reversed .tv-inner { direction: ltr; }

    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
    .pricing-card.featured { transform: none; }

    .stats-row { grid-template-columns: 1fr; }

    .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 72px 0; }
    .features-section, .pricing-section { padding: 80px 0; }
    .modules-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    /* Mobile nav */
    .hamburger { display: flex; }
    .header-actions .nav-cta { display: none; }

    #main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(10,15,30,.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1.5rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,.08);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition), opacity var(--transition);
    }
    #main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    #main-nav ul {
        flex-direction: column;
        gap: .25rem;
    }
    #main-nav ul li a {
        padding: .75rem 1rem;
        font-size: 1rem;
    }

    /* Disable background-attachment:fixed on mobile (performance) */
    .parallax-dark {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 3rem; }
    .vendor-badge { padding: .75rem 1.25rem; font-size: 1rem; }
    .footer-links { grid-template-columns: 1fr; }
}

/* ── Module links (ocultos hasta habilitar contenido) ─────────────────────── */
.module-link { display: none; }

/* ── Login button ─────────────────────────────────────────────────────────── */
.btn-login {
    padding: .45rem .7rem;
    font-size: .85rem;
    border-color: rgba(255,255,255,.28);
    color: rgba(255,255,255,.75);
    gap: .35rem;
    line-height: 1;
}
.btn-login:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    background: rgba(0,229,255,.07);
    transform: none;
}
.btn-login svg { flex-shrink: 0; }

/* ── Subpage hero ─────────────────────────────────────────────────────────── */
.subpage-hero {
    background: linear-gradient(135deg, var(--clr-dark) 0%, var(--clr-dark-mid) 100%);
    padding: calc(var(--header-h) + 4rem) 0 4rem;
    text-align: center;
}
.subpage-hero .section-label  { margin-bottom: .75rem; }
.subpage-hero .section-title  { margin-bottom: 1rem; }
.subpage-hero .section-subtitle { margin-bottom: 0; }

/* ── FAQ accordion ────────────────────────────────────────────────────────── */
.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.faq-item {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--clr-bg-white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item[open] {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(0,180,216,.08);
}
.faq-item summary {
    padding: 1.25rem 3rem 1.25rem 1.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-text);
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
    transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--clr-primary);
    border-bottom: 2px solid var(--clr-primary);
    transform: translateY(-70%) rotate(45deg);
    transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item[open] summary        { color: var(--clr-primary); }
.faq-answer {
    padding: 0 1.5rem 1.25rem;
    border-top: 1px solid var(--clr-border);
}
.faq-answer p {
    font-size: .95rem;
    color: var(--clr-text-muted);
    line-height: 1.75;
    margin: .75rem 0 0;
}

/* ── Prose (Terms / Privacy) ──────────────────────────────────────────────── */
.prose {
    max-width: 780px;
    margin: 0 auto;
}
.prose h2 {
    font-size: 1.4rem;
    color: var(--clr-text);
    margin: 2.5rem 0 .75rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--clr-border);
}
.prose h3 {
    font-size: 1.05rem;
    color: var(--clr-text);
    margin: 1.5rem 0 .5rem;
}
.prose p, .prose li {
    font-size: .975rem;
    color: var(--clr-text-muted);
    line-height: 1.8;
}
.prose ul, .prose ol {
    margin: 0 0 1rem 1.5rem;
    padding: 0;
}
.prose ul li, .prose ol li { margin-bottom: .4rem; }
.prose strong { color: var(--clr-text); font-weight: 600; }
.prose .effective-date {
    font-size: .9rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    padding: .75rem 1.25rem;
    background: var(--clr-bg-gray);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--clr-primary);
}

/* ── Auth card (register, login, verify-email) ────────────────────────────── */
.auth-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--clr-bg-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 32px rgba(0,0,0,.06);
}

.auth-card .auth-icon {
    width: 56px;
    height: 56px;
    background: rgba(0,180,216,.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    margin: 0 auto 1.25rem;
}

.auth-card .auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-text);
    text-align: center;
    margin-bottom: .35rem;
}

.auth-card .auth-subtitle {
    font-size: .95rem;
    color: var(--clr-text-muted);
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-card .form-group input,
.auth-card .form-group select {
    background: var(--clr-bg-gray);
}

.auth-card .form-group select {
    width: 100%;
    padding: .75rem 1rem;
    background: var(--clr-bg-gray);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--clr-text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
    cursor: pointer;
}
.auth-card .form-group select:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(0,180,216,.15);
}

.auth-card .form-check {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-bottom: 1.25rem;
}
.auth-card .form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: .15rem;
    accent-color: var(--clr-primary);
    cursor: pointer;
}
.auth-card .form-check label {
    font-size: .875rem;
    color: var(--clr-text-muted);
    line-height: 1.5;
    cursor: pointer;
}
.auth-card .form-check label a {
    color: var(--clr-primary);
    text-decoration: none;
}
.auth-card .form-check label a:hover { text-decoration: underline; }

.auth-card .form-submit .btn { width: 100%; justify-content: center; }

.auth-card .auth-footer {
    margin-top: 1.25rem;
    text-align: center;
    font-size: .875rem;
    color: var(--clr-text-muted);
}
.auth-card .auth-footer a {
    color: var(--clr-primary);
    font-weight: 600;
    text-decoration: none;
}
.auth-card .auth-footer a:hover { text-decoration: underline; }

/* success/error state card */
.auth-card--centered { text-align: center; }
.auth-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.auth-card__icon--success { background: rgba(34,197,94,.12); color: #16a34a; }
.auth-card__icon--error   { background: rgba(239,68,68,.10);  color: #dc2626; }
.auth-card__icon--warning { background: rgba(234,179,8,.12);  color: #ca8a04; }

.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: .5rem;
}
.auth-card p { color: var(--clr-text-muted); font-size: .95rem; line-height: 1.65; }
.auth-card .btn-back { margin-top: 1.5rem; }

/* ── Login placeholder ────────────────────────────────────────────────────── */
.login-shell {
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--clr-bg-gray);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
}
.login-shell .login-icon {
    width: 64px;
    height: 64px;
    background: rgba(0,180,216,.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    margin: 0 auto 1.5rem;
}
.login-shell h1 {
    font-size: 1.75rem;
    color: var(--clr-text);
    margin-bottom: .5rem;
}
.login-shell p {
    color: var(--clr-text-muted);
    font-size: .95rem;
    margin: 0;
}

/* ── Pricing comparison strip ───────────────────────────────────────────── */
.pricing-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.compare-col {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}
.compare-col.compare-us {
    background: rgba(0,180,216,.1);
    border-color: var(--clr-primary);
    box-shadow: 0 0 28px rgba(0,180,216,.18);
}

.compare-brand {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: rgba(226,232,240,.45);
    margin-bottom: .2rem;
}
.compare-col.compare-us .compare-brand { color: var(--clr-accent); }

.compare-sub {
    display: block;
    font-size: .75rem;
    color: rgba(226,232,240,.3);
    margin-bottom: 1rem;
    font-style: italic;
}
.compare-col.compare-us .compare-sub { color: rgba(0,229,255,.55); font-style: normal; }

.compare-features {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.compare-features li {
    font-size: .85rem;
    padding-left: 1.4rem;
    position: relative;
}
.compare-features li::before {
    position: absolute;
    left: 0;
    font-weight: 700;
    font-size: .8rem;
}
.compare-features li.yes { color: rgba(226,232,240,.8); }
.compare-features li.yes::before { content: '\2713'; color: var(--clr-success); }
.compare-features li.no  { color: rgba(226,232,240,.25); text-decoration: line-through; }
.compare-features li.no::before  { content: '\2715'; color: #ef4444; }

.compare-price-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: .85rem;
    font-weight: 700;
    padding: .3rem .85rem;
    border-radius: 999px;
    margin-top: .25rem;
}
.compare-them .compare-price-tag {
    background: rgba(255,255,255,.06);
    color: rgba(226,232,240,.4);
}
.compare-us .compare-price-tag {
    background: var(--clr-primary);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0,180,216,.35);
}

.compare-vs {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: rgba(226,232,240,.2);
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .pricing-compare {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    .compare-vs { margin: -.25rem 0; }
}
