:root {
    --bg-dark: #07090f;
    --bg-darker: #040508;
    --bg-card: rgba(25, 30, 40, 0.5);
    --border-soft: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f2f5;
    --text-secondary: #9aa0a6;
    --accent: #4eb5f1; /* Sharp blue / ice */
    --accent-glow: rgba(78, 181, 241, 0.3);
    
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Nav */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(7, 9, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
    z-index: 100;
}

.nav-container {
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--accent);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.lang-switch a {
    color: var(--text-secondary);
    transition: color 0.3s;
}

.lang-switch a:hover, .lang-switch a.active {
    color: var(--text-primary);
}

/* Buttons */
.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--border-soft);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Hero */
.hero {
    padding: 180px 40px 100px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 30px;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 500px;
}

.compass-circle {
    width: 400px;
    height: 400px;
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 50px rgba(78, 181, 241, 0.05);
}

.compass-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--border-soft);
}
.compass-circle::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 1px;
    background: var(--border-soft);
}

.compass-needle {
    width: 2px;
    height: 60%;
    background: linear-gradient(to top, transparent, var(--accent) 50%, var(--text-primary));
    transform: rotate(45deg);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(-10px); }
}

/* Sections */
.section {
    padding: 120px 40px;
}

.section-darker {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: block;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    margin-bottom: 40px;
}

.section-title em {
    font-style: normal;
    color: var(--text-secondary);
}

.section-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
}

.text-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.text-content strong {
    color: var(--text-primary);
}

.section-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-card {
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.stat-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Modules Grid */
.section-header {
    margin-bottom: 80px;
    max-width: 600px;
}

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

.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    padding: 50px;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 3px; height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

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

.module-card:hover::before {
    transform: scaleY(1);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.module-id {
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.module-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.module-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.module-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact */
.contact-section {
    text-align: center;
    padding: 150px 40px;
}

.contact-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 20px;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 50px;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-soft);
    padding: 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-mono);
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-left p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    gap: 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(7, 9, 15, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links > a:not(.btn-primary) {
        font-size: 1.5rem;
    }

    .btn-primary {
        margin-top: 10px;
        font-size: 1.1rem;
    }
    
    .lang-switch {
        margin-left: 0;
        margin-top: 20px;
        font-size: 1.1rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 130px;
        text-align: center;
    }
    
    .compass-circle {
        margin: 0 auto;
        width: 300px;
        height: 300px;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-submit {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    padding: 15px;
}

/* Module Dot Colors */
.core-icon {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.ai-icon {
    background: #4eb5f1; /* Sharp blue */
    box-shadow: 0 0 10px rgba(78, 181, 241, 0.4);
}

.systems-icon {
    background: #8ea4b5; /* Sidereal grey */
    box-shadow: 0 0 10px rgba(142, 164, 181, 0.4);
}

.exp-icon {
    background: #1a5b82; /* Deep dark blue */
    box-shadow: 0 0 10px rgba(26, 91, 130, 0.4);
}

/* Method Steps */
.method-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    border-top: 1px solid var(--border-soft);
    padding-top: 80px;
}

.method-step {
    display: flex;
    flex-direction: column;
}

.step-num {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0.3;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.step-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .method-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Toast Notification */
.toast {
    visibility: hidden;
    min-width: 300px;
    background-color: var(--accent);
    color: #000;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

.toast.error {
    background-color: #ff4e4e;
    color: #fff;
}

/* Nav Payoff */
.nav-payoff {
    font-family: var(--font-mono);
    letter-spacing: 0.3em;
    font-size: 0.85rem;
    color: rgba(154, 160, 166, 0.6);
    pointer-events: none;
    text-align: center;
}

@media (max-width: 1024px) and (min-width: 901px) {
    .nav-payoff {
        display: none;
    }
}

@media (max-width: 900px) {
    .nav-payoff {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
        text-align: center;
    }
}

/* North Star Glow */
.north-star {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 255, 255, 0.5);
    display: inline-block;
    animation: pulse-star 3s infinite alternate;
    margin-left: 8px;
    font-size: 1.1rem;
}

@keyframes pulse-star {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; text-shadow: 0 0 12px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 255, 255, 0.8); }
}

/* Terminal Cursor Blink */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
