/* TraumaBox Product Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --tb-accent: #ff6600;
    --tb-accent-light: #ff8533;
    --tb-accent-dark: #cc5200;
    --tb-green: #00ff41;
    --tb-green-dark: #00cc33;
    --bg-dark: #0a0a0a;
    --bg-card: #0d0d0d;
    --bg-card-alt: #111111;
    --text-white: #f0f0f0;
    --text-light: #cccccc;
    --text-gray: #888888;
    --text-muted: #555555;
    --border-subtle: rgba(255, 102, 0, 0.2);
    --glow-tb: rgba(255, 102, 0, 0.15);
    --danger: #ff3333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Mono', 'Consolas', monospace;
    background: var(--bg-dark);
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px
        );
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-white);
    overflow-x: hidden;
}

/* Scanline overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1000;
}

/* Glitch text effect */
.glitch-text {
    position: relative;
}

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

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--tb-green);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--tb-accent);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    5% { clip: rect(70px, 9999px, 71px, 0); }
    10% { clip: rect(29px, 9999px, 24px, 0); }
    15% { clip: rect(63px, 9999px, 99px, 0); }
    20% { clip: rect(16px, 9999px, 7px, 0); }
    25% { clip: rect(75px, 9999px, 86px, 0); }
    30% { clip: rect(12px, 9999px, 28px, 0); }
    35% { clip: rect(36px, 9999px, 60px, 0); }
    40% { clip: rect(67px, 9999px, 91px, 0); }
    45% { clip: rect(55px, 9999px, 47px, 0); }
    50% { clip: rect(18px, 9999px, 82px, 0); }
    55% { clip: rect(88px, 9999px, 54px, 0); }
    60% { clip: rect(31px, 9999px, 23px, 0); }
    65% { clip: rect(99px, 9999px, 35px, 0); }
    70% { clip: rect(8px, 9999px, 66px, 0); }
    75% { clip: rect(45px, 9999px, 79px, 0); }
    80% { clip: rect(26px, 9999px, 13px, 0); }
    85% { clip: rect(73px, 9999px, 40px, 0); }
    90% { clip: rect(51px, 9999px, 95px, 0); }
    95% { clip: rect(39px, 9999px, 58px, 0); }
    100% { clip: rect(83px, 9999px, 21px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(22px, 9999px, 45px, 0); }
    10% { clip: rect(79px, 9999px, 32px, 0); }
    15% { clip: rect(11px, 9999px, 89px, 0); }
    20% { clip: rect(56px, 9999px, 17px, 0); }
    25% { clip: rect(34px, 9999px, 73px, 0); }
    30% { clip: rect(91px, 9999px, 48px, 0); }
    35% { clip: rect(6px, 9999px, 85px, 0); }
    40% { clip: rect(42px, 9999px, 27px, 0); }
    45% { clip: rect(77px, 9999px, 62px, 0); }
    50% { clip: rect(14px, 9999px, 96px, 0); }
    55% { clip: rect(68px, 9999px, 38px, 0); }
    60% { clip: rect(25px, 9999px, 81px, 0); }
    65% { clip: rect(53px, 9999px, 9px, 0); }
    70% { clip: rect(87px, 9999px, 52px, 0); }
    75% { clip: rect(3px, 9999px, 70px, 0); }
    80% { clip: rect(60px, 9999px, 19px, 0); }
    85% { clip: rect(94px, 9999px, 44px, 0); }
    90% { clip: rect(30px, 9999px, 76px, 0); }
    95% { clip: rect(47px, 9999px, 15px, 0); }
    100% { clip: rect(72px, 9999px, 59px, 0); }
}

/* Blink animation */
@keyframes boot-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.animate-boot-blink {
    animation: boot-blink 1s infinite;
}

/* Navigation */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0) 100%);
    border-bottom: 1px solid rgba(255, 102, 0, 0.1);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 12px;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--tb-accent);
}

.nav-logo {
    height: 40px;
    opacity: 0.9;
}

/* Navbar for legal pages */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(255, 102, 0, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--tb-accent);
}

.logo-icon {
    font-size: 16px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 60px 80px;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid var(--border-subtle);
    padding: 8px 16px;
    border-radius: 0;
    font-size: 10px;
    color: var(--tb-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    width: fit-content;
    font-family: 'IBM Plex Mono', monospace;
}

.hero-badge::before {
    content: '▸';
    animation: boot-blink 1s infinite;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--tb-accent);
    line-height: 1.1;
    letter-spacing: -2px;
    font-family: 'IBM Plex Sans', sans-serif;
}

.hero-title span {
    color: var(--text-white);
}

.hero-tagline {
    font-size: 18px;
    color: var(--tb-green);
    font-weight: 400;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-description {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-gray);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'IBM Plex Mono', monospace;
}

.btn-primary {
    background: var(--tb-accent);
    color: #000;
    border: 2px solid var(--tb-accent);
}

.btn-primary:hover {
    background: var(--tb-accent-light);
    border-color: var(--tb-accent-light);
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--tb-green);
    border: 2px solid var(--tb-green);
}

.btn-secondary:hover {
    background: var(--tb-green);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-logo-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--glow-tb) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.1); }
}

.hero-logo {
    width: 300px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 60px rgba(255, 102, 0, 0.5));
}

/* Sections */
.section {
    padding: 100px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    font-size: 10px;
    color: var(--tb-green);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    display: block;
    font-family: 'IBM Plex Mono', monospace;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    font-family: 'IBM Plex Sans', sans-serif;
}

.section-title span {
    color: var(--tb-accent);
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--tb-accent), transparent);
}

.feature-card:hover {
    border-color: var(--tb-accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 16px;
    color: var(--tb-accent);
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Content Section */
.content-section {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 102, 0, 0.02) 50%, transparent 100%);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--tb-accent) 0%, transparent 100%);
    opacity: 0.1;
}

.content-card:hover {
    border-color: var(--tb-accent);
    transform: translateY(-4px);
}

.content-label {
    font-size: 10px;
    color: var(--tb-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.content-title {
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 16px;
    font-weight: 600;
}

.content-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Warning Banner */
.warning-banner {
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.3);
    padding: 24px 32px;
    margin: 60px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.warning-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.warning-text {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

.warning-text strong {
    color: var(--danger);
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 102, 0, 0.1);
    padding: 40px 60px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-logo {
    height: 32px;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--tb-accent);
}

.footer-copyright {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'IBM Plex Mono', monospace;
}

/* Legal Pages */
.legal-page {
    padding: 120px 40px 80px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px;
}

.legal-content h1 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--tb-accent);
    font-weight: 700;
}

.legal-content .last-updated {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'IBM Plex Mono', monospace;
}

.legal-content section {
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 18px;
    color: var(--tb-green);
    margin-bottom: 16px;
    margin-top: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-content h3 {
    font-size: 15px;
    color: var(--text-white);
    margin-bottom: 12px;
    margin-top: 24px;
}

.legal-content p {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 16px;
    color: var(--text-light);
}

.legal-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-content li {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
    color: var(--text-light);
}

.legal-content li strong {
    color: var(--text-white);
}

.legal-content a {
    color: var(--tb-accent);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-logo-container {
        width: 300px;
        height: 300px;
    }
    
    .hero-logo {
        width: 220px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-header,
    .navbar {
        padding: 16px 20px;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .footer {
        padding: 30px 20px;
    }
    
    .legal-page {
        padding: 100px 20px 60px;
    }
    
    .legal-content {
        padding: 32px 24px;
    }
    
    .legal-content h1 {
        font-size: 28px;
    }
}
