/* Base Variables */
:root {
    --bg-dark: #0a0e17;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.5);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    color: var(--primary);
}

.logo .accent {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Stack children vertically */
    justify-content: center;
    /* Center content vertically if space allows */
    align-items: center;
    /* Center content horizontally */
    overflow: hidden;
    gap: 2rem;
    /* Space between grid container and stats */
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Stats Section Styling */
/* Stats Section Styling */
.hero-stats-bar {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 2rem 5%;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(10, 14, 23, 0.95);
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.stat-unit {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    opacity: 0.8;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border);
    margin: 0 2rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    background: linear-gradient(135deg, white, var(--text-muted));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
    min-width: 4ch;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 0.2rem;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.4;
    filter: blur(80px);
    z-index: 1;
}

/* AI Orb & Visuals */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.ai-orb {
    position: absolute;
    top: -50px;
    right: 0;
    width: 300px;
    height: 300px;
    z-index: 0;
}

.orb-core {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--primary), var(--accent));
    filter: blur(40px);
    opacity: 0.6;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.hover-effect:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.dashboard-preview {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    background: rgba(20, 25, 40, 0.8);
}

.chat-interface {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    max-width: 85%;
}

.chat-message.user {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-bottom-right-radius: 2px;
}

.chat-message.ai {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--text-main);
    border-bottom-left-radius: 2px;
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
    margin-right: 3px;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 0.5rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Features */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.feature-card {
    flex: 0 0 340px;
    /* Fixed width */
    max-width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Fills the flex row height */
    min-height: 320px;
    /* Ensures visual uniformity across rows */
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* How It Works */
#how-it-works .section-header {
    margin-bottom: 4rem;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step-item {
    position: relative;
    padding: 2rem;
    border-left: 2px solid var(--border);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 0;
    right: 2rem;
    line-height: 1;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* Audio Demo */
.demo-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.audio-player {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
}

.play-btn {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.play-btn:hover {
    transform: scale(1.1);
}

.audio-visualizer {
    display: flex;
    gap: 4px;
    height: 30px;
    align-items: center;
    flex-grow: 1;
}

.bar {
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
    animation: equalize 1s infinite;
}

@keyframes equalize {

    0%,
    100% {
        height: 10px;
    }

    50% {
        height: 25px;
    }
}

/* CTA */
.cta-box {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.cta-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

.logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.cta-form input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

/* About Us Page */
.about-hero {
    padding-top: 150px;
    padding-bottom: 50px;
}

.legal-hero {
    padding-top: 150px;
    padding-bottom: 10px;
    /* Reduced specific padding for legal pages */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, white, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-image {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-radius: 16px;
    background: #1e1e1e;
    /* Code editor bg */
}

.code-visual {
    padding: 2rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: #d4d4d4;
    overflow-x: auto;
}

.code-visual pre {
    margin: 0;
}

.code-visual code {
    display: block;
    line-height: 1.5;
}

/* Blog Page */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    height: 100%;
}

.blog-image {
    height: 200px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.blog-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    gap: 0.8rem;
    /* Slide arrow */
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-header {
    text-align: center;
    padding-top: 150px;
}

.pricing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-card);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--border);
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: var(--primary);
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked+label {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: var(--primary);
}

.toggle-switch input:checked+label:before {
    transform: translateX(30px);
}

.discount-badge {
    position: absolute;
    top: -20px;
    right: -30px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    transform: rotate(15deg);
}

#annual-label {
    position: relative;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h3 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.pricing-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.popular {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));
    transform: scale(1.05);
    /* Make it stand out */
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.plan-header p {
    font-size: 0.9rem;
    margin: 0;
}

.plan-price {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.plan-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
    font-weight: 600;
}

.plan-price .amount {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.plan-price .period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.plan-features {
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.plan-features li i {
    color: #10b981;
    /* Green check */
}

.plan-features li.disabled {
    color: rgba(255, 255, 255, 0.3);
}

.plan-features li.disabled i {
    color: rgba(255, 255, 255, 0.2);
}

.full-width {
    width: 100%;
}

/* Responsive adjustments for pricing */
@media (max-width: 968px) {
    .pricing-card.popular {
        transform: scale(1);
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a:hover {
    color: var(--primary);
}

/* Animations - Simple classes to be triggered by JS */
.fade-in,
.fade-in-up,
.fade-in-left {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.visible {
    opacity: 1;
    transform: none;
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-ctas,
    .hero-stats {
        justify-content: center;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .hero-visual {
        margin-top: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-toggle {
        display: block;
    }

    .cta-form {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}