/* ==========================================================================
   TwoTower Cyber Defense - Modern Hi-Tech Single Page Landing Page
   ========================================================================== */

:root {
    --bg-primary: #030712;
    --bg-secondary: #080c15;
    --bg-card: #0f1626;
    --bg-card-hover: #141d33;
    
    --cyan: #00f0ff;
    --cyan-glow: rgba(0, 240, 255, 0.4);
    --cyan-soft: rgba(0, 240, 255, 0.08);
    
    --cobalt: #1e40af;
    --cobalt-light: #3b82f6;
    --cobalt-glow: rgba(59, 130, 246, 0.4);
    
    --emerald: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.35);
    
    --red: #ef4444;
    --red-glow: rgba(239, 68, 68, 0.4);
    
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 240, 255, 0.15);
    
    --font-outfit: 'Outfit', sans-serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Grids */
.matrix-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(var(--bg-secondary) 1px, transparent 0),
        linear-gradient(to right, rgba(0, 240, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 240, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 40px 40px;
    z-index: -2;
    pointer-events: none;
    opacity: 0.85;
}

.glow-ambience {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

.glow-left {
    background: var(--cobalt-light);
    top: -10%;
    left: -10%;
}

.glow-right {
    background: var(--cyan);
    bottom: -10%;
    right: -10%;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-outfit);
    font-weight: 800;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
}

/* Interactive Layout Elements */
.glass-panel {
    background: rgba(15, 22, 38, 0.7);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.05);
}

/* Main Navbar */
.nav-container {
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container.scrolled {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* Two Towers Visual Component */
.towers-visual-section {
    position: relative;
    height: 480px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding-bottom: 40px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    background: radial-gradient(circle at 50% 50%, rgba(15, 22, 38, 0.8) 0%, transparent 100%);
    border-radius: 24px;
    overflow: hidden;
}

.tower-column {
    position: relative;
    width: 140px;
    height: 320px;
    background: linear-gradient(180deg, rgba(8, 12, 21, 0.9) 0%, rgba(15, 22, 38, 0.95) 100%);
    border-left: 2px solid var(--cyan);
    border-right: 2px solid var(--cyan);
    border-top: 4px solid var(--cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 10px;
}

.tower-column:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 45px rgba(0, 240, 255, 0.3);
}

.tower-column.tower-2 {
    border-left-color: var(--cobalt-light);
    border-right-color: var(--cobalt-light);
    border-top-color: var(--cobalt-light);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

.tower-column.tower-2:hover {
    box-shadow: 0 0 45px rgba(59, 130, 246, 0.3);
}

.tower-node {
    width: 16px;
    height: 16px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--cyan);
    margin: 0 auto;
    position: relative;
}

.tower-column.tower-2 .tower-node {
    background: var(--cobalt-light);
    box-shadow: 0 0 15px var(--cobalt-light);
}

.perimeter-beam {
    position: absolute;
    bottom: 120px;
    left: 15%;
    right: 15%;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--cobalt-light));
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    z-index: 5;
}

.beam-pulse {
    position: absolute;
    width: 20px;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 15px #fff;
    border-radius: 50%;
    animation: beamMove 3s infinite linear;
}

/* Laser Scan overlay for Hero */
.laser-radar {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.laser-radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, rgba(0, 240, 255, 0.1) 0%, transparent 40%);
    border-radius: 50%;
    animation: rotateSweep 6s infinite linear;
}

/* Interactive Calculator Options */
.option-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-box:hover {
    border-color: rgba(0, 240, 255, 0.3);
    background: rgba(255, 255, 255, 0.02);
}

.option-box.active {
    border-color: var(--cyan);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

/* Custom Buttons */
.cyber-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.cyber-button-primary {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 20px var(--cyan-glow);
}

.cyber-button-primary:hover {
    background: #5bf7ff;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

.cyber-button-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border: 1px solid var(--border-color);
}

.cyber-button-secondary:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.cyber-button-emergency {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    box-shadow: 0 0 20px var(--red-glow);
}

.cyber-button-emergency:hover {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
}

/* Status Indicators */
.dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-green {
    background-color: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
}

.dot-red {
    background-color: var(--red);
    box-shadow: 0 0 8px var(--red);
    animation: blink 1s infinite alternate;
}

/* Specific Section Adjustments */
.hero-content {
    background: radial-gradient(circle at 10% 20%, rgba(15, 22, 38, 0.4) 0%, transparent 50%);
}

.pricing-table-card {
    border-top: 4px solid var(--border-color);
}

.pricing-table-card.featured-card {
    border-top: 4px solid var(--cyan);
}

/* Animations */
@keyframes beamMove {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes rotateSweep {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes blink {
    to { opacity: 0.3; }
}

/* Responsive grid system */
.grid-cols-custom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
