:root {
    --bg-color: #060813;
    --card-bg: rgba(15, 23, 42, 0.45);
    --border-color: rgba(255, 255, 255, 0.2);
    --accent-gold: #f59e0b;
    --accent-emerald: #10b981;
    --accent-indigo: #6366f1;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 40%);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Header / Navigation */
header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent-indigo);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.btn-header {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.btn-header:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Interactive Playground Section */
.playground-section {
    max-width: 1200px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.playground-control {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.playground-control h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.playground-control p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    max-width: 580px;
}

.playground-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.playground-input-group label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-indigo);
}

.bizname-input {
    font-size: 18px;
    padding: 16px 20px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    background: rgba(15, 23, 42, 0.6);
    color: white;
    outline: none;
    transition: all 0.3s ease;
}

.bizname-input:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

.vibe-picker-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vibe-picker-container label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.vibe-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.vibe-card {
    aspect-ratio: 1.1;
    border-radius: 14px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vibe-card:hover {
    transform: scale(1.05);
}

.vibe-card.active {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    transform: scale(1.02);
}

.vibe-card-name {
    font-size: 8px;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    pointer-events: none;
    letter-spacing: 0.2px;
}

.vibe-card-type {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 8px;
    background: rgba(0,0,0,0.6);
    color: rgba(255, 255, 255, 0.8);
    padding: 2px 4px;
    border-radius: 4px;
    pointer-events: none;
}

.btn-create {
    padding: 18px;
    background: var(--accent-indigo);
    color: white;
    border: none;
    border-radius: 16px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-create:hover {
    background: #4f46e5;
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.45);
    transform: translateY(-2px);
}

.btn-create:active {
    transform: translateY(0);
}

/* Simulator Mockup View */
.playground-simulator-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.iphone-mockup {
    position: relative;
    width: 310px;
    height: 620px;
    background: #000;
    border: 12px solid #1e293b;
    border-radius: 48px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Dynamic Island */
.iphone-mockup::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    height: 22px;
    background: #000;
    border-radius: 12px;
    z-index: 20;
}

.iphone-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 375px;
    height: 782px;
    border: none;
    background: #000;
    transform: scale(0.76266); /* 286px inner content / 375px original width */
    transform-origin: top left;
    display: block;
    box-sizing: border-box;
}

/* Pricing Section */
.pricing-section {
    max-width: 1200px;
    margin: 40px auto 120px auto;
    padding: 0 20px;
}

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

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Featured Plan (Pro) Styling */
.pricing-card.featured {
    border-color: rgba(99, 102, 241, 0.3);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-indigo);
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Elite Plan (VIP) Styling */
.pricing-card.vip {
    border-color: rgba(245, 158, 11, 0.3);
}

.pricing-card.vip::before {
    content: 'PREMIUM VIP';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.plan-name {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.plan-price {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-price span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.plan-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 30px 0;
    line-height: 1.5;
    min-height: 40px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    flex-grow: 1;
}

.plan-features li {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i {
    color: var(--accent-emerald);
    font-size: 14px;
}

.plan-features li.disabled {
    color: rgba(248, 250, 252, 0.3);
}

.plan-features li.disabled i {
    color: rgba(248, 250, 252, 0.15);
}

.btn-plan {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    outline: none;
}

.btn-plan:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
}

.featured .btn-plan {
    background: var(--accent-indigo);
    border-color: var(--accent-indigo);
    color: white;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.featured .btn-plan:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    box-shadow: none;
    transform: translateY(-2px);
}

.vip .btn-plan {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.vip .btn-plan:hover {
    background: #d97706;
    border-color: #d97706;
    box-shadow: none;
    transform: translateY(-2px);
}

/* Signup Modal (Global Popup, z-index: 100) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 14, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: #0f172a;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 28px;
    padding: 40px 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Custom Scrollbar for Modal Box */
.modal-box::-webkit-scrollbar {
    width: 8px;
}
.modal-box::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 28px;
}
.modal-box::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 28px;
}
.modal-box::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(4, 6, 14, 0.6);
    color: white;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
    color-scheme: dark;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent-indigo);
    color: white;
    border: none;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.btn-submit:hover {
    background: #4f46e5;
    box-shadow: none;
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    background: rgba(99, 102, 241, 0.5) !important;
    cursor: not-allowed;
    box-shadow: none;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
    display: none;
}

/* Success screen inside modal */
.modal-success-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-emerald);
    font-size: 28px;
    margin-bottom: 20px;
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.15); }
    100% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.35); }
}

@keyframes bounceIn {
    from { transform: scale(0.3); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive & Hero Layouts */
.hero-section {
    max-width: 1200px;
    margin: 60px auto 100px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* CTA Buttons Layout */
.cta-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cta-buttons a {
    white-space: nowrap; /* Prevent wrapping */
}

/* Menu Toggle Button (Desktop Hidden) */
.menu-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .playground-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .playground-simulator-wrapper {
        order: -1;
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-card.vip {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 60px;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Reduce Header Padding */
    header {
        padding: 15px 20px !important;
    }

    /* Header Menu Toggle */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 24px;
        cursor: pointer;
        z-index: 1000;
        padding: 5px;
        outline: none;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;                /* Start hidden off-screen */
        width: 260px;
        height: 100vh;
        background: #0f172a;
        border-left: 1px solid var(--border-color);
        padding: 80px 30px;
        gap: 20px;
        z-index: 999;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-sizing: border-box;
    }

    .nav-links.active {
        right: 0;                    /* Slide in menu */
    }

    .hero-section {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        position: relative;
        overflow-x: hidden !important;          /* Prevent horizontal scroll */
        padding-top: 40px !important;
        padding-bottom: 40px !important;
        margin-top: 20px !important;           /* Reduced margin top to fix whitespace */
    }

    .hero-content {
        flex: 0 0 70%;                /* Lock width to exactly 70% */
        position: relative;
        z-index: 2;
        gap: 20px !important;
    }

    .playground-control h1,
    .hero-section h1 {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: flex-start;     /* Stack buttons vertically on the left */
        width: 100%;
        gap: 12px;
    }

    .cta-buttons a {
        width: 100%;
        max-width: 200px;
        text-align: center;
        box-sizing: border-box;
        justify-content: center;
    }

    /* iPhone Mockup Bleeding via negative margins */
    .iphone-mockup {
        position: static !important;  /* Revert to static flow */
        flex: 0 0 240px !important;   /* Fixed layout width */
        flex-shrink: 0 !important;    /* Prevent browser shrinking during layout shifts */
        height: 480px;               /* Proportional height change */
        margin-left: -20px !important;
        margin-right: -100px !important; /* Bleeds off the right edge without covering text */
        z-index: 1;
        opacity: 0.9;
        transform: rotate(-5deg) !important; /* Retain aesthetic tilt */
    }

    /* Scale inner iframe proportionally to match the 240px width */
    .iphone-screen {
        transform: scale(0.58) !important;
        transform-origin: top left;
    }
}

@media (max-width: 640px) {
    .playground-control h1 {
        font-size: 38px;
    }
    .vibe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card.vip {
        grid-column: span 1;
    }
    header {
        flex-direction: row; /* Avoid column layout, keep logo/hamburger aligned */
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }
}

/* Semi-transparent background overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 14, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Back-to-Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(30, 41, 59, 0.7); /* Slate-800 with transparency */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 9999;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background-color: rgba(30, 41, 59, 0.9);
    transform: translateY(-3px);
    color: var(--accent-indigo);
    border-color: rgba(99, 102, 241, 0.3);
}

.back-to-top-btn:active {
    transform: translateY(0);
}

/* Corporate Footer Styles */
.corporate-footer {
    background-color: #04060e;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 20px 30px 20px;
    margin-top: 120px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    max-width: 300px;
    line-height: 1.5;
}

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

.footer-socials a {
    color: var(--text-secondary);
    font-size: 18px;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--accent-indigo);
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 5px 0;
}

.footer-links-group a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links-group a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    font-size: 12px;
    color: rgba(148, 163, 184, 0.5);
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand,
    .footer-links-group {
        align-items: center;
    }

    .footer-tagline {
        max-width: 100%;
    }
}

