/* ============================================
   Ennovision Ltd — Stylesheet
   ============================================ */

:root {
    --bg: #07120c;
    --bg-2: #0a1810;
    --bg-3: #0f2018;
    --surface: #122a1e;
    --surface-2: #173527;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(34, 197, 94, 0.18);
    --text: #e6f5ec;
    --text-2: #9fc4ae;
    --text-3: #6a8a78;
    --primary: #22c55e;
    --primary-2: #4ade80;
    --accent: #5eead4;
    --accent-2: #a3e635;
    --success: #22c55e;
    --danger: #ef4444;
    --gradient: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #5eead4 100%);
    --gradient-soft: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(94, 234, 212, 0.15));
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(34, 197, 94, 0.3);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --container: 1200px;
    --header-h: 72px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(7, 18, 12, 0.65);
    border-bottom: 1px solid transparent;
    transition: all 0.3s var(--ease);
}

.navbar.scrolled {
    background: rgba(7, 18, 12, 0.92);
    border-bottom-color: var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 32px;
    height: 32px;
    color: var(--primary);
    transition: transform 0.4s var(--ease);
}

.logo:hover .logo-mark { transform: rotate(15deg) scale(1.05); }

.logo-text { color: var(--text); }
.logo-dot { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.94rem;
    color: var(--text-2);
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:not(.btn-nav):hover { color: var(--text); }

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s var(--ease);
}

.nav-links a:not(.btn-nav):hover::after { width: 100%; }

.btn-nav {
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--text) !important;
    font-weight: 600;
    transition: all 0.25s var(--ease);
}

.btn-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s var(--ease);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #042713;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.5);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--surface-2);
    transform: translateY(-2px);
}

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 80px) 0 100px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.45;
    animation: floatGlow 12s ease-in-out infinite;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #22c55e, transparent 70%);
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #5eead4, transparent 70%);
    bottom: -200px;
    right: -150px;
    animation-delay: 4s;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--primary-2);
    font-weight: 500;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-2);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-3);
    margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    perspective: 1500px;
}

.code-window {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotateY(-6deg) rotateX(4deg);
    transition: transform 0.4s var(--ease);
}

.code-window:hover { transform: rotateY(-2deg) rotateX(2deg); }

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27c93f; }

.code-title {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-3);
}

.code-body {
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-2);
    overflow-x: auto;
}

.c-keyword { color: #f472b6; }
.c-class { color: #fcd34d; }
.c-fn { color: #4ade80; }
.c-param { color: #e6f5ec; }
.c-type { color: #5eead4; }
.c-string { color: #a3e635; }

.floating-card {
    position: absolute;
    background: rgba(18, 42, 30, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    animation: floatCard 6s ease-in-out infinite;
}

.fc-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-soft);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.fc-text { font-size: 0.82rem; line-height: 1.3; }
.fc-text strong { color: var(--text); }
.fc-text span { color: var(--text-3); font-size: 0.75rem; }

.card-1 {
    top: 10%;
    left: -30px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 15%;
    right: -20px;
    animation-delay: 3s;
}

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

/* ============================================
   Trust Bar
   ============================================ */
.trust-bar {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
    overflow: hidden;
}

.trust-label {
    text-align: center;
    color: var(--text-3);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 28px;
}

.tech-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.tech-track {
    display: flex;
    gap: 56px;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.tech-track span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--text-2);
    font-weight: 500;
    white-space: nowrap;
}

@keyframes scroll {
    to { transform: translateX(-50%); }
}

/* ============================================
   Sections (generic)
   ============================================ */
.section {
    padding: 120px 0;
}

.section-alt {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    max-width: 720px;
    margin-bottom: 64px;
}

.section-header.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-2);
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-2);
    line-height: 1.7;
}

/* ============================================
   Services
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-soft);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
}

.service-card:hover {
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before { opacity: 1; }

.service-card > * { position: relative; z-index: 1; }

.service-card.featured {
    border-color: rgba(34, 197, 94, 0.45);
    background: linear-gradient(180deg, var(--surface) 0%, rgba(34, 197, 94, 0.08) 100%);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    background: var(--gradient);
    color: #042713;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--gradient-soft);
    color: var(--primary-2);
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}

.service-icon svg { width: 26px; height: 26px; }

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-2);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    padding-left: 22px;
    position: relative;
    color: var(--text-2);
    font-size: 0.88rem;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 12px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* ============================================
   Training
   ============================================ */
.training-wrap {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 72px;
    align-items: start;
}

.training-info { position: sticky; top: 100px; }
.training-info .section-title { margin-top: 16px; }

.training-features {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.tf-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tf-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient);
    color: #042713;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

.tf-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.tf-item p { color: var(--text-2); font-size: 0.92rem; }

.training-tracks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.track-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}

.track-card:hover {
    border-color: rgba(94, 234, 212, 0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.track-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(94, 234, 212, 0.15);
    color: #5eead4;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.track-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.track-card p {
    color: var(--text-2);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.track-meta {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-3);
    font-weight: 500;
}

/* ============================================
   Why grid
   ============================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}

.why-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.why-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--primary-2);
    font-weight: 600;
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.why-card p {
    color: var(--text-2);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
    padding: 80px 0;
}

.cta-inner {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(94, 234, 212, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--radius-lg);
    padding: 56px 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(94, 234, 212, 0.2), transparent 60%);
    pointer-events: none;
}

.cta-inner > * { position: relative; }

.cta-inner h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.cta-inner p {
    color: var(--text-2);
    font-size: 1rem;
}

/* ============================================
   Contact
   ============================================ */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 72px;
    align-items: start;
}

.contact-info .section-title { margin-top: 16px; }

.contact-channels {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.25s var(--ease);
}

a.cc-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.cc-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--gradient-soft);
    color: var(--primary-2);
    display: grid;
    place-items: center;
}

.cc-icon svg { width: 20px; height: 20px; }

.cc-label {
    display: block;
    color: var(--text-3);
    font-size: 0.78rem;
    margin-bottom: 2px;
}

.cc-item strong {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.form-group { margin-bottom: 18px; }
.form-row .form-group { margin-bottom: 0; }

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 8px;
}

.form-group .optional { color: var(--text-3); font-weight: 400; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-3);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239fc4ae' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option { background: var(--bg-2); color: var(--text); }

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#submitBtn {
    margin-top: 8px;
    position: relative;
}

#submitBtn.loading .btn-text { opacity: 0.6; }
#submitBtn.loading svg { animation: spin 1s linear infinite; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-status {
    margin-top: 16px;
    padding: 0 14px;
    font-size: 0.9rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s var(--ease);
    border-radius: var(--radius-sm);
}

.form-status.show {
    max-height: 200px;
    padding: 14px;
    margin-top: 18px;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-status.error {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 72px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand p {
    color: var(--text-2);
    font-size: 0.95rem;
    max-width: 320px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: var(--text-2);
    font-size: 0.92rem;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary-2); }

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-3);
}

.footer-tag { color: var(--text-3); }

/* ============================================
   Scroll reveal
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 80px; }
    .hero-visual { max-width: 480px; margin: 0 auto; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .training-wrap { grid-template-columns: 1fr; gap: 48px; }
    .training-info { position: static; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .hero { padding: calc(var(--header-h) + 60px) 0 80px; min-height: auto; }

    .nav-links {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(7, 18, 12, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 32px 24px;
        gap: 24px;
        align-items: stretch;
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
        padding-top: 0;
        padding-bottom: 0;
    }

    .nav-links.open {
        max-height: 500px;
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .nav-links a { font-size: 1.05rem; text-align: center; }

    .menu-toggle { display: flex; }

    .hero-stats { gap: 28px; }
    .stat-num { font-size: 1.5rem; }

    .floating-card { display: none; }
    .code-window { transform: none; }

    .services-grid { grid-template-columns: 1fr; }
    .training-tracks { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }

    .cta-inner { padding: 40px 28px; flex-direction: column; align-items: flex-start; }

    .contact-form { padding: 28px 22px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-row .form-group { margin-bottom: 18px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .service-card, .track-card, .why-card { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   Legal pages (Terms, Privacy, Refund)
   ============================================ */
.legal-hero {
    padding: calc(var(--header-h) + 60px) 0 40px;
    background: radial-gradient(ellipse at top, rgba(34, 197, 94, 0.08), transparent 60%), var(--bg);
    border-bottom: 1px solid var(--border);
}
.legal-hero .eyebrow { color: var(--primary-2); }
.legal-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin: 12px 0 14px;
    letter-spacing: -0.02em;
}
.legal-hero .legal-meta {
    color: var(--text-3);
    font-size: 0.95rem;
}

.legal-section { padding: 56px 0 80px; }

.legal-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.legal-toc h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
    margin-bottom: 14px;
}
.legal-toc ol {
    list-style: none;
    counter-reset: toc;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.legal-toc ol li {
    counter-increment: toc;
    font-size: 0.92rem;
}
.legal-toc ol li a {
    color: var(--text-2);
    transition: color 0.2s var(--ease);
    display: block;
    padding: 4px 0;
}
.legal-toc ol li a::before {
    content: counter(toc, decimal-leading-zero);
    color: var(--text-3);
    margin-right: 10px;
    font-variant-numeric: tabular-nums;
    font-size: 0.8rem;
}
.legal-toc ol li a:hover { color: var(--primary-2); }

.legal-content {
    max-width: 760px;
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1.75;
}
.legal-content section { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-content section + section { margin-top: 40px; }
.legal-content h2 {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.legal-content h3 {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 22px 0 10px;
}
.legal-content p { margin-bottom: 14px; }
.legal-content ul, .legal-content ol.lc-list {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 14px;
}
.legal-content ol.lc-list { list-style: decimal; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--primary-2); border-bottom: 1px solid rgba(74, 222, 128, 0.3); }
.legal-content a:hover { border-bottom-color: var(--primary-2); }
.legal-content strong { color: var(--text); }
.legal-content .lc-note {
    padding: 16px 18px;
    background: var(--bg-3);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    margin: 18px 0;
    font-size: 0.95rem;
}
.legal-content .lc-contact-box {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 18px;
}
.legal-content .lc-contact-box p { margin-bottom: 6px; }

@media (max-width: 900px) {
    .legal-wrap { grid-template-columns: 1fr; gap: 28px; }
    .legal-toc { position: static; }
}
