@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,600,700,900&f[]=clash-display@400,500,600,700&display=swap');

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

:root {
    --bg: #0A0A0A;
    --surface: #141414;
    --surface-alt: #1A1A1A;
    --text-primary: #E8E6E3;
    --text-secondary: #8B8A87;
    --text-muted: #5C5B58;
    --accent: #FF2A2A;
    --accent-hover: #FF5555;
    --accent-subtle: rgba(255,42,42,0.06);
    --border-hairline: rgba(255,255,255,0.06);
    --border-soft: rgba(255,255,255,0.10);
    --shadow-ambient: 0 1px 2px rgba(0,0,0,0.2), 0 4px 16px rgba(0,0,0,0.3);
    --shadow-float: 0 2px 4px rgba(0,0,0,0.2), 0 12px 40px rgba(0,0,0,0.4);
    --shadow-elevated: 0 4px 8px rgba(0,0,0,0.2), 0 24px 64px rgba(0,0,0,0.5);
    --ease-premium: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 2.5rem;
    --radius-xl: 3rem;
}

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.01em;
    font-weight: 500;
    overflow-x: hidden;
}

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

/* Floating Glass Pill Nav */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: auto;
    max-width: calc(100vw - 48px);
}

.navbar .container {
    background: rgba(20,20,20,0.82);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 100px;
    padding: 0.55rem 0.8rem 0.55rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02), 0 8px 32px rgba(0,0,0,0.06);
    transition: all 0.5s var(--ease-premium);
    max-width: 100%;
}

.navbar.scrolled .container {
    background: rgba(20,20,20,0.94);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 12px 40px rgba(0,0,0,0.4);
}

.logo {
    flex-shrink: 0;
    z-index: 101;
}

.logo h1 {
    font-family: 'Clash Display', 'Satoshi', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo .logo-mark {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Clash Display', sans-serif;
}

.tagline {
    font-size: 0.68rem;
    color: var(--text-muted);
    display: block;
    margin-top: 1px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 8px;
    z-index: 101;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.5s var(--ease-premium);
    border-radius: 1px;
    transform-origin: center;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.5s var(--ease-premium);
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--text-primary);
    background: var(--accent-subtle);
}

.nav-menu a.active {
    color: var(--text-primary);
    background: var(--accent-subtle);
    font-weight: 600;
}

.nav-logout { opacity: 0.5; font-size: 0.8rem !important; }
.nav-logout:hover { color: #DC2626 !important; background: rgba(220,38,38,0.06) !important; opacity: 1; }

/* Hero Video Background */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: 16/9;
    max-height: 100dvh;
}

.hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) saturate(0.9) contrast(1.1);
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

/* Hero Canvas Background (fallback) */
#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* Hero Section — video/animation only */
.hero {
    position: relative;
    height: 100dvh;
    overflow: hidden;
    isolation: isolate;
}

/* Dark mode utility */
.bg-light, .section.bg-light { background: var(--surface-alt) !important; }

/* Hero Content — below the animation */
.hero-content-section {
    background: var(--bg);
    padding: 80px 0;
    text-align: center;
}

.hero-content-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.hero-content-section h1 {
    font-family: 'Clash Display', 'Satoshi', sans-serif;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-content-section h1 em {
    font-style: normal;
    position: relative;
    display: inline-block;
}

.hero-content-section h1 em::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 0.4em;
    background: var(--accent-subtle);
    z-index: -1;
}

.hero-content-section .hero-desc {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    max-width: 700px;
}

.hero-content-section .hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-content-section .hero-stat-value {
    font-family: 'Clash Display', 'Satoshi', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hero-content-section .hero-stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-content-section .eyebrow {
    color: var(--text-secondary);
    background: var(--surface-alt);
    border-color: var(--border-hairline);
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-content-section .eyebrow-dot {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(74,222,128,0.5);
}

/* Old hero — keep animations */
.hero.has-video {
    min-height: auto;
    display: block;
    grid-template-columns: none;
    padding: 0;
    max-width: 100%;
}

.hero.has-video .hero-content {
    display: none;
}

.hero.has-video .hero-desc,
.hero.has-video .hero-stat-value,
.hero.has-video .hero-stat-label,
.hero.has-video .eyebrow {
    color: inherit;
}

.hero.has-video h1 em::after {
    background: rgba(255,255,255,0.3);
}

.hero.has-video .hero-particle {
    background: rgba(255,255,255,0.15);
}

.hero.has-video #heroCanvas {
    opacity: 0.2;
}

/* Text reveal — chars appear one by one */
.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(24px);
    animation: charReveal 0.6s var(--ease-out-expo) forwards;
}

@keyframes charReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* 3D Tilt Card */
.hero-visual {
    position: relative;
    z-index: 2;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.hero-visual-inner {
    width: 100%;
    aspect-ratio: 1;
    background: var(--surface);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-visual-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 40% 40%, rgba(13,13,13,0.03), transparent 60%);
    z-index: 1;
}

.hero-visual-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 60%);
    z-index: 2;
    pointer-events: none;
}

/* Glare effect on tilt */
.tilt-glare {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, transparent 70%);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Floating particles */
.hero-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(40px) scale(0); opacity: 0; }
}

/* Magnetic overlay for buttons */
.magnetic-area {
    position: relative;
    display: inline-block;
}

/* Eyebrow pill tag */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border-hairline);
    border-radius: 100px;
    padding: 6px 14px 6px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    width: fit-content;
    box-shadow: var(--shadow-ambient);
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 8px rgba(34,197,94,0.4);
    animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
    font-family: 'Clash Display', 'Satoshi', sans-serif;
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.hero h1 em {
    font-style: normal;
    position: relative;
}

.hero h1 em::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0.12;
}

.hero-desc {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 44ch;
}

.hero-stats {
    display: flex;
    gap: 56px;
    margin-top: 8px;
}

.hero-stat-value {
    font-family: 'Clash Display', 'Satoshi', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-feature-settings: 'tnum';
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual-inner {
    width: 100%;
    aspect-ratio: 1;
    background: var(--surface);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 40% 40%, rgba(13,13,13,0.03), transparent 60%);
    z-index: 1;
}

.hero-visual-text {
    font-family: 'Clash Display', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: rgba(13,13,13,0.03);
    letter-spacing: -0.05em;
    user-select: none;
    position: relative;
    z-index: 1;
}

/* Double-Bezel Card Architecture */
.bezel-outer {
    background: rgba(0,0,0,0.02);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 6px;
    box-shadow: var(--shadow-ambient);
    transition: all 0.7s var(--ease-premium);
}

.bezel-outer:hover {
    box-shadow: var(--shadow-float);
    border-color: var(--border-soft);
}

.bezel-inner {
    background: var(--surface);
    border-radius: calc(var(--radius-lg) - 6px);
    padding: 40px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.5);
    height: 100%;
    transition: all 0.7s var(--ease-premium);
}

/* Buttons — Button-in-Button architecture */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border: none;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.7s var(--ease-premium);
    text-decoration: none;
    position: relative;
}

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

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(13,13,13,0.12), 0 8px 24px rgba(13,13,13,0.08);
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(13,13,13,0.16), 0 12px 36px rgba(13,13,13,0.12);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-ambient);
}
.btn-secondary:hover {
    border-color: rgba(0,0,0,0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-float);
}

.btn-lg { padding: 22px 44px; font-size: 1.15rem; font-weight: 600; }
.btn-sm { padding: 10px 22px; font-size: 0.9rem; font-weight: 600; }

.btn-icon-trailing {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.7s var(--ease-premium);
}

.btn:hover .btn-icon-trailing {
    transform: translateX(3px) translateY(-1px) scale(1.05);
    background: rgba(255,255,255,0.22);
}

.btn-secondary .btn-icon-trailing {
    background: var(--accent-subtle);
}

.btn-secondary:hover .btn-icon-trailing {
    background: rgba(13,13,13,0.08);
    transform: translateX(3px) translateY(-1px) scale(1.05);
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sections — massive breathing room */
.section {
    padding: 120px 0;
    position: relative;
}

@media (min-width: 768px) {
    .section { padding: 160px 0; }
}

.section-label {
    display: inline-flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border-hairline);
    border-radius: 100px;
    padding: 5px 16px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
    box-shadow: var(--shadow-ambient);
}

.section h2 {
    font-family: 'Clash Display', 'Satoshi', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.08;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 500;
    max-width: 56ch;
    margin-bottom: 72px;
    line-height: 1.6;
}

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

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

/* Asymmetrical Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    grid-auto-flow: dense;
}

.bento-col-4 { grid-column: span 4; }
.bento-col-5 { grid-column: span 5; }
.bento-col-6 { grid-column: span 6; }
.bento-col-7 { grid-column: span 7; }
.bento-col-8 { grid-column: span 8; }
.bento-row-2 { grid-row: span 2; }

/* Card content styles */
.card-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-subtle);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    margin-bottom: 24px;
    transition: all 0.7s var(--ease-premium);
}

.bezel-outer:hover .card-icon {
    transform: scale(1.05);
    background: rgba(13,13,13,0.08);
}

.card-icon svg { width: 20px; height: 20px; stroke-width: 1.5; }

.bezel-inner h3 {
    font-family: 'Clash Display', 'Satoshi', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.bezel-inner p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

/* Accent card */
.bezel-accent .bezel-outer {
    background: var(--accent);
    border-color: var(--accent);
}
.bezel-accent .bezel-inner {
    background: var(--accent);
    color: white;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
}
.bezel-accent h3, .bezel-accent p { color: white; }
.bezel-accent .card-icon { background: rgba(255,255,255,0.12); color: white; }
.bezel-accent .btn { background: white; color: var(--accent); }

/* Legacy 3-col fallback */
.features, .catalog-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    grid-auto-flow: dense;
}

.feature-card, .catalog-item {
    grid-column: span 4;
}

.feature-icon, .catalog-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-subtle);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.feature-card h3, .catalog-item h3 {
    font-family: 'Clash Display', 'Satoshi', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.feature-card p, .catalog-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* 2-col zig-zag */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Contact — asymmetrical */
.contact-methods {
    display: grid;
    grid-template-columns: 5fr 3fr 4fr;
    gap: 16px;
}

.contact-method-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-ambient);
    transition: all 0.7s var(--ease-premium);
}
.contact-method-card:hover {
    box-shadow: var(--shadow-float);
    transform: translateY(-3px);
}

.contact-method-card:first-child {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.contact-method-card:first-child h3,
.contact-method-card:first-child p { color: white; }
.contact-method-card:first-child .contact-icon { background: rgba(255,255,255,0.12); color: white; }
.contact-method-card:first-child .btn-secondary { background: white; color: var(--accent); border-color: white; }

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-subtle);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact-method-card h3 {
    font-family: 'Clash Display', 'Satoshi', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-method-card p { color: var(--text-secondary); margin-bottom: 20px; font-size: 0.95rem; }

/* Marquee */
.marquee-section {
    padding: 80px 0;
    overflow: hidden;
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
    background: var(--surface);
}

.marquee-track {
    display: flex;
    gap: 80px;
    animation: marquee 50s linear infinite;
    width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    font-family: 'Clash Display', 'Satoshi', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    letter-spacing: -0.02em;
    transition: color 0.7s var(--ease-premium);
}
.marquee-item:hover { color: var(--text-primary); }

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 160px 0;
}

.cta-section h2 {
    font-family: 'Clash Display', 'Satoshi', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

/* Scroll entry animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(4px);
    transition: all 0.9s var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Page Header */
.page-header {
    background: var(--text-primary);
    color: white;
    padding: 160px 0 96px;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 40% 50%, rgba(255,255,255,0.04), transparent 60%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
    font-family: 'Clash Display', 'Satoshi', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.page-header p { font-size: 1.1rem; color: rgba(255,255,255,0.5); }

/* Modal — glass overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
}
.modal.open { display: block; }

.modal-content {
    background: var(--surface);
    margin: 8% auto;
    padding: 44px;
    border-radius: var(--radius-xl);
    width: 92%;
    max-width: 460px;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.15);
    border: 1px solid var(--border-hairline);
    animation: modalIn 0.5s var(--ease-out-expo);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.close {
    position: absolute;
    right: 24px;
    top: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-subtle);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.5s var(--ease-premium);
}
.close:hover { background: rgba(0,0,0,0.08); color: var(--text-primary); transform: rotate(90deg); }

#authForm, .stack-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

#authForm input, .stack-form input, .stack-form textarea {
    padding: 15px 18px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text-primary);
    transition: all 0.5s var(--ease-premium);
}
#authForm input:focus, .stack-form input:focus, .stack-form textarea:focus {
    outline: none;
    border-color: rgba(0,0,0,0.2);
    box-shadow: 0 0 0 4px var(--accent-subtle);
}

.toggle-form { text-align: center; margin-top: 16px; }
.toggle-form a { color: var(--text-primary); text-decoration: none; font-weight: 600; }
.toggle-form a:hover { text-decoration: underline; }

/* Chat Button */
.floating-chat-btn {
    position: fixed;
    bottom: 36px;
    right: 36px;
    background: var(--accent);
    color: white;
    padding: 18px 30px;
    border-radius: 100px;
    box-shadow: 0 4px 16px rgba(13,13,13,0.15), 0 12px 40px rgba(13,13,13,0.1);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.7s var(--ease-premium);
    font-weight: 600;
    border: none;
}
.floating-chat-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(13,13,13,0.2), 0 20px 56px rgba(13,13,13,0.14);
}

.chat-icon svg { width: 20px; height: 20px; }
.chat-text { font-weight: 600; font-size: 0.95rem; }

/* Scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 36px;
    left: 36px;
    width: 48px;
    height: 48px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-float);
    transition: all 0.7s var(--ease-premium);
    z-index: 1000;
    opacity: 0;
    transform: translateY(16px);
}
.scroll-to-top.visible { display: flex; opacity: 1; transform: translateY(0); }
.scroll-to-top:hover { transform: translateY(-4px) scale(1.06); box-shadow: var(--shadow-elevated); }

/* Footer */
footer {
    background: var(--text-primary);
    color: rgba(255,255,255,0.45);
    padding: 48px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Social links */
.social-links { display: flex; gap: 12px; flex-wrap: wrap; }
.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.7s var(--ease-premium);
}
.social-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.social-link.vk { background: #4680C2; }
.social-link.telegram { background: #0088cc; }
.social-link.drom { background: #E31E24; }

/* Scroll reveal using JS */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* Mobile Nav Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(32px);
    z-index: 99;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-overlay.active { display: flex; }

.nav-overlay a {
    font-family: 'Clash Display', 'Satoshi', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.5s var(--ease-premium);
    opacity: 0;
    transform: translateY(16px);
}

.nav-overlay.active a {
    opacity: 1;
    transform: translateY(0);
}

.nav-overlay a:nth-child(1) { transition-delay: 0.05s; }
.nav-overlay a:nth-child(2) { transition-delay: 0.1s; }
.nav-overlay a:nth-child(3) { transition-delay: 0.15s; }
.nav-overlay a:nth-child(4) { transition-delay: 0.2s; }
.nav-overlay a:nth-child(5) { transition-delay: 0.25s; }
.nav-overlay a:nth-child(6) { transition-delay: 0.3s; }
.nav-overlay a:nth-child(7) { transition-delay: 0.35s; }

.nav-overlay a:hover { background: var(--accent-subtle); }

/* Responsive */
@media (max-width: 1024px) {
    .hero { height: 60dvh; }
    .bento-grid, .features, .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .bento-col-4, .bento-col-5, .bento-col-6, .bento-col-7, .bento-col-8 { grid-column: span 1; }
    .feature-card, .catalog-item { grid-column: span 1; }
    .contact-methods { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    .navbar { top: 12px; }
    .navbar .container { position: relative; padding: 0.5rem 0.8rem 0.5rem 1.2rem; }

    .mobile-menu-toggle { display: flex; }
    .nav-menu { display: none; }
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        background: var(--surface);
        border: 1px solid var(--border-hairline);
        border-radius: 16px;
        padding: 8px;
        gap: 4px;
        box-shadow: var(--shadow-elevated);
    }
    .nav-menu.active a {
        color: var(--text-primary);
        font-size: 1rem;
        padding: 12px 16px;
        border-radius: 10px;
        width: 100%;
    }
    .nav-menu.active a:hover { background: var(--accent-subtle); }

    .hero { height: 50dvh; }
    .hero-content-section { padding: 48px 0; }
    .hero-content-section h1 { font-size: 2.2rem; }
    .hero-content-section .hero-stats { gap: 28px; }
    .hero-content-section .hero-stat-value { font-size: 1.5rem; }

    .section { padding: 80px 0; }
    .section h2 { font-size: 2rem; }

    .bento-grid, .features, .catalog-grid { grid-template-columns: 1fr; }
    .bento-row-2 { grid-row: span 1; }

    .floating-chat-btn { bottom: 20px; right: 20px; padding: 0; width: 54px; height: 54px; border-radius: 50%; justify-content: center; }
    .chat-text { display: none; }
    .scroll-to-top { bottom: 20px; left: 20px; width: 40px; height: 40px; }

    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }

    .page-header { padding: 120px 0 64px; }
    .cta-section { padding: 96px 0; }
    .bezel-inner { padding: 28px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .section h2 { font-size: 1.6rem; }
    .marquee-item { font-size: 1.2rem; }
    .marquee-track { gap: 48px; }
}
