/* ============================================
   LAKHANI DEVELOPMENT SERVICES — PROFESSIONAL TECH SITE
   ============================================ */

:root {
    --bg: #0a0a0f;
    --bg-elevated: #12121a;
    --bg-card: #16161f;
    --surface: #1c1c28;
    --text: #e8e8ed;
    --text-muted: #9898a6;
    --accent: #3b82f6;
    --accent-dim: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --success: #22c55e;
    --border: rgba(255, 255, 255, 0.06);
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --header-h: 72px;
}

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

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* ---- Preloader ---- */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition-duration: 0.35s;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--accent), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    animation: preloader-pulse 1.5s ease-in-out infinite;
}

.preloader-bar {
    width: 160px;
    height: 3px;
    background: var(--surface);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 12px;
}

.preloader-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), #60a5fa);
    border-radius: 3px;
    animation: preloader-fill 0.5s var(--ease-out-expo) forwards;
}

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

@keyframes preloader-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes preloader-fill {
    to { width: 100%; }
}

/* ---- Cursor glow (desktop) ---- */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.cursor-glow.visible {
    opacity: 1;
}

/* ---- Header / Nav ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 100;
    transition: background 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    transition: transform 0.3s var(--ease-out-expo);
}

.nav-logo:hover {
    transform: scale(1.02);
}

.logo-mark {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--accent), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-full {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 900px) {
    .logo-full { display: none; }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 8px 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-timer {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.nav-cta-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s, background 0.2s;
}

a.btn {
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #2563eb);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-nav {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--bg);
}

.btn-light:hover {
    background: #fff;
    box-shadow: 0 6px 24px rgba(255, 255, 255, 0.2);
}

.btn-block {
    width: 100%;
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out-expo), opacity 0.3s;
}

.nav-burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-burger.active span:nth-child(2) {
    opacity: 0;
}

.nav-burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
    .nav-links,
    .nav-actions .nav-timer,
    .nav-cta-link,
    .btn-nav {
        display: none;
    }

    .nav-burger {
        display: flex;
    }
}

/* ---- Mobile menu ---- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--bg);
    padding: calc(var(--header-h) + 24px) 24px 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-links {
    list-style: none;
}

.mobile-links li {
    border-bottom: 1px solid var(--border);
}

.mobile-links a {
    display: block;
    padding: 16px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-links a:hover {
    color: var(--accent);
    padding-left: 8px;
}

.mobile-phone,
.mobile-email {
    display: block;
    margin-top: 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
}

.mobile-phone:hover,
.mobile-email:hover {
    color: var(--accent);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    padding: var(--header-h) 0 0;
    overflow: hidden;
}

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.2), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(59, 130, 246, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(59, 130, 246, 0.06), transparent);
}

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

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    right: -100px;
    animation: orb-drift-1 25s ease-in-out infinite;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: #6366f1;
    bottom: -50px;
    left: -50px;
    animation: orb-drift-2 22s ease-in-out infinite;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: #06b6d4;
    top: 50%;
    left: 30%;
    animation: orb-drift-3 28s ease-in-out infinite;
}

/* Orbs drift around the hero section on a continuous path */
@keyframes orb-drift-1 {
    0%, 100%   { transform: translate(0, 0) scale(1); }
    25%        { transform: translate(-80px, 120px) scale(1.08); }
    50%        { transform: translate(-140px, -40px) scale(0.95); }
    75%        { transform: translate(-40px, -100px) scale(1.05); }
}

@keyframes orb-drift-2 {
    0%, 100%   { transform: translate(0, 0) scale(1); }
    25%        { transform: translate(100px, -80px) scale(1.05); }
    50%        { transform: translate(160px, 60px) scale(0.92); }
    75%        { transform: translate(60px, 100px) scale(1.08); }
}

@keyframes orb-drift-3 {
    0%, 100%   { transform: translate(0, 0) scale(1); }
    33%        { transform: translate(90px, -60px) scale(1.1); }
    66%        { transform: translate(-70px, 80px) scale(0.9); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-bottom: 24px;
}

@media (min-width: 769px) {
    .hero-content {
        padding-top: 48px;
    }
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: hero-line 0.8s var(--ease-out-expo) forwards;
}

.hero-title .line:nth-child(1) { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) { animation-delay: 0.25s; }
.hero-title .line:nth-child(3) { animation-delay: 0.4s; }

.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes hero-line {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-desc {
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.stat-num {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2em;
}

.stat-plus {
    color: var(--accent);
    font-weight: 700;
}

.hero-scroll {
    position: relative;
    left: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 0 28px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    z-index: 1;
}

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

@keyframes scroll-bounce {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ---- Trust bar (Registered With) ---- */
.trust-bar {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}

.trust-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.trust-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-right: 8px;
}

.trust-logos {
    display: flex;
    gap: 32px;
    align-items: center;
}

.trust-logo {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.3s var(--ease-out-expo), border-color 0.3s, box-shadow 0.3s;
}

.trust-logo:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.trust-name {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: var(--text);
}

/* ---- Sections ---- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-head {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* ---- About ---- */
.about {
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.about-block {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.4s var(--ease-out-expo), border-color 0.3s, box-shadow 0.4s;
}

.about-block:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-text {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ---- Industries ---- */
.industries {
    background: var(--bg-elevated);
}

.industry-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.industry-card:nth-child(1) { transition-delay: 0.05s; }
.industry-card:nth-child(2) { transition-delay: 0.1s; }
.industry-card:nth-child(3) { transition-delay: 0.15s; }
.industry-card:nth-child(4) { transition-delay: 0.2s; }
.industry-card:nth-child(5) { transition-delay: 0.25s; }

.industry-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 500;
    color: var(--text);
    transition: transform 0.3s var(--ease-out-expo), background 0.3s, border-color 0.3s;
}

.industry-card:hover {
    transform: translateY(-4px);
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.2);
}

.industry-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ---- Services ---- */
.services {
    background: var(--bg);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.service-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.4s var(--ease-out-expo);
}

.service-card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.service-card-inner {
    padding: 36px 40px;
    position: relative;
}

.service-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0.7;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
    max-width: 85%;
}

.service-list {
    list-style: none;
}

.service-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.service-card:nth-child(1) .service-card-inner { transition-delay: 0s; }
.service-card:nth-child(2) .service-card-inner { transition-delay: 0.05s; }
.service-card:nth-child(3) .service-card-inner { transition-delay: 0.1s; }
.service-card:nth-child(4) .service-card-inner { transition-delay: 0.15s; }
.service-card:nth-child(5) .service-card-inner { transition-delay: 0.2s; }

/* ---- Why ---- */
.why {
    background: var(--bg-elevated);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.why-item {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 1rem;
    transition: transform 0.3s var(--ease-out-expo), border-color 0.3s, color 0.3s;
}

.why-item:hover {
    transform: translateX(8px);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--text);
}

/* ---- Market ---- */
.market {
    background: var(--bg);
}

.market-list {
    max-width: 640px;
    margin: 0 auto;
    list-style: none;
}

.market-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.05rem;
    transition: color 0.3s, padding-left 0.3s;
}

.market-list .market-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.market-list li:hover {
    color: var(--text);
    padding-left: 32px;
}

.market-list li:last-child {
    border-bottom: none;
}

/* ---- Leadership ---- */
.leadership {
    background: var(--bg-elevated);
}

.leadership-card {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.leadership-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.leadership-avatar {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-initials {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    display: none;
}

.leadership-avatar.avatar-img-error .avatar-img {
    display: none;
}

.leadership-avatar.avatar-img-error .avatar-initials {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #6366f1);
}

.leadership-name {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text);
}

.leadership-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
}

.leadership-bio {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

@media (max-width: 640px) {
    .leadership-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        linear-gradient(225deg, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.cta-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text);
}

.cta-desc {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

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

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

.footer-brand .logo-mark {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 320px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-registered {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.reg-badge {
    padding: 6px 14px;
    background: var(--bg-card);
    border-radius: 6px;
    font-weight: 600;
    color: var(--text);
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

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

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-tagline {
        max-width: none;
    }

    .footer-links {
        justify-content: center;
    }
}

/* ---- Modal ---- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s var(--ease-out-expo);
}

.modal.open .modal-box {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text);
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

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

/* ---- Animations (data-animate) ---- */
[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

[data-animate="fade-up"].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.hero-content [data-animate="fade-up"]:nth-child(1) { transition-delay: 0.1s; }
.hero-content [data-animate="fade-up"]:nth-child(2) { transition-delay: 0.2s; }
.hero-content [data-animate="fade-up"]:nth-child(3) { transition-delay: 0.3s; }
.hero-content [data-animate="fade-up"]:nth-child(4) { transition-delay: 0.4s; }
.hero-content [data-animate="fade-up"]:nth-child(5) { transition-delay: 0.5s; }
.hero-content [data-animate="fade-up"]:nth-child(6) { transition-delay: 0.6s; }
.hero-content [data-animate="fade-up"]:nth-child(7) { transition-delay: 0.7s; }
.hero-content [data-animate="fade-up"]:nth-child(8) { transition-delay: 0.8s; }
.hero-content [data-animate="fade-up"]:nth-child(9) { transition-delay: 0.9s; }
.hero-content [data-animate="fade-up"]:nth-child(10) { transition-delay: 1s; }
.hero-content [data-animate="fade-up"]:nth-child(11) { transition-delay: 1.1s; }
.hero-content [data-animate="fade-up"]:nth-child(12) { transition-delay: 1.2s; }

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

/* Button ripple */
.btn {
    position: relative;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: btn-ripple 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes btn-ripple {
    to {
        transform: translate(-50%, -50%) scale(15);
        opacity: 0;
    }
}

/* Focus styles (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

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

    .hero-orb,
    .scroll-line,
    .preloader-logo,
    .preloader-progress {
        animation: none;
    }
}
