:root {
    --bg-dark: #09090b;
    /* Zinc-950, slightly warmer dark */
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(147, 51, 234, 0.08);
    /* Deep Purple tint */

    /* Pricemon Branding Colors - Reduced Acid Tone */
    --primary: #9333ea;
    /* Purple-600: True Purple, less pink */
    --primary-hover: #7e22ce;
    /* Purple-700 */
    --accent: #a855f7;
    /* Purple-500 */

    --text-main: #f3f4f6;
    --text-muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.08);
    --glow: 0 0 120px rgba(147, 51, 234, 0.25);
    /* Purple glow */

    --font-sans: 'Inter',
        system-ui,
        -apple-system,
        sans-serif;
}

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

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

/* Background Glow Effect */
.glow-bg {
    position: fixed;
    top: -30%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    /* True Purple gradient */
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(60px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%);
    /* Purple-400 to Purple-600 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
header {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.dot {
    color: var(--primary);
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

nav a:hover {
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    /* Purple gradient */
    color: white;
    box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.39);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.23);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

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

/* Hero Section */
.hero {
    padding-top: 100px;
    /* Reduced from 140px */
    padding-bottom: 40px;
    /* Reduced from 80px */
    position: relative;
}

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

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #a5b4fc;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.access-form {
    display: flex;
    gap: 10px;
    max-width: 450px;
    margin-bottom: 1rem;
}

.access-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.access-form input:focus {
    border-color: var(--primary);
}

/* Hero Image */
.image-wrapper {
    position: relative;
    border-radius: 12px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.glow-effect {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: 0 0 80px rgba(99, 102, 241, 0.15);
    z-index: -1;
}

/* Features */
.features {
    padding: 60px 0;
}

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

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    border-radius: 16px;
}

.feature-card {
    padding: 2rem;
    transition: transform 0.2s, background 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-box {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

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

/* Steps */
.steps {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
}

.steps-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 3rem;
    gap: 2rem;
}

.step-item {
    flex: 1;
    text-align: center;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    margin-bottom: 1rem;
}

.step-item h3 {
    margin-bottom: 0.5rem;
    color: white;
}

.step-divider {
    width: 50px;
    height: 1px;
    background: var(--border);
    margin-top: 3rem;
    /* visually align */
    display: none;
    /* Hide on mobile mostly */
}

@media (min-width: 768px) {
    .step-divider {
        display: block;
    }
}

/* CTA */
.cta {
    padding: 60px 0;
}

.cta-box {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.center-form {
    margin: 2rem auto 0;
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-left p {
    margin-top: 0.25rem;
    font-size: 0.8rem;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

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

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

    .hero-sub {
        margin: 0 auto 2rem;
    }

    .access-form {
        margin: 0 auto 1rem;
        flex-direction: column;
        width: 100%;
    }

    .access-form input {
        width: 100%;
        padding: 1rem;
        font-size: 16px;
        /* Prevent iOS zoom */
    }

    .btn {
        width: 100%;
    }

    nav {
        display: flex;
        gap: 0.5rem;
    }

    nav a:not(.btn) {
        display: none;
    }

    .steps-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* PWA Badges */
.pwa-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pwa-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.2s ease;
}

.pwa-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    cursor: default;
}

/* Hero Image Composition */
.image-wrapper {
    position: relative;
    padding: 0;
    /* Remove padding for better control */
    background: transparent;
    /* Remove default bg */
    border: none;
    box-shadow: none;
    height: 400px;
    /* Constrain height */
    perspective: 1000px;
    /* For 3D feel */
}

.hero-desktop {
    width: 90%;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotateY(5deg);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: transform 0.5s ease;
}

.hero-mobile {
    width: 25%;
    /* Mobile is much smaller */
    position: absolute;
    right: 5%;
    bottom: -10%;
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
    transform: rotateY(-10deg);
    transition: transform 0.5s ease;
}

/* Hover effect */
.image-wrapper:hover .hero-desktop {
    transform: translateY(-50%) rotateY(0deg);
}

.image-wrapper:hover .hero-mobile {
    transform: rotateY(0deg) scale(1.05);
}

@media (max-width: 768px) {
    .image-wrapper {
        height: auto !important;
        /* Ensure ratio is kept */
        margin-top: 2rem;
        margin-bottom: 2rem;
        transform: scale(1.05);
    }

    .hero-desktop {
        width: 85%;
        left: 5%;
        transform: translateY(-50%);
    }

    .hero-mobile {
        width: 30%;
        right: 0;
        bottom: -5%;
    }
}

/* Combined Hero Image */
.hero-combined {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    transform: none;
    /* Reset animations */
    border-radius: 8px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* Reset image wrapper for single image */
.image-wrapper {
    height: auto !important;
    /* Allow auto height */
    perspective: none !important;
}

.image-wrapper:hover .hero-combined {
    transform: translateY(-5px);
    /* Simple hover lift */
    transition: transform 0.3s ease;
}

/* Smooth edge diffusion for hero image */
.image-wrapper {
    /* Create a mask that is opaque in the center and transparent at the edges */
    -webkit-mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
    mask-image: radial-gradient(circle at center, black 50%, transparent 100%);

    /* Ensure no borders or shadows interfere with the fade */
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    /* Remove glass blur if it conflicts */
}

/* Ensure the image container is large enough for the fade to look natural */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Logo Icon adjustments */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between icon and text */
}

.logo-icon {
    width: 24px;
    height: 24px;
    display: block;
}