/* =============================================
   LOGIK SNC — Liquid Glass × Dark Futurism
   ============================================= */

/* ===================== CSS VARIABLES ===================== */
:root {
    --bg: #050507;
    --bg-pure: #000000;
    --text: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.55);
    --text-dim: rgba(255, 255, 255, 0.35);
    --cyan: #00FFFF;
    --cyan-hover: #00E5E5;
    --cyan-dim: rgba(0, 255, 255, 0.15);
    --cyan-glow: rgba(0, 255, 255, 0.15);
    --cyan-border: rgba(0, 255, 255, 0.15);
    --cyan-border-hover: rgba(0, 255, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-hover: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.06);
    --blur: 24px;
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --container: 1200px;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility: visible focus for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: clip;
    line-height: 1.6;
    cursor: none;
}

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

button, select, input, textarea {
    cursor: none;
}

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

::selection {
    background: rgba(0, 255, 255, 0.25);
    color: var(--text);
}

/* Utility */
.mono { font-family: var(--font-mono); }
.text-cyan { color: var(--cyan); }
.center { text-align: center; }

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

/* ===================== CUSTOM CURSOR ===================== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out), background 0.2s;
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), border-color 0.3s, background 0.3s;
}

body.cursor-hover .cursor-dot {
    width: 12px;
    height: 12px;
    background: rgba(0, 255, 255, 0.8);
}

body.cursor-hover .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: rgba(0, 255, 255, 0.3);
    background: rgba(0, 255, 255, 0.05);
}

/* ===================== GLASS CARD — with rotating neon border ===================== */
.glass-card {
    --border-angle: 0deg;
    --card-accent: var(--cyan);
    --card-glow: var(--cyan-glow);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--cyan-border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}

/* Top shine line */
.glass-card > .glass-card-shine,
.glass-card::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

/* Rotating gradient border — appears on hover */
.glass-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius) + 1px);
    padding: 2px;
    background: conic-gradient(
        from var(--border-angle),
        transparent 20%,
        var(--card-accent) 40%,
        rgba(255, 255, 255, 0.9) 50%,
        var(--card-accent) 60%,
        transparent 80%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    pointer-events: none;
    z-index: 3;
    filter: blur(0.5px);
}

.glass-card:hover::before,
.glass-card.touch-active::before {
    opacity: 1;
    animation: rotateBorder 2.5s linear infinite;
}

/* Inner top glow on hover */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.glass-card:hover,
.glass-card.touch-active {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow:
        0 0 40px var(--card-glow),
        0 0 80px var(--card-glow),
        0 20px 60px rgba(0, 0, 0, 0.4);
    background: var(--glass-bg-hover);
}

.glass-card:hover::after,
.glass-card.touch-active::after {
    opacity: 1;
}

/* ===================== NAVBAR ===================== */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: var(--container);
    height: 64px;
    z-index: 1000;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(5, 5, 7, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, top 0.4s;
}

.navbar.scrolled {
    background: rgba(5, 5, 7, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 255, 255, 0.03);
    top: 12px;
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.nav-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 130, 255, 0.3));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 130, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 180, 255, 0.5)); }
}

.nav-logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #ffffff;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Hide mobile-only elements in desktop */
.menu-canvas,
.nav-menu-info {
    display: none;
}

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

.nav-link {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s, background 0.3s;
    position: relative;
    padding: 8px 16px;
    border-radius: 100px;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background: var(--cyan);
    border-radius: 2px;
    transition: width 0.3s var(--ease-out);
    box-shadow: 0 0 6px var(--cyan);
}

.nav-link:hover {
    color: var(--cyan);
}

.nav-link:hover::after {
    width: 16px;
}

.nav-cta {
    --border-angle: 0deg;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: 1px solid var(--cyan-border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cyan);
    transition: all 0.3s var(--ease-out);
    background: rgba(0, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
    font-family: var(--font-display);
}

.nav-cta::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 101px;
    padding: 2px;
    background: conic-gradient(
        from var(--border-angle),
        transparent 20%,
        var(--cyan) 40%,
        rgba(255, 255, 255, 0.9) 50%,
        var(--cyan) 60%,
        transparent 80%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    pointer-events: none;
    z-index: 0;
    filter: blur(0.3px);
}

.nav-cta:hover::before {
    opacity: 1;
    animation: rotateBorder 2s linear infinite;
}

.nav-cta:hover {
    border-color: transparent;
    box-shadow: 0 0 25px var(--cyan-glow), 0 0 50px rgba(0, 255, 255, 0.06);
    background: rgba(0, 255, 255, 0.05);
}

.nav-cta-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease-out);
}

.nav-cta:hover .nav-cta-icon {
    transform: translateX(3px);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    z-index: 10;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================== HERO ===================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--nav-height) 24px 0;
    overflow: hidden;
    background: #000000;
}

#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ---- Floating glow orbs (disabled — clean black bg) ---- */
.hero-glow {
    display: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    will-change: transform;
}

.glow-orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(0, 80, 200, 0.18);
    top: -10%;
    left: 10%;
    animation: orbDrift1 20s ease-in-out infinite;
}

.glow-orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(0, 200, 255, 0.12);
    top: 30%;
    right: -5%;
    animation: orbDrift2 25s ease-in-out infinite;
}

.glow-orb-3 {
    width: 450px;
    height: 450px;
    background: rgba(100, 0, 200, 0.09);
    bottom: -10%;
    left: 30%;
    animation: orbDrift3 22s ease-in-out infinite;
}

@keyframes orbDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 50px) scale(1.15); }
    66% { transform: translate(-50px, 100px) scale(0.9); }
}

@keyframes orbDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-80px, 60px) scale(1.2); }
    66% { transform: translate(60px, -80px) scale(0.85); }
}

@keyframes orbDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(70px, -50px) scale(1.1); }
    66% { transform: translate(-100px, 30px) scale(0.95); }
}

/* ---- Holographic grid overlay (disabled — clean black bg) ---- */
.hero-grid {
    display: none;
}

/* ---- Floating wireframe geometry (disabled — clean black bg) ---- */
.hero-shapes {
    display: none;
}

.geo-shape {
    position: absolute;
    left: var(--x);
    top: var(--y);
    animation:
        geoFloat var(--dur, 20s) ease-in-out infinite,
        geoSpin var(--spin, 30s) linear infinite,
        geoReveal 2s ease-out 1s both;
    opacity: 0;
}

.geo-hex {
    width: 70px;
    height: 70px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid rgba(0, 255, 255, 0.1);
    background: rgba(0, 255, 255, 0.02);
}

.geo-tri {
    width: 60px;
    height: 60px;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    background: rgba(0, 100, 255, 0.03);
}

.geo-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 255, 0.08);
    background: transparent;
}

.geo-ring-sm {
    width: 50px;
    height: 50px;
}

.geo-diamond {
    width: 45px;
    height: 45px;
    background: rgba(100, 0, 255, 0.03);
    border: 1px solid rgba(100, 0, 255, 0.08);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.geo-cross {
    width: 35px;
    height: 35px;
    background:
        linear-gradient(rgba(0, 255, 255, 0.06), rgba(0, 255, 255, 0.06)) center/1.5px 100%,
        linear-gradient(rgba(0, 255, 255, 0.06), rgba(0, 255, 255, 0.06)) center/100% 1.5px;
    background-repeat: no-repeat;
}

@keyframes geoFloat {
    0%, 100% { translate: 0 0; }
    25% { translate: 15px -20px; }
    50% { translate: -10px -12px; }
    75% { translate: 8px -25px; }
}

@keyframes geoSpin {
    from { rotate: 0deg; }
    to { rotate: 360deg; }
}

@keyframes geoReveal {
    from { opacity: 0; scale: 0.3; }
    to { opacity: 0.3; scale: 1; }
}

/* ---- Hero bottom fade ---- */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg), transparent 70%);
    pointer-events: none;
    z-index: 3;
}

/* ---- Scanning line effect (disabled — clean black bg) ---- */

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: min(900px, 100%);
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    margin-bottom: 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(0, 255, 255, 0); }
}

.badge-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 4.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

/* Text decode effect — JS driven, starts invisible */
.hero-title {
    opacity: 0;
}

.hero-title.decoded {
    opacity: 1;
    animation: titleGlow 4s ease-in-out 1s both;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 30px rgba(0, 255, 255, 0.3); }
    100% { text-shadow: none; }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    height: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

.typewriter-prefix {
    color: var(--cyan);
    font-family: var(--font-mono);
}

.typewriter {
    font-family: var(--font-mono);
    color: var(--text);
}

.typewriter-cursor {
    color: var(--cyan);
    animation: blink 0.8s step-end infinite;
    font-weight: 300;
    margin-left: 1px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 0.8s var(--ease-out) 0.8s both;
}

/* Buttons */
.btn-primary {
    --border-angle: 0deg;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 255, 255, 0.05));
    border: 1px solid var(--cyan-border-hover);
    border-radius: 100px;
    color: var(--cyan);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.35s var(--ease-out);
    position: relative;
    overflow: hidden;
}

/* Rotating border on hover */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 101px;
    padding: 2px;
    background: conic-gradient(
        from var(--border-angle),
        transparent 15%,
        var(--cyan) 35%,
        rgba(255, 255, 255, 0.95) 50%,
        var(--cyan) 65%,
        transparent 85%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    pointer-events: none;
    z-index: 0;
    filter: blur(0.3px);
}

.btn-primary:hover::before {
    opacity: 1;
    animation: rotateBorder 2s linear infinite;
}

/* Shimmer sweep */
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(0, 255, 255, 0.08) 45%,
        rgba(0, 255, 255, 0.15) 50%,
        rgba(0, 255, 255, 0.08) 55%,
        transparent 60%
    );
    animation: shimmer 4s linear infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.btn-primary:hover {
    border-color: transparent;
    box-shadow: 0 0 30px var(--cyan-glow), 0 0 60px rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 255, 0.08));
}

.btn-primary i {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary.large {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-primary.full-width {
    width: 100%;
    justify-content: center;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.btn-ghost::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 32px;
    right: 32px;
    height: 1px;
    background: var(--cyan);
    opacity: 0.4;
    transition: opacity 0.3s;
}

.btn-ghost:hover {
    color: var(--cyan);
}

.btn-ghost:hover::after {
    opacity: 1;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    animation: scrollIndicatorIn 0.8s var(--ease-out) 1.2s both;
}

@keyframes scrollIndicatorIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
    0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    50.01% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 1; }
}

.scroll-text {
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ===================== SECTIONS ===================== */
.section {
    padding: 120px 0;
    position: relative;
}

.section-dark {
    background: var(--bg-pure);
}

.section + .section-dark::before,
.section-dark + .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    pointer-events: none;
    z-index: 2;
}

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

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    opacity: 0.8;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.section-title.large-title {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 16px;
    max-width: 560px;
}

.section-desc strong {
    color: var(--text);
    font-weight: 600;
}

/* Grid layouts */
.section-grid {
    display: grid;
    gap: 64px;
}

.section-grid.two-col {
    grid-template-columns: 1fr 1fr;
}

.section-grid.align-center {
    align-items: center;
}

/* ===================== STATS ===================== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    padding: 32px 24px;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    display: inline;
}

.stat-prefix {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--cyan);
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.stat-card.accent .stat-number {
    color: var(--cyan);
}

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

/* Animated border angle for rotating gradient */
@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.service-card {
    --border-angle: 0deg;
    --card-accent: var(--cyan);
    --card-glow: var(--cyan-glow);
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #0a0a0f;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}

.service-card:hover,
.service-card.touch-active {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow:
        0 0 50px var(--card-glow),
        0 0 100px var(--card-glow),
        0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Animated rotating gradient border */
.service-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    padding: 3px;
    background: conic-gradient(
        from var(--border-angle),
        transparent 20%,
        var(--card-accent) 40%,
        rgba(255, 255, 255, 0.9) 50%,
        var(--card-accent) 60%,
        transparent 80%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    pointer-events: none;
    z-index: 3;
    filter: blur(0.5px);
}

.service-card:hover::before,
.service-card.touch-active::before {
    opacity: 1;
    animation: rotateBorder 2.5s linear infinite;
}

@keyframes rotateBorder {
    to { --border-angle: 360deg; }
}

/* Inner glow on hover */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: radial-gradient(ellipse at 50% 0%, var(--card-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    pointer-events: none;
    z-index: 0;
}

.service-card:hover::after,
.service-card.touch-active::after {
    opacity: 1;
}

/* Per-card accent colors via :has() */
.service-card:has(.icon-blue) {
    --card-accent: #3B82F6;
    --card-glow: rgba(59, 130, 246, 0.18);
}
.service-card:has(.icon-green) {
    --card-accent: #22C55E;
    --card-glow: rgba(34, 197, 94, 0.18);
}
.service-card:has(.icon-purple) {
    --card-accent: #A855F7;
    --card-glow: rgba(168, 85, 247, 0.18);
}
.service-card:has(.icon-orange) {
    --card-accent: #F97316;
    --card-glow: rgba(249, 115, 22, 0.18);
}
.service-card:has(.icon-amber) {
    --card-accent: #F59E0B;
    --card-glow: rgba(245, 158, 11, 0.18);
}
.service-card:has(.icon-teal) {
    --card-accent: #14B8A6;
    --card-glow: rgba(20, 184, 166, 0.18);
}

/* macOS window title bar */
.card-window-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.window-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: transform 0.3s var(--ease-spring), filter 0.3s;
}

.dot-red { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green { background: #28C840; }

.service-card:hover .dot,
.service-card.touch-active .dot {
    transform: scale(1.25);
}
.service-card:hover .dot-red, .service-card.touch-active .dot-red { filter: drop-shadow(0 0 6px #FF5F57); }
.service-card:hover .dot-yellow, .service-card.touch-active .dot-yellow { filter: drop-shadow(0 0 6px #FEBC2E); }
.service-card:hover .dot-green, .service-card.touch-active .dot-green { filter: drop-shadow(0 0 6px #28C840); }

.window-code {
    font-size: 0.75rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.04em;
    transition: color 0.3s, text-shadow 0.3s;
}

.service-card:hover .window-code,
.service-card.touch-active .window-code {
    color: var(--cyan);
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
    animation: codeFlicker 3s step-end infinite;
}

@keyframes codeFlicker {
    0%, 94%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
    96% { opacity: 1; }
    97% { opacity: 0.5; }
}

.card-window-bar::after {
    content: '|';
    color: var(--cyan);
    opacity: 0.6;
    animation: blink 1s step-end infinite;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-left: 2px;
}

/* Card body */
.card-body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Service icon color variants */
.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.service-icon i {
    width: 24px;
    height: 24px;
}

.service-card:hover .service-icon,
.service-card.touch-active .service-icon {
    transform: scale(1.1);
}

.icon-blue {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}
.icon-green {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22C55E;
}
.icon-purple {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: #A855F7;
}
.icon-orange {
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: #F97316;
}
.icon-amber {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}
.icon-teal {
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.2);
    color: #14B8A6;
}

.service-card:hover .icon-blue, .service-card.touch-active .icon-blue { box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); }
.service-card:hover .icon-green, .service-card.touch-active .icon-green { box-shadow: 0 0 20px rgba(34, 197, 94, 0.2); }
.service-card:hover .icon-purple, .service-card.touch-active .icon-purple { box-shadow: 0 0 20px rgba(168, 85, 247, 0.2); }
.service-card:hover .icon-orange, .service-card.touch-active .icon-orange { box-shadow: 0 0 20px rgba(249, 115, 22, 0.2); }
.service-card:hover .icon-amber, .service-card.touch-active .icon-amber { box-shadow: 0 0 20px rgba(245, 158, 11, 0.2); }
.service-card:hover .icon-teal, .service-card.touch-active .icon-teal { box-shadow: 0 0 20px rgba(20, 184, 166, 0.2); }

.service-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    flex: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.68rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.service-card:hover .tag,
.service-card.touch-active .tag {
    color: var(--cyan);
    border-color: rgba(0, 255, 255, 0.12);
    background: rgba(0, 255, 255, 0.06);
}

/* ===================== FORMAZIONE ===================== */
.course-block {
    --border-angle: 0deg;
    padding: 48px 32px;
    border-bottom: 1px solid var(--glass-border);
    border-radius: var(--radius);
    position: relative;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}

.course-block::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius) + 1px);
    padding: 2px;
    background: conic-gradient(
        from var(--border-angle),
        transparent 20%,
        var(--cyan) 40%,
        rgba(255, 255, 255, 0.9) 50%,
        var(--cyan) 60%,
        transparent 80%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    pointer-events: none;
    z-index: 1;
    filter: blur(0.5px);
}

.course-block:hover::before {
    opacity: 1;
    animation: rotateBorder 2.5s linear infinite;
}

.course-block:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 0 40px var(--cyan-glow), 0 0 80px rgba(0, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.course-block:last-of-type {
    border-bottom: none;
}

.course-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.course-icon-inline {
    width: 28px;
    height: 28px;
    color: var(--cyan);
    flex-shrink: 0;
}

.course-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: center;
}

.chip {
    --border-angle: 0deg;
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: var(--glass-bg);
    border: 1px solid var(--cyan-border);
    border-radius: 100px;
    color: var(--text-muted);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s var(--ease-out);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.chip::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 101px;
    padding: 2px;
    background: conic-gradient(
        from var(--border-angle),
        transparent 20%,
        var(--cyan) 40%,
        rgba(255, 255, 255, 0.9) 50%,
        var(--cyan) 60%,
        transparent 80%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    pointer-events: none;
    z-index: 1;
    filter: blur(0.3px);
}

.chip:hover::before {
    opacity: 1;
    animation: rotateBorder 2s linear infinite;
}

.chip:hover {
    color: var(--cyan);
    border-color: transparent;
    background: rgba(0, 255, 255, 0.06);
    box-shadow: 0 0 30px var(--cyan-glow), 0 0 60px rgba(0, 255, 255, 0.06);
    transform: translateY(-2px);
}

.center-cta {
    text-align: center;
    margin-top: 56px;
}

/* Reverse grid for alternating layout */
.section-grid.reverse {
    direction: rtl;
}
.section-grid.reverse > * {
    direction: ltr;
}

/* ===================== INNOVAZIONE ===================== */
.section-innovation {
    position: relative;
    overflow: hidden;
}

.innovation-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(0, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 60%, rgba(0, 80, 255, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 200, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    animation: ambientShift 12s ease-in-out infinite alternate;
}

@keyframes ambientShift {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Ambient floating orbs — visible on sections */
.section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.03) 0%, transparent 70%);
    top: 10%;
    right: 0;
    pointer-events: none;
    filter: blur(60px);
    animation: floatOrb 20s ease-in-out infinite;
}

.section {
    overflow: hidden;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-30px, 20px); }
    50% { transform: translate(10px, -30px); }
    75% { transform: translate(-20px, -10px); }
}

.innovation-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
}

.feature-item:hover {
    transform: translateY(-4px);
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.12);
    color: var(--cyan);
    flex-shrink: 0;
}

.feature-icon-wrap i {
    width: 22px;
    height: 22px;
}

.feature-text h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===================== CONTATTI ===================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-input {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: var(--text-dim);
}

.form-input:focus {
    border-color: var(--cyan-border-hover);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.08);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255,255,255,0.35)' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-select option {
    background: #111;
    color: var(--text);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    font-size: 0.72rem;
    color: #ff4466;
    font-family: var(--font-mono);
    display: none;
}

.form-group.error .form-input {
    border-color: rgba(255, 68, 102, 0.5);
}

.form-group.error .form-error {
    display: block;
}

.form-success {
    grid-column: 1 / -1;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(0, 255, 255, 0.06);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: var(--radius-xs);
    color: var(--cyan);
}

.form-success.visible {
    display: flex;
}

.form-success i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.form-success p {
    font-size: 0.9rem;
}

.form-error-msg {
    grid-column: 1 / -1;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(255, 80, 80, 0.08);
    border: 1px solid rgba(255, 80, 80, 0.25);
    border-radius: var(--radius-xs);
    color: #ff6b6b;
}

.form-error-msg.visible {
    display: flex;
}

.form-error-msg i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.form-error-msg p {
    font-size: 0.9rem;
}

.form-error-msg a {
    color: var(--cyan);
    text-decoration: underline;
}

/* Contact info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.contact-card:hover {
    transform: translateY(-4px);
}

.contact-card > i {
    width: 24px;
    height: 24px;
    color: var(--cyan);
    flex-shrink: 0;
}

.contact-card h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===================== FOOTER ===================== */
.footer {
    position: relative;
    padding: 64px 0 32px;
    background: var(--bg-pure);
}

.footer-border {
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-border-hover), transparent);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 130, 255, 0.25));
}

.footer-logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    --border-angle: 0deg;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(
        from var(--border-angle),
        transparent 20%,
        var(--cyan) 40%,
        rgba(255, 255, 255, 0.9) 50%,
        var(--cyan) 60%,
        transparent 80%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 0;
}

.social-link:hover::before {
    opacity: 1;
    animation: rotateBorder 2s linear infinite;
}

.social-link:hover {
    color: var(--cyan);
    border-color: transparent;
    box-shadow: 0 0 20px var(--cyan-glow), 0 0 40px rgba(0, 255, 255, 0.06);
}

.social-link i {
    width: 18px;
    height: 18px;
}

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

.footer-heading {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
}

.footer-legal a {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-legal a:hover {
    color: var(--cyan);
}

.footer-sede-label {
    font-size: 0.7rem;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}


/* ===================== REVEAL ANIMATIONS ===================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.service-card.reveal.visible:hover {
    transform: translateY(-8px);
}

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

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

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .hero-title {
        font-size: clamp(1.8rem, 4.5vw, 2.8rem);
        max-width: 100%;
        padding-right: 16px;
    }
    .section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .navbar {
        top: 8px;
        width: calc(100% - 24px);
        height: 50px;
    }

    .navbar.scrolled {
        top: 8px;
    }

    /* Hide custom cursor on touch */
    .cursor-dot, .cursor-ring {
        display: none !important;
    }
    body, a, button, select, input, textarea {
        cursor: auto;
    }

    /* ---- Side Panel Menu ---- */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 200px;
        height: 100vh;
        height: 100dvh;
        background: rgba(5, 5, 7, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-left: 1px solid rgba(0, 255, 255, 0.08);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        padding: 100px 24px 32px;
        gap: 0;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
        z-index: 99999;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.7);
        overflow: hidden;
    }

    .nav-menu.open {
        transform: translateX(0);
        visibility: visible;
    }

    /* Canvas animation background */
    .menu-canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.15;
        pointer-events: none;
    }

    /* Glow accent line on the left border */
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 10%;
        bottom: 10%;
        left: 0;
        width: 1px;
        background: linear-gradient(to bottom, transparent, var(--cyan), transparent);
        opacity: 0.5;
        z-index: 1;
    }

    /* Links container */
    .nav-menu-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: relative;
        z-index: 2;
    }

    .nav-menu .nav-link {
        font-size: 1.1rem;
        font-family: var(--font-display);
        font-weight: 600;
        color: rgba(255, 255, 255, 0.75);
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        transition: color 0.3s, padding-left 0.3s, border-color 0.3s;
        text-align: left;
        width: 100%;
        display: block;
        position: relative;
    }

    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link:active {
        color: var(--cyan);
        padding-left: 10px;
        border-bottom-color: rgba(0, 255, 255, 0.1);
    }

    /* Company info at bottom */
    .nav-menu-info {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        position: relative;
        z-index: 2;
    }

    .nav-menu-info-name {
        font-family: var(--font-display);
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--cyan);
        letter-spacing: 0.05em;
    }

    .nav-menu-info-item {
        font-family: var(--font-mono);
        font-size: 0.65rem;
        color: rgba(255, 255, 255, 0.35);
        letter-spacing: 0.02em;
    }

    /* Menu overlay backdrop */
    .nav-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.85);
        z-index: 99998;
        opacity: 0;
        transition: opacity 0.4s;
    }

    .nav-menu-overlay.visible {
        display: block;
        opacity: 1;
    }

    .nav-cta {
        display: none;
    }

    .nav-hamburger {
        display: flex;
        z-index: 100000;
        position: relative;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-shapes {
        display: none;
    }

    .hero-grid {
        display: none;
    }

    .glow-orb-1 { width: 350px; height: 350px; }
    .glow-orb-2 { width: 300px; height: 300px; }
    .glow-orb-3 { width: 250px; height: 250px; }

    .section {
        padding: 80px 0;
    }

    .section-grid.two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-grid.reverse {
        direction: ltr;
    }

    /* In mobile, reverse grids: show text/title first, chips second */
    .section-grid.reverse .course-chips {
        order: 2;
    }
    .section-grid.reverse .course-text {
        order: 1;
    }

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

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

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .stat-number {
        font-size: 2.4rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .course-title {
        font-size: 1.2rem;
    }

    .btn-primary.large {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
}


/* ===================== COOKIE BANNER ===================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 0 16px 16px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
    pointer-events: none;
}

.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 28px;
    background: rgba(10, 10, 14, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.cookie-banner-text {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
}

.cookie-banner-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
}

.cookie-banner-icon svg {
    width: 24px;
    height: 24px;
}

.cookie-banner-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cookie-banner-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.cookie-banner-desc a {
    color: var(--cyan);
    text-decoration: none;
}

.cookie-banner-desc a:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* GDPR: all cookie buttons must have EQUAL prominence (same size, weight, padding) */
.cookie-btn {
    padding: 11px 20px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--cyan);
    color: #050507;
    border-color: var(--cyan);
}

.cookie-btn-accept:hover {
    box-shadow: 0 0 20px var(--cyan-glow);
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.cookie-btn-customize {
    background: transparent;
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.15);
}

.cookie-btn-customize:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

/* Cookie customize panel */
.cookie-customize-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-customize-inner {
    padding: 20px 28px 24px;
}

.cookie-customize-title {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.cookie-category {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cookie-category:last-of-type {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.cookie-category-name {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    cursor: default;
}

.cookie-category-status {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cookie-category-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    cursor: pointer;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cookie-toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    transition: background 0.3s;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: transform 0.3s, background 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--cyan-dim);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(18px);
    background: var(--cyan);
}

.cookie-customize-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 20px;
        gap: 16px;
    }
    .cookie-banner-actions {
        justify-content: stretch;
        flex-wrap: wrap;
    }
    .cookie-btn {
        flex: 1;
        min-width: calc(50% - 4px);
        text-align: center;
    }
    .cookie-btn-customize {
        order: 3;
        flex-basis: 100%;
    }
    .cookie-customize-inner {
        padding: 16px 20px 20px;
    }
}

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