/* ================================================================
   Condor FinOps Landing Page -- Styles
   Premium dark-mode design with glassmorphism and micro-animations
   ================================================================ */

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

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1629;
    --bg-card: rgba(15, 22, 41, 0.7);
    --bg-card-hover: rgba(25, 35, 65, 0.8);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-hover: rgba(255, 255, 255, 0.12);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-indigo: #6366f1;
    --accent-indigo-light: #818cf8;
    --accent-violet: #8b5cf6;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    --accent-cyan: #22d3ee;

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --gradient-bg: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* -- Typography -- */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* -- Buttons -- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

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

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

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* -- Section Styles -- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-header p {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-indigo-light);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 16px;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.125rem;
}

.nav-logo strong {
    font-weight: 700;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: white;
}

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

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

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

.nav-cta {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--accent-indigo-light);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

/* ================================================================
   HERO
   ================================================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(99, 102, 241, 0.2);
    top: -200px;
    left: 20%;
    animation: orbFloat 15s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.15);
    bottom: -150px;
    right: 10%;
    animation: orbFloat 20s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(34, 211, 238, 0.1);
    top: 40%;
    left: -5%;
    animation: orbFloat 18s ease-in-out infinite 3s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 15px) scale(0.95);
    }
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 24px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    animation: fadeInUp 0.6s ease both;
}

.hero-content h1 {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
    max-width: 620px;
    margin: 24px auto 0;
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 56px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* Hero image */
.hero-image-wrapper {
    position: relative;
    max-width: 980px;
    margin: 64px auto 0;
    z-index: 2;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-image-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero-image {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   FEATURES
   ================================================================ */
#features {
    padding: 120px 0;
    background: var(--gradient-bg);
}

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

.feature-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    border-color: var(--glass-border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.feature-highlight {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.icon-detection {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-indigo-light);
}

.icon-scoring {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-amber);
}

.icon-badges {
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent-red);
}

.icon-recurrence {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
}

.icon-catalog {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-violet);
}

.icon-export {
    background: rgba(34, 211, 238, 0.12);
    color: var(--accent-cyan);
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

.feature-list {
    margin-top: 20px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-list li {
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding-left: 24px;
    position: relative;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-indigo);
}

/* ================================================================
   HOW IT WORKS
   ================================================================ */
#how-it-works {
    padding: 120px 0;
}

.steps-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.step-card {
    display: flex;
    gap: 32px;
    max-width: 700px;
    width: 100%;
    padding: 40px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--glass-border-hover);
    transform: scale(1.02);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.step-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.step-tags span {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-indigo-light);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    color: var(--text-muted);
}

/* ================================================================
   AI ASSIST
   ================================================================ */
#ai-assist {
    padding: 120px 0;
    background: var(--gradient-bg);
}

.ai-assist-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.ai-assist-content h2 {
    text-align: left;
}

.ai-assist-content>p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin-top: 20px;
    line-height: 1.7;
}

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.ai-feature {
    display: flex;
    gap: 16px;
}

.ai-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-indigo-light);
    flex-shrink: 0;
}

.ai-feature strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9375rem;
}

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

/* AI Chat Mockup */
.ai-chat-mockup {
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.ai-chat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.ai-chat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.ai-chat-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-message {
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.7;
}

.ai-user {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    align-self: flex-end;
    max-width: 90%;
}

.ai-user p {
    color: var(--text-primary);
}

.ai-bot {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
}

.ai-bot p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ai-bot p:last-of-type {
    margin-bottom: 12px;
}

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

.ai-code {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.8125rem;
    color: var(--accent-emerald);
    overflow-x: auto;
}

/* ================================================================
   METRICS
   ================================================================ */
#metrics {
    padding: 120px 0;
}

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

.metric-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.metric-value {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.metric-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-indigo-light);
    display: inline;
}

.metric-label {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 12px;
    color: var(--text-primary);
}

.metric-detail {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ================================================================
   CTA
   ================================================================ */
#cta {
    padding: 80px 0 120px;
}

.cta-card {
    position: relative;
    text-align: center;
    padding: 80px 40px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.cta-card h2 {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.cta-card p {
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    font-size: 1.0625rem;
}

.cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
    padding: 64px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .nav-logo {
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    margin-bottom: 4px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-highlight {
        grid-column: span 2;
        grid-row: span 1;
    }

    .ai-assist-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .feature-highlight {
        grid-column: span 1;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .step-card {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
    }
}