/* ============================================
   TAHRU DEVELOPMENT - SCP.TAHRU.COM
   Enterprise Protocol Portal
   ============================================ */

/* CSS Variables - Tahru Brand */
:root {
    --tahru-black: #0a0a0f;
    --tahru-dark: #12121a;
    --tahru-darker: #0d0d14;
    --tahru-gold: #d4af37;
    --tahru-gold-bright: #f4cf57;
    --tahru-gold-dim: #9a7d28;
    --tahru-blue: #00d4ff;
    --tahru-blue-dim: #0099bb;
    --tahru-green: #00ff88;
    --tahru-red: #ff4444;
    --tahru-white: #f0f0f5;
    --tahru-gray: #6a6a7a;
    --tahru-gray-light: #9a9aaa;
    --tahru-border: #2a2a3a;
    
    --font-display: 'Inter', 'SF Pro Display', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
    
    --transition-fast: 0.15s ease;
    --transition-med: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-display);
    background: var(--tahru-black);
    color: var(--tahru-white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 212, 255, 0.02) 0%, transparent 50%),
        linear-gradient(180deg, var(--tahru-black) 0%, var(--tahru-darker) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

.gold-text { color: var(--tahru-gold); }
.blue-text { color: var(--tahru-blue); }
.green-text { color: var(--tahru-green); }
.dim-text { color: var(--tahru-gray); }

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--tahru-border);
    padding: 1rem 2rem;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--tahru-white);
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--tahru-gold), var(--tahru-gold-dim));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--tahru-black);
}

.nav-logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--tahru-gray-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--tahru-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tahru-gold);
    transition: width var(--transition-med);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--tahru-gold), var(--tahru-gold-dim));
    color: var(--tahru-black);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

/* Main Container */
.main {
    padding-top: 80px;
    min-height: 100vh;
}

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

.section {
    padding: 6rem 0;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--tahru-gold-dim);
    color: var(--tahru-gold);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--tahru-white), var(--tahru-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--tahru-gray-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-value {
    font-size: 6rem;
    font-weight: 800;
    color: var(--tahru-gold);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 60px rgba(212, 175, 55, 0.4);
}

.hero-value-label {
    font-size: 1.25rem;
    color: var(--tahru-gray);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--tahru-gold), var(--tahru-gold-dim));
    color: var(--tahru-black);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
}

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

.btn-secondary:hover {
    background: var(--tahru-gold);
    color: var(--tahru-black);
}

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

.btn-outline:hover {
    border-color: var(--tahru-gold);
    color: var(--tahru-gold);
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cards */
.card {
    background: var(--tahru-dark);
    border: 1px solid var(--tahru-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition-med);
}

.card:hover {
    border-color: var(--tahru-gold-dim);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tahru-gold);
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 4rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--tahru-dark);
    border: 1px solid var(--tahru-border);
    border-radius: 12px;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--tahru-gold);
    margin-bottom: 0.5rem;
}

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

/* Terminal */
.terminal {
    background: #0d0d0d;
    border: 1px solid var(--tahru-border);
    border-radius: 12px;
    overflow: hidden;
    font-family: var(--font-mono);
}

.terminal-header {
    background: #1a1a1a;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--tahru-border);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-title {
    margin-left: 1rem;
    color: var(--tahru-gray);
    font-size: 0.85rem;
}

.terminal-body {
    padding: 1.5rem;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.terminal-prompt {
    color: var(--tahru-green);
}

.terminal-command {
    color: var(--tahru-white);
}

.terminal-output {
    color: var(--tahru-gray-light);
}

.terminal-success {
    color: var(--tahru-green);
}

.terminal-error {
    color: var(--tahru-red);
}

.terminal-highlight {
    color: var(--tahru-gold);
    font-weight: 600;
}

/* Progress Bar */
.progress-bar {
    background: var(--tahru-border);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--tahru-gold), var(--tahru-gold-bright));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th,
.data-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--tahru-border);
}

.data-table th {
    background: var(--tahru-darker);
    color: var(--tahru-gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.data-table tr:hover td {
    background: rgba(212, 175, 55, 0.05);
}

.data-table .highlight {
    color: var(--tahru-gold);
    font-weight: 600;
}

/* Split Terminal */
.split-terminal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.split-terminal .terminal {
    height: 500px;
}

.terminal-label {
    position: absolute;
    top: -2rem;
    left: 0;
    font-size: 0.85rem;
    color: var(--tahru-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Calculator */
.calculator {
    background: var(--tahru-dark);
    border: 1px solid var(--tahru-border);
    border-radius: 16px;
    padding: 3rem;
}

.calculator-header {
    text-align: center;
    margin-bottom: 3rem;
}

.calculator-input-group {
    margin-bottom: 2rem;
}

.calculator-label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--tahru-gray-light);
    font-size: 0.9rem;
}

.calculator-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--tahru-darker);
    border: 1px solid var(--tahru-border);
    border-radius: 8px;
    color: var(--tahru-white);
    font-size: 1.25rem;
    font-family: var(--font-display);
    transition: border-color var(--transition-fast);
}

.calculator-input:focus {
    outline: none;
    border-color: var(--tahru-gold);
}

.calculator-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--tahru-border);
    border-radius: 4px;
    margin-top: 0.5rem;
}

.calculator-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--tahru-gold);
    border-radius: 50%;
    cursor: pointer;
}

.calculator-results {
    background: var(--tahru-darker);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.calculator-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--tahru-border);
}

.calculator-result-row:last-child {
    border-bottom: none;
}

.calculator-result-label {
    color: var(--tahru-gray-light);
}

.calculator-result-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.calculator-result-value.savings {
    color: var(--tahru-green);
}

.calculator-result-value.cost {
    color: var(--tahru-red);
}

/* Chart Container */
.chart-container {
    background: var(--tahru-dark);
    border: 1px solid var(--tahru-border);
    border-radius: 12px;
    padding: 2rem;
    height: 400px;
}

/* Protocol Cards */
.protocol-card {
    background: var(--tahru-dark);
    border: 1px solid var(--tahru-border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.protocol-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tahru-gold), var(--tahru-blue));
}

.protocol-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--tahru-gold);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.protocol-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.protocol-metric {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--tahru-border);
}

.protocol-metric:last-child {
    border-bottom: none;
}

/* Ticker */
.ticker-container {
    background: var(--tahru-dark);
    border: 1px solid var(--tahru-border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.ticker-item {
    text-align: center;
}

.ticker-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.ticker-label {
    color: var(--tahru-gray);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.ticker-separator {
    width: 1px;
    height: 60px;
    background: var(--tahru-border);
}

/* Copy Button */
.copy-btn {
    background: var(--tahru-dark);
    border: 1px solid var(--tahru-border);
    color: var(--tahru-gray-light);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    border-color: var(--tahru-gold);
    color: var(--tahru-gold);
}

.copy-btn.copied {
    background: var(--tahru-green);
    border-color: var(--tahru-green);
    color: var(--tahru-black);
}

/* Command Block */
.command-block {
    background: #0d0d0d;
    border: 1px solid var(--tahru-border);
    border-radius: 8px;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.command-text {
    color: var(--tahru-green);
    white-space: nowrap;
    overflow-x: auto;
}

/* Footer */
.footer {
    background: var(--tahru-darker);
    border-top: 1px solid var(--tahru-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    color: var(--tahru-gray-light);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-heading {
    color: var(--tahru-gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--tahru-gray-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--tahru-gold);
}

.footer-bottom {
    border-top: 1px solid var(--tahru-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--tahru-gray);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

.cursor-blink::after {
    content: '▋';
    animation: blink 1s step-end infinite;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--tahru-gold-dim);
    color: var(--tahru-gold);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--tahru-gray-light);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Download Cards */
.download-card {
    background: var(--tahru-dark);
    border: 1px solid var(--tahru-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.download-info h4 {
    margin-bottom: 0.25rem;
}

.download-info p {
    color: var(--tahru-gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-value {
        font-size: 3.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .split-terminal {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none; }
.relative { position: relative; }
