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

:root {
    /* Base Colors - Dark Mode Premium */
    --bg-main: #0b0f14;
    --bg-secondary: #131920;
    --bg-tertiary: #1a222c;
    --card-bg: rgba(26, 34, 44, 0.4);
    --card-border: rgba(255, 255, 255, 0.08);

    /* Primary Accent - Electric Blue */
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.4);
    --primary-hover: #2563eb;

    /* Functional Colors */
    --accent-blue: #00d2ff;
    --accent-indigo: #6366f1;
    --accent-emerald: #10b981;
    --accent-rose: #dc2626; /* red-600 */
    --accent-amber: #f59e0b;

    /* Text */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --white: #ffffff;

    /* UI Design */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px -5px var(--primary-glow);
    --border-sutle: 1px solid rgba(255, 255, 255, 0.05);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-xxl: 8rem;

    /* Transitions */
    --t-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --t-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;
    --white: #0f172a;
    --border-sutle: 1px solid #e2e8f0;
    --sidebar-bg: #0f172a;
    /* Keep sidebar dark for pro look */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--t-fast);
}

ul {
    list-style: none;
}

/* --- GLOBAL CLASSES --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-padding {
    padding: var(--space-xxl) 0;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--white) 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t-normal);
    border: none;
    font-size: 0.9375rem;
    gap: 0.6rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px var(--primary-glow);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--white);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background-color: #242c38;
    transform: translateY(-2px);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--t-normal);
}

.btn-glow:hover::after {
    opacity: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: var(--space-md);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: all var(--t-normal);
}

.navbar.scrolled {
    background: rgba(11, 15, 20, 0.85);
    backdrop-filter: blur(12px);
    height: 70px;
    border-bottom: var(--border-sutle);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--white);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

.nav-btns {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* --- HERO SECTION --- */
.hero-section {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    max-width: 550px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: var(--space-xxl);
    flex-wrap: wrap;
}

.trusted-by {
    margin-top: auto;
}

.trusted-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: var(--space-sm);
}

.trusted-logos {
    display: flex;
    gap: 2.5rem;
    opacity: 0.5;
    filter: grayscale(1);
}

.trusted-logos i {
    font-size: 1.5rem;
}

/* Dashboard Mockup - Main */
.hero-mockup-container {
    position: relative;
}

.mockup-main {
    background: #111827;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.6), 0 0 50px -10px var(--primary-glow);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: var(--t-normal);
}

.mockup-main:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.m-header {
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    gap: 0.5rem;
}

.m-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.m-dot.red {
    background: #ef4444;
}

.m-dot.amber {
    background: #f59e0b;
}

.m-dot.green {
    background: #10b981;
}

.m-content {
    display: flex;
    height: 400px;
}

.m-sidebar {
    width: 64px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.m-side-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.m-body {
    flex: 1;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.m-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
}

.m-card-h {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.m-microcycle {
    display: flex;
    justify-content: space-between;
}

.m-day {
    flex: 1;
    height: 120px;
    margin: 0 4px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    font-size: 0.7rem;
}

.m-day.active {
    border: 1px solid var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.m-load-bar {
    margin-top: auto;
    width: 100%;
    background: var(--bg-tertiary);
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.m-load-fill {
    width: 100%;
    background: var(--primary);
    border-radius: 2px;
}

.m-fatigue-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.m-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2a3441;
}

.m-info {
    height: 8px;
    width: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.m-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* --- FEATURES GRID --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--card-bg);
    border: var(--border-sutle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--t-normal);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    background: var(--bg-tertiary);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-8px);
}

.f-icon {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.f-icon i {
    width: 28px;
    height: 28px;
}

.f-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.f-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.f-highlight {
    color: var(--accent-blue);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

/* --- EDITOR SECTION --- */
.editor-section {
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-secondary) 100%);
}

.editor-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xxl);
    align-items: center;
}

.editor-mockup {
    background: #0f172a;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.e-toolbar {
    height: 56px;
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.e-tools {
    display: flex;
    gap: 1rem;
}

.e-tool {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
}

.e-main {
    display: flex;
    height: 380px;
}

.e-panel {
    width: 180px;
    background: rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
}

.e-item {
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.e-canvas {
    flex: 1;
    background: #111827;
    position: relative;
    padding: 2rem;
}

.e-dropzone {
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
}

.e-task {
    background: var(--bg-tertiary);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.e-task-meta {
    display: flex;
    gap: 0.5rem;
}

.e-tag {
    padding: 0.2rem 0.5rem;
    font-size: 0.6rem;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

/* --- PRICING --- */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

.price-card {
    background: var(--bg-secondary);
    border: var(--border-sutle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    width: 380px;
    transition: all var(--t-normal);
    position: relative;
}

.price-card.featured {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
    z-index: 10;
}

.price-popular {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.p-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.p-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.p-price {
    font-size: 3rem;
    font-weight: 800;
}

.p-price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.p-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.p-features i {
    color: var(--accent-emerald);
}

/* --- TESTIMONIALS --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.test-card {
    background: var(--bg-secondary);
    border: var(--border-sutle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.test-text {
    font-style: italic;
    margin-bottom: var(--space-lg);
    color: var(--text-main);
}

.test-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.test-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-tertiary);
}

.test-name {
    font-weight: 700;
    display: block;
}

.test-club {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* --- FOOTER --- */
.footer {
    border-top: var(--border-sutle);
    padding: 100px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xxl);
}

.f-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.f-col h4 {
    margin-bottom: var(--space-lg);
    font-size: 1rem;
}

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

.f-col a {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.f-col a:hover {
    color: var(--white);
}

.f-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.8125rem;
}

/* --- REVEAL EFFECTS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- MOBILE --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
}

@media (max-width: 1024px) {

    .hero-grid,
    .editor-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content,
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .trusted-logos {
        justify-content: center;
    }

    .hero-mockup-container {
        margin-top: 50px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: var(--space-xl) 0;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- BILLING TOGGLE SWITCH --- */
.billing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.billing-label {
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.25s ease;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--card-border);
    transition: .3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: var(--primary);
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* --- CUSTOM TEXTAREA & SCROLLBAR STYLING --- */
textarea, select, input {
    font-family: inherit;
}

textarea {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-tertiary);
    resize: vertical;
    line-height: 1.5;
}

textarea::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

textarea::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
    box-shadow: 0 0 6px var(--primary-glow);
}

textarea::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}