:root {
    --primary: #7acb1d;
    --primary-hover: #67b019;
    --secondary: #2cc556;
    --bg-dark: #141a28;
    --card-bg: rgba(45, 58, 76, 0.6);
    --text-main: #ffffff;
    --text-muted: #a0aab8;
    --gradient-glow: radial-gradient(circle at center, rgba(122, 203, 29, 0.15) 0%, rgba(20, 26, 40, 0) 70%);
}

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

html {
    font-size: 18px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1rem;
    /* Explicitly set body size to base */
}

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

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

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

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

.hidden {
    display: none !important;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cursor {
    display: inline-block;
    color: var(--text-main);
    animation: blink 1s step-end infinite;
    font-weight: 100;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(122, 203, 29, 0.4);
}

.icon-glow {
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(122, 203, 29, 0.6));
    width: 48px;
    height: 48px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(122, 203, 29, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(122, 203, 29, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(122, 203, 29, 0);
    }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.2rem;
}

/* Header */
.main-header {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 20px;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(20, 26, 40, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.sticky-header .logo-text {
    font-weight: 700;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    z-index: 0;
    pointer-events: none;
}

.hero-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 5s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.3;
    }
}

#shooting-stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

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

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(122, 203, 29, 0.1);
    color: var(--primary);
    border: 1px solid rgba(122, 203, 29, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-actions .sub-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.social-proof-mini {
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-visual {
    perspective: 1000px;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

/* Logos Bar */
.logos-bar {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.logos-bar p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    opacity: 0.6;
}

.logo-item {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* Problem Section Redesign */
.problem-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}

.floating-paths-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.floating-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: floatDraw 20s linear infinite alternate;
}

@keyframes floatDraw {
    0% {
        stroke-dashoffset: 1000;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

.comparison-grid-spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 1;
    perspective: 1000px;
}

/* Spotlight Card Props */
.spotlight-card {
    position: relative;
    border-radius: 20px;
    background-color: rgba(20, 26, 40, 0.6);
    /* Match theme dark bg */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    overflow: hidden;
    --spotlight-color: 255, 255, 255;
    /* Default white */
}

.spotlight-card.bad .spotlight-content {
    color: var(--text-muted);

}

.spotlight-card.bad {
    --spotlight-color: 255, 77, 77;
    /* Red */
}

.spotlight-card.good {
    --spotlight-color: 122, 203, 29;
    /* Theme Green */
}

/* The glowing spotlight effect */
.spotlight-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(var(--spotlight-color), 0.15),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 0;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(var(--spotlight-color), 0.4),
            transparent 40%);
    opacity: 0;
    z-index: -1;
    /* Behind the border */
    transition: opacity 0.5s;
}

/* Border Glow Logic (using a nested or pseudo approach) */
.spotlight-card-border {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    /* Border width */
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(var(--spotlight-color), 0.6),
            transparent 40%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

/* Hero Visual 3D Tilt */
.hero-visual {
    perspective: 1000px;
    z-index: 10;
}

.tilt-card {
    position: relative;
    transform-style: preserve-3d;
    border-radius: 20px;
    /* remove glass-card styles if conflicting, or keep them if they are just background */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.spotlight-overlay {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    z-index: 20;
    pointer-events: none;
    background: radial-gradient(600px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
            rgba(255, 255, 255, 0.15),
            transparent 40%);
    opacity: 0;
    /* Hidden by default, shown on hover via JS or CSS */
    transition: opacity 0.5s ease;
}

.tilt-card:hover .spotlight-overlay {
    opacity: 1;
}

.hero-img {
    width: 100%;
    /* border-radius: 20px; already on image usually, but good to ensure */
    display: block;
}

/* Review Spotlight Cards Logic */
.spotlight-card:hover .spotlight-card-border {
    opacity: 1;
}

.spotlight-content {
    position: relative;
    z-index: 2;
}

.spotlight-content h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.spotlight-card.bad h3 {
    color: #ff4d4d;
}

.spotlight-card.good h3 {
    color: var(--primary);
}

.spotlight-content ul {
    list-style: none;
}

.spotlight-content li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spotlight-card.bad li::before {
    content: "•";
    color: #ff4d4d;
}

.spotlight-card.good li::before {
    content: "✓";
    color: var(--primary);
}

/* Features */
.features-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

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

.feature-card {
    background: rgba(45, 58, 76, 0.4);
    padding: 30px;
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Pixel Canvas Feature Cards */
.pixel-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.pixel-card:hover {
    border-color: rgba(122, 203, 29, 0.3);
}

.pixel-canvas-el {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

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

.feature-card-content h3 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.feature-card-content p {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Showcase */
.showcase-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.showcase-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Reviews */
.reviews-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

#testimonials-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.marquee-wrapper {
    margin-top: 50px;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-row {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 30px;
    animation: marquee 40s linear infinite;
}

.review-card {
    background: rgba(45, 58, 76, 0.4);
    /* Glass fallback */
    padding: 30px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 350px;
    /* Fixed width for smooth scrolling */
    max-width: 350px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

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

    /* Move half width because we doubled content */
}

/* Hover pause */
.marquee-content:hover {
    animation-play-state: paused;
}

.review-card .stars {
    margin-bottom: 15px;
    color: #ffd700;
}

.review-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
    white-space: normal;
    /* Allow text to wrap inside card */
}

/* Pricing */
/* Pricing Section Redesign */
.pricing-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 0;
}

#shader-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Fallback background if WebGL fails */
    background: var(--bg-dark);
}

.pricing-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.pricing-cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.pricing-card {
    flex: 1;
    min-width: 320px;
    max-width: 480px;
    /* Increased from 350px */
    border-radius: 20px;
    padding: 3rem;
    /* Increased padding slightly */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Specific Glow for Popular Card */
.pricing-card.popular {
    position: relative;
    background: rgba(45, 58, 76, 0.6);
    border: 1px solid rgba(122, 203, 29, 0.5);
    /* Green border */
    box-shadow: 0 0 40px rgba(122, 203, 29, 0.3);
    /* Stronger shadow */
    transform: scale(1.05);
    z-index: 1;
    /* Ensure it floats above others */
}

/* The atmospheric glow behind the card */
.pricing-card.popular::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(122, 203, 29, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    /* Higher opacity (0.4) */
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(50px);
    /* More blur */
}

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

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 5px 15px;
    border-radius: 20px;
    text-transform: uppercase;
}

.plan-name {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 5px;
}

.plan-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 25px;
}

.currency {
    font-size: 2rem;
    font-weight: 300;
    margin-right: 5px;
}

.amount {
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff;
}

.period {
    color: var(--text-muted);
    margin-left: 5px;
}

.divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin-bottom: 25px;
}

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

.features-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.check-icon {
    color: var(--primary);
    font-weight: bold;
}

.scarcity-footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
}

/* Button variants for pricing */
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    text-align: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pricing-card .btn-primary {
    width: 100%;
    text-align: center;
}

/* Ripple Effect Styles from Component */
.ripple-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Footer - New Multi-Column Layout */
.new-footer {
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
    color: var(--text-muted);
    position: relative;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 20px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.footer-nav-column h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-nav-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-column li {
    margin-bottom: 10px;
}

.footer-nav-column a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-nav-column a:hover {
    color: var(--primary);
}

/* Flickering Grid Effect */
.flickering-grid-wrapper {
    position: relative;
    width: 100%;
    height: 192px;
    overflow: hidden;
}

.flickering-grid-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

#flickering-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

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

    .features-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .showcase-row {
        grid-template-columns: 1fr;
    }

    .showcase-img {
        order: -1;
    }

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

    .nav {
        display: none;
    }

    /* Hide nav on mobile for simplicity */

    .spotlight-card.good .spotlight-card-border {
        opacity: 1;
    }
}