/* ====== CSS Variables ====== */
:root {
    --bg: #0b0e13;
    --bg-elev: rgba(255, 255, 255, 0.04);
    --glass: rgba(255, 255, 255, 0.06);
    --stroke: rgba(255, 255, 255, 0.10);
    --text: #e9edf4;
    --muted: #9aa4b2;
    --accent-1: #7c5cff;
    --accent-2: #00d4ff;
    --accent-3: #ff7ab6;
    --btn: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.25);
    --maxw: 1160px;
    --speed: 280ms;
    --grid-gap: 22px;
    --panel-gap: 18px;
    font-synthesis-weight: none;
    font-synthesis-style: none;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.section {
    padding: 98px 0;
    position: relative;
}

/* ====== Backgrounds ====== */
.bg-aurora {
    position: fixed;
    inset: -20% -10% auto -10%;
    height: 60vh;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(60% 60% at 10% 10%, rgba(124, 92, 255, 0.35), transparent 60%),
        radial-gradient(40% 40% at 90% 10%, rgba(0, 212, 255, 0.25), transparent 60%),
        radial-gradient(30% 30% at 50% 80%, rgba(255, 122, 182, 0.20), transparent 60%);
    filter: blur(50px);
}

.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px;
    mask-image: radial-gradient(70% 50% at 50% 30%, #000 65%, transparent 100%);
}

/* ====== Header ====== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    border-bottom: 1px solid transparent;
    transition: background var(--speed), border-color var(--speed);
}

.site-header.scrolled {
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    border-color: var(--stroke);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .2px;
}

.brand .accent {
    color: var(--accent-2);
}

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

.nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
}

.nav a:hover {
    color: var(--text);
    background: var(--bg-elev);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--text);
    position: relative;
}

.nav-toggle span {
    position: absolute;
    left: 9px;
    right: 9px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--speed), top var(--speed), opacity var(--speed);
}

.nav-toggle span:nth-child(1) {
    top: 12px;
}

.nav-toggle span:nth-child(2) {
    top: 19px;
}

.nav-toggle span:nth-child(3) {
    top: 26px;
}

.nav-open .nav-toggle span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 999px;
    background: var(--btn);
    box-shadow: 0 8px 24px rgba(124, 92, 255, .35);
    transition: transform var(--speed), box-shadow var(--speed), filter var(--speed);
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--stroke);
}

.btn--sm {
    padding: 8px 14px;
    font-size: 14px;
}

.btn--lg {
    padding: 14px 22px;
    font-size: 16.5px;
}

/* ====== Hero ====== */
.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1.1;
    margin: 0 0 16px;
}

.lead {
    color: var(--muted);
    margin: 0 0 22px;
    font-size: clamp(16px, 1.6vw, 19px);
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.trust {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.trust .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 12px var(--accent-2);
}

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

.phone {
    position: relative;
    width: 320px;
    max-width: 88%;
    aspect-ratio: 10/20;
    border-radius: 30px;
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
}

.phone-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 14px;
    border-radius: 0 0 10px 10px;
    background: rgba(0, 0, 0, .5);
}

.phone-screen {
    position: absolute;
    inset: 24px 10px 12px;
    border-radius: 24px;
    overflow: hidden;
    background: radial-gradient(120% 120% at 0% 0%, rgba(124, 92, 255, .35), rgba(0, 0, 0, .35)), rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Newsletter form styling */
.inline-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
  }
  
  .inline-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-stroke, rgba(255,255,255,0.15));
    background: var(--chip-fill, rgba(255,255,255,0.08));
    color: var(--text-main, #fff);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  
  .inline-form input[type="email"]::placeholder {
    color: var(--text-sub, rgba(255,255,255,0.6));
  }
  
  .inline-form input[type="email"]:focus {
    border-color: var(--accent, #ff5e84);
    box-shadow: 0 0 0 3px rgba(255,94,132,0.25);
  }
  
  .inline-form .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 8px;
    white-space: nowrap;
  }
  
  /* Feedback message styling */
  .form-msg {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    min-height: 1em;
  }
  
  .form-msg.is-success {
    color: var(--accent, #3dd68c); /* green accent */
  }
  
  .form-msg.is-error {
    color: #ff6b6b;
  }

  /* Contact / Newsletter Card */
.card.contact {
    background: var(--chip-fill, rgba(255,255,255,0.08));
    border: 1px solid var(--glass-stroke, rgba(255,255,255,0.15));
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  }
  
  /* Inline newsletter form */
  .inline-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  
  .inline-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-stroke, rgba(255,255,255,0.15));
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main, #fff);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  
  .inline-form input[type="email"]::placeholder {
    color: var(--text-sub, rgba(255,255,255,0.6));
  }
  
  .inline-form input[type="email"]:focus {
    border-color: var(--accent, #ff5e84);
    box-shadow: 0 0 0 3px rgba(255,94,132,0.25);
  }
  
  /* Button already styled as .btn; just tighten size */
  .inline-form .btn {
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
  }
  
  /* Success / error messages */
  .form-msg {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    min-height: 1.2em;
  }
  
  .form-msg.is-success {
    color: #3dd68c; /* green accent */
  }
  
  .form-msg.is-error {
    color: #ff6b6b; /* red accent */
  }

.ui-stack {
    position: absolute;
    inset: 14px;
    display: grid;
    gap: 12px;
}

.ui-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.ui-card .chip {
    display: inline-flex;
    padding: 4px 10px;
    background: rgba(124, 92, 255, .25);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    font-size: 12px;
}

.ui-card h4 {
    margin: 10px 0 6px;
}

.ui-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.phone .glow {
    position: absolute;
    inset: auto -20% -14% -20%;
    height: 40%;
    background: radial-gradient(60% 60% at 50% 50%, rgba(0, 212, 255, .18), transparent 60%);
    filter: blur(16px);
}

.gradient {
    background: linear-gradient(90deg, var(--accent-2), var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ====== Sections ====== */
.section-title {
    text-align: center;
    font-size: clamp(24px, 4vw, 34px);
    margin: 0 0 10px;
}

.section-sub {
    text-align: center;
    color: var(--muted);
    margin: 0 auto 26px;
    max-width: 760px;
}

.card {
    background: var(--glass);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.grid {
    display: grid;
    gap: var(--grid-gap);
}

.features-grid {
    grid-template-columns: repeat(4, 1fr);
}

.feature .icon {
    font-size: 26px;
}

.feature h3 {
    margin: 8px 0 6px;
}

.feature p {
    margin: 0;
    color: var(--muted);
}

/* ====== Tabs ====== */
.tabs {
    margin-top: 20px;
}

.tab-bar {
    display: flex;
    overflow: auto hidden;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: var(--bg-elev);
}

.tab {
    border: 0;
    padding: 10px 16px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    border-radius: 999px;
}

.tab.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.tab-panels {
    margin-top: 16px;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}

.demo h4 {
    margin: 6px 0 10px;
}

.bullets {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

/* ====== Shots ====== */
.shots-grid {
    grid-template-columns: repeat(3, 1fr);
}

.shot img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    transition: transform var(--speed), box-shadow var(--speed);
}

.shot img:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* ====== Pricing ====== */
.pricing {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
}

.price h3 {
    margin: 0 0 10px;
}

.price .price-tag {
    font-size: 34px;
    font-weight: 800;
    margin: 8px 0 14px;
}

.price .price-tag span {
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}

.price ul {
    margin: 0 0 18px;
    padding-left: 18px;
    color: var(--muted);
}

.price.featured {
    border-image: linear-gradient(90deg, var(--accent-1), var(--accent-2)) 1;
}

/* ====== Testimonials ====== */
.carousel {
    position: relative;
    min-height: 140px;
}

.quote {
    display: none;
    text-align: center;
}

.quote.is-active {
    display: block;
}

.quote blockquote {
    font-size: clamp(18px, 2vw, 22px);
    margin: 0 0 8px;
}

.quote figcaption {
    color: var(--muted);
}

/* ====== FAQ ====== */
.faq details {
    background: var(--glass);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
}

.faq p {
    color: var(--muted);
    margin: 10px 0 0;
}

/* ====== Contact ====== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: var(--grid-gap);
}

.inline-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.inline-form input {
    flex: 1 1 auto;
    min-width: 0;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--stroke);
    border-radius: 999px;
    padding: 12px 14px;
}

.inline-form input::placeholder {
    color: #8b94a3;
}

.form-msg {
    color: var(--muted);
    margin-top: 8px;
}

/* ====== Footer ====== */
.footer {
    padding: 28px 0;
    border-top: 1px solid var(--stroke);
    background: rgba(0, 0, 0, 0.2);
}

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

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

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
}

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

/* ====== Lightbox ====== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}

.lightbox.open {
    display: flex;
}

.lightbox-img {
    max-width: min(96vw, 1200px);
    max-height: 86vh;
    border-radius: 10px;
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 18px;
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    border: 1px solid var(--stroke);
}

/* ====== Utilities ====== */
.form-card,
.contact,
.price,
.feature,
.demo {
    background: var(--glass);
}

code {
    background: rgba(255, 255, 255, .06);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid var(--stroke);
}

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .nav {
        position: fixed;
        inset: 68px 12px auto 12px;
        background: var(--bg-elev);
        border: 1px solid var(--stroke);
        border-radius: 14px;
        padding: 10px;
        flex-direction: column;
        gap: 8px;
        display: none;
    }

    .nav-open .nav {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

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

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

.screenshots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.screenshots .shot {
    display: block;
}

.screenshots img {
    width: 100%;
    height: auto;
    aspect-ratio: 1344 / 2778; /* iPhone 16 Pro Max proportion */
    object-fit: cover;          /* crops if needed while keeping ratio */
    border-radius: 10px;        /* optional, rounded like a real phone */
    margin: 0;                  /* grid handles spacing */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Optional: scale down responsively */
@media (max-width: 1400px) {
    .screenshots { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .screenshots { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .screenshots { grid-template-columns: 1fr; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {

    .btn,
    .shot img {
        transition: none;
    } }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
            color: #ffffff;
            min-height: 100vh;
            padding: 2rem 1rem;
        }
    
        /* Main Container */
        .pricing-section {
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }
    
        .pricing-header {
            margin-bottom: 3rem;
        }
    
        .pricing-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            background: linear-gradient(45deg, #ffffff, #a78bfa);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
    
        .pricing-subtitle {
            font-size: 1.1rem;
            color: #9ca3af;
            font-weight: 400;
        }
    
        /* Grid Layout */
        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            align-items: start;
        }
    
        /* Card Base Styles */
        .pricing-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 1rem;
            padding: 2rem;
            position: relative;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            text-align: left;
        }
    
        .pricing-card:hover {
            transform: translateY(-5px);
            border-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }
    
        /* Featured Card Styling */
        .pricing-card.featured {
            border: 2px solid #6366f1;
            background: rgba(99, 102, 241, 0.1);
            transform: scale(1.05);
        }
    
        .pricing-card.featured:hover {
            transform: scale(1.05) translateY(-5px);
        }
    
        .featured-badge {
            position: absolute;
            top: -10px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(45deg, #6366f1, #8b5cf6);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 1rem;
            font-size: 0.875rem;
            font-weight: 600;
        }
    
        /* Plan Headers */
        .plan-name {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: #ffffff;
        }
    
        .plan-description {
            font-size: 0.875rem;
            color: #9ca3af;
            margin-bottom: 1.5rem;
        }
    
        /* Price Styling */
        .price-container {
            margin-bottom: 2rem;
        }
    
        .price-main {
            font-size: 3rem;
            font-weight: 700;
            color: #ffffff;
            line-height: 1;
        }
    
        .price-period {
            font-size: 1rem;
            color: #9ca3af;
            font-weight: 400;
        }
    
        .price-free {
            font-size: 2rem;
            font-weight: 700;
            color: #10b981;
        }
    
        /* Features List */
        .features-list {
            list-style: none;
            margin-bottom: 2rem;
        }
    
        .features-list li {
            padding: 0.75rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            font-size: 0.95rem;
            color: #e5e7eb;
        }
    
        .features-list li:last-child {
            border-bottom: none;
        }
    
        .features-list li::before {
            content: '✓';
            color: #10b981;
            font-weight: bold;
            margin-right: 0.75rem;
            font-size: 1.1rem;
        }
    
        /* Limited Features for Free Tier */
        .features-list .limited::before {
            content: '⚡';
            color: #f59e0b;
        }
    
        /* Call-to-Action Buttons */
        .cta-button {
            display: block;
            width: 100%;
            padding: 1rem;
            border: none;
            border-radius: 0.75rem;
            font-size: 1rem;
            font-weight: 600;
            text-decoration: none;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
        }
    
        .cta-primary {
            background: linear-gradient(45deg, #6366f1, #8b5cf6);
            color: white;
        }
    
        .cta-primary:hover {
            background: linear-gradient(45deg, #5855eb, #7c3aed);
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
        }
    
        .cta-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
    
        .cta-secondary:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.3);
        }
    
        .cta-free {
            background: linear-gradient(45deg, #10b981, #059669);
            color: white;
        }
    
        .cta-free:hover {
            background: linear-gradient(45deg, #059669, #047857);
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
        }
    
        /* Responsive Design */
        @media (max-width: 768px) {
            .pricing-title {
                font-size: 2rem;
            }
    
            .pricing-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
    
            .pricing-card.featured {
                transform: none;
            }
    
            .pricing-card.featured:hover {
                transform: translateY(-5px);
            }
    
            .pricing-card {
                padding: 1.5rem;
            }
        }
    
        @media (max-width: 480px) {
            body {
                padding: 1rem 0.5rem;
            }
    
            .pricing-card {
                padding: 1.25rem;
            }
    
            .price-main {
                font-size: 2.5rem;
            }
        }