/* =============================================
   TRIDENT LAB — Production Stylesheet
   Vanilla CSS (CDN Tailwind compatible)
   ============================================= */

body {
    background-color: #0a0b10;
    color: #e2e8f0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Safari Support for Backdrop Blurs */
nav {
    -webkit-backdrop-filter: blur(24px) !important;
    backdrop-filter: blur(24px) !important;
}

/* Premium Obsidian Card */
.obsidian-card {
    background: #0e1017;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
}

.obsidian-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255,255,255,0.02);
}

/* Form Inputs - Classic Premium B2B */
.b2b-input {
    width: 100%;
    background: #050608;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.b2b-input::placeholder {
    color: #4b5563;
}

.b2b-input:focus {
    border-color: #10B981;
}

/* Emerald Tag */
.tag-emerald {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Emerald CTA Button */
.btn-emerald {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    background: #10B981;
    color: #0a0b10;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.btn-emerald:hover {
    background: #059669;
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

/* Premium Input (Underline Style) */
.premium-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.premium-input::placeholder {
    color: #374151;
}

.premium-input:focus {
    border-bottom-color: #10B981;
}

/* Canvas Matrix Background */
#network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* Terminal Typing Cursor */
.terminal-cursor {
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* Sticky Scroll Layout */
.sticky-container {
    height: 300vh;
    position: relative;
}

.sticky-content-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.sticky-layer {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.sticky-layer.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* High-End Card Sweep Animation */
.hover-sweep {
    position: relative;
    overflow: hidden;
}
.hover-sweep::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
}

/* Fade In Up Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* 3D Tilt Utilities */
.perspective-1000 {
    perspective: 1000px;
}
.preserve-3d {
    transform-style: preserve-3d;
}
.translate-z-0 {
    transform: translateZ(0);
}
.translate-z-10 {
    transform: translateZ(30px);
}

/* Select dropdown arrow */
select.b2b-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
    -webkit-appearance: none;
    appearance: none;
}
