/* ============================================
   Mithril — Crystalline Cave Aesthetic
   ============================================ */

:root {
    --color-bg: #0a0612;
    --color-bg-alt: #0e091c;
    --color-surface: #150f28;
    --color-surface-hover: #1c1435;
    --color-border: #251d3d;
    --color-border-hover: #362a57;
    --color-text: #e4dff0;
    --color-text-muted: #7b6f96;
    --color-teal: #2dd4bf;
    --color-teal-dim: #1a9e8f;
    --color-teal-hover: #5eead4;
    --color-teal-glow: rgba(45, 212, 191, 0.12);
    --color-amber: #d4842a;
    --color-amber-hover: #e8983e;
    --color-amber-glow: rgba(212, 132, 42, 0.1);

    --font-display: 'Rajdhani', 'Segoe UI', sans-serif;
    --font-body: 'Outfit', 'Segoe UI', sans-serif;

    --max-width: 1120px;
    --nav-height: 64px;
}

/* ---- Reset ---- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle diamond grid overlay — voxel texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(45deg, rgba(45, 212, 191, 0.018) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(45, 212, 191, 0.018) 1px, transparent 1px);
    background-size: 48px 48px;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: var(--color-teal);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-teal-hover);
}

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

/* ---- Utility ---- */

.container {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    position: relative;
    padding: clamp(5rem, 9vw, 9rem) 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

/* Atmospheric radial glow per section */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border) 30%, var(--color-border) 70%, transparent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--color-text);
}

/* Diamond accent under section titles */
.section-title::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: var(--color-teal);
    transform: rotate(45deg);
    margin: 1.2rem auto 0;
    box-shadow: 0 0 12px var(--color-teal-glow);
}

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dim) 100%);
    color: #0a0612;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-teal-hover) 0%, var(--color-teal) 100%);
    color: #0a0612;
    box-shadow: 0 0 24px var(--color-teal-glow), 0 0 48px rgba(45, 212, 191, 0.06);
}

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

.btn-secondary:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
    box-shadow: 0 0 16px var(--color-teal-glow);
}

.btn-amber {
    background: linear-gradient(135deg, var(--color-amber) 0%, #b8721e 100%);
    color: #0a0612;
}

.btn-amber:hover {
    background: linear-gradient(135deg, var(--color-amber-hover) 0%, var(--color-amber) 100%);
    color: #0a0612;
    box-shadow: 0 0 24px var(--color-amber-glow), 0 0 48px rgba(212, 132, 42, 0.06);
}

/* ---- Navigation ---- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: transparent;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
    border-bottom: 1px solid transparent;
}

.nav-scrolled {
    background: rgba(10, 6, 18, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--color-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-logo:hover {
    color: var(--color-teal);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

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

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-teal);
    transition: width 0.25s;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s;
}

.nav-toggle.active span {
    background: var(--color-teal);
}

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

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

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

/* ---- Hero ---- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
    overflow: hidden;
}

/* 5. Hero image with parallax support */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    z-index: 0;
    transform: scale(1.1);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(10, 6, 18, 0.35) 0%, rgba(10, 6, 18, 0.65) 60%),
        linear-gradient(to bottom,
            rgba(10, 6, 18, 0.4) 0%,
            rgba(10, 6, 18, 0.55) 50%,
            var(--color-bg) 94%
        );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    width: 100%;
}

.hero-logo {
    width: clamp(90px, 16vw, 150px);
    margin: 0 auto 1.25rem;
    filter: drop-shadow(0 0 30px rgba(45, 212, 191, 0.15));
    animation: float 6s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: 0.35em;
    margin-right: -0.35em;
    line-height: 1;
    margin-bottom: 0.75rem;
    background: linear-gradient(
        90deg,
        var(--color-text) 0%,
        var(--color-text) 35%,
        var(--color-teal) 50%,
        var(--color-text) 65%,
        var(--color-text) 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 100% center; }
    50% { background-position: -100% center; }
}

/* 1. Shimmer on "The world remembers" */
.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 2.2vw, 1.3rem);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-teal);
    margin-bottom: 1.25rem;
    text-shadow: 0 0 20px var(--color-teal-glow);
    background: linear-gradient(
        90deg,
        var(--color-teal) 0%,
        var(--color-teal) 40%,
        #a0fff0 50%,
        var(--color-teal) 60%,
        var(--color-teal) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: tagline-shimmer 4s ease-in-out infinite;
}

@keyframes tagline-shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.hero-desc {
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.trailer-wrap {
    margin-bottom: 2.5rem;
}

.trailer {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #080510;
    border: 1px solid var(--color-border);
    overflow: hidden;
    cursor: pointer;
}

.trailer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.trailer-facade {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: #0a0612;
    background-size: cover;
    background-position: center;
    transition: filter 0.3s;
}

.trailer:hover .trailer-facade {
    filter: brightness(1.15);
}

.trailer-play {
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.trailer:hover .trailer-play {
    opacity: 1;
    transform: scale(1.1);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Hero CTAs — punched up to stand out against the video */
.hero-cta .btn-primary {
    background: linear-gradient(135deg, #40f0d0 0%, var(--color-teal) 100%);
    padding: 1rem 2.25rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow:
        0 0 20px rgba(45, 212, 191, 0.3),
        0 0 60px rgba(45, 212, 191, 0.1);
    animation: cta-pulse 3.5s ease-in-out infinite;
}

.hero-cta .btn-primary:hover {
    box-shadow:
        0 0 30px rgba(45, 212, 191, 0.5),
        0 0 80px rgba(45, 212, 191, 0.15);
}

@keyframes cta-pulse {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(45, 212, 191, 0.25),
            0 0 60px rgba(45, 212, 191, 0.08);
    }
    50% {
        box-shadow:
            0 0 28px rgba(45, 212, 191, 0.4),
            0 0 80px rgba(45, 212, 191, 0.14);
    }
}

.hero-cta .btn-secondary {
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.35);
    color: var(--color-teal);
    padding: 1rem 2.25rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.06);
}

.hero-cta .btn-secondary:hover {
    background: rgba(45, 212, 191, 0.14);
    border-color: var(--color-teal);
    box-shadow: 0 0 24px rgba(45, 212, 191, 0.2);
}

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, var(--color-bg));
    pointer-events: none;
    z-index: 1;
}

/* ---- Features ---- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* 4. Animated gradient border on feature cards */
.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 2rem 1.75rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-size: 200% 100%;
    animation: border-flow 4s linear infinite;
}

@keyframes border-flow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.feature-card:nth-child(odd)::before {
    background: linear-gradient(90deg, transparent, var(--color-teal), transparent, var(--color-teal), transparent);
    background-size: 200% 100%;
}

.feature-card:nth-child(even)::before {
    background: linear-gradient(90deg, transparent, var(--color-amber), transparent, var(--color-amber), transparent);
    background-size: 200% 100%;
}

.feature-card:nth-child(odd):hover {
    border-color: rgba(45, 212, 191, 0.3);
    box-shadow: 0 0 30px var(--color-teal-glow);
    transform: translateY(-2px);
}

.feature-card:nth-child(even):hover {
    border-color: rgba(212, 132, 42, 0.3);
    box-shadow: 0 0 30px var(--color-amber-glow);
    transform: translateY(-2px);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.feature-card:nth-child(odd) h3 {
    color: var(--color-teal);
}

.feature-card:nth-child(even) h3 {
    color: var(--color-amber);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ---- Demo ---- */

.demo-callout {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
    padding: 3.5rem 2.5rem;
    border: 1px solid rgba(212, 132, 42, 0.25);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(212, 132, 42, 0.04) 0%, transparent 60%),
        var(--color-surface);
    position: relative;
}

/* Corner accents */
.demo-callout::before,
.demo-callout::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--color-amber);
    border-style: solid;
}

.demo-callout::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.demo-callout::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

.demo-callout h2 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    color: var(--color-amber);
}

.demo-callout p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Demo split layout */
.demo-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.demo-text {
    padding: 2.5rem;
    border: 1px solid rgba(212, 132, 42, 0.25);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(212, 132, 42, 0.04) 0%, transparent 60%),
        var(--color-surface);
    position: relative;
}

.demo-text::before,
.demo-text::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--color-amber);
    border-style: solid;
}

.demo-text::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.demo-text::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

.demo-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    color: var(--color-amber);
}

.demo-text p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.demo-video {
    border: 1px solid rgba(212, 132, 42, 0.15);
    overflow: hidden;
    border-radius: 2px;
}

.demo-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Gallery ---- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--color-border);
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
}

/* 2. Gallery hover — zoom + glow */
.gallery-item:hover {
    border-color: var(--color-teal);
    box-shadow: 0 0 24px var(--color-teal-glow);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-placeholder {
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(ellipse at 50% 50%, #1c1435 0%, var(--color-surface) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-placeholder span {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    opacity: 0.4;
    font-family: var(--font-body);
}

/* ---- Tech ---- */

.tech-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.tech-lead {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--color-text);
    letter-spacing: 0.03em;
}

.tech-body {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.tech-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    text-align: left;
}

.tech-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 1.75rem;
    position: relative;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-amber), transparent);
}

.tech-card:hover {
    border-color: rgba(212, 132, 42, 0.3);
    box-shadow: 0 0 20px var(--color-amber-glow);
}

.tech-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--color-amber);
}

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

.tech-card a {
    color: var(--color-amber);
}

.tech-card a:hover {
    color: var(--color-amber-hover);
}

/* ---- Community ---- */

.community-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.community-lead {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.community-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.newsletter {
    width: 100%;
    max-width: 420px;
}

.newsletter-label {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.newsletter-form {
    display: flex;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-form:focus-within {
    border-color: var(--color-teal);
    box-shadow: 0 0 16px var(--color-teal-glow);
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 0.8rem 1rem;
    background: var(--color-surface);
    border: none;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.875rem;
    outline: none;
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--color-text-muted);
}

.newsletter-form .btn {
    flex-shrink: 0;
    padding: 1rem 2.25rem;
    font-size: 0.95rem;
}

.newsletter-success {
    color: var(--color-teal);
    font-size: 0.9rem;
    padding: 0.75rem 0;
}

/* ---- Footer ---- */

.footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
    position: relative;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--color-text-muted);
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-style: italic;
    color: var(--color-text-muted);
    opacity: 0.6;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

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

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

.footer-studio {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    text-decoration: none;
}

.footer-studio:hover {
    opacity: 0.9;
}

.footer-studio-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-studio-name {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-ue {
    opacity: 0.4;
    transition: opacity 0.2s;
}

.footer-ue:hover {
    opacity: 0.7;
}

.footer-ue-logo {
    height: 28px;
    width: auto;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    opacity: 0.5;
}

.footer-legal {
    font-size: 0.625rem;
    color: var(--color-text-muted);
    opacity: 0.35;
    max-width: 480px;
    text-align: center;
    line-height: 1.5;
}

/* ---- Lightbox ---- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 6, 18, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
    color: var(--color-teal);
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    cursor: default;
}

/* ---- Scroll Animations ---- */

.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger feature cards */
.feature-card.fade-in:nth-child(2) { transition-delay: 0.08s; }
.feature-card.fade-in:nth-child(3) { transition-delay: 0.16s; }
.feature-card.fade-in:nth-child(4) { transition-delay: 0.24s; }
.feature-card.fade-in:nth-child(5) { transition-delay: 0.32s; }
.feature-card.fade-in:nth-child(6) { transition-delay: 0.4s; }

/* Stagger gallery items */
.gallery-item.fade-in:nth-child(2) { transition-delay: 0.06s; }
.gallery-item.fade-in:nth-child(3) { transition-delay: 0.12s; }
.gallery-item.fade-in:nth-child(4) { transition-delay: 0.18s; }
.gallery-item.fade-in:nth-child(5) { transition-delay: 0.24s; }
.gallery-item.fade-in:nth-child(6) { transition-delay: 0.3s; }

/* ---- Responsive ---- */

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        background: rgba(10, 6, 18, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a:not(.btn) {
        font-size: 1rem;
        letter-spacing: 0.12em;
        color: var(--color-text);
    }

    .nav-cta {
        margin-top: 1rem;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-cards {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn-lg {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .demo-callout {
        padding: 2.5rem 1.5rem;
    }

    .demo-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }
}

/* ---- Accessibility ---- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-logo {
        animation: none;
    }

    .hero-title {
        animation: none;
        background: none;
        -webkit-text-fill-color: var(--color-text);
    }

    .hero-tagline {
        animation: none;
        background: none;
        -webkit-text-fill-color: var(--color-teal);
    }

    .hero-video {
        transform: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
