/*
Theme Name: Cognifai Simple
Author: Logic
Description: Custom landing page for Cognifai
Version: 1.22
*/

:root {
    --bg-color: #06060c;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --primary-text: #ffffff;
    --secondary-text: #a1a1aa;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --glow-purple: rgba(139, 92, 246, 0.5);
    --glow-green: rgba(16, 185, 129, 0.4);

    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--primary-text);
    font-family: var(--font-family);
    overflow-x: hidden;
    line-height: 1.6;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

#app {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 4rem;
    position: relative;
    z-index: 100;
}

@media (min-width: 769px) {

    /* Hide mobile elements on desktop */
    .mobile-nav-right,
    .hamburger,
    .mini-vocalizer,
    .hero-vocalizer {
        display: none;
    }
}

/* Hamburger styles (only applied when visible via media query) */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 101;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

/* Primary Button */
.btn-primary,
.btn-cta {
    background: transparent;
    border: 1px solid var(--card-border);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-cta {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    border: none;
    font-weight: 600;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s, transform 0.2s;
}

.btn-cta:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 0;
    min-height: 60vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 700;
}

.hero-sub {
    color: var(--secondary-text);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 480px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Audio Wave Visual */
.audio-wave {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
    height: 600px;
}

.audio-wave .bar {
    width: 38px;
    background: #ffffff;
    border-radius: 19px;
    height: 120px;
    animation: wave 1.5s infinite ease-in-out;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.9), 0 0 50px rgba(255, 255, 255, 0.5);
}

.audio-wave .bar:nth-child(1) {
    animation-delay: 0s;
    height: 120px;
}

.audio-wave .bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 210px;
}

.audio-wave .bar:nth-child(3) {
    animation-delay: 0.4s;
    height: 300px;
}

.audio-wave .bar:nth-child(4) {
    animation-delay: 0.2s;
    height: 210px;
}

.audio-wave .bar:nth-child(5) {
    animation-delay: 0s;
    height: 120px;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.8;
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    }

    50% {
        transform: scaleY(1.35);
        opacity: 1;
        box-shadow: 0 0 50px rgba(255, 255, 255, 1), 0 0 80px rgba(255, 255, 255, 0.6);
    }
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--card-border);
}

.stat-card {
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--secondary-text);
    font-size: 1rem;
}

/* Features Section */
.features {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--secondary-text);
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--secondary-text);
    font-size: 1rem;
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 6rem 0;
    overflow: hidden;
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 4rem;
}

.timeline-line {
    position: absolute;
    top: 40px;
    /* Alumn with circle center approx */
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    z-index: 0;
    opacity: 0.3;
}

.step-card {
    background: #0a0a0e;
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 16px;
    width: 23%;
    z-index: 1;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

.step-card:hover {
    border-color: var(--accent-purple);
}

.step-circle {
    width: 120px;
    height: 120px;
    background: #0a0a0e;
    border: 2px solid var(--accent-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2.5rem;
    margin: -80px auto 30px auto;
    /* Pull up to sit on line */
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}


/* Built for Insurance */
.built-for-insurance {
    padding: 8rem 0;
}

.built-for-insurance .section-header h2 {
    font-size: 4rem;
}

.use-case-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8rem;
    gap: 4rem;
}

.use-case-row.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
    max-width: 500px;
}

.text-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.text-content p {
    color: var(--secondary-text);
    font-size: 1.1rem;
}

.chat-mockup-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.chat-card {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.chat-card.glow-purple {
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.15);
    border-top: 1px solid rgba(139, 92, 246, 0.3);
}

.chat-card.glow-blue {
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.15);
    border-top: 1px solid rgba(59, 130, 246, 0.3);
}

.voice-viz {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--accent-purple);
    opacity: 0.8;
}

.mini-wave {
    letter-spacing: 2px;
    font-weight: bold;
}

.chat-bubble {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-bubble.user {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-right-radius: 2px;
    margin-left: auto;
    max-width: 80%;
    color: #fff;
    text-align: right;
}

.chat-bubble.ai {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-bottom-left-radius: 2px;
    max-width: 90%;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent, rgba(20, 20, 30, 0.5));
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.about-card {
    text-align: center;
}

.about-card h3 {
    margin-bottom: 1rem;
}

.big-stats-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.big-stat .number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    margin-bottom: 0.5rem;
}

.big-stat .label {
    color: var(--secondary-text);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    position: relative;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.form-group label {
    font-weight: 500;
    font-size: 0.95rem;
    color: #fff;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem 1rem 1rem 1rem;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
}

.btn-submit {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: opacity 0.3s, transform 0.2s;
    align-self: center;
    width: fit-content;
}

.btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 0;
    color: var(--secondary-text);
    border-top: 1px solid var(--card-border);
    margin-top: 4rem;
}

/* Responsive */
/* Responsive styles moved to mobile.css */