@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --gold: #f59e0b;
    /* Rich Amber Gold for better contrast on white */
    --gold-glow: rgba(245, 158, 11, 0.1);
    --gold-dim: rgba(245, 158, 11, 0.05);
    --bg: #0a0a0a;
    --surface: #111111;
    --border: rgba(255, 255, 255, 0.08);
    --text-primary: #e2e8f0;
    --text-secondary: #a1a1aa;
    --noise: url("https://www.transparenttextures.com/patterns/white-diamond.png");
}

body {
    background-color: var(--bg);
    background-image: var(--noise);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Typography Overhaul */
.h1-mega {
    font-size: clamp(3.5rem, 12vw, 8.5rem);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -0.05em;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.1em;
}

.text-zinc-500 {
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

/* Hero Section */
.hero-container {
    padding: 160px 24px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    filter: blur(100px);
}

/* Premium Buttons */
.btn-primary {
    background: #000;
    color: #fff;
    font-weight: 700;
    padding: 18px 48px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 13px;
    border: 1px solid #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 700;
    padding: 18px 48px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 13px;
}

.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--text-primary);
}

.btn-premium {
    background: #000;
    color: #fff;
    padding: 20px 40px;
    border-radius: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 11px;
    font-style: italic;
    border: 1px solid #000;
}
.btn-premium:hover {
    transform: translateY(-2px);
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
    box-shadow: 0 20px 40px -12px rgba(245, 158, 11, 0.3);
}

/* Bento Cards - Light Mode Refined */
.bento-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.08), 0 18px 36px -18px rgba(0, 0, 0, 0.05);
    border-color: var(--gold);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(245, 158, 11, 0.05), transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.bento-card:hover::before {
    opacity: 1;
}

/* Glass Card (Premium Variant) */
.glass-card { 
    background: rgba(20, 20, 20, 0.6); 
    border: 1px solid var(--border); 
    border-radius: 2.5rem;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px -10px rgba(0, 0, 0, 0.05);
}
.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.08);
}

/* Form Controls */
.form-control {
    background: #f8f8f8;
    border: 1px solid #eeeeee;
    color: #09090b;
    padding: 20px 28px;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}
.form-control:focus {
    background: #ffffff;
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 4px var(--gold-glow);
}

/* Tab Buttons */
.tab-button {
    padding: 28px 40px;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    font-style: italic;
}
.tab-button.active {
    color: #09090b;
}
.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--gold);
    border-radius: 99px;
    box-shadow: 0 0 15px var(--gold);
}

.glow-avatar {
    box-shadow: 0 0 60px -15px rgba(245, 158, 11, 0.2);
}

/* Animations - Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Navbar Theme Overrides (Dark) */
nav.sticky {
    background: rgba(10, 10, 10, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
}

nav.sticky .text-white {
    color: #fff !important;
}

nav.sticky .text-white\/40,
nav.sticky .text-white\/50,
nav.sticky .text-white\/60,
nav.sticky .text-white\/70,
nav.sticky .text-white\/90 {
    color: #a1a1aa !important;
}

nav.sticky .bg-white {
    background-color: #fff !important;
    color: #000 !important;
}

nav.sticky .bg-white\/5,
nav.sticky .bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.nav-dropdown {
    background: #111 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.nav-dropdown .text-white {
    color: #fff !important;
}

.nav-dropdown .text-white\/50 {
    color: #a1a1aa !important;
}

/* Footer Theme Overrides (Dark) */
footer {
    background-color: #050505 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

footer .text-white {
    color: #fff !important;
}

footer .text-white\/30,
footer .text-white\/40,
footer .text-white\/60 {
    color: #a1a1aa !important;
}

footer .border-white\/5 {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Mesh Background (Lighter) */
.bg-mesh {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140vw;
    height: 140vh;
    background:
        radial-gradient(at 10% 10%, rgba(245, 158, 11, 0.03) 0px, transparent 40%),
        radial-gradient(at 90% 90%, rgba(59, 130, 246, 0.03) 0px, transparent 40%),
        radial-gradient(at 50% 50%, rgba(245, 158, 11, 0.02) 0px, transparent 40%);
    filter: blur(120px);
    pointer-events: none;
    z-index: -2;
}

/* Marquee / Scrolling Ticker for Contract Ledger */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-content {
    display: inline-flex;
    animation: scroll 40s linear infinite;
}

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

/* Video Demo Animations */
.animate-zoom-pulse {
    animation: zoomPulse 2s ease-in-out infinite;
}

@keyframes zoomPulse {
    0% { transform: scale(1); border-color: var(--border); }
    50% { transform: scale(1.05); border-color: var(--gold); box-shadow: 0 0 30px rgba(245, 158, 11, 0.2); }
    100% { transform: scale(1); border-color: var(--border); }
}