/* ===========================
   ZenoFlow — Premium SaaS CSS
   =========================== */

/* --- Reset & Variables --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #000000;
    --bg-card: #0A0A0F;
    --bg-card-hover: #0F0F1A;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(59, 130, 246, 0.3);
    --text: #FFFFFF;
    --text-muted: #8A8F9E;
    --text-dim: #555A6E;
    --accent: #3B82F6;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --accent-hover: #60A5FA;
    --gradient: linear-gradient(135deg, #3B82F6, #8B5CF6, #06B6D4);
    --gradient-text: linear-gradient(135deg, #3B82F6, #60A5FA, #06B6D4);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.1);
}

[data-theme="light"] {
    --bg: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(59, 130, 246, 0.2);
    --text: #0F172A;
    --text-muted: #475569;
    --text-dim: #94A3B8;
    --accent: #2563EB;
    --accent-glow: rgba(37, 99, 235, 0.1);
    --accent-hover: #1D4ED8;
    --shadow-glow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent {
    color: var(--accent);
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: 1.6rem;
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px !important;
    font-size: 0.875rem !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

/* --- Nav User Profile (Logged In) --- */
.nav-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.nav-profile:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nav-profile-info {
    display: flex;
    flex-direction: column;
}

.nav-profile-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.nav-profile-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* --- Theme Toggle --- */
.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

/* Icons visibility based on theme */
.sun-icon { opacity: 0; transform: translateY(40px) rotate(90deg); }
.moon-icon { opacity: 1; transform: translateY(0) rotate(0deg); }

[data-theme="light"] .sun-icon { opacity: 1; transform: translateY(0) rotate(0deg); }
[data-theme="light"] .moon-icon { opacity: 0; transform: translateY(-40px) rotate(-90deg); }

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 100%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(59, 130, 246, 0.15);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    animation: float 8s ease-in-out infinite;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.1);
    bottom: -100px;
    right: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.glow-3 {
    width: 300px;
    height: 300px;
    background: rgba(6, 182, 212, 0.08);
    bottom: 100px;
    left: -100px;
    animation: float 12s ease-in-out infinite;
}

.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

@keyframes float {

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

    50% {
        transform: translateX(-50%) translateY(-30px);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-content.text-left {
    text-align: left;
    margin: 0;
    max-width: none;
}

.hero-content.text-left .hero-subtitle {
    margin-left: 0;
}

.hero-content.text-left .hero-actions,
.hero-content.text-left .hero-stats {
    justify-content: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Phone Mockup */
.hero-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.phone-mockup {
    position: relative;
    width: 320px;
    height: 640px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: var(--transition);
}

.phone-mockup:hover {
    transform: rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

.phone-frame {
    width: 100%;
    height: 100%;
    background: #050508;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.phone-header {
    padding: 32px 20px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-pulse {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-core {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: phonePulse 2s infinite;
}

@keyframes phonePulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.phone-user-info {
    display: flex;
    flex-direction: column;
}

.phone-user-name {
    font-size: 0.9rem;
    font-weight: 700;
}

.phone-user-status {
    font-size: 0.7rem;
    color: #4ade80;
}

.chat-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.chat-message {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.85rem;
    max-width: 85%;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(20px);
}

.chat-message.bot {
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-message.user {
    background: var(--accent);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-message.success {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.reveal-chat {
    animation: revealMsg 0.5s forwards;
    animation-delay: var(--delay);
}

@keyframes revealMsg {
    to { opacity: 1; transform: translateY(0); }
}

.mockup-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.5;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-content.text-left {
        text-align: center;
    }

    .hero-content.text-left .hero-actions,
    .hero-content.text-left .hero-stats {
        justify-content: center;
    }

    .hero-showcase {
        order: 2;
    }

    .phone-mockup {
        transform: none;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bobble 2s ease-in-out infinite;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 3px;
    height: 8px;
    border-radius: 3px;
    background: var(--accent);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {

    0%,
    100% {
        opacity: 1;
        transform: translateY(0);
    }

    50% {
        opacity: 0.3;
        transform: translateY(6px);
    }
}

@keyframes bobble {

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

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ===========================
   SECTION SHARED STYLES
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services {
    padding: 120px 0;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* WhatsApp Pricing Block */
.service-block {
    margin-bottom: 80px;
}

.service-block-header {
    text-align: center;
    margin-bottom: 40px;
}

.service-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.service-icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.service-block-header h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, var(--bg-card) 100%);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.08);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pricing-amount {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.pricing-amount span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-features {
    text-align: left;
    margin-bottom: 28px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.service-card-glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent);
    border-radius: 50%;
    transition: var(--transition);
}

.service-card:hover .service-card-glow {
    transform: scale(2);
    opacity: 1;
}

.service-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.service-card-icon svg {
    width: 24px;
    height: 24px;
}

.service-card h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-price {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.price-main {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
}

.price-separator {
    color: var(--text-dim);
    font-size: 1rem;
}

.service-card-wide {
    grid-column: span 3;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 24px;
    text-align: left;
}

.service-card-wide .service-card-icon {
    grid-row: span 2;
    margin-bottom: 0;
    width: 56px;
    height: 56px;
}

.service-card-wide h4 {
    margin-bottom: 4px;
}

.service-card-wide p {
    margin-bottom: 0;
    grid-column: 2;
}

.service-card-wide .service-price {
    grid-column: 3;
    grid-row: 1;
    margin-bottom: 0;
    justify-content: flex-end;
}

.service-card-wide .btn {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
}

/* ===========================
   WHY CHOOSE US
   =========================== */
.why-us {
    padding: 120px 0;
    position: relative;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.why-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.why-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(59, 130, 246, 0.06);
    position: absolute;
    top: 12px;
    right: 20px;
    line-height: 1;
}

.why-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.why-icon svg {
    width: 24px;
    height: 24px;
}

.why-card h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===========================
   HOW IT WORKS
   =========================== */
.how-it-works {
    padding: 120px 0;
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.steps-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.steps-line {
    position: absolute;
    left: 36px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), rgba(59, 130, 246, 0.1));
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 56px;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.step:hover .step-number {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.step-number span {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.step-content {
    padding-top: 12px;
}

.step-content h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials {
    padding: 120px 0;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: #FBBF24;
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 0.9rem;
    font-weight: 600;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ===========================
   FINAL CTA
   =========================== */
.final-cta {
    padding: 120px 0;
    position: relative;
}

.cta-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.06) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12), transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 36px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    padding: 80px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links h5,
.footer-contact h5 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--text-muted);
}

/* ===========================
   EMAIL MODAL FOR DEMO BOOKING
   =========================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 15, 26, 0.95), rgba(10, 10, 15, 0.95));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.modal-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--font-display);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 14px;
}

#emailForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#emailInput {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    transition: var(--transition);
}

#emailInput:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

#emailInput::placeholder {
    color: var(--text-dim);
}

.modal-content .btn {
    padding: 12px 16px;
    font-size: 14px;
}

/* ===========================
   REVEAL ANIMATIONS
   =========================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.45s;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card-wide {
        grid-column: span 2;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.3rem;
    }

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

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 100px 0 60px;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .hide-mobile {
        display: none;
    }

    .services,
    .why-us,
    .how-it-works,
    .testimonials,
    .final-cta {
        padding: 80px 0;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .service-card-wide {
        grid-column: span 1;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-card-wide .service-card-icon {
        margin: 0 auto 16px;
        grid-row: auto;
    }

    .service-card-wide .service-price {
        grid-column: 1;
        grid-row: auto;
        justify-content: center;
        margin-bottom: 16px;
    }

    .service-card-wide .btn {
        grid-column: 1;
        grid-row: auto;
        justify-self: center;
    }

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

    .steps-line {
        left: 28px;
    }

    .step-number {
        width: 56px;
        height: 56px;
    }

    .step {
        gap: 20px;
    }

    .cta-wrapper {
        padding: 56px 24px;
    }

    .cta-actions {
        flex-direction: column;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .section-title {
        font-size: 1.8rem;
    }
}
/* ===========================
   AUTHENTICATION UI
   =========================== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; position: relative; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 48px; width: 100%; max-width: 440px; position: relative; z-index: 10; box-shadow: 0 20px 40px rgba(0,0,0,0.4); text-align: center; }
.auth-card h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 8px; }
.auth-card .subtitle { color: var(--text-muted); margin-bottom: 32px; font-size: 0.95rem; }
.form-group { text-align: left; margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-bottom: 8px; }
.form-control { width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--border); padding: 14px 16px; border-radius: 10px; color: var(--text); font-family: var(--font); font-size: 0.95rem; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--accent); background: rgba(59,130,246,0.05); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.auth-divider { display: flex; align-items: center; text-align: center; margin: 32px 0; color: var(--text-dim); font-size: 0.85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border); }
.auth-divider:not(:empty)::before { margin-right: 16px; }
.auth-divider:not(:empty)::after { margin-left: 16px; }
.auth-footer { margin-top: 32px; font-size: 0.9rem; color: var(--text-muted); }
.auth-footer a { color: var(--accent); font-weight: 500; transition: var(--transition); }
.auth-footer a:hover { color: var(--text); }
.auth-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #FCA5A5; padding: 12px; border-radius: 8px; font-size: 0.85rem; margin-bottom: 20px; display: none; text-align: left; }
/* ===========================
   FAQ SECTION
   =========================== */
.faq {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(59, 130, 246, 0.02) 50%, var(--bg) 100%);
    position: relative;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.faq-item.active {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.faq-question {
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.faq-question span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    background: rgba(255, 255, 255, 0.01);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 24px;
}

.faq-answer p {
    padding: 0 32px 24px;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Scroll padding for anchors */
#services, #why-us, #how-it-works, #faq {
    scroll-margin-top: 100px;
}

/* ===========================
   TRUSTED BY SECTION
   =========================== */
.trusted-by {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.trusted-text {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 40px;
}

.logo-cloud {
    position: relative;
    width: 100%;
}

.logo-track {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: scrollLogos 40s linear infinite;
}

.brand {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    filter: grayscale(1);
    opacity: 0.4;
    transition: var(--transition);
    white-space: nowrap;
    cursor: default;
}

.brand span {
    color: var(--text);
}

.brand:hover {
    filter: grayscale(0);
    opacity: 1;
    color: var(--accent);
    transform: scale(1.05);
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 40px)); }
}

/* Mobile Compatibility */
@media (max-width: 768px) {
    .trusted-by {
        padding: 40px 0;
    }
    
    .logo-track {
        gap: 40px;
        animation-duration: 25s;
    }
    
    .brand {
        font-size: 1rem;
    }
}

/* --- Coming Soon Styling --- */
.service-card.coming-soon {
    position: relative;
    opacity: 0.65;
    transition: var(--transition);
}

.service-card.coming-soon:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--border) !important;
}

.coming-soon-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

[data-theme="light"] .coming-soon-badge {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}
