:root {
    --bg-base: #050505;
    --bg-surface: #111111;
    --bg-highlight: #1a1a1a;
    
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #555555;
    
    --accent-primary: #00ffcc;
    --accent-glow: rgba(0, 255, 204, 0.4);
    --accent-secondary: #ff0055;
    
    --border-color: #333333;
    --border-active: var(--accent-primary);
    
    --font-heading: 'Chakra Petch', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* Cyberpunk Background Noise & Grid */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 999;
    opacity: 0.04;
    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.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

.grid-background {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    pointer-events: none;
    z-index: -1;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) scale(3);
    animation: gridMove 20s linear infinite;
    transform-origin: top center;
    opacity: 0.3;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) scale(3); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(40px) scale(3); }
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-glow);
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    width: 100%;
    margin-top: 10px;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-bracket { color: var(--text-muted); }
.logo-highlight { color: var(--accent-primary); }

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link::before {
    content: '>';
    position: absolute;
    left: -15px;
    opacity: 0;
    color: var(--accent-primary);
    transition: var(--transition);
}

.nav-link:hover::before {
    opacity: 1;
    left: -12px;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    max-width: 600px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    margin-bottom: 2rem;
    color: var(--accent-primary);
    background: rgba(0, 255, 204, 0.05);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.glitch-text {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
    color: var(--text-primary);
    text-shadow: 2px 2px 0px rgba(0, 255, 204, 0.5), -2px -2px 0px rgba(255, 0, 85, 0.5);
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 450px;
}

/* Server Visual */
.hero-visual {
    width: 300px;
    height: 400px;
    perspective: 1000px;
}

.server-rack {
    width: 100%;
    height: 100%;
    border: 2px solid var(--border-color);
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    transform: rotateY(-15deg) rotateX(5deg);
    box-shadow: -20px 20px 50px rgba(0,0,0,0.8), inset 0 0 20px rgba(0,255,204,0.05);
}

.server-node {
    flex: 1;
    background: var(--bg-highlight);
    border: 1px solid #222;
    position: relative;
    overflow: hidden;
}

.server-node::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.blink-1::before { background: var(--accent-primary); box-shadow: 0 0 5px var(--accent-primary); animation: blink 1s infinite alternate; }
.blink-2::before { background: var(--accent-secondary); box-shadow: 0 0 5px var(--accent-secondary); animation: blink 0.5s infinite alternate; }
.blink-3::before { background: #ffaa00; box-shadow: 0 0 5px #ffaa00; animation: blink 2s infinite alternate; }

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-base);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: rgba(0, 255, 204, 0.1);
}

/* Plans Section */
.plans-section {
    padding: 5rem 10%;
    background: linear-gradient(to bottom, var(--bg-base), var(--bg-surface));
}

.section-header {
    margin-bottom: 4rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.plan-card {
    background: var(--bg-highlight);
    border: 1px solid var(--border-color);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.plan-card.premium {
    border-color: rgba(0, 255, 204, 0.5);
}

.card-glow {
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-primary);
}

.plan-header {
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.plan-tier {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.plan-tier.accent {
    color: var(--accent-primary);
}

.plan-name {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.plan-price .currency { font-size: 1.5rem; vertical-align: top; }
.plan-price .amount { font-size: 3rem; font-weight: 700; font-family: var(--font-heading); line-height: 1; }
.plan-price .period { color: var(--text-secondary); }

.plan-body {
    flex-grow: 1;
}

.plan-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.specs-list {
    list-style: none;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}

.specs-list li:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--text-muted);
}

.spec-value {
    font-weight: 500;
}

.plan-footer {
    margin-top: 2rem;
}

/* Modal / Checkout Wizard */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.terminal-window {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: #000;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.2);
    z-index: 1001;
}

.terminal-header {
    background: var(--accent-primary);
    color: #000;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #000;
}

.terminal-body {
    padding: 2rem;
    height: 400px;
    overflow-y: auto;
}

.checkout-step { display: none; }
.checkout-step.active { display: block; }

.step-title {
    margin-bottom: 2rem;
    font-weight: normal;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.terminal-input, .terminal-select {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    padding: 0.8rem;
    font-family: var(--font-mono);
    outline: none;
}

.terminal-input:focus, .terminal-select:focus {
    border-color: var(--accent-primary);
}

.os-selector {
    display: flex;
    gap: 10px;
}

.os-btn {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: var(--transition);
}

.os-btn.active, .os-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 255, 204, 0.05);
}

.order-summary {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px dashed var(--border-color);
    background: rgba(255,255,255,0.02);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
}

.mt-4 { margin-top: 2rem; }

/* Deployment Process */
.deployment-process {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.log-line {
    margin-bottom: 0.5rem;
    opacity: 0;
}

.log-line.visible {
    opacity: 1;
}

.log-line .ok {
    color: var(--accent-primary);
    float: right;
}

.success-message {
    margin-top: 2rem;
    border-top: 1px dashed var(--accent-primary);
    padding-top: 2rem;
    text-align: center;
    display: none;
}

.success-message.visible {
    display: block;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.ip-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid var(--accent-primary);
    text-align: left;
    font-family: var(--font-mono);
}

.spoiler {
    background: #000;
    color: #000;
    cursor: pointer;
}

.spoiler.revealed {
    color: var(--accent-primary);
}

/* Footer */
footer {
    padding: 2rem 3rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .navbar { padding: 1rem; flex-direction: column; gap: 1rem; }
    .hero { flex-direction: column; text-align: center; padding: 4rem 1rem; }
    .hero-visual { margin-top: 3rem; }
    .hero-subtitle { margin: 0 auto 2rem; }
    .plans-grid { grid-template-columns: 1fr; }
    .os-selector { flex-direction: column; }
    footer { flex-direction: column; align-items: center; gap: 1rem; }
}