/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* Modern Design System - Premium Glass Theme */
:root {
    /* Primary Brand Colors */
    --primary-hue: 215;
    --primary-sat: 95%;
    --primary-lig: 55%;
    --primary: hsl(var(--primary-hue), var(--primary-sat), var(--primary-lig));
    --primary-dark: hsl(var(--primary-hue), var(--primary-sat), 45%);
    --primary-light: hsl(var(--primary-hue), var(--primary-sat), 65%);
    --primary-glow: hsla(var(--primary-hue), var(--primary-sat), var(--primary-lig), 0.35);

    /* Secondary Accent Colors */
    --accent-hue: 265;
    --accent: hsl(var(--accent-hue), 90%, 60%);
    --accent-glow: hsla(var(--accent-hue), 90%, 60%, 0.35);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0061ff 0%, #60efff 100%);
    --gradient-premium: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-text: linear-gradient(to right, #2563eb, #7c3aed);
    --gradient-bg: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);

    /* Surfaces & Glassmorphism */
    --surface-glass: rgba(255, 255, 255, 0.7);
    --surface-glass-strong: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(255, 255, 255, 0.5);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    /* Typography */
    --font-main: 'Kanit', sans-serif;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #94a3b8;

    /* Spacing & Layout */
    --container-max: 1280px;
    --header-height: 80px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;

    /* Animations */
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background: #f8fafc;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Global Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar - Glass Effect */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--container-max);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    padding: 0.75rem 1.5rem;
    z-index: 1000;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s var(--ease-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
}

.logo-image {
    height: 40px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* Hero Section - The Main Focus */
/* Added containment to prevent overlap */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(circle at top right, rgba(96, 239, 255, 0.1), transparent 50%),
        radial-gradient(circle at bottom left, rgba(0, 97, 255, 0.05), transparent 50%);
}

/* Animated Background Blobs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    animation: floatBlob 20s infinite alternate;
}

.hero::before {
    background: #60efff;
    top: -100px;
    right: -100px;
}

.hero::after {
    background: #0061ff;
    bottom: -100px;
    left: -200px;
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

/* Hide redundant banner image on desktop since we have the 3D visual */
/* This is likely what caused the overlap if both were showing */
.hero-banner {
    display: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    align-self: flex-start;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-badge i,
.hero-badge .material-icons {
    color: #f59e0b;
    font-size: 1.2rem;
}

.hero-badge span:last-child {
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    color: var(--text-dark);
}

.hero-title .highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    max-width: 90%;
    font-weight: 400;
    line-height: 1.6;
}

.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.6);
    padding: 12px 20px;
    border-radius: 16px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    transition: transform 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.benefit-item:hover {
    transform: translateX(5px);
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.benefit-item i,
.benefit-item .material-icons {
    color: #10b981;
    font-size: 1.4rem;
}

/* Telegram 3D Mockup */
.hero-visual {
    position: relative;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    height: 100%;
    min-height: 600px;
    /* Ensure space is reserved */
    align-items: center;
}

.telegram-mockup {
    transform: rotateY(-10deg) rotateX(10deg);
    transition: transform 0.5s var(--ease-elastic);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.25));
}

.telegram-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.phone-frame {
    background: #111;
    width: 300px;
    height: 600px;
    border-radius: 45px;
    padding: 12px;
    position: relative;
    border: 4px solid #333;
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.1),
        0 0 0 2px #555;
    background-image: linear-gradient(135deg, #222 0%, #111 100%);
}

.phone-screen {
    background: #fff;
    width: 100%;
    height: 100%;
    border-radius: 35px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Chat Interface Styling inside Phone */
.app-header {
    background: #0088cc;
    padding: 15px 20px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-preview {
    flex: 1;
    background: #7289da1f;
    /* Telegram BG Hint */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10z' fill='%239CA3AF' fill-opacity='0.1'/%3E%3C/svg%3E");
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    max-width: 85%;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.message.bot {
    background: white;
    color: var(--text-dark);
    align-self: flex-start;
    border-top-left-radius: 2px;
}

.message.user {
    background: #efffde;
    color: var(--text-dark);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.message i {
    margin-right: 6px;
    font-size: 0.9em;
    color: #0088cc;
}

/* Layout Management: Specific fix for overlapping */
.bot-flow,
.features,
.control-panel,
.how-it-works,
.security {
    padding: 80px 0;
    position: relative;
    background: white;
    /* Ensure background covers potential overflows from above if z-index is lower */
    z-index: 5;
}

/* Ensure flow-container items don't break layout */
.flow-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-medium);
}

/* Cards (Features, Steps, Flows) */
.flow-phase,
.step-card,
.feature-card,
.panel-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    /* Uniform height */
}

.flow-phase:hover,
.step-card:hover,
.panel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Phase Headers */
.phase-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.phase-number {
    width: 35px;
    height: 35px;
    background: var(--text-dark);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.phase-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Phase Colors */
.phase-header.green .phase-number {
    background: #10b981;
}

.phase-header.yellow .phase-number {
    background: #f59e0b;
}

.phase-header.orange .phase-number {
    background: #f97316;
}

.phase-header.blue .phase-number {
    background: #3b82f6;
}

.phase-header.purple .phase-number {
    background: #8b5cf6;
}

.phase-header.brown .phase-number {
    background: #92400e;
}

.phase-header.black .phase-number {
    background: #1f2937;
}

.phase-header.red .phase-number {
    background: #ef4444;
}

/* Feature Grid */
.features-grid,
.panels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-icon,
.panel-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary);
}

/* Timeline Layout for Steps */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
    /* Space for the line */
}

/* Timeline Line */
.steps-container::before {
    content: '';
    position: absolute;
    left: 15px;
    /* Centers with the 35px width numbers roughly */
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    opacity: 0.3;
}

.step-card {
    position: relative;
    margin-left: 0;
    /* Reset from previous if any */
}

/* Connect numbers to the line */
.step-number {
    position: absolute;
    left: -50px;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 5px white;
    /* Border effect */
}

/* Specific Step Styling */
.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.step-content li {
    margin-bottom: 5px;
    color: var(--text-medium);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .steps-container {
        padding-left: 40px;
    }

    .steps-container::before {
        left: 10px;
    }

    .step-number {
        left: -40px;
    }
}

/* System Memory Section */
.system-memory {
    background: var(--text-dark);
    color: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.memory-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.memory-header h3 {
    font-size: 1.5rem;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.memory-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s;
}

.memory-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

/* Quick Summary & Key Features - Fixed */
.quick-summary,
.key-features {
    background: white;
    border-radius: var(--radius-md);
    padding: 2.5rem;
    margin-top: 3rem;
    box-shadow: var(--shadow-glass);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-header,
.features-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
}

.summary-header h3,
.features-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.summary-header i,
.features-header i {
    font-size: 1.5rem;
    color: var(--accent);
}

.features-header i {
    color: #ef4444;
    /* Fire color */
}

/* Flow Steps Visual */
.flow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 100px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.flow-step span:last-child {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.flow-steps .fa-arrow-right {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Key Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    transition: transform 0.2s;
}

.feature-point:hover {
    transform: translateX(5px);
    background: #f1f5f9;
}

.feature-point i {
    font-size: 1.2rem;
    color: var(--primary);
}

.feature-point span {
    font-weight: 500;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .flow-steps {
        flex-direction: column;
        gap: 1.5rem;
    }

    .flow-steps .fa-arrow-right {
        transform: rotate(90deg);
    }

    .flow-step {
        flex-direction: row;
        width: 100%;
        text-align: left;
        background: #f8fafc;
        padding: 1rem;
        border-radius: 12px;
    }
}

.code-example {
    background: #1e293b;
    color: #a5b4fc;
    padding: 10px 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        padding-top: 140px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        align-items: center;
        /* Center content on mobile */
    }

    .hero-title {
        font-size: 2.8rem;
    }

    /* Show banner on mobile if visual is hidden, OR just show visual */
    /* Let's show the banner image on mobile instead of the heavy 3D phone if performance is issues, 
       BUT for premium look, phone is better. Let's keep phone, hide banner. */
    .hero-banner {
        display: none;
    }

    .hero-visual {
        height: auto;
        min-height: 500px;
        margin-top: 0;
    }

    .telegram-mockup {
        transform: none;
        /* Flatten 3D on mobile for better fit */
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .nav-toggle span {
        width: 30px;
        height: 3px;
        background: var(--text-dark);
        border-radius: 4px;
    }

    .nav-menu {
        display: none;
        /* Hide menu for mobile */
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-badge {
        width: fit-content;
        margin: 0 auto 2rem;
    }

    .container {
        padding: 0 16px;
    }

    .phase-content {
        font-size: 0.95rem;
    }
}

/* Animation Utilities */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.flow-phase:nth-child(2) {
    transition-delay: 0.1s;
}

.flow-phase:nth-child(3) {
    transition-delay: 0.2s;
}

.flow-phase:nth-child(4) {
    transition-delay: 0.3s;
}

/* Security Section */
.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.security-item {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s var(--ease-out);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
}

.security-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(96, 239, 255, 0.3);
}

.security-item i {
    font-size: 2rem;
    color: var(--primary);
    background: var(--surface-light);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.security-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.security-item p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Problem Solution Section */
.problem-solution {
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 2rem;
    align-items: stretch;
    margin-top: 3rem;
}

.problems,
.solutions {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.problems {
    border-top: 5px solid #ef4444;
}

.solutions {
    border-top: 5px solid #10b981;
    background: #f0fdf4;
}

.problems h3 {
    color: #ef4444;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.solutions h3 {
    color: #059669;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.problem-item,
.solution-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

.problem-item i {
    color: #ef4444;
    font-size: 1.2rem;
}

.solution-item i {
    color: #10b981;
    font-size: 1.2rem;
}

.arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
}

.summary-box {
    margin-top: 3rem;
    margin-bottom: 4rem;
    /* Added margin bottom */
    text-align: center;
    padding: 2rem;
    background: var(--text-dark);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: flex-start;
}

.pricing-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s var(--ease-out);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 20px 50px rgba(0, 97, 255, 0.15);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.period {
    color: var(--text-light);
    margin-left: 4px;
}

.original-price-line {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 1rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-medium);
}

.pricing-features li i {
    color: #10b981;
    font-size: 1.1rem;
}

.btn-pricing {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #f1f5f9;
    background: transparent;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
    /* Added for anchor tag */
    text-align: center;
    /* Added for anchor tag */
    text-decoration: none;
    /* Added for anchor tag */
}

.btn-pricing:hover {
    border-color: var(--text-dark);
    background: var(--text-dark);
    color: white;
}

.btn-popular {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 97, 255, 0.3);
}

.btn-popular:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 97, 255, 0.4);
}

/* FAQ & Testimonials Enhancements */
.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.author-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

@media (max-width: 900px) {
    .comparison {
        grid-template-columns: 1fr;
    }

    .arrow {
        transform: rotate(90deg);
        padding: 1rem;
    }

    .pricing-card.popular {
        transform: none;
    }
}

/* Final CTA Section */
.final-cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(96, 239, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.cta-urgent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fee2e2;
    color: #ef4444;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.final-price {
    margin-bottom: 2rem;
}

.price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.price-display .original {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.5rem;
}

.price-display .current {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.price-display .discount-badge {
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-xlarge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary);
    /* Fallback */
    background: var(--gradient-primary);
    color: white !important;
    /* Force text opacity on top of gradient */
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 97, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.btn-xlarge:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 97, 255, 0.5);
}

.payment-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 1.5rem;
}

.final-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
    color: var(--text-dark);
    font-weight: 600;
}

.final-guarantee i {
    color: #10b981;
}

/* Footer Styling */
.footer {
    background: var(--text-dark);
    color: #94a3b8;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-column h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* Social Proof Stats */
.social-proof {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid #f1f5f9;
}

.proof-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-medium);
    font-size: 1.1rem;
}

/* FAQ Detailed Styling */
.faq {
    padding: 60px 0;
    background: #f8fafc;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-medium);
    line-height: 1.6;
    display: none;
    border-top: 1px solid #f1f5f9;
}

.faq-item.active .faq-answer {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reusing animation keyframes if already defined, or defining here */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .price-display {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-xlarge {
        width: 100%;
        justify-content: center;
    }
}

/* Floating Chat Button (Facebook) */
.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0084ff, #0066aa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    animation: floatBtn 3s ease-in-out infinite;
}

.chat-button:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 132, 255, 0.6);
}

/* Floating Text Label */
.chat-text {
    position: absolute;
    right: 70px;
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.chat-button:hover .chat-text {
    opacity: 1;
    transform: translateX(0);
}

@keyframes floatBtn {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .chat-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .chat-text {
        display: none;
    }
}