/* 
   DeepSigns Tier 1 - "Luxury Tech"
   Refined Palette: Deepest Void, Stark White, Champagne Gold
*/

:root {
    /* Colors */
    --bg-void: #050505;
    --bg-surface: #0A0A0A;
    --text-white: #FFFFFF;
    --text-grey: #888888;
    --text-dark: #000000;
    
    /* The "Champagne" Gold - Less Yellow, More Metallic */
    --gold-light: #E3C675; 
    --gold-dark: #9E7E2E;
    --gold-gradient: linear-gradient(135deg, #E3C675 0%, #D5B036 100%);
    
    /* UI Elements */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --glass-blur: 12px;
    
    /* Type */
    --font-display: 'Space Grotesk', sans-serif;
    --font-ui: 'Inter', sans-serif;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    background-color: var(--bg-void);
    color: var(--text-white);
    font-family: var(--font-ui);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- Background Layer --- */
.viewport-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1; pointer-events: none;
}
.viewport-bg video {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.9; /* Almost full visibility */
}
.vignette {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Smooth fade into the content areas, keeps hero bright */
    background: linear-gradient(to bottom, transparent 0%, rgba(5,5,5,0.8) 80%, #050505 100%);
    opacity: 0.6;
}
.noise {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.3; /* Reduced noise */
}

/* --- Navigation --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 1.5rem 2rem;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    background: rgba(5, 5, 5, 0.7); 
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}
.nav-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.brand img { height: 32px; width: auto; filter: brightness(1.2); }

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a:not(.btn-nav) {
    font-size: 0.9rem; color: var(--text-grey); font-weight: 500;
}
.nav-links a:not(.btn-nav):hover { color: var(--text-white); }

.btn-nav {
    font-size: 0.85rem; font-weight: 600;
    border: 1px solid var(--gold-light); /* Gold border */
    color: var(--gold-light); /* Gold text */
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    background: rgba(0,0,0,0.4); /* Slight dark tint */
    white-space: nowrap;
    transition: all 0.3s ease;
}
.btn-nav:hover { 
    background: var(--gold-light); 
    color: #000; /* Black text on hover */
    box-shadow: 0 0 15px rgba(227, 198, 117, 0.4); /* Gold glow */
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 2rem; 
    position: relative; 
    z-index: 1; /* Ensure Hero is above background */
}
.hero-content { 
    max-width: 900px; width: 100%; 
    position: relative; z-index: 2; /* Ensure Content is above Hero base */
}

.label-pill {
    display: inline-block;
    font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gold-light);
    border: 1px solid rgba(213, 176, 54, 0.3);
    padding: 0.4rem 0.8rem; border-radius: 100px;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-head {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    line-height: 1.0;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    text-shadow: 0 4px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
}

.gradient-text {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #D5B036;
    color: #D5B036;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9);
}

.hero-sub {
    font-size: clamp(1.1rem, 4vw, 1.35rem);
    color: #ffffff;
    max-width: 560px; margin: 0 auto 3.5rem;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 0 10px rgba(0,0,0,0.7);
}

.cta-group {
    display: flex; flex-direction: column; align-items: center; gap: 3rem;
}

/* Premium Button: White Core */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--text-white);
    color: var(--text-dark);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 20px rgba(255,255,255,0.15);
    width: fit-content;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255,255,255,0.25);
}

/* Hero Stats */
.stats-row {
    display: flex; gap: 2.5rem; align-items: center;
    /* Darker background for better readability over video */
    background: rgba(0,0,0,0.8); /* Increased opacity */
    padding: 1rem 2rem;
    border-radius: 100px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    z-index: 10; position: relative;
}
.stat { display: flex; flex-direction: column; line-height: 1.2; /* Increased line-height to prevent clipping */ }
.stat .val { 
    font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--text-white); 
    text-shadow: 0 2px 10px rgba(0,0,0,1); /* Stronger shadow */
}
.stat .desc { 
    font-size: 0.8rem; color: #ffffff; 
    text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; 
    font-weight: 700; /* Extra bold */
    text-shadow: 0 2px 10px rgba(0,0,0,1); /* Stronger shadow */
    display: block; /* Ensure it takes space */
}
.sep { width: 1px; height: 30px; background: rgba(255,255,255,0.2); }

/* --- Editorial Section (Glass HUD) --- */
.editorial { 
    padding: 10rem 0; 
    position: relative;
    background: transparent; /* Let the dark overlay of video handle base */
}

/* The "Glass Pane" effect */
.editorial::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.85); /* Dark but see-through */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Technical Grid Overlay */
.editorial::after {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }

.grid-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: start;
}

.col-left h2 {
    font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.col-left .bar {
    width: 80px; height: 2px; background: var(--gold-light); margin-top: 2.5rem;
    box-shadow: 0 0 15px rgba(213, 176, 54, 0.5);
}

.col-right .lead {
    font-size: clamp(1.25rem, 3vw, 1.5rem); color: var(--text-white); font-weight: 500; margin-bottom: 2rem;
    line-height: 1.4;
}
.col-right p {
    font-size: 1.15rem; color: var(--text-grey); margin-bottom: 1.5rem;
    font-weight: 300;
}

/* --- Access Box (Technical Card) --- */
.access-wrap { 
    padding: 8rem 0 12rem; 
    position: relative;
    background: transparent;
}
/* Glass pane for access too */
.access-wrap::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.95); /* Dark, solid background to block video */
    backdrop-filter: blur(20px);
    z-index: -1;
}

.access-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0; 
    padding: 6rem 2rem;
    text-align: center;
    position: relative; overflow: hidden;
    z-index: 5; /* Force on top */
    /* Corner accents */
    background-image: 
        linear-gradient(var(--gold-light), var(--gold-light)), 
        linear-gradient(var(--gold-light), var(--gold-light)),
        linear-gradient(var(--gold-light), var(--gold-light)), 
        linear-gradient(var(--gold-light), var(--gold-light));
    background-repeat: no-repeat;
    background-size: 2px 20px, 20px 2px;
    background-position: top left, top left, bottom right, bottom right;
}

.glow-bg {
    position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
    width: 60%; height: 100%;
    background: radial-gradient(circle, rgba(213, 176, 54, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.box-content { position: relative; z-index: 1; max-width: 500px; margin: 0 auto; }
.box-content h2 {
    font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem;
}
.box-content p { color: var(--text-grey); margin-bottom: 3rem; font-size: 1.1rem; }

.modern-form {
    display: flex; gap: 0.5rem;
    background: rgba(0,0,0,0.3);
    padding: 0.5rem;
    border: 1px solid var(--border-subtle);
}
.modern-form input {
    flex: 1; background: transparent; border: none;
    padding: 0 1rem; color: var(--text-white); outline: none; font-size: 1rem;
    min-width: 0;
}
.modern-form button {
    background: var(--text-white); color: var(--text-dark);
    font-weight: 600; padding: 0.8rem 2rem;
    transition: 0.2s; white-space: nowrap; cursor: pointer;
    border-radius: 0; /* Sharp */
}
.modern-form button:hover { background: #ddd; }

/* --- Minimal Footer (Restored Stability) --- */
.footer {
    padding: 5rem 0 3rem;
    /* Gold gradient separator to distinguish from section above */
    border-top: 1px solid transparent;
    border-image: linear-gradient(to right, transparent, var(--gold-light), transparent) 1;
    background: #020202; /* Slightly darker than body */
    position: relative;
    z-index: 2;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}
.footer-logo { height: 24px; width: auto; object-fit: contain; filter: grayscale(1) brightness(1.5); opacity: 0.9; }
.footer-tagline { font-size: 0.9rem; color: var(--text-grey); margin-top: -0.5rem; }

.copyright-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    margin-top: 1rem;
}
.sophon-link { color: inherit; opacity: 0.7; text-decoration: none; transition: 0.2s; }
.sophon-link:hover { color: var(--text-white); opacity: 1; }

.footer-right {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}
.footer-right a {
    font-size: 0.9rem;
    color: var(--text-grey);
    transition: 0.2s;
}
.footer-right a:hover { color: var(--text-white); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .navbar { padding: 1rem 1.5rem; }
    .nav-links a:not(.btn-nav) { display: none; } 
    
    .hero { padding-top: 8rem; padding-bottom: 4rem; min-height: auto; }
    .hero-head { margin-bottom: 1rem; }
    
    .stats-row { gap: 1.5rem; margin-top: 1rem; }
    .stat .val { font-size: 1.25rem; }
    
    .editorial { padding: 4rem 0; }
    .grid-split { grid-template-columns: 1fr; gap: 3rem; }
    .col-left .bar { margin-top: 1.5rem; }
    
    .access-wrap { padding: 4rem 0 6rem; }
    .access-box { padding: 3rem 1.5rem; }
    
    .modern-form { flex-direction: column; background: transparent; border: none; padding: 0; }
    .modern-form input { 
        background: rgba(255,255,255,0.05); 
        margin-bottom: 1rem; 
        padding: 1rem; 
        border-radius: 0;
        width: 100%;
    }
    .modern-form button { width: 100%; padding: 1rem; border-radius: 0; }
    
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }
    .footer-left { gap: 1rem; width: 100%; }
    .copyright-block { margin-top: 0.5rem; }
    
    .footer-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
        border-top: 1px solid var(--border-subtle);
        padding-top: 2rem;
    }
}

/* --- Animation Utils --- */
.fade-up { opacity: 0; transform: translateY(20px); transition: 1s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; animation: fadeIn 1.5s forwards; }
.js-enabled .fade-up,
html:not(.js-enabled) .fade-up { opacity: 1; transform: none; } /* Fallback if JS missing */
.delay-1 { transition-delay: 0.1s; animation-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; animation-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; animation-delay: 0.3s; }
@keyframes fadeIn { to { opacity: 1; } }

/* CSS-only Hero Animation (No JS dependency for first paint) */
@keyframes fadeUpSimple {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.hero-animate {
    /* opacity: 0;  <-- Removed to prevent permanent invisibility if animation fails */
    animation: fadeUpSimple 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-animate.delay-1 { animation-delay: 0.2s; }
.hero-animate.delay-2 { animation-delay: 0.4s; }
.hero-animate.delay-3 { animation-delay: 0.6s; }
