:root {
    --bg-color: #050510;
    --card-bg: rgba(255, 255, 255, 0.05);
    --primary: #7C3AED;
    --secondary: #06B6D4;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glow: 0 0 20px rgba(124, 58, 237, 0.5);
    --font-main: 'Outfit', sans-serif;
    --container-width: 1200px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.7;
    /* Increased line height */
    overflow-x: hidden;
    position: relative;
    /* Clean background, grid moved to pseudo-element */
}

/* Modern Header Grid with Fade - Only for specific pages */
.show-grid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Only covers the initial view/hero area */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    /* Fade out edges and bottom - Modern look */
    mask-image: radial-gradient(circle at top center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at top center, black 40%, transparent 80%);
    pointer-events: none;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
    /* Subtle transparency */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

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

.pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 35px;
    /* Larger buttons */
    background: var(--gradient);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 35px;
    /* Larger buttons */
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 15px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

/* --- Navbar --- */
.navbar {
    padding: 15px 0;
    /* Reduced from 25px */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 16, 0.85);
    /* Slightly more opaque */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: normal;
    font-family: 'Mange', 'Outfit', sans-serif;
    text-transform: uppercase;
}

.logo .dot {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 40px;
    /* More space between links */
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:not(.btn-primary):hover {
    color: white;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    padding: 220px 0 160px;
    /* Heavily increased padding */
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    gap: 80px;
}

.hero-text {
    flex: 1;
    max-width: 650px;
}

.hero-text h1 {
    font-size: 4rem;
    /* Larger */
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 700;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 520px;
}

.hero-inner {
    padding: 100px 0 20px;
    /* Tighter padding (Navbar is ~70px now) */
    min-height: 30vh;
    /* Much shorter */
    align-items: center;
}

/* Reduced spacing for content immediately following hero-inner */
section.hero-inner+section {
    padding-top: 20px !important;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    position: absolute;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.main-card {
    width: 280px;
    text-align: center;
    z-index: 2;
    transform: rotate(-5deg);
    animation: float 6s ease-in-out infinite;
}

.main-card .card-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.main-card h3 {
    margin-bottom: 5px;
}

.main-card p {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.3rem;
}

.float-card-1 {
    top: 60px;
    right: 40px;
    padding: 25px;
    font-size: 2.2rem;
    color: var(--secondary);
    z-index: 1;
    animation: float 8s ease-in-out infinite 1s;
}

.float-card-2 {
    bottom: 60px;
    left: 40px;
    padding: 25px;
    font-size: 2.2rem;
    color: var(--secondary);
    z-index: 3;
    animation: float 7s ease-in-out infinite 2s;
}

/* Background Glows */
.bg-glow-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.bg-glow-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    z-index: 0;
}

/* --- Services Section --- */
.services {
    padding: 160px 0;
    /* More padding */
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 100px;
    /* More space */
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* Specific override for pricing to fit 4 in a row */
.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    /* Tighter gap to fit 4 cards */
}

.service-card {
    background: var(--card-bg);
    border: var(--glass-border);
    padding: 40px 30px;
    /* Slightly reduced padding */
    border-radius: 24px;
    transition: 0.3s;
}

/* Restored Styles */
.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.3);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 30px;
}

.service-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.learn-more {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- About Section --- */
.about {
    padding: 160px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    /* Changed from center to start to bring content higher */
}

.stylized-placeholder {
    width: 100%;
    height: 500px;
    /* Taller */
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.stylized-placeholder::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(from 180deg at 50% 50%, #050510 0deg, #7C3AED 90deg, #050510 180deg, #06B6D4 270deg, #050510 360deg);
    opacity: 0.2;
    animation: spin 10s linear infinite;
}

.big-icon {
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.stats-row {
    display: flex;
    gap: 60px;
    /* More space */
    margin-top: 60px;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--secondary);
}

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

/* --- Pricing Cards --- */
.price-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-card.popular {
    background: rgba(124, 58, 237, 0.05);
    /* Slight tint for popular */
    border: 1px solid rgba(124, 58, 237, 0.3);
    transform: scale(1.05);
    z-index: 2;
}

.price-card.popular:hover {
    transform: scale(1.08) translateY(-5px);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.4);
}

.price-header {
    text-align: center;
    margin-bottom: 30px;
}

.price-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 15px 0;
}

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

.price-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.price-features li {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features li i {
    color: var(--secondary);
}

/* --- Responsive Pricing --- */
@media (max-width: 968px) {
    .price-card.popular {
        transform: scale(1);
    }

    .price-card.popular:hover {
        transform: translateY(-5px);
    }
}

/* --- Stripe-like Checkout UI --- */
.stripe-form-container {
    background: #ffffff;
    /* Stripe often uses white backgrounds for forms, or we map to our dark theme */
    /* Let's keep it dark but formatted like Stripe Elements */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0;
    /* Inputs will handle padding */
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.stripe-input-row {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stripe-input-row:last-child {
    border-bottom: none;
}

.stripe-input-group {
    flex: 1;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stripe-input-group:last-child {
    border-right: none;
}

.stripe-input {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.stripe-input::placeholder {
    color: #6b7280;
}

.stripe-input:focus {
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 0 2px var(--secondary);
}

.stripe-input option {
    background: #1a1a2e;
    /* Dark background for dropdown options */
    color: white;
}

.powered-by-stripe {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.powered-by-stripe i {
    font-size: 1.2rem;
    color: #635bff;
    /* Stripe Blurple */
}

/* --- Footer --- */
footer {
    padding: 100px 0 40px;
    background: #02020a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col h4 {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.socials {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.socials a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.socials a:hover {
    background: var(--primary);
    color: white;
}

.footer-bottom {
    text-align: center;
    color: #4a5568;
    font-size: 0.95rem;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* --- Animations --- */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(-5deg);
    }

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

    100% {
        transform: translateY(0px) rotate(-5deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* --- Responsive --- */
@media (max-width: 968px) {
    .hero {
        padding: 160px 0 100px;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 60px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        padding: 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .hamburger {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

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

    /* --- Mobile Polish --- */
    .services,
    .about {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .service-card {
        padding: 30px 20px;
    }

    .price {
        font-size: 2.5rem;
    }

    .price-header h3 {
        font-size: 1.3rem;
    }

    .popular-tag {
        font-size: 0.75rem;
        padding: 4px 12px;
        top: -12px;
    }

    .price-features li {
        font-size: 0.95rem;
    }

    /* --- Hero Layout Fixes --- */
    .hero-content {
        gap: 60px;
        /* Adjusted for iPhone 15 Pro (393px) */
    }

    /* Ensure visual doesn't collapse or overlap */
    .hero-visual {
        height: 380px;
        /* Optimized for iPhone 15 Pro screen height proportion */
        margin-bottom: 20px;
    }

    /* Fix Button Overlap */
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 16px;
        /* consistent 16px spacing */
        align-items: center;
        width: 100%;
        margin-top: 10px;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        margin: 0;
        width: 100%;
        max-width: 350px;
        /* Slightly wider for modern phones */
        text-align: center;
        padding: 16px 30px;
        /* Taller touch targets */
    }
}