:root {
    --bg-color: #050608;
    --primary-orange: #ff5500;
    --primary-glow: rgba(255, 85, 0, 0.65);
    --secondary-orange: #ff8533;
    --text-color: #f3f4f6;
    --muted-text: #94a3b8;
    --terminal-bg: rgba(9, 11, 16, 0.88);
    --border-glow: 1px solid rgba(255, 85, 0, 0.35);
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --font-display: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-display);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.22;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.45) 50%),
                linear-gradient(90deg, rgba(255, 85, 0, 0.03), rgba(0, 0, 0, 0.01), rgba(255, 85, 0, 0.03));
    background-size: 100% 3px, 6px 100%;
}

.ambient-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 85, 0, 0.18) 0%, rgba(5, 6, 8, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.main-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.hud-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 85, 0, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    color: var(--muted-text);
}

.telemetry-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00ff66;
    box-shadow: 0 0 10px #00ff66;
    animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.lang-switch {
    display: flex;
    gap: 6px;
}

.lang-switch button {
    background: rgba(255, 85, 0, 0.05);
    border: 1px solid rgba(255, 85, 0, 0.3);
    color: var(--muted-text);
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.lang-switch button.active,
.lang-switch button:hover {
    color: #fff;
    border-color: var(--primary-orange);
    background: rgba(255, 85, 0, 0.2);
    box-shadow: 0 0 8px var(--primary-glow);
}

.hero {
    text-align: center;
    margin-bottom: 3.5rem;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.logo-svg {
    width: 96px;
    height: 96px;
    filter: drop-shadow(0 0 16px var(--primary-glow));
    animation: float-logo 4s ease-in-out infinite;
}

@keyframes float-logo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.title-glitch {
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    font-weight: 900;
    letter-spacing: 4px;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 0 18px var(--primary-glow), 0 0 35px rgba(255, 85, 0, 0.4);
    margin-bottom: 0.75rem;
}

.title-glitch span {
    color: var(--primary-orange);
}

.slogan-box {
    font-family: var(--font-mono);
    color: #cbd5e1;
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.slogan-highlight {
    display: block;
    color: var(--primary-orange);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 85, 0, 0.5);
    margin-top: 4px;
}

.terminal-panel {
    width: 100%;
    max-width: 780px;
    background: var(--terminal-bg);
    border: var(--border-glow);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 85, 0, 0.18), inset 0 0 25px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    margin-bottom: 3.5rem;
    overflow: hidden;
    position: relative;
}

.terminal-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-orange), transparent);
    animation: scan-line-anim 3s ease-in-out infinite;
}

@keyframes scan-line-anim {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.terminal-topbar {
    background: rgba(14, 18, 25, 0.95);
    border-bottom: 1px solid rgba(255, 85, 0, 0.25);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary-orange);
}

.terminal-controls {
    display: flex;
    gap: 6px;
}

.control-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2b303c;
}

.control-dot.active {
    background: var(--primary-orange);
    box-shadow: 0 0 6px var(--primary-glow);
}

.terminal-content {
    padding: 1.8rem;
    font-family: var(--font-mono);
}

.prompt-line {
    color: var(--secondary-orange);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: var(--primary-orange);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    list-style: none;
}

.service-badge {
    background: rgba(255, 85, 0, 0.04);
    border: 1px solid rgba(255, 85, 0, 0.16);
    border-left: 3px solid var(--primary-orange);
    padding: 10px 14px;
    border-radius: 3px;
    color: #e2e8f0;
    font-size: 0.92rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-badge:hover {
    background: rgba(255, 85, 0, 0.12);
    border-color: var(--primary-orange);
    transform: translateX(4px);
    box-shadow: 0 0 12px rgba(255, 85, 0, 0.3);
    color: #ffffff;
}

.service-badge .chevron {
    color: var(--primary-orange);
    font-weight: bold;
}

.contact-transmission {
    width: 100%;
    max-width: 650px;
    text-align: center;
    margin-bottom: 2rem;
}

.transmission-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted-text);
    margin-bottom: 1rem;
}

.comm-link-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 85, 0, 0.1);
    border: 1px solid var(--primary-orange);
    box-shadow: 0 0 20px rgba(255, 85, 0, 0.35), inset 0 0 12px rgba(255, 85, 0, 0.2);
    border-radius: 4px;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    word-break: break-all;
}

.comm-link-btn::before, .comm-link-btn::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    pointer-events: none;
}

.comm-link-btn::before {
    top: -2px;
    left: -2px;
    border-top: 2px solid var(--primary-orange);
    border-left: 2px solid var(--primary-orange);
}

.comm-link-btn::after {
    bottom: -2px;
    right: -2px;
    border-bottom: 2px solid var(--primary-orange);
    border-right: 2px solid var(--primary-orange);
}

.comm-link-btn:hover {
    background: var(--primary-orange);
    color: #050608;
    box-shadow: 0 0 35px rgba(255, 85, 0, 0.8);
    transform: translateY(-2px);
}

.comm-link-btn:hover .comm-icon {
    transform: rotate(45deg);
}

.comm-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.transmission-note {
    margin-top: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted-text);
}

footer {
    width: 100%;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted-text);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 85, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (max-width: 600px) {
    .hud-top {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .terminal-content {
        padding: 1.2rem 1rem;
    }
    .comm-link-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
        width: 100%;
    }
}