:root {
    --bg-dark: #12042b;
    --bg-deep: #2D0B5D;
    --primary: #A855F7; /* Violet */
    --accent: #D946EF;  /* Magenta */
    --text: #F8FAFC;
    --text-muted: #CBD5E1;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow: 0 0 20px rgba(168, 85, 247, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    /* Prevent font scaling issues on iOS */
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    /* Safe area insets for notch/home bar devices */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 0% 0%, #2D0B5D 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, #1e0a3d 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #4c1d95 0%, transparent 70%);
}

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

/* Glassmorphism utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    color: white;
    white-space: nowrap;
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: var(--glow);
}

.btn-glow:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.7);
}

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn-lg { padding: 1.2rem 2.5rem; font-size: 1.1rem; }
.btn-md { padding: 0.8rem 1.8rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 70px;
    padding: 8px 0;
    /* Push content below status bar on iOS */
    padding-top: calc(8px + env(safe-area-inset-top));
    display: flex;
    align-items: center;
    z-index: 100;
    background: rgba(18, 4, 43, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

/* Logo group */
.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-shrink: 1;
    min-width: 0;
}

.logo-img {
    height: 56px;
    width: auto;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.brand {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: #fff;
    white-space: nowrap;
}

.sub-text {
    font-size: 0.7rem;
    font-weight: 400;
    color: #fff;
    opacity: 0.85;
    margin-top: 2px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* Nav buttons wrapper */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding-top: 130px;
    padding-bottom: 80px;
}

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

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.sub-lead {
    font-size: 1rem;
    color: var(--text-muted);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.hero-mockup .mockup-container {
    padding: 1rem;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.hero-mockup .mockup-container:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

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

/* ============================================================
   USP
   ============================================================ */
.usp {
    padding: 40px 0;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.usp .container {
    padding: 3rem 1.5rem;
    text-align: center;
    width: 100%;
}

.usp h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* ============================================================
   BENEFITS / CARDS
   ============================================================ */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    padding: 2.5rem;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.icon-violet { color: var(--primary); }
.icon-green { color: #22c55e; }
.icon-red { color: #ef4444; }

.split-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.border-green:hover { border-color: #22c55e !important; }
.border-red:hover { border-color: #ef4444 !important; }

.cta-center, .text-center {
    text-align: center;
    width: 100%;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works { padding: 100px 0; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--glow);
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing { padding: 80px 0; overflow-x: hidden; }

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

.pricing-card {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    background: #ffffff !important;
    border: 1px solid rgba(168, 85, 247, 0.25) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.pricing-card h3 { color: #2D0B5D; }
.pricing-card .target { color: #A855F7; }
.pricing-card .price { color: #2D0B5D; }
.pricing-card .price span { color: #6b7280; }
.pricing-card .features li { color: #374151; }
.pricing-card .features li strong { color: #2D0B5D; }
.pricing-card .features li small { color: #6b7280; }

.feature-plan {
    border: 2px solid var(--primary) !important;
    position: relative;
    transform: scale(1.05);
}

.badge-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.price-header {
    text-align: center;
    margin-bottom: 2rem;
}

.target {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.price span {
    font-size: 1rem;
    opacity: 0.6;
}

.features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

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

.features li small {
    font-size: 0.65rem;
    opacity: 0.6;
    display: inline-block;
    margin-left: 4px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 80px 0; }

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

details {
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

summary {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

summary::-webkit-details-marker { display: none; }

details p {
    padding-top: 1rem;
    color: var(--text-muted);
}

.faq-content ul {
    list-style: none;
    padding: 1rem 0;
}

.faq-content ul li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.faq-content ul li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 30px 0;
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

/* ============================================================
   RESPONSIVE – Tablet 992px
   ============================================================ */
@media (max-width: 992px) {
    h1 { font-size: 2.6rem; }

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

    .hero-actions {
        display: flex;
        justify-content: center;
    }

    .hero-mockup {
        margin-top: 2.5rem;
    }

    .hero-mockup .mockup-container {
        transform: none;
        max-width: 480px;
        margin: 0 auto;
    }

    .badge { font-size: 0.82rem; }

    .split-cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   RESPONSIVE – Mobile 768px
   ============================================================ */
@media (max-width: 768px) {
    .glass-nav {
        min-height: 58px;
    }

    .logo-img {
        height: 44px;
    }

    .brand {
        font-size: 1.35rem;
    }

    .sub-text {
        display: none;
    }

    .hero {
        padding-top: 85px;
        padding-bottom: 50px;
    }

    .usp .container { padding: 2rem 1rem; }

    .how-it-works { padding: 60px 0; }
    .pricing { padding: 60px 0; }
    .faq { padding: 60px 0; }

    .split-cards {
        grid-template-columns: 1fr;
    }

    .feature-plan {
        transform: scale(1);
        border-width: 1px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ============================================================
   RESPONSIVE – Small Mobile 640px
   ============================================================ */
@media (max-width: 640px) {
    .container { padding: 0 1rem; }

    h1 { font-size: 2rem; line-height: 1.2; }
    .usp h2 { font-size: 1.45rem; }
    .section-title { font-size: 1.75rem; margin-bottom: 2rem; }
    .lead { font-size: 1.05rem; }
    .sub-lead { font-size: 0.95rem; }

    .badge {
        font-size: 0.78rem;
        padding: 0.4rem 0.8rem;
    }

    .btn-sm {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }

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

    .card { padding: 1.5rem; }

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

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .steps-grid {
        gap: 2rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    details { padding: 1rem; }
    .faq-content ul li { font-size: 0.88rem; }
}

/* ============================================================
   RESPONSIVE – Extra Small 420px
   ============================================================ */
@media (max-width: 420px) {
    h1 { font-size: 1.75rem; }
    .section-title { font-size: 1.5rem; }
    .usp h2 { font-size: 1.25rem; }
    .lead { font-size: 0.95rem; }

    .logo-img {
        height: 38px;
    }

    .brand {
        font-size: 1.15rem;
    }

    .glass-nav {
        min-height: 54px;
    }

    .hero {
        padding-top: 78px;
    }

    .btn-sm {
        padding: 0.4rem 0.7rem;
        font-size: 0.73rem;
    }

    .price { font-size: 2.4rem; }
    .pricing-card { padding: 1.5rem 1.2rem; }
    .badge { font-size: 0.72rem; }
}
