/* ==========================================================================
   NEXUS GEO — Ultra Modern Dark Theme & Design System
   ========================================================================== */

:root {
    --bg-main: #0a0d14;
    --bg-alt: #111625;
    --bg-card: rgba(18, 24, 38, 0.75);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(99, 102, 241, 0.4);
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #a855f7;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;

    --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    --glass-blur: blur(16px);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;

    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.25);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

/* Typography & Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.accent-text { color: var(--primary); }
.gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-blazly { color: #818cf8; }
.text-mabido { color: #34d399; }
.font-bold { font-weight: 700; }

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

.section {
    padding: 100px 0;
    position: relative;
}

.bg-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-card);
    border-bottom: 1px solid var(--border-card);
}

.section-header {
    margin-bottom: 60px;
}
.section-header.center {
    text-align: center;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}
.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Grids */
.grid {
    display: grid;
    gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-card);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-highlight);
}

.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; border-radius: var(--radius-md); }
.btn-block { width: 100%; }

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 13, 20, 0.85);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-card);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-badge {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

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

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

.nav-links a:not(.btn):hover {
    color: #fff;
}

/* Hero Section */
.hero {
    padding: 170px 0 100px 0;
    position: relative;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}
.hero-glow-1 {
    width: 450px;
    height: 450px;
    background: rgba(99, 102, 241, 0.18);
    top: 5%;
    left: 10%;
}
.hero-glow-2 {
    width: 380px;
    height: 380px;
    background: rgba(168, 85, 247, 0.15);
    top: 25%;
    right: 10%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 36px;
    border-top: 1px solid var(--border-card);
    padding-top: 28px;
}

.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Engine Card Visual */
.engine-card {
    background: #0d111c;
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
    padding: 0;
    overflow: hidden;
}

.engine-header {
    background: #151b2c;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-card);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.engine-title {
    margin-left: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
}

.engine-body {
    padding: 24px;
}

.prompt-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-card);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.prompt-user {
    color: var(--primary);
    font-weight: 600;
}

.ai-response-box {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 18px;
    border-radius: var(--radius-md);
}

.ai-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

.ai-text {
    font-size: 0.92rem;
    color: #e5e7eb;
    margin-bottom: 14px;
}

.citation-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.citation-tag {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: monospace;
}

.score-high {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    font-weight: 700;
}

/* Matrix Table Styles */
.table-responsive {
    overflow-x: auto;
}
.matrix-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.92rem;
}
.matrix-table th {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 2px solid var(--border-highlight);
    font-family: var(--font-heading);
}
.matrix-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-card);
    color: var(--text-main);
}
.matrix-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}
.check {
    color: var(--accent-emerald);
    font-weight: 600;
}
.cross {
    color: var(--text-dim);
    font-style: italic;
}
.margin-top-lg { margin-top: 48px; }
.justification-card {
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(18, 24, 38, 0.6);
}
.justification-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}
.justification-grid {
    gap: 20px;
}
.just-item strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 6px;
}
.just-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Feature Cards */
.feature-card {
    position: relative;
}

.highlight-border {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}

.pill-badge-card {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

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

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    border-top: 1px solid var(--border-card);
    padding-top: 16px;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

/* Calculator */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 850px) {
    .calculator-wrapper { grid-template-columns: 1fr; }
}

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

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-sans);
}

.form-control option {
    background-color: #111625;
    color: #ffffff;
    padding: 10px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
}

.form-slider {
    width: 100%;
    accent-color: var(--primary);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

.calc-results {
    background: #0f1523;
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 32px;
    position: relative;
}

.recommended-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-emerald);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.calc-plan-name {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.calc-plan-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.calc-price-box {
    margin-bottom: 24px;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
}

.price-period {
    color: var(--text-muted);
    font-size: 1rem;
}

.quota-breakdown {
    border-top: 1px dashed var(--border-card);
    padding-top: 16px;
    margin-bottom: 24px;
}

.quota-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-muted);
}
.quota-item strong {
    color: #fff;
}

/* Pricing Grid */
.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card.popular {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.12) 0%, rgba(18, 24, 38, 0.85) 100%);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
}

.plan-tag {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-name {
    font-size: 1.7rem;
    margin: 6px 0;
}

.plan-for {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.plan-price {
    margin-bottom: 16px;
}
.plan-price .currency { font-size: 1.5rem; font-weight: 700; vertical-align: top; }
.plan-price .amount { font-family: var(--font-heading); font-size: 3.2rem; font-weight: 800; }
.plan-price .period { color: var(--text-muted); font-size: 0.95rem; }

.engine-power {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-card);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    margin-bottom: 24px;
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
}
.plan-features li {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

/* Tech Section */
.tech-card {
    border-left: 4px solid var(--primary);
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.tech-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}
.blazly-bg { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.mabido-bg { background: rgba(16, 185, 129, 0.2); color: #34d399; }

.tech-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.tech-points .point {
    background: rgba(255, 255, 255, 0.02);
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 12px;
}

/* Audit Section */
.audit-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, rgba(18, 24, 38, 0.9), rgba(15, 21, 35, 0.95));
    border-color: var(--border-highlight);
}

@media (max-width: 850px) {
    .audit-container { grid-template-columns: 1fr; }
}

.audit-info h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.audit-info p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.audit-perks {
    list-style: none;
}
.audit-perks li {
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #06080e;
    border-top: 1px solid var(--border-card);
    padding: 60px 0 30px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; }
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
    max-width: 360px;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}
.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-card);
    padding-top: 24px;
    color: var(--text-dim);
    font-size: 0.85rem;
}
