/* 
   ShellGhost Premium Theme
   Fonts: Inter (UI), Fira Code (Terminal)
*/

:root {
    /* Colors */
    --bg-deep: #050505;
    --bg-glass: rgba(18, 18, 20, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);

    --text-primary: #f2f2f2;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;

    --accent-glow: rgba(59, 130, 246, 0.5);
    /* Blue glow */
    --accent-glow-alt: rgba(16, 185, 129, 0.3);
    /* Green glow */

    /* Terminal Colors */
    --term-bg: #09090b;
    --term-header: #121214;
    --prompt: #10b981;
    /* Emerald */
    --keyword: #3b82f6;
    /* Blue */
    --string: #f59e0b;
    /* Amber */
    --comment: #71717a;
    /* Zinc */
    --success: #10b981;
    --info: #8b5cf6;
    /* Violet */
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    /* Smooth dark background */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(20, 20, 25, 1), transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(15, 20, 30, 1), transparent 50%);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.highlight {
    background: linear-gradient(to right, #60a5fa, #34d399);
    -webkit-background-clip: text;
    color: transparent;
}

.highlight-text {
    color: #f8fafc;
    font-weight: 600;
}

code,
pre,
.terminal-body {
    font-family: 'Fira Code', monospace;
}

/* Background Cinematic Effects */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(var(--border-glass) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-glass) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.15;
    z-index: -2;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
}

.ambient-glow.primary {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--accent-glow);
    opacity: 0.4;
}

.ambient-glow.secondary {
    top: 30%;
    right: -20%;
    width: 60vw;
    height: 60vw;
    background: var(--accent-glow-alt);
    opacity: 0.3;
}

/* Layout */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-btn.primary {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-glass);
    transition: all 0.2s;
}

.nav-btn.primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

.btn.primary {
    background: #f8fafc;
    color: #020617;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

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

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6rem 0 4rem;
    gap: 4rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1.5rem auto 3rem;
}

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

/* Glass Panels */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: inherit;
    mask-image: linear-gradient(to bottom right, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom right, black, transparent);
}

/* Terminal Component */
.terminal-wrapper {
    width: 100%;
    max-width: 850px;
    position: relative;
    perspective: 1000px;
}

.terminal-glow {
    position: absolute;
    inset: -20px;
    background: inherit;
    filter: blur(40px);
    z-index: -1;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.1));
}

.terminal-container {
    background-color: rgba(9, 9, 11, 0.8);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border-glass);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.terminal-container:hover {
    transform: translateY(-5px) scale(1.01);
}

.terminal-header {
    background: var(--term-header);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-glass);
    border-radius: 12px 12px 0 0;
}

.window-controls {
    display: flex;
    gap: 8px;
    width: 60px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.8;
}

.close {
    background: #ef4444;
}

.minimize {
    background: #f59e0b;
}

.maximize {
    background: #10b981;
}

.window-title {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: 'Fira Code', monospace;
}

.header-spacer {
    width: 60px;
}

.terminal-body {
    padding: 30px;
    font-size: 0.95rem;
    min-height: 250px;
}

.typewriter-line {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.terminal-response {
    margin: 10px 0 20px 0;
    padding-left: 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.hidden {
    display: none;
}

/* Utilities */
.text-glow {
    text-shadow: 0 0 10px currentColor;
}

.prompt {
    color: var(--prompt);
    margin-right: 12px;
}

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

.comment {
    color: var(--comment);
    margin-bottom: 1rem;
}

.text-success {
    color: var(--success);
    font-weight: bold;
}

.text-info {
    color: var(--info);
}

.keyword {
    color: var(--keyword);
}

.string {
    color: var(--string);
}

/* Features */
.features-section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1px));
    gap: 2rem;
    justify-content: center;
    /* Center the grid items if there's less than max width */
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: 2.5rem;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 2rem;
    color: #60a5fa;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Install */
.install-section {
    padding: 4rem 0 8rem;
    display: flex;
    justify-content: center;
}

.install-card {
    width: 100%;
    max-width: 700px;
    padding: 2.5rem;
}

.install-header {
    margin-bottom: 2rem;
    text-align: center;
}

.install-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

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

.code-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.5rem;
}

.tab {
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    padding: 0.5rem;
    transition: color 0.2s;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: #f8fafc;
    border-bottom: 2px solid #60a5fa;
    margin-bottom: -0.5rem;
}

.code-content-wrapper {
    background: #010409;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    overflow: hidden;
}

.code-pane {
    display: none;
    padding: 1.5rem;
    position: relative;
}

.code-pane.active {
    display: block;
}

.code-pane pre {
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
    font-size: 0.9rem;
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.install-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-weight: 800;
}

.footer-logo {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #f8fafc;
}

/* Animations */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 {
    transition-delay: 0.2s;
}

.reveal.delay-2 {
    transition-delay: 0.4s;
}

::selection {
    background-color: rgba(96, 165, 250, 0.3);
    color: white;
}