@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

/* Color Variables & Styling Tokens matching the new color scheme */
:root {
    --bg-primary: #010614;       /* Deep dark navy background */
    --bg-secondary: #050f1e;     /* Deep slate-blue card background */
    --bg-tertiary: #09172a;      /* Medium dark slate-blue */
    --border-color: rgba(0, 194, 232, 0.15); /* Subtle cyan border */
    --border-color-glow: rgba(0, 194, 232, 0.35);
    
    --text-primary: #ffffff;
    --text-secondary: #a3b3c9;
    --text-muted: #64748b;
    
    --accent-cyan: #00c2e8;       /* Glowing Cyan accent */
    --accent-cyan-glow: rgba(0, 194, 232, 0.4);
    
    --font-heading: 'Inter', 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Header & Navigation */
.header-nav {
    position: sticky;
    top: 0;
    background-color: rgba(1, 6, 20, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
}

/* Logo square icon: O inside a cyan rounded square */
.logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--accent-cyan);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 0 12px rgba(0, 194, 232, 0.3);
}

.nav-links {
    display: flex;
    gap: 2.25rem;
    list-style: none;
    align-items: center;
}

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

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

/* Pill Solid Cyan Button: e.g. Deep Dive */
.btn-cyan {
    background-color: var(--accent-cyan);
    color: var(--bg-primary);
    padding: 0.55rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 0 15px var(--accent-cyan-glow);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cyan:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(0, 194, 232, 0.65);
    background-color: #00d2fc;
}

/* Bordered Transparent Button: e.g. New Analysis */
.btn-bordered {
    background-color: transparent;
    color: var(--text-primary);
    padding: 0.55rem 1.35rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-bordered:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6.5rem 2rem 4rem 2rem;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(0, 194, 232, 0.08) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(40px);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hero h1 span {
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(0, 194, 232, 0.15);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

/* Cards & Grid Systems */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-color-glow);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 194, 232, 0.05);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-cyan);
    opacity: 0;
    transition: var(--transition-smooth);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Card Briefcase Icon matching mockup */
.card-icon-briefcase {
    width: 48px;
    height: 48px;
    background-color: var(--accent-cyan);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 194, 232, 0.25);
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Roadmap/Sequence Timeline */
.sequence-container {
    margin-top: 4rem;
    position: relative;
}

.sequence-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.sequence-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-color-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent-cyan);
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(0, 194, 232, 0.15);
}

.sequence-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    flex-grow: 1;
}

.sequence-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* FAQ Accordion */
.accordion {
    max-width: 800px;
    margin: 3rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.accordion-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
}

.accordion-header:hover {
    background-color: var(--bg-tertiary);
}

.accordion-icon {
    transition: var(--transition-smooth);
    color: var(--accent-cyan);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.accordion-item.active .accordion-content {
    max-height: 250px;
    padding-bottom: 1.5rem;
}

/* Full Screen Iframe Layout */
.fullscreen-iframe-body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.fullscreen-iframe {
    position: fixed;
    inset: 0;               /* top: 0; right: 0; bottom: 0; left: 0 */
    width: 100vw;
    height: 100vh;
    border: none;
    outline: none;
    display: block;
    z-index: 1;             /* above body background, below loader overlay */
}

/* Loading Spinner */
.loading-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-tertiary);
    border-top: 4px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(0, 194, 232, 0.15);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer Section */
footer {
    background-color: #01040d;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 4rem 2rem 2rem 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a:hover {
    color: var(--accent-cyan);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .grid-3, .grid-2, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .header-nav {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.25rem;
    }
    .nav-links {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}
