/* ==========================================================================
   ROOKAI DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-main: #06070d;
    --card-bg: rgba(13, 17, 33, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-blue: #38bdf8;
    --accent-indigo: #6366f1;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
    display: block;
    position: relative;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ==========================================================================
   CYBER ACCENT BACKGROUNDS
   ========================================================================== */
.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #04050a;
}

.grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 40px 40px;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.g1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vh;
    background: var(--accent-indigo);
}

.g2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vh;
    background: var(--accent-blue);
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-logo {
    width: 38px;
    height: 38px;
}

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

.brand-tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 1px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* ==========================================================================
   HERO INTERFACE BLOCK
   ========================================================================== */
.hero {
    text-align: center;
    padding: 100px 24px 80px 24px;
    max-width: 850px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 100px;
    margin-bottom: 28px;
    letter-spacing: 0.05em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 44px;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
}

@media (max-width: 600px) {
    .cta-group { flex-direction: column; align-items: center; }
    h1 { font-size: 2.5rem; }
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent-blue);
    color: #04050a;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.15);
}

.btn-primary:hover {
    background: #7dd3fc;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

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

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   INTERFACE SHOWCASE MATRIX (THE SCREENSHOTS FIX)
   ========================================================================== */
.showcase-section {
    position: relative;
    padding: 80px 0;
    width: 100%;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px auto;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-secondary);
    line-height: 1.5;
}

.section-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-blue);
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 12px;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 32px;
    margin-top: 40px;
    width: 100%;
}

@media (max-width: 950px) {
    .screenshot-grid {
        grid-template-columns: 1fr;
    }
}

.screenshot-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-terminal-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
}

.card-terminal-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.card-terminal-header .title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin-left: 8px;
}

.image-wrapper {
    position: relative;
    padding: 20px;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.app-screenshot {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    object-fit: contain;
}

.card-meta {
    padding: 24px;
    background: rgba(8, 10, 20, 0.6);
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-meta h3 {
    font-size: 1.2rem;
    margin: 0 0 8px 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card-meta p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   FEATURES GRID TIER
   ========================================================================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    padding: 80px 24px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s;
}

.feature-card:hover {
    border-color: rgba(56, 189, 248, 0.2);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

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

.icon-glow {
    font-size: 1.75rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* ==========================================================================
   DEPLOYMENT TERMINAL COMPONENT
   ========================================================================== */
.installation-box {
    padding: 60px 24px 120px 24px;
}

.terminal-container {
    background: #020306;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin: 0 auto;
}

.terminal-bar {
    background: rgba(255, 255, 255, 0.02);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
}

.terminal-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.terminal-bar .title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 8px;
}

.terminal-body {
    padding: 28px;
    font-size: 0.9rem;
    line-height: 1.7;
    overflow-x: auto;
}

.comment {
    color: #4b5563;
}

.prompt {
    color: var(--accent-blue);
    user-select: none;
}

/* ==========================================================================
   FOOTER TRACKS
   ========================================================================== */
.footer-meta {
    padding: 48px 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: #04050a;
}

.footer-meta p a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-meta p a:hover {
    color: var(--accent-indigo);
    text-decoration: underline;
}
