:root {
    /* Base Palette */
    --bg-dark: #0a0a0f;
    --surface: #13131a;
    --surface-light: #1e1e2e;
    --surface-glass: rgba(19, 19, 26, 0.7);
    --border: #2e2e3e;
    --border-glass: rgba(255, 255, 255, 0.08);

    /* Brand Colors */
    --accent-primary: hsl(258, 84%, 63%);
    /* Violet #7c3aed */
    --accent-secondary: hsl(198, 93%, 60%);
    /* Cyan #1abde8 */
    --accent-glow: rgba(124, 58, 237, 0.4);
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;

    /* Layout */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
    --container-max: 1200px;
    --blur: 20px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* Ambient Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent-gradient);
    z-index: 10000;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Layout Containers */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 120px 0;
    position: relative;
}

/* Floating Pill Navigation */
header {
    position: fixed;
    top: 1.5rem;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-pill {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-family: 'Bakbak One', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    /* Bakbak One only has 400 */
    text-decoration: none;
    color: white;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
}

/* Rephrase Dialog Overlay */
.rephrase-dialog {
    position: relative;
    width: 540px;
    background: #25262b;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    z-index: 10;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    transform: scale(0.7);
}

@media (max-width: 968px) {
    .rephrase-dialog {
        width: 100%;
    }
}

.dialog-close {
    font-size: 2rem;
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dialog-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Bakbak One', cursive;
    font-size: 1.3rem;
}

.dialog-logo img {
    width: 40px;
    height: 40px;
    box-shadow: none !important;
    border: none !important;
}

.dialog-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dialog-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.8rem;
}

.chip {
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.chip.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.dialog-body {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    min-height: 90px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dialog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.eye-btn {
    padding: 10px 8px 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    height: 37px;
    width: 37px;
}

.apply-btn {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border: none;
    color: white;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

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

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

@media (max-width: 768px) {
    header {
        top: 0.75rem;
        padding: 0 0.75rem;
    }

    .nav-links {
        display: none !important;
    }

    .nav-pill {
        padding: 0.5rem 0.5rem 0.5rem 1rem;
        justify-content: space-between;
        /* width: 100%; */
        max-width: none;
        gap: 1rem;
        border-radius: var(--radius-pill);
        /* Slightly more rounded on mobile */
    }

    .nav-pill .btn {
        display: flex !important;
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .logo {
        margin-right: auto;
        /* Force logo to left */
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
    background-size: 200% 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.6);
    background-position: 100% 0%;
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 180px;
    background-image: url('assets/hero-bg.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 968px) {

    .hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
}

/* .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
    pointer-events: none;
} */

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    padding-top: 3.5rem;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 40%, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientText 8s ease infinite;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.hero-visual {
    position: relative;
    width: 100%;
}

.mockup-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 40px var(--accent-glow);
    border: 1px solid var(--border-glass);
}

.mockup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mockup.active {
    opacity: 1;
}

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
    }
}

/* Glass Mockup Component */
.mockup-wrapper {
    position: absolute;
    bottom: -200px;
    left: -200px;
    z-index: 20;
    animation: float 6s ease-in-out infinite;
}


@media (max-width: 968px) {
    .mockup-wrapper {
        position: unset;
        margin-top: -8rem;
    }
}

@media (min-width: 1200px) {
    .mockup-wrapper {
        display: block;
    }
}

.glass-card {
    background: var(--surface-glass);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(2deg);
    }

    50% {
        transform: translateY(-20px) rotate(-1deg);
    }
}

/* Social Proof Ticker */
.ticker-section {
    background: var(--surface);
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.ticker-wrap {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 700;
}

.ticker-item b {
    color: var(--text-primary);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Stats Strip */
.stats-strip {
    background: var(--surface-light);
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    text-align: center;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.stat-item h2 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-item p {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* Glass Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border-glass);
    padding: 3rem;
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

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

/* How It Works Timeline */
.timeline {
    margin-top: 4rem;
    padding-bottom: 4rem;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    position: relative;
}

@media (max-width: 968px) {
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .timeline-grid::after {
        display: none;
    }
}

.timeline-grid::after {
    content: '';
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent-primary), var(--accent-primary) 10px, transparent 10px, transparent 20px);
    opacity: 0.2;
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

/* Tone Showcase */
.showcase-wrap {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    max-width: 900px;
    margin: 14rem auto 0;
}

@media (max-width: 968px) {
    .showcase-wrap {
        margin: 0 auto;
        width: 90%;
    }
}

.tone-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tone-pill {
    padding: 0.8rem 1.3rem;
    border-radius: var(--radius-pill);
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}


@media (max-width: 968px) {
    .tone-pill {
        padding: 0.4rem 1rem;
    }
}

.tone-pill.active {
    border-color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.05);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.output-area {
    background: var(--bg-dark);
    padding: 3rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    min-height: 200px;
    position: relative;
}

#demo-output::after {
    content: '|';
    display: inline-block;
    color: var(--accent-primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Pricing Aurora */
.pricing-card.featured {
    border: 2px solid transparent;
    background: linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--accent-gradient) border-box;
    position: relative;
}

.pricing-card.featured::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    filter: blur(20px);
    opacity: 0.15;
    z-index: -1;
}

/* Footer & Watermark */
footer {
    padding: 120px 0 60px;
    background: #050508;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.footer-watermark {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Bakbak One';
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    color: white;
    opacity: 0.02;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 10;
}

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

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ Accordion Styles */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    opacity: 1;
    margin-top: 1rem;
}

.faq-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-secondary);
}

.faq-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Floating Chrome Logo Styles */
.chrome-float {
    position: absolute;
    top: -60px;
    right: -60px;
    z-index: 25;
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
}

.chrome-float img {
    width: 140px;
    height: auto;
    display: block;
}

@media (max-width: 968px) {
    .chrome-float {
        top: -40px;
        right: -20px;
    }

    .chrome-float img {
        width: 100px;
    }
}

/* Mobile Navigation Overrides */
@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }
}

/* Utility Classes for Inline Style Extraction */
.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 5rem;
}

.relative-z1 {
    position: relative;
    z-index: 1;
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1.5rem;
}

.timeline-icon {
    opacity: 0.6;
    margin-bottom: 1rem;
}

.opacity-05 {
    opacity: 0.5;
}

.cursor-pointer {
    cursor: pointer;
}

.mb-1rem {
    margin-bottom: 1rem;
}

.w-100 {
    width: 100%;
}

#features {
    background-image: url('assets/grid-pattern.webp');
    background-repeat: repeat;
    background-size: 80px;
}

/* Sub-page Specific Layouts */
.legal-page {
    padding-top: 140px;
    padding-bottom: 100px;
    background: radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(26, 189, 232, 0.03) 0%, transparent 40%);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-content h2 {
    margin: 3rem 0 1.5rem;
    font-size: 1.75rem;
    color: white;
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

/* Header Scrolled State */
/* #main-header.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
} */

/* For non-homepages, header is always solid-ish */
/* body:not(.home) #main-header {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
} */