:root {
    --bg-deep: #07090e;
    --bg-surface: #0e121c;
    --bg-card: #141a28;
    --border-color: #222b40;
    --accent-red: #e63946;
    --accent-red-glow: rgba(230, 57, 70, 0.25);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Clean Scientific Grid Background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(to right, rgba(34, 43, 64, 0.12) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(34, 43, 64, 0.12) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
}

.ambient-glow {
    position: fixed;
    top: -15vh;
    left: 50%;
    transform: translateX(-50%);
    width: 65vw;
    height: 45vh;
    background: radial-gradient(circle, var(--accent-red-glow) 0%, rgba(7, 9, 14, 0) 75%);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(7, 9, 14, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.star-icon {
    color: var(--accent-red);
    font-size: 1.3rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover, .active-nav {
    color: var(--text-primary);
}

.nav-cta {
    color: var(--text-primary) !important;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.55rem 1.15rem;
    border-radius: 6px;
}

.nav-cta:hover {
    border-color: var(--accent-red);
}

/* Hero Section */
.hero {
    padding: 13rem 0 7rem;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--accent-red);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--accent-red);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--accent-red-glow);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
}

/* Dashboard Grid Section */
.dashboard-section {
    padding: 4rem 0 8rem;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.pathway-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.25rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pathway-card:hover {
    border-color: var(--accent-red);
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.pathway-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.pathway-card p {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    font-size: 0.93rem;
}

/* Metric Boxes */
.metric-icons-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: auto;
}

.metric-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem 0.5rem;
    text-align: center;
}

.m-icon {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.3rem;
}

.m-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Feature List */
.feature-list {
    list-style: none;
    margin-top: auto;
}

.feature-list li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
}

.feature-list li::before {
    content: "▪";
    position: absolute;
    left: 0;
    color: var(--accent-red);
}

/* Live Terminal Panel */
.terminal-panel {
    background-color: #05070a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--font-mono);
}

.terminal-header {
    background: var(--bg-surface);
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.t-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.t-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.terminal-body {
    padding: 1.25rem;
    font-size: 0.78rem;
    color: #38bdf8;
    line-height: 1.7;
    height: 250px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.t-log {
    margin-bottom: 0.35rem;
    opacity: 0.9;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.about-section h2 {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    color: var(--accent-red);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.about-section p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    text-align: center;
}

.contact-container {
    max-width: 650px;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.email-btn {
    font-size: 1.05rem;
}

/* Footer */
.site-footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.motto-footer {
    font-family: var(--font-mono);
    color: var(--accent-red);
}

@media (max-width: 992px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
}