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

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-dark: #000000;
    --bg-dark-gray: #0b0c10;
    --text-primary: #0f172a;
    --text-secondary: #4a4a4e;
    --accent-blue: #0052f3; /* Okta Electric Blue */
    --accent-navy: #00297a; /* Okta Navy */
    --border-light: #e1e1e6;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    --radius: 4px;
}

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

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

/* Floating transparent header exactly like Okta */
.lat-header-main {
    position: absolute;
    top: 35px;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    padding: 1.5rem 0;
}

.lat-nav-pill {
    background: rgba(11, 12, 16, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border-radius: 9999px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff;
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-blue);
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.15s;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-item:hover, .nav-item.active {
    color: #ffffff;
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: " ▾";
    font-size: 0.7rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #0b0c10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 240px;
    padding: 0.75rem 0;
    margin-top: 0.75rem;
    z-index: 1000;
}

.dropdown-item {
    display: block;
    padding: 0.6rem 1.4rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.15s;
    text-align: left;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

/* Hero Section */
.hero-sec {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-w-xl;
    margin-bottom: 2.5rem;
}

/* Hero floating preview card */
.hero-preview-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 320px;
    margin-left: auto;
    position: relative;
    overflow: hidden;
}

.hero-preview-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), #ec4899);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-blue {
    background-color: var(--accent-blue);
    color: #ffffff;
}

.btn-blue:hover {
    background-color: #0045ce;
}

.btn-white {
    background-color: #ffffff;
    color: var(--text-primary);
}

.btn-white:hover {
    background-color: #f1f5f9;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-dark {
    background-color: #000000;
    color: #ffffff;
}

.btn-dark:hover {
    background-color: #111111;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

/* Sections & Main Content */
.main-content {
    padding-top: 10rem;
    padding-bottom: 6rem;
}

.home-page .main-content {
    padding-top: 2rem;
}

.sec-padding {
    padding: 7rem 0;
}

.sec-title {
    font-size: 2.5rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.sec-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-w-2xl;
}

.card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
    transition: all 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 12px 30px rgba(0, 41, 122, 0.04);
    border-color: rgba(0, 82, 243, 0.2);
}

/* Feature grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.image-card-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
}

.image-card-wrap img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}

.image-card-wrap:hover img {
    transform: scale(1.02);
}

/* Dual Product Columns */
.product-dual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .product-dual-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-col-card {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.col-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.product-visual-box {
    height: 220px;
    border-radius: 6px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.gradient-purple {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.gradient-blue {
    background: linear-gradient(135deg, #0052f3 0%, #9333ea 100%);
}

/* Floating integration icons inside the mockup */
.integration-mesh {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: center;
    justify-items: center;
}

.floating-icon {
    width: 42px; height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    animation: floatIcon 4s ease-in-out infinite;
}

.floating-icon:nth-child(2n) {
    animation-delay: 2s;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* McLaren Case Study Style */
.case-study-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    padding: 3rem;
}

.case-study-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.case-study-card {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 8px;
    padding: 2.5rem;
    max-width: 480px;
    color: #ffffff;
    text-align: left;
}

/* Tabs & Resources */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 3rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.75rem 0.5rem;
    position: relative;
    cursor: pointer;
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--accent-blue);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0; right: 0;
    height: 3px;
    background-color: var(--accent-blue);
}

.resources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.resource-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.resource-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.resource-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.resource-meta {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.resource-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* CTA Columns */
.cta-columns-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .cta-columns-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cta-col-card {
    border-top: 4px solid var(--accent-blue);
    background-color: #ffffff;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    border-radius: 0 0 8px 8px;
    padding: 2.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cta-col-card h3 {
    font-size: 1.25rem;
    font-weight: 750;
    margin-bottom: 1rem;
}

/* Footer styling */
footer {
    background-color: var(--bg-dark);
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    padding: 5rem 0 3rem 0;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr repeat(3, 1fr);
    }
}

.footer-col h4 {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #94a3b8;
    font-size: 0.85rem;
    transition: color 0.15s;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    font-size: 0.8rem;
    color: #64748b;
}

/* Secure Waveform & Terminal Simulator */
.dashboard-widget {
    background-color: #070e1b;
    border: 1px solid rgba(0, 82, 243, 0.3);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    font-family: var(--font-body);
}

.widget-header {
    background-color: #03070f;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-title {
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-code);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget-dots {
    display: flex;
    gap: 0.35rem;
}

.widget-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.widget-body {
    padding: 1.5rem;
    color: #e2e8f0;
}

.widget-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.widget-stat-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 1rem;
}

.widget-stat-label {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.widget-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
}

.widget-stat-value.secure {
    color: #10b981;
}

.audio-waveform-panel {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.waveform-canvas {
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 3px;
}

.waveform-bar {
    flex: 1;
    background-color: rgba(0, 82, 243, 0.4);
    border-radius: 2px;
    transition: height 0.15s ease;
}

.waveform-bar.active {
    background-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(0, 82, 243, 0.5);
}

.terminal-console {
    background-color: #03070f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 1rem;
    font-family: var(--font-code);
    font-size: 0.8rem;
    min-height: 120px;
    max-height: 180px;
    overflow-y: auto;
    color: #38bdf8;
    text-align: left;
    word-break: break-all;
    word-wrap: break-word;
}

.terminal-line {
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.terminal-line.cmd { color: #f8fafc; }
.terminal-line.success { color: #4ade80; }
.terminal-line.warning { color: #facc15; }

/* Responsive Overflows Control */
.logo-list-scroll {
    overflow-x: auto;
    white-space: nowrap;
    padding: 1rem 0;
}

.menu-toggle {
    display: none;
}

@media (max-width: 1023px) {
    .lat-nav-pill {
        border-radius: 0;
        height: auto;
        padding: 1rem;
        background: #0b0c10;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    
    .lat-header-main {
        top: 0;
        padding: 0;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #0b0c10;
        padding: 1.5rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    .menu-toggle span {
        width: 22px;
        height: 2px;
        background-color: #ffffff;
        border-radius: 1px;
    }
    
    /* Mobile Dropdown Menu Inline Styling */
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 1.5rem;
        margin-top: 0.5rem;
    }
    
    .hero-sec {
        padding-top: 140px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .case-study-hero {
        padding: 1.5rem;
        min-height: auto;
    }
    .case-study-card {
        padding: 1.5rem;
    }
    .hero-title {
        font-size: 2rem !important;
    }
}
