/* ============================================================
   REDESIGN 2026 — Skynext premium layer
   Linked AFTER styles.css; overrides win by source order.
   Direction: neutral 90% + green accent <10%, gradient quarantined
   to the hero, Sora/JetBrains type system (shared with Academy),
   neutral layered shadows, AA contrast, global focus-visible.
   ============================================================ */

/* ---- Type system (shared with Academy) ---- */
:root {
    --font-display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body:    'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

/* ---- Dark theme tokens (default) ---- */
:root {
    --accent: #22c55e;
    --accent-strong: #16a34a;
    --accent-text: #34d399;
    --on-accent: #06140c;
    --bg: #0a0b0d;
    --surface: #101417;
    --elevated: #161b1f;
    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.16);
    --text: #f4f6f5;
    --text-2: rgba(244,246,245,0.74);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.40), 0 1px 1px rgba(0,0,0,.28);
    --shadow-md: 0 2px 4px rgba(0,0,0,.30), 0 10px 20px rgba(0,0,0,.30);
    --shadow-lg: 0 14px 28px rgba(0,0,0,.42), 0 28px 56px rgba(0,0,0,.40);
    --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-full: 999px;
    --primary-color: var(--accent);
    --primary-dark: var(--accent-strong);
    --bg-primary: var(--bg);
    --bg-secondary: var(--surface);
    --text-primary: var(--text);
    --text-secondary: var(--text-2);
    --text-muted: rgba(244,246,245,0.52);
    --border-color: var(--border);
    --border-hover: var(--border-strong);
    --shadow-light: rgba(0,0,0,.40);
    --backdrop-blur: rgba(10,11,13,.82);
    --card-hover-bg: rgba(255,255,255,.03);
}

/* ---- Light theme tokens (neutral, not green) ---- */
[data-theme="light"] {
    --accent: #16a34a;
    --accent-strong: #15803d;
    --accent-text: #15803d;
    --on-accent: #06140c;
    --bg: #ffffff;
    --surface: #ffffff;
    --elevated: #f8fafc;
    --border: #e6e8eb;
    --border-strong: #d3d7dc;
    --text: #0f1115;
    --text-2: #475569;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
    --shadow-md: 0 2px 4px rgba(15,23,42,.06), 0 10px 22px rgba(15,23,42,.08);
    --shadow-lg: 0 14px 30px rgba(15,23,42,.12), 0 28px 54px rgba(15,23,42,.10);
    --primary-color: var(--accent);
    --primary-dark: var(--accent-strong);
    --bg-primary: var(--bg);
    --bg-gradient: var(--bg);
    --bg-secondary: var(--surface);
    --text-primary: var(--text);
    --text-secondary: var(--text-2);
    --text-muted: #64748b;
    --border-color: var(--border);
    --border-hover: var(--border-strong);
    --shadow-light: rgba(15,23,42,.10);
    --backdrop-blur: rgba(255,255,255,.85);
    --card-hover-bg: rgba(15,23,42,.02);
}

body { font-family: var(--font-body); letter-spacing: -0.01em; }
[data-theme="light"] body { background: var(--bg); background-attachment: initial; }

/* Quarantine gradient: kill the page-wide watermark, add ONE hero glow */
body::before { opacity: 0.04 !important; }
.hero { overflow: hidden; }
.hero::after {
    content: ''; position: absolute; top: -8%; left: 50%;
    width: min(920px, 92vw); height: 560px; transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(34,197,94,0.22), transparent 62%);
    filter: blur(44px); z-index: 0; pointer-events: none;
}
[data-theme="light"] .hero::after { background: radial-gradient(ellipse at center, rgba(34,197,94,0.15), transparent 62%); }
.hero .container { position: relative; z-index: 1; }

/* ---- Typography ---- */
.hero h1 {
    font-family: var(--font-display); font-weight: 700;
    background: none !important; -webkit-text-fill-color: currentColor !important;
    color: var(--text) !important; letter-spacing: -0.035em; line-height: 1.04;
}
.hero h1 .accent { color: var(--accent-text); -webkit-text-fill-color: var(--accent-text); }
.section-title, .about-text h2, .contact-info h2, .academy-featured-title,
.process-step h3, .service-card h3, .cta-band h2 { font-family: var(--font-display); letter-spacing: -0.025em; }
.stat-number { font-family: var(--font-mono); letter-spacing: -0.02em; color: var(--accent-text); }
.hero-badge, .section-badge, .stat-label, .nav-badge-new { font-family: var(--font-mono); }

/* ---- Buttons: solid accent fill + near-black label + neutral shadow ---- */
.btn-primary, .cta-nav {
    background: var(--accent) !important; color: var(--on-accent) !important;
    box-shadow: var(--shadow-sm); border-radius: var(--r-sm); font-weight: 600;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary:hover, .cta-nav:hover { background: var(--accent-strong) !important; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { border-radius: var(--r-sm); border: 1px solid var(--border-strong); color: var(--text); background: transparent; }
.btn-secondary:hover { background: var(--surface); border-color: var(--accent); }

/* ---- Demote green: neutral surfaces for icon tiles / steps / dividers ---- */
.service-icon, .value-prop-icon {
    background: var(--surface) !important; border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
}
.service-icon svg, .value-prop-icon svg { stroke: var(--accent-text); }
.step-number {
    background: var(--surface) !important; color: var(--accent-text);
    border: 1px solid var(--border-strong); font-family: var(--font-mono);
    box-shadow: 0 0 0 6px var(--bg);
}
[data-theme="light"] .step-number { box-shadow: 0 0 0 6px var(--bg); }
.stat-divider { background: var(--border-strong); }
.process-grid-wrapper::before { background: var(--border) !important; }

/* badges -> neutral chip + accent text */
.hero-badge, .section-badge {
    background: var(--surface); border: 1px solid var(--border);
    color: var(--accent-text); border-radius: var(--r-full);
}
.nav-badge-new { background: var(--accent); color: var(--on-accent); }

/* cards / stats / forms -> flat neutral surface + 1px border */
.service-card, .stat-item, .value-prop-card, .contact-form, .academy-feature {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
}
.service-card { box-shadow: var(--shadow-sm); }
.service-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card::before { display: none !important; }
.stat-item:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.value-prop-title, .gp-badge-subtitle, .academy-featured-category { color: var(--accent-text); }
.footer-brand h3 { color: var(--text); font-family: var(--font-display); }

/* radius tokens */
.cta-nav, .btn-primary, .btn-secondary, .social-link,
.contact-form input, .contact-form textarea, .contact-form select { border-radius: var(--r-sm); }
.service-card, .stat-item, .value-prop-card, .contact-form,
.academy-featured, .academy-feature, .notification { border-radius: var(--r-md); }

/* Light theme: clean white sections cover the fixed video; video stays in the hero only */
[data-theme="light"] .services, [data-theme="light"] .about,
[data-theme="light"] .process, [data-theme="light"] .contact,
[data-theme="light"] footer, [data-theme="light"] .academy,
[data-theme="light"] .trust-strip, [data-theme="light"] .testimonials,
[data-theme="light"] .faq, [data-theme="light"] .cta-band { background: var(--bg) !important; }
[data-theme="light"] .hero-video { position: absolute; height: 100vh; bottom: auto; }
/* Dark theme: academy is transparent so the fixed video shows through it too */
.academy { background: transparent; }

/* Section rhythm: hairline dividers */
.services, .about, .process, .contact, .testimonials, .faq, .cta-band { border-top: 1px solid var(--border); }

/* ---- Accessibility: global focus-visible ring ---- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible,
.btn-primary:focus-visible, .btn-secondary:focus-visible, .cta-nav:focus-visible,
.nav-links a:focus-visible, .chat-float:focus-visible, .theme-toggle:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}

/* Chat + decorative accents: flat accent fill, near-black glyphs */
.chat-float, .chat-header, .chat-send-btn { background: var(--accent) !important; }
.chat-float { color: var(--on-accent); box-shadow: var(--shadow-md); }
.chat-msg-user .chat-msg-bubble { background: var(--accent) !important; color: var(--on-accent) !important; }
.theme-toggle { background: var(--surface); border: 1px solid var(--border); color: var(--text); }

/* ============ New components ============ */

/* Trust strip */
.trust-strip { padding: 40px 0 8px; }
.trust-strip-label { text-align: center; font-family: var(--font-mono); font-size: 12px;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 22px; }
.trust-logos { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: stretch; }

/* Testimonials */
.testimonials { padding: 120px 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,320px), 1fr)); gap: 24px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
    padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.testimonial-quote { font-size: 16px; line-height: 1.6; color: var(--text); }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: var(--r-full); background: var(--elevated);
    border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-weight: 700; color: var(--accent-text); flex-shrink: 0; }
.testimonial-name { font-weight: 600; color: var(--text); font-size: 15px; }
.testimonial-role { font-size: 13px; color: var(--text-muted); }

/* FAQ */
.faq { padding: 120px 0; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600;
    color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 16px;
    font-size: 16px; font-family: var(--font-display); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-mono); color: var(--accent-text);
    font-size: 22px; line-height: 1; transition: transform .2s ease; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 22px; color: var(--text-2); line-height: 1.65; }

/* Mid-page CTA band */
.cta-band { padding: 80px 0; text-align: center; }
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -.02em; margin-bottom: 14px; color: var(--text); }
.cta-band p { color: var(--text-2); margin: 0 auto 28px; max-width: 540px; }

/* Footer social */
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--surface);
    border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
    color: var(--text-2); transition: color .2s ease, border-color .2s ease; }
.footer-social a:hover { color: var(--accent-text); border-color: var(--accent); }

/* Consent checkbox + optional marker */
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px;
    font-size: 13px; color: var(--text-2); line-height: 1.5; }
.form-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.form-consent a { color: var(--accent-text); }
.field-optional { color: var(--text-muted); font-weight: 400; font-size: 12px; }

@media (max-width: 768px) {
    .testimonials, .faq { padding: 72px 0; }
    .footer-social { justify-content: center; }
}

/* ============ Cinematic video hero ============ */
.hero { min-height: 100svh; }
.hero-video {
    position: fixed; inset: 0; z-index: 0; overflow: hidden;
    background: #0a0b0d url('media/hero-poster.jpg') 50% 38% / cover no-repeat;
}
.hero-video video, .hero-video canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 40%;
}
/* Skynext dark overlay so the brand reads + integrates with the dark theme */
.hero-video::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(10,11,13,.74) 0%, rgba(10,11,13,.52) 44%, rgba(10,11,13,.86) 100%),
        radial-gradient(130% 90% at 50% 30%, transparent 36%, rgba(10,11,13,.5) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero::after { display: none; }   /* remove old green glow; video carries the atmosphere */

/* Hero copy reads light over the video in BOTH themes */
.hero h1 { color: #f6f8f7 !important; -webkit-text-fill-color: #f6f8f7 !important; text-shadow: 0 2px 30px rgba(0,0,0,.38); }
.hero h1 .accent { color: #6ee7a0 !important; -webkit-text-fill-color: #6ee7a0 !important; }
.hero .subtitle { color: rgba(246,248,247,.86); text-shadow: 0 1px 18px rgba(0,0,0,.45); }
.hero-badge {
    background: rgba(255,255,255,.10) !important; border: 1px solid rgba(255,255,255,.22) !important;
    color: #dffbe9 !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero .btn-secondary { color: #f6f8f7; border-color: rgba(255,255,255,.42); }
.hero .btn-secondary:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.hero-social-proof { color: rgba(246,248,247,.8) !important; }
.hero-stats .stat-item {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-stats .stat-number { color: #6ee7a0; }
.hero-stats .stat-label { color: rgba(246,248,247,.72); }

/* Transparent header over the hero; solid once scrolled (script.js toggles .scrolled) */
header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
header.scrolled { background: var(--backdrop-blur); border-bottom-color: var(--border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
header:not(.scrolled) .nav-links a { color: rgba(246,248,247,.86); }
header:not(.scrolled) .nav-links a:hover { color: #fff; }
header:not(.scrolled) .hamburger span { background: #f6f8f7; }

/* Save-data / autoplay-blocked: show poster instead of the video */
.hero-video.is-poster video { display: none !important; }
@media (max-width: 767px) {
    .hero-video { background-position: 50% 42%; }
}

/* Pause / play toggle for the background video (accessibility for reduced-motion) */
.hero-video-toggle {
    position: absolute; right: 18px; bottom: 18px; z-index: 3;
    width: 40px; height: 40px; border-radius: 999px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    color: #f6f8f7; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.hero-video-toggle:hover { background: rgba(255,255,255,.22); transform: scale(1.06); }
.hero-video-toggle[hidden] { display: none; }
.hero-video-toggle .hvt-play { display: none; }
.hero-video-toggle.is-paused .hvt-pause { display: none; }
.hero-video-toggle.is-paused .hvt-play { display: block; }
@media (max-width: 767px) { .hero-video-toggle { right: 14px; bottom: 14px; } }
