/* =========================================
   Base Styles & Variables
   ========================================= */
:root {
    /* Color Palette - Neutral with strong accent */
    --clr-bg: #0a0a0c;
    --clr-surface: #131316;
    --clr-surface-light: #1f1f23;

    --clr-text-main: #fcfcfd;
    --clr-text-muted: #a1a1aa;

    /* Accent Color - Vibrant Violet/Blue */
    --clr-accent: #6f42c1;
    --clr-accent-light: #8a2be2;
    --clr-accent-glow: rgba(138, 43, 226, 0.4);

    --clr-border: rgba(255, 255, 255, 0.1);
    --clr-glass: rgba(255, 255, 255, 0.03);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Outfit', var(--font-sans);

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

    /* Layout */
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

.text-accent {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Base Components Default */
.bg-glass {
    background: var(--clr-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--clr-border);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--clr-text-main);
    color: var(--clr-bg);
}

.btn-primary:hover {
    background-color: #e4e4e7;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--clr-text-main);
    border-color: var(--clr-border);
}

.btn-secondary:hover {
    background: var(--clr-surface-light);
    border-color: var(--clr-text-muted);
}

.btn-nav {
    padding: 0.5rem 1rem;
    background: var(--clr-surface-light);
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-nav:hover {
    background: var(--clr-accent);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: var(--space-md) 0;
    transition: all var(--transition-normal);
}

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

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

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

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
}

.nav-links {
    display: none;
    gap: 2rem;
}

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

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

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    padding: 12rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, var(--clr-accent-glow) 0%, transparent 60%);
    filter: blur(100px);
    opacity: 0.5;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-content {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    z-index: 10;
}

.pill-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: var(--clr-glass);
    border: 1px solid var(--clr-border);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    display: inline-flex;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--clr-text-muted);
    max-width: 500px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

.avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--clr-bg);
    margin-left: -10px;
}

.avatar:first-child {
    margin-left: 0;
}

/* Mockup CSS art for Hero */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.mockup-container {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.mockup {
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--clr-border);
    position: relative;
    z-index: 2;
    aspect-ratio: 9/19.5;
}

.mockup-screen {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background: var(--clr-surface);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.25rem;
    gap: 1rem;
}

.mockup-header {
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mockup-card {
    background: var(--clr-surface-light);
    padding: 1rem;
    border-radius: 16px;
    font-size: 0.8rem;
    border: 1px solid var(--clr-border);
    animation: float 6s ease-in-out infinite;
}

.mockup-card:nth-child(3) {
    animation-delay: -2s;
}

.mockup-card:nth-child(4) {
    animation-delay: -4s;
    opacity: 0.5;
}

.mockup-card h4 {
    color: var(--clr-accent-light);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.mockup-card p {
    color: var(--clr-text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
}

.card-tags span {
    background: var(--clr-glass);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    color: var(--clr-text-muted);
}

.decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
}

.circle-1 {
    width: 200px;
    height: 200px;
    background: var(--clr-accent);
    top: -20px;
    right: -40px;
    opacity: 0.3;
}

.circle-2 {
    width: 150px;
    height: 150px;
    background: #3b82f6;
    bottom: 20px;
    left: -20px;
    opacity: 0.2;
}

/* =========================================
   Animations
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes float {

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

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

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Scroll Animation Base */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Sections Core
   ========================================= */
.section {
    padding: var(--space-xl) 0;
}

.section-dark {
    background-color: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
}

.section-header {
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

.text-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
}

/* =========================================
   Features Grid
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--clr-accent-light);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.05);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--clr-surface-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--clr-accent-light);
    margin-bottom: 1.5rem;
    border: 1px solid var(--clr-border);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* =========================================
   How It Works Steps
   ========================================= */
.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .steps-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.step-item {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: var(--clr-bg);
    border-radius: 24px;
    border: 1px solid var(--clr-glass);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    color: white;
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.2);
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

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

/* =========================================
   Gallery Section
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    position: relative;
    border: 1px solid var(--clr-border);
}

.gallery-item:nth-child(2) {
    transform: translateY(2rem);
}

.gallery-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--clr-text-muted);
    font-size: 1.25rem;
    background: linear-gradient(to bottom right, var(--clr-surface-light), var(--clr-bg));
}

.gallery-img-placeholder i {
    font-size: 3rem;
    opacity: 0.5;
}

/* =========================================
   Trust Section
   ========================================= */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .trust-item:not(:last-child) {
        border-right: 1px solid var(--clr-border);
    }
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-icon {
    font-size: 2rem;
    color: var(--clr-text-main);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.trust-item h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    max-width: 250px;
    margin: 0 auto;
}

/* =========================================
   FAQ Section
   ========================================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-item summary {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--clr-accent-light);
    transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    animation: fadeIn var(--transition-normal);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* =========================================
   Footer
   ========================================= */
.footer {
    border-top: 1px solid var(--clr-border);
    padding: var(--space-xl) 0 2rem;
    background: var(--clr-bg);
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }
}

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

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-group h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--clr-text-main);
}

.link-group a {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.link-group a:hover {
    color: var(--clr-accent-light);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border);
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 0.85rem;
}