/* ===================================================
   ORBIT DISCOVERY — PREMIUM SAAS STYLES
   Minimalist, High Contrast Dark Theme
   =================================================== */

:root {
    /* Color Palette */
    --bg-base: #020617; /* Slate 950 */
    --bg-surface: #0f172a; /* Slate 900 */
    --bg-surface-elevated: #1e293b; /* Slate 800 */
    --border-color: #334155; /* Slate 700 */
    --border-subtle: #1e293b; /* Slate 800 */
    
    --text-primary: #f8fafc; /* Slate 50 */
    --text-secondary: #94a3b8; /* Slate 400 */
    --text-muted: #64748b; /* Slate 500 */
    
    --primary-color: #3b82f6; /* Blue 500 */
    --primary-hover: #2563eb; /* Blue 600 */
    --primary-glow: rgba(59, 130, 246, 0.4);
    
    --success: #10b981;
    --danger: #ef4444;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Metrics */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: 0.2s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

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

.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.pt-8 { padding-top: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.w-full { width: 100%; }
.text-slate-400 { color: var(--text-secondary); }
.text-slate-500 { color: var(--text-muted); }
.text-white { color: white; }
.text-blue-100 { color: #dbeafe; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }

/* ---- TYPOGRAPHY ---- */
.h1, .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.h3, .plan-name {
    font-size: 1.5rem;
    font-weight: 600;
}

.h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

.h5 {
    font-size: 1.125rem;
    font-weight: 600;
}

.lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* ---- BUTTONS & BADGES ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background-color: var(--bg-surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

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

.btn-outline:hover {
    background-color: var(--bg-surface-elevated);
    border-color: var(--text-secondary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.badge-dot.pulse {
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* ---- HEADER ---- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background-color: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.header-container {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}


/* ---- SECTIONS ---- */
.section {
    padding: 120px 0;
}

.bg-alt {
    background-color: var(--bg-surface);
}

/* ---- HERO ---- */
.hero-section {
    position: relative;
    padding-top: 140px;
    padding-bottom: 100px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 500px;
    background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.15), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-actions {
    display: flex;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-trust {
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.hero-visual {
    margin-top: 72px;
    position: relative;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.browser-mockup {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.browser-header {
    height: 40px;
    background-color: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.browser-header .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background-color: var(--border-color);
}
.browser-header .dot:nth-child(1) { background-color: #ef4444; }
.browser-header .dot:nth-child(2) { background-color: #eab308; }
.browser-header .dot:nth-child(3) { background-color: #10b981; }

.mockup-img {
    width: 100%;
    display: block;
}

.floating-card {
    position: absolute;
    bottom: -16px;
    right: -12px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.metric-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 6px;
}

/* ---- COMPARISON ---- */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.card {
    background-color: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.comparison-card {
    display: flex;
    flex-direction: column;
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.icon-bad, .icon-good {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.icon-bad { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.icon-good { background: rgba(16, 185, 129, 0.1); color: var(--success); }

.comparison-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.comparison-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 6px;
    width: 6px; height: 6px;
    border-radius: 50%;
}
.bad-list li::before { background-color: var(--danger); }
.good-list li::before { background-color: var(--success); }

.orbit-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 1) 0%, rgba(30, 41, 59, 0.2) 100%);
    border-color: var(--border-color);
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.orbit-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--primary-color);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* ---- WORKFLOW ---- */
.workflow-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.steps-vertical {
    display: flex;
    flex-direction: column;
}

.step-item {
    display: flex;
    gap: 1.5rem;
}

.step-number {
    width: 44px; height: 44px;
    flex-shrink: 0;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--primary-color); font-size: 0.9rem;
}

.step-info h4 { margin-bottom: 0.375rem; }
.step-info p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.6; }

.step-line {
    width: 2px; height: 40px;
    background-color: var(--border-subtle);
    margin: 8px 0 8px 19px;
}

.workflow-visual {
    perspective: 1000px;
}

.data-preview-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.data-preview-card:hover {
    transform: rotateY(0) rotateX(0);
}

.data-preview-header {
    background-color: var(--bg-surface-elevated);
    padding: 12px 16px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.875rem; font-weight: 600;
}

.format-tag {
    background: #107c41; /* Excel green approx */
    color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem;
}

.data-table-wrapper { padding: 16px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.875rem; }
.data-table th { padding: 8px; border-bottom: 1px solid var(--border-subtle); color: var(--text-muted); font-weight: 500; }
.data-table td { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,0.02); color: var(--text-secondary); white-space: nowrap;}
.badge-enriched { background: rgba(59, 130, 246, 0.15); color: #93c5fd; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 500;}
.fade-row { text-align: center; color: var(--text-muted); padding-top: 16px !important; border-bottom: none !important; font-style: italic;}

/* ---- PRICING ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    background-color: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--border-color);
}

.pricing-card.featured {
    background: linear-gradient(180deg, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 0.7) 100%);
    border-color: var(--primary-color);
    position: relative;
    transform: scale(1.03);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), 0 20px 40px rgba(59, 130, 246, 0.1);
}

.pricing-card.featured:hover {
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 25px 50px rgba(59, 130, 246, 0.15);
    border-color: #60a5fa;
}

.featured-badge {
    position: absolute;
    top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--primary-color);
    color: white; font-size: 0.7rem; font-weight: 700;
    padding: 4px 18px; border-radius: 20px;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.plan-header {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}
.plan-desc { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; min-height: 40px; }
.plan-price { margin-top: 1rem; display: flex; align-items: baseline; gap: 4px; }
.plan-price .currency { font-size: 1.25rem; font-weight: 500; color: var(--text-secondary); }
.plan-price .amount { font-size: 2.75rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.plan-price .period { color: var(--text-muted); }

.plan-positioning {
    font-size: 0.9rem; color: var(--text-secondary);
    margin-bottom: 1.5rem; line-height: 1.6; min-height: 60px;
    font-style: italic;
}

.plan-body { flex-grow: 1; }

.plan-features li {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 1rem; font-size: 0.95rem; color: var(--text-secondary);
}
.plan-features li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--text-muted); }
.plan-features .text-white svg { color: var(--text-primary); }

.plan-footer { margin-top: 2.5rem; }

/* ---- FAQ ---- */
.faq-accordion {
    max-width: 800px; margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}

.faq-trigger {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 1.375rem 0; background: none; border: none; color: var(--text-primary);
    font-size: 1.0625rem; font-weight: 500; text-align: left; cursor: pointer;
    gap: 1rem;
}

.faq-trigger .icon {
    font-size: 1.5rem; color: var(--text-muted); transition: transform 0.3s ease;
}

.faq-content {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}

.faq-content p {
    padding-bottom: 1.5rem; color: var(--text-secondary); font-size: 1rem; line-height: 1.6;
}

.faq-item.active .faq-trigger .icon { transform: rotate(45deg); color: var(--primary-color); }
.faq-item.active .faq-content { max-height: 300px; }

/* ---- FINAL CTA ---- */
.bg-cta {
    background: linear-gradient(135deg, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 1) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ---- FOOTER ---- */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 40px;
    background-color: var(--bg-base);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand { max-width: 300px; }
.footer-links {
    display: flex; gap: 24px; flex-wrap: wrap;
}
.footer-links a { color: var(--text-secondary); font-size: 0.95rem; }
.footer-links a:hover { color: var(--text-primary); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .workflow-wrapper { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .pricing-card.featured { transform: scale(1); }
    .hero-actions { justify-content: center; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-menu {
        position: absolute; top: 72px; left: 0; right: 0;
        background-color: var(--bg-surface);
        flex-direction: column; padding: 24px;
        border-bottom: 1px solid var(--border-subtle);
        transform: translateY(-100%); opacity: 0; transition: var(--transition);
        pointer-events: none;
    }
    .nav-menu.active { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav-link { font-size: 1.125rem; }
    
    .comparison-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .footer-container { flex-direction: column; }
}
