/* ========================================
   BerMich Labs - WOW Design System
   3D Animations & Premium Effects
   ======================================== */

:root {
    /* The Shark - Silent Apex */
    --black: #0a0f14;
    --black-pure: #050a0e;
    --white: #e8eaed;
    --gray-100: #c5ccd3;
    --gray-200: #9aa5b1;
    --gray-400: #6b7a8a;
    --gray-600: #3d5a73;
    --gray-800: #1a2a3a;
    --gray-900: #0f1820;
    --accent: #c41e3a;
    --accent-glow: rgba(196, 30, 58, 0.2);
    --blue-steel: #3d5a73;
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Geist', -apple-system, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
}

/* Subtle noise overlay for premium feel */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9990;
}

body.loading {
    overflow: hidden;
}

::selection {
    background: var(--accent);
    color: var(--white);
}

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

/* ========================================
   Loader
   ======================================== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* Logo Container */
.loader-logo {
    width: clamp(120px, 25vw, 180px);
    height: clamp(120px, 25vw, 180px);
    position: relative;
}

.loader-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Hexagon Draw Animation */
.loader-hex {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: drawHex 1.5s var(--ease) forwards;
}

@keyframes drawHex {
    to { stroke-dashoffset: 0; }
}

/* B Shape Reveal */
.loader-b {
    opacity: 0;
    transform-origin: 256px 224px;
    transform: scale(0.8);
    animation: revealB 0.8s var(--ease) 0.8s forwards;
}

@keyframes revealB {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Accent Bar Slide */
.loader-accent-bar {
    transform: scaleX(0);
    transform-origin: 156px 224px;
    animation: slideAccent 0.6s var(--ease) 1.2s forwards;
}

@keyframes slideAccent {
    to { transform: scaleX(1); }
}

/* Accent Dot Pulse */
.loader-dot {
    opacity: 0;
    animation:
        dotAppear 0.4s var(--ease) 0.6s forwards,
        dotPulse 1.5s ease-in-out 1s infinite;
}

@keyframes dotAppear {
    to { opacity: 1; }
}

@keyframes dotPulse {
    0%, 100% {
        r: 10;
        filter: url(#loaderGlow);
    }
    50% {
        r: 14;
        filter: url(#loaderGlow) brightness(1.3);
    }
}

/* Subtle Logo Float */
.loader-svg {
    animation: logoFloat 3s ease-in-out 1.5s infinite;
}

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

/* Minimal Text Below Logo */
.loader-text-minimal {
    font-family: var(--font-display);
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    overflow: hidden;
    color: var(--gray-200);
}

.loader-text-minimal span {
    display: inline-block;
    animation: loaderLetter 0.5s var(--ease) forwards;
    opacity: 0;
    transform: translateY(100%);
}

.loader-text-minimal span:nth-child(1) { animation-delay: 1.4s; }
.loader-text-minimal span:nth-child(2) { animation-delay: 1.45s; }
.loader-text-minimal span:nth-child(3) { animation-delay: 1.5s; }
.loader-text-minimal span:nth-child(4) { animation-delay: 1.55s; }
.loader-text-minimal span:nth-child(5) { animation-delay: 1.6s; }
.loader-text-minimal span:nth-child(6) { animation-delay: 1.65s; }
.loader-text-minimal span:nth-child(7) { animation-delay: 1.7s; }

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


/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.5s var(--ease);
}

.navbar.scrolled {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    transition: transform 0.5s var(--ease);
}

.logo:hover .logo-icon {
    transform: rotate(180deg);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    position: relative;
    overflow: hidden;
    height: 1.5em;
}

.nav-link-text,
.nav-link-hover {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: transform 0.4s var(--ease);
}

.nav-link-hover {
    position: absolute;
    top: 100%;
    left: 0;
    color: var(--accent);
}

.nav-link:hover .nav-link-text {
    transform: translateY(-100%);
}

.nav-link:hover .nav-link-hover {
    transform: translateY(-100%);
}

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

.menu-line {
    width: 32px;
    height: 2px;
    background: var(--white);
    transition: all 0.4s var(--ease);
    transform-origin: center;
}

.menu-toggle.active .menu-line:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active .menu-line:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    clip-path: circle(0% at calc(100% - 3rem) 3rem);
    transition: clip-path 0.8s var(--ease);
}

.mobile-nav.active {
    clip-path: circle(150% at calc(100% - 3rem) 3rem);
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.6s var(--ease);
}

.mobile-nav.active .mobile-link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav.active .mobile-link:nth-child(1) { transition-delay: 0.2s; }
.mobile-nav.active .mobile-link:nth-child(2) { transition-delay: 0.25s; }
.mobile-nav.active .mobile-link:nth-child(3) { transition-delay: 0.3s; }

.mobile-link:hover {
    color: var(--accent);
    transform: translateX(20px);
}

.mobile-nav-footer {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 8rem 3rem 4rem;
    overflow: hidden;
}

/* Hero Background - Linear/Vercel/Stripe Style */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background: #000;
}

/* Base gradient - deep dark with subtle color */
.mesh-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 100% 100% at 0% 0%, rgba(15, 25, 35, 1) 0%, transparent 50%),
        radial-gradient(ellipse 80% 80% at 100% 0%, rgba(20, 35, 50, 0.8) 0%, transparent 40%),
        radial-gradient(ellipse 60% 60% at 100% 100%, rgba(10, 20, 30, 0.6) 0%, transparent 50%),
        linear-gradient(180deg, #000 0%, #050a10 50%, #0a1018 100%);
}

/* Top glow line - Linear/Stripe signature effect */
.top-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(59, 130, 246, 0.3) 20%,
        rgba(139, 92, 246, 0.5) 50%,
        rgba(59, 130, 246, 0.3) 80%,
        transparent 100%
    );
    box-shadow:
        0 0 20px rgba(59, 130, 246, 0.3),
        0 0 60px rgba(139, 92, 246, 0.2),
        0 0 100px rgba(59, 130, 246, 0.1);
}

.top-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 200px;
    background: radial-gradient(ellipse 100% 100% at 50% 0%,
        rgba(59, 130, 246, 0.1) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* Premium Glow Orbs - Subtle and elegant */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0;
    animation: fadeInOrb 2s ease-out forwards;
}

@keyframes fadeInOrb {
    to { opacity: 1; }
}

.gradient-orb-1 {
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    top: -400px;
    right: -200px;
    animation: orbDrift1 30s ease-in-out infinite, fadeInOrb 2s ease-out forwards;
    animation-delay: 0s, 2.5s;
}

.gradient-orb-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    top: 20%;
    right: 20%;
    animation: orbDrift2 25s ease-in-out infinite, fadeInOrb 2s ease-out forwards;
    animation-delay: -5s, 2.8s;
}

.gradient-orb-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.1) 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
    animation: orbDrift3 35s ease-in-out infinite, fadeInOrb 2s ease-out forwards;
    animation-delay: -10s, 3.1s;
}

.gradient-orb-4 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 30%;
    animation: orbDrift4 28s ease-in-out infinite, fadeInOrb 2s ease-out forwards;
    animation-delay: -15s, 3.4s;
}

@keyframes orbDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-30px, 20px) scale(1.05); }
    50% { transform: translate(-50px, 40px) scale(0.95); }
    75% { transform: translate(-20px, 20px) scale(1.02); }
}

@keyframes orbDrift2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(40px, -30px); }
    66% { transform: translate(-20px, 40px); }
}

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

@keyframes orbDrift4 {
    0%, 100% { transform: translate(0, 0); opacity: 0.6; }
    50% { transform: translate(-40px, -30px); opacity: 1; }
}

/* Glow spots - Primary accent lights */
.glow-spot {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    animation: fadeInGlow 2s ease-out forwards;
}

@keyframes fadeInGlow {
    to { opacity: 1; }
}

.glow-spot-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
    top: 10%;
    right: 30%;
    animation: glowBreath 8s ease-in-out infinite, fadeInGlow 2s ease-out forwards;
    animation-delay: 0s, 3s;
}

.glow-spot-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.2) 0%, transparent 70%);
    bottom: 20%;
    right: 40%;
    animation: glowBreath 10s ease-in-out infinite, fadeInGlow 2s ease-out forwards;
    animation-delay: -3s, 3.3s;
}

@keyframes glowBreath {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

/* Subtle Grid - Linear style */
.grid-overlay {
    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: 64px 64px;
    mask-image:
        linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%),
        radial-gradient(ellipse 80% 50% at 50% 50%, black 0%, transparent 100%);
    -webkit-mask-image:
        linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%),
        radial-gradient(ellipse 80% 50% at 50% 50%, black 0%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
    opacity: 0.5;
}

/* Film Grain - Premium texture */
.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Bottom vignette fade */
.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: linear-gradient(to top,
        rgba(10, 15, 20, 1) 0%,
        rgba(10, 15, 20, 0.8) 30%,
        transparent 100%
    );
    pointer-events: none;
}

/* Floating Particles - Subtle stars */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

/* Cursor Trail - Subtle and elegant */
.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.trail-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

/* Gradient overlay for text readability */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 80%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 1s var(--ease) 2.5s forwards;
}

.tag-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 9vw, 7rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.hero-title em {
    font-style: italic;
    color: var(--accent);
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text::before {
    color: var(--accent);
    animation: glitch-1 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    color: var(--blue-steel);
    animation: glitch-2 2s infinite linear alternate-reverse;
}

.glitch-text:hover::before,
.glitch-text:hover::after {
    opacity: 0.8;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 95% 0); transform: translate(-2px, 0); }
    20% { clip-path: inset(30% 0 50% 0); transform: translate(2px, 0); }
    40% { clip-path: inset(70% 0 10% 0); transform: translate(-2px, 0); }
    60% { clip-path: inset(10% 0 80% 0); transform: translate(2px, 0); }
    80% { clip-path: inset(50% 0 30% 0); transform: translate(-2px, 0); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(95% 0 0 0); transform: translate(2px, 0); }
    20% { clip-path: inset(50% 0 30% 0); transform: translate(-2px, 0); }
    40% { clip-path: inset(10% 0 70% 0); transform: translate(2px, 0); }
    60% { clip-path: inset(80% 0 10% 0); transform: translate(-2px, 0); }
    80% { clip-path: inset(30% 0 50% 0); transform: translate(2px, 0); }
}

/* Scramble Text */
.scramble-text {
    display: inline-block;
}

.scramble-char {
    display: inline-block;
    transition: transform 0.1s ease;
}

.scramble-char.scrambling {
    animation: scrambleChar 0.1s infinite;
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: titleReveal 1s var(--ease) forwards;
}

.title-line:nth-child(1) .title-word { animation-delay: 2.6s; }
.title-line:nth-child(2) .title-word { animation-delay: 2.9s; }

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--gray-400);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 1s var(--ease) 3.2s forwards;
}

.hero-cta {
    opacity: 0;
    animation: fadeUp 1s var(--ease) 3.4s forwards;
}

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

/* Hero Stats */
.hero-stats {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 2;
}

.stat {
    text-align: right;
    opacity: 0;
    animation: fadeLeft 1s var(--ease) forwards;
}

.stat:nth-child(1) { animation-delay: 3.5s; }
.stat:nth-child(2) { animation-delay: 3.6s; }
.stat:nth-child(3) { animation-delay: 3.7s; }

@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-value.counter::after {
    content: '+';
}

/* Magnetic Element */
.magnetic-element {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Reveal Mask Animation */
.reveal-mask {
    position: relative;
    overflow: hidden;
}

.reveal-mask::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateX(-101%);
    z-index: 10;
}

.reveal-mask.revealed::before {
    animation: revealMask 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

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

.stat-label {
    font-size: 0.6875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========================================
   Buttons
   ======================================== */
.btn-main {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: var(--white);
    color: var(--black);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s var(--ease);
}

.btn-bg {
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateY(101%);
    transition: transform 0.5s var(--ease);
}

.btn-main:hover .btn-bg {
    transform: translateY(0);
}

.btn-main:hover {
    color: var(--white);
}

.btn-text, .btn-icon {
    position: relative;
    z-index: 1;
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.4s var(--ease);
}

.btn-main:hover .btn-icon {
    transform: translate(4px, -4px);
}

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

.btn-light .btn-bg {
    background: var(--white);
}

.btn-light:hover {
    color: var(--black);
}

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

/* ========================================
   Marquee
   ======================================== */
.marquee {
    padding: 2rem 0;
    border-top: 1px solid var(--gray-800);
    border-bottom: 1px solid var(--gray-800);
    overflow: hidden;
    background: var(--gray-900);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem;
}

.marquee-item {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.marquee-item:hover {
    color: var(--accent);
}

.marquee-divider {
    font-size: 0.75rem;
    color: var(--accent);
}

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

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 10rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.section-header {
    margin-bottom: 5rem;
}

.section-index {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-title em {
    font-style: italic;
    color: var(--accent);
}

/* ========================================
   About Section
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.text-large {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.text-body {
    font-size: 1.0625rem;
    color: var(--gray-400);
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    transition: all 0.5s var(--ease);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* 3D Tilt Card Effect */
.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
}

.tilt-card .feature-icon,
.tilt-card .feature-title,
.tilt-card .feature-desc {
    transform: translateZ(30px);
    transition: transform 0.3s ease;
}

.tilt-card:hover .feature-icon {
    transform: translateZ(50px);
}

.tilt-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.1) 0%,
        transparent 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tilt-card:hover::after {
    opacity: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}

.feature-card:hover {
    border-color: var(--accent);
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--accent);
    position: relative;
    z-index: 1;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--gray-400);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    background: var(--gray-900);
}

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

.service-item {
    display: grid;
    grid-template-columns: 80px 1fr 200px;
    gap: 4rem;
    padding: 4rem 0;
    border-top: 1px solid var(--gray-800);
    position: relative;
    transition: all 0.5s var(--ease);
}

/* Distortion Hover Effect */
.distort-hover {
    position: relative;
}

.distort-hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(196, 30, 58, 0.03) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.distort-hover:hover::after {
    transform: translateX(100%);
}

.distort-hover:hover .service-title {
    animation: textDistort 0.3s ease;
}

@keyframes textDistort {
    0%, 100% { transform: skewX(0deg); }
    25% { transform: skewX(-2deg); }
    75% { transform: skewX(2deg); }
}

.service-item:last-child {
    border-bottom: 1px solid var(--gray-800);
}

.service-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--accent);
    transition: width 0.5s var(--ease);
}

.service-item:hover::before {
    width: 4px;
}

.service-item:hover {
    padding-left: 2rem;
}

.service-index {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
}

.service-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-item:hover .service-title {
    color: var(--accent);
}

.service-desc {
    font-size: 1rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
}

.service-tags li {
    padding: 0.5rem 1rem;
    background: var(--gray-800);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-item:hover .service-tags li {
    background: var(--accent);
    color: var(--white);
}

.service-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-shape {
    width: 120px;
    height: 120px;
    border: 2px solid var(--gray-700);
    border-radius: 50%;
    position: relative;
    transition: all 0.5s var(--ease);
}

.service-shape::before {
    content: '';
    position: absolute;
    inset: 20%;
    background: var(--accent);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.5s var(--ease);
}

.service-item:hover .service-shape {
    border-color: var(--accent);
    transform: rotate(90deg) scale(1.1);
}

.service-item:hover .service-shape::before {
    transform: scale(1);
}

.service-item.featured .service-shape::before {
    transform: scale(1);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 12rem 0;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(180deg, var(--black) 0%, #050a10 100%);
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.cta-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    top: -200px;
    left: 30%;
    animation: ctaOrbFloat 20s ease-in-out infinite;
}

.cta-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    bottom: -150px;
    right: 25%;
    animation: ctaOrbFloat 25s ease-in-out infinite reverse;
}

@keyframes ctaOrbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.cta-title em {
    font-style: italic;
    color: var(--accent);
}

.cta-text {
    font-size: 1.25rem;
    color: var(--gray-400);
    margin-bottom: 3rem;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
}

.contact-lead {
    font-size: 1.125rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.contact-links {
    margin-bottom: 3rem;
}

.contact-link-item {
    display: block;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-800);
    transition: all 0.3s ease;
}

a.contact-link-item:hover {
    padding-left: 1rem;
    border-color: var(--accent);
}

.link-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.link-value {
    font-size: 1.125rem;
    font-weight: 500;
}

.social-row {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-800);
    color: var(--gray-400);
    transition: all 0.3s var(--ease);
}

.social-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-4px);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.5rem 0 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gray-800);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 1.5rem;
    font-size: 1rem;
    color: var(--gray-600);
    pointer-events: none;
    transition: all 0.3s var(--ease);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.form-group input:focus ~ .form-line,
.form-group select:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    transform: scaleX(1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--gray-800);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-brand p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-top: 1rem;
    max-width: 280px;
}

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

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.footer-col a {
    display: block;
    font-size: 0.9375rem;
    color: var(--gray-400);
    padding: 0.375rem 0;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: 1px solid var(--gray-800);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.footer-time {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-variant-numeric: tabular-nums;
}

/* ========================================
   Reveal Animations
   ======================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s var(--ease);
}

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

.split-text {
    overflow: hidden;
}

/* Service reveal animations */
.service-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease);
}

.service-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-item:nth-child(1) { transition-delay: 0s; }
.service-item:nth-child(2) { transition-delay: 0.1s; }
.service-item:nth-child(3) { transition-delay: 0.2s; }
.service-item:nth-child(4) { transition-delay: 0.3s; }

/* Feature card reveal - only opacity to preserve 3D tilt */
.feature-card {
    opacity: 0;
    transition: opacity 0.8s var(--ease), border-color 0.5s var(--ease);
}

.feature-card.visible {
    opacity: 1;
}

.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.15s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1200px) {
    .hero-stats { display: none; }
    .service-item { grid-template-columns: 60px 1fr; }
    .service-visual { display: none; }
}

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .menu-toggle { display: flex; }

    .about-grid { grid-template-columns: 1fr; gap: 4rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
    .footer-top { flex-direction: column; gap: 3rem; }
    .footer-links { gap: 3rem; }
}

@media (max-width: 768px) {
    .nav-container,
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .section { padding: 6rem 0; }

    .service-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-index {
        display: none;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .footer-col {
        flex: 1;
        min-width: 120px;
    }
}
