:root {
    --bg-color: #09090b;
    --bg-card: #18181b;
    --bg-darker: #050505;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --primary-color: #8b5cf6;
    --primary-color-hover: #7c3aed;
    --secondary-color: #3b82f6;

    --gradient-brand: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;

    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
}

body {
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography Utilities */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-primary {
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

/* Backgrounds */
.bg-darker {
    background-color: var(--bg-darker);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    gap: 0.5rem;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.39);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.23);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: white;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background-color: rgba(139, 92, 246, 0.05);
}

.w-full {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

@media (max-width: 768px) {

    .nav-links,
    .nav-auth {
        display: none;
    }
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

/* Animations */
.hidden-onload {
    opacity: 0;
}

.fade-in-down {
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0 6rem;
    overflow: hidden;
}

.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.3;
    animation: blobBreath 8s ease-in-out infinite alternate;
}

@keyframes blobBreath {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.1) translate(20px, -20px);
        opacity: 0.5;
    }
}

.blob-1 {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
}

.blob-2 {
    bottom: 0;
    right: -200px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    animation-delay: -4s;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 5rem;
}

.group:hover .group-hover\:translate-x-1 {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}

/* Animated Dashboard Mockup */
.hero-dashboard-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.mockup-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.mockup-dots {
    display: flex;
    gap: 6px;
    min-width: 60px;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mockup-dots span:nth-child(1) {
    background: #ef4444;
}

.mockup-dots span:nth-child(2) {
    background: #eab308;
}

.mockup-dots span:nth-child(3) {
    background: #22c55e;
}

.mockup-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.mockup-controls i {
    color: var(--text-muted);
    font-size: 1.25rem;
}

.mockup-search {
    flex: 1;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.typewriter {
    position: relative;
    display: inline-block;
}

.typewriter::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Premium Bento Grid - Replaces old bento grid */
.bento-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(320px, auto);
    gap: 1.5rem;
}

.bento-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.bento-span-2 {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

@media (max-width: 900px) {
    .bento-grid-premium {
        grid-template-columns: 1fr;
    }

    .bento-span-2,
    .bento-tall {
        grid-column: span 1;
        grid-row: auto;
    }
}

/* Faux UI - Window */
.faux-window {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.faux-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 6px;
}

.faux-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.faux-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faux-line {
    font-size: 0.85rem;
    color: var(--text-main);
}

.faux-content-block {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    width: 100%;
}

.faux-content-block.short {
    width: 60%;
}

/* Faux UI - List */
.faux-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faux-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.faux-list-item.active-reply {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
    transform: scale(1.02);
}

.faux-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.faux-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faux-l1 {
    height: 6px;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.faux-l2 {
    height: 6px;
    width: 60%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.faux-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Faux UI - Timeline */
.faux-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.tl-node {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tl-node.highlight {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.tl-line {
    font-size: 0.7rem;
    color: var(--text-muted);
    border-left: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 1rem 0 1rem 1rem;
    margin-left: -1rem;
}

/* Faux UI - Download Widget */
.faux-download {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.faux-dl-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.faux-dl-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.faux-dl-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
}

.faux-dl-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.faux-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 0.25rem;
    overflow: hidden;
}

.faux-progress-fill {
    width: 0%;
    height: 100%;
    background: #22c55e;
    border-radius: 2px;
    animation: fauxProgress 2.5s ease forwards;
}

@keyframes fauxProgress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.mockup-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 400px;
}

@media (max-width: 768px) {
    .mockup-grid {
        grid-template-columns: 1fr;
    }

    .mockup-sidebar {
        display: none;
    }
}

.mockup-sidebar {
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mockup-nav-item {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mockup-nav-item.active {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    font-weight: 500;
}

.mockup-main {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.anim-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.skeleton-text {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.skeleton-text.short {
    width: 120px;
}

.skeleton-text.medium {
    width: 200px;
    margin-bottom: 8px;
}

.skeleton-text.thin {
    width: 150px;
    height: 8px;
    opacity: 0.6;
}

.skeleton-pill {
    width: 80px;
    height: 24px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 12px;
}

.anim-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.anim-result-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(10px);
    animation: slideUpFade 0.5s forwards;
}

.anim-result-row.delay-1 {
    animation-delay: 2.5s;
}

.anim-result-row.delay-2 {
    animation-delay: 2.8s;
}

.anim-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.8;
}

.anim-details {
    flex: 1;
}

.anim-status {
    width: 80px;
    height: 20px;
    border-radius: 4px;
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Trust Banner */
.trust-banner {
    border-bottom: none;
}

.py-4 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-8 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.trust-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* General Sections */
.section {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Glass & Cards */
.mix-glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
}

/* How It Works Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.step-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.step-desc {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Features Bento */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(250px, auto);
    gap: 1.5rem;
}

.bento-item {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large {
        grid-column: span 1;
        grid-row: auto;
    }
}

.bento-content {
    margin-bottom: 1.5rem;
    z-index: 2;
}

.bento-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.bento-large .bento-content h3 {
    font-size: 1.75rem;
}

.bento-content p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.bento-visual {
    margin-top: auto;
    z-index: 1;
}

.auth-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 2rem 1rem;
}

.brand-box {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.microsoft {
    color: #00a4ef;
    box-shadow: 0 0 40px rgba(0, 164, 239, 0.1);
}

.google {
    color: #ea4335;
    box-shadow: 0 0 40px rgba(234, 67, 53, 0.1);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card.popular {
    transform: scale(1.05);
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.15);
}

@media (max-width: 900px) {
    .pricing-card.popular {
        transform: none;
    }
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-brand);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 1rem 0;
    line-height: 1;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.pricing-features li.disabled {
    color: #475569;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    background: var(--bg-card);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    flex: 2;
    min-width: 250px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links {
    flex: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.link-col {
    min-width: 150px;
}

.link-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.link-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.link-col a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* Bento Full Width Item */
.bento-full {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.bento-full .bento-content {
    margin-bottom: 0;
    max-width: 600px;
}

.bento-full .bento-visual {
    margin-top: 0;
}

@media (max-width: 768px) {
    .bento-full {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* Scroll reveal classes for JS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}