/* =========================================
   UniSkills V4 - Premium Landing Page CSS
   Mobile-First, Glassmorphism, Modern
   Exact colors matched from app_theme.dart
   ========================================= */

/* Force proper rendering on mobile */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Colors from app_theme.dart */
    --bg-color: #0A0E27;
    /* darkBackground */
    --bg-color-alt: #1A1F3A;
    /* darkSurface */
    --bg-card: #252B48;
    /* darkCard */

    --primary: #00D9FF;
    /* neonBlue */
    --secondary: #BB86FC;
    /* neonPurple */
    --accent-pink: #FF006E;
    /* neonPink */
    --accent-green: #39FF14;
    /* neonGreen */
    --accent-orange: #FF6B35;
    /* neonOrange */
    --accent-yellow: #FFD60A;
    /* neonYellow */

    --text-main: #ffffff;
    --text-muted: #9e9e9e;
    /* Colors.grey */

    /* Glassmorphism */
    --glass-bg: rgba(37, 43, 72, 0.6);
    --glass-border: rgba(0, 217, 255, 0.15);
    /* neonBlue with alpha */
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Spacing */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-6: 3rem;
    --space-8: 4rem;
    --space-12: 6rem;
    --space-16: 8rem;

    /* Typography */
    --font-main: 'Cairo', 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    /* Prevent font scaling in landscape */
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    position: relative;
}

/* Background Animated Blobs */
.blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(120px);
    opacity: 0.2;
    border-radius: 50%;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary), transparent 70%);
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--secondary), transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, var(--accent-pink), transparent 70%);
    animation-delay: -10s;
    opacity: 0.1;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 10%) scale(1.1);
    }
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    /* 24px */
    padding-right: 1.5rem;
    /* 24px */
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass:hover {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.15);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-2);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: 12px var(--space-3);
    border-radius: var(--radius-md);
    /* updated to match app */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-color);
    /* darkBackground on primary */
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.4);
    background: #1affff;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
}

.btn-cta {
    padding: 16px var(--space-4);
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    padding: var(--space-2) 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(26, 31, 58, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-1) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--space-3);
    padding-right: var(--space-3);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: var(--space-4);
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: var(--space-3);
    right: var(--space-3);
    padding: var(--space-4);
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    background: var(--bg-card);
    border-color: var(--primary);
}

.mobile-menu.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 600;
    padding: var(--space-1);
}

.mobile-link.highlight {
    color: var(--primary);
}

/* Desktop Only / Mobile Only Utilities */
@media (max-width: 900px) {
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 901px) {
    .mobile-only {
        display: none !important;
    }
}

/* Hero Section */
.hero {
    padding: calc(var(--space-12) + 60px) 0 var(--space-12);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

@media (min-width: 901px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
    border: 1px solid rgba(0, 217, 255, 0.3);
    max-width: 100%;
    word-wrap: break-word;
}

.pill-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: neon-pulse 2s infinite;
}

@keyframes neon-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 217, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 217, 255, 0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: var(--space-4);
    max-width: 500px;
    word-wrap: break-word;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stars {
    color: var(--accent-yellow);
    letter-spacing: 2px;
}

/* Phone Mockup Styling */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.premium-phone-mockup {
    position: relative;
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    border: 12px solid #1A1F3A;
    /* App darkSurface */
    border-radius: 46px;
    /* slightly inner than the frame */
    background: #0A0E27;
    box-shadow: 0 0 0 2px #252B48, 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.05);
    /* outer edge, drop shadow, inner reflection */
    overflow: hidden;
    z-index: 2;
    transition: var(--transition);
}

.premium-phone-mockup::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 28%;
    height: 25px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
    box-shadow: inset 0 -1px 2px rgba(255, 255, 255, 0.1);
}

.premium-phone-mockup img {
    width: 100%;
    display: block;
    position: relative;
    border-radius: 34px;
    z-index: 1;
}

.floating-panel {
    position: absolute;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    animation: float-panel 6s infinite ease-in-out alternate;
}

.panel-1 {
    top: 20%;
    right: -30px;
}

.panel-2 {
    bottom: 30%;
    left: -30px;
    animation-delay: -3s;
}

@keyframes float-panel {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-15px);
    }
}

.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
}

.panel-text {
    display: flex;
    flex-direction: column;
}

.panel-text strong {
    font-size: 0.9rem;
    color: var(--primary);
}

.panel-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .floating-panel {
        display: none;
    }

    .hero-actions {
        align-items: flex-start;
    }
}

/* Sections Global */
.section-padding {
    padding: var(--space-12) 0;
}

.section-top {
    text-align: center;
    margin-bottom: var(--space-8);
    max-width: 700px;
    margin-inline: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

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

/* Features Generic Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
}

.feature-card {
    padding: var(--space-4);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, var(--primary) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 0.1;
}

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

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: var(--space-1);
    font-size: 1.25rem;
}


/* New Sections: AI Features & Exam Features */
.coming-soon-badge-top {
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0A0E27;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
    z-index: 10;
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
    }

    100% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(0, 217, 255, 0.8);
    }
}

.opacity-dim {
    opacity: 0.8;
}

.exam-grid,
.ai-grid {
    display: grid;
    gap: var(--space-4);
}

@media (min-width: 900px) {
    .exam-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ai-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.exam-card,
.ai-card {
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.ai-card {
    text-align: center;
    align-items: center;
}

.ai-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-2);
}

.ai-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(187, 134, 252, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(187, 134, 252, 0.3);
}

/* Advanced App Preview / Apple-Stripe Style Carousel */
.app-showcase {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: var(--space-4) 0 var(--space-8);
}

.showcase-swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
    overflow: visible;
}

.showcase-swiper .swiper-slide {
    width: 260px;
    display: flex;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.5;
    filter: blur(2px);
    transform: scale(0.85);
}

@media (min-width: 768px) {
    .showcase-swiper .swiper-slide {
        width: 320px;
    }
}

.showcase-swiper .swiper-slide-active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.05);
    /* slightly bigger to pop out */
    z-index: 10;
}

.showcase-swiper .swiper-slide-active .premium-phone-mockup {
    box-shadow: 0 0 0 2px #252B48, 0 40px 80px rgba(0, 217, 255, 0.25), inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}

/* Replaced by .premium-phone-mockup */

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

@media (min-width: 901px) {
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.benefits-visual {
    position: relative;
    padding: var(--space-4);
}

/* Replaced by .premium-phone-mockup */

.benefit-row {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    background: rgba(255, 255, 255, 0.02);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.benefit-row:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-10px);
    border-color: var(--primary);
}

.b-icon {
    font-size: 2rem;
    line-height: 1;
}

.b-text h4 {
    margin-bottom: 4px;
    font-size: 1.1rem;
    color: var(--primary);
}

/* FAQ Preview Section / Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-header {
    padding: var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-main);
    user-select: none;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 var(--space-3);
    color: var(--text-muted);
}

.faq-item.open .faq-content {
    max-height: 300px;
    /* arbitrary height for animation */
    padding-bottom: var(--space-3);
}

.faq-footer-action {
    text-align: center;
    margin-top: var(--space-4);
}

/* CTA Section */
.cta-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-4);
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-color-alt));
    border: 1px solid var(--primary);
}

@media (min-width: 901px) {
    .cta-card {
        grid-template-columns: 1.5fr 1fr;
        text-align: right;
        padding: var(--space-8);
        align-items: center;
    }
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-2);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.1rem;
    width: 100%;
}

@media (min-width: 901px) {
    .btn-large {
        width: auto;
    }
}

.cta-visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Footer Section */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: var(--space-8) 0 var(--space-4);
    background: var(--bg-color-alt);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 2fr 1fr;
    }
}

.footer-brand p {
    margin-top: var(--space-2);
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: var(--space-2);
    color: var(--text-main);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.footer-links a {
    color: var(--text-muted);
}

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

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

/* Animations Reveal */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Page Specific Overrides */
.page-header {
    padding-top: calc(var(--space-12) + 60px);
    padding-bottom: var(--space-6);
    text-align: center;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: var(--space-12);
}

.terms-box {
    padding: var(--space-6);
}

.terms-box h2 {
    color: var(--primary);
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
    font-size: 1.5rem;
}

.terms-box p,
.terms-box li {
    margin-bottom: var(--space-2);
    color: var(--text-muted);
}

.terms-box ul {
    list-style: none;
    /* remove default */
    padding-right: var(--space-3);
}

.terms-box li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: -1em;
}


/* =========================================
   Mobile Responsive Fixes - Complete Rewrite
   ========================================= */

/* Tablet and below */
@media (max-width: 900px) {
    .hero {
        padding: calc(var(--space-8) + 60px) 0 var(--space-6);
    }

    .hero-grid {
        gap: var(--space-4);
    }
}

/* Mobile: 768px and below */
@media (max-width: 768px) {

    /* Force 16px to prevent zoom */
    html,
    body {
        font-size: 16px !important;
    }

    /* Container padding */
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* Navbar */
    .navbar {
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo img {
        height: 28px;
    }

    .mobile-menu {
        left: 1.5rem;
        right: 1.5rem;
    }

    /* Hero Section */
    .hero {
        padding: calc(var(--space-6) + 60px) 0 var(--space-4);
    }

    .hero-grid {
        gap: var(--space-3);
    }

    .hero-content {
        padding: 0;
        text-align: center;
    }

    .pill-badge {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .hero-title {
        font-size: 1.75rem !important;
        /* 28px */
        line-height: 1.25;
        margin-bottom: 1rem;
        letter-spacing: -0.01em;
    }

    .hero-title br {
        display: none;
    }

    .hero-desc {
        font-size: 1rem !important;
        /* 16px */
        line-height: 1.6;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .hero-actions {
        align-items: center;
        gap: 1rem;
    }

    .btn {
        font-size: 1rem;
        padding: 0.875rem 1.75rem;
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
        font-size: 0.85rem;
    }

    /* Sections */
    .section-padding {
        padding: var(--space-6) 0;
    }

    .section-top {
        padding: 0;
        margin-bottom: var(--space-4);
    }

    .section-title {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Cards */
    .feature-card,
    .glass {
        padding: 1.25rem;
    }

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

    .cta-card {
        padding: 1.5rem 1.25rem;
    }

    /* Phone mockup */
    .premium-phone-mockup {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Small Mobile: 480px and below */
@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
        /* 20px */
    }

    /* Navbar */
    .nav-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .logo {
        font-size: 1rem;
    }

    .logo img {
        height: 26px;
    }

    .mobile-menu {
        left: 1.25rem;
        right: 1.25rem;
    }

    /* Hero */
    .hero {
        padding: calc(var(--space-4) + 60px) 0 var(--space-3);
    }

    .hero-title {
        font-size: 1.5rem;
        /* 24px */
        margin-bottom: 0.875rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        /* 15.2px */
        margin-bottom: 1.25rem;
    }

    .btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        /* 24px */
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .premium-phone-mockup {
        max-width: 240px;
    }
}

/* Very Small Mobile: 375px and below */
@media (max-width: 375px) {
    .container {
        padding: 0 1rem;
        /* 16px */
    }

    /* Navbar */
    .nav-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .logo {
        font-size: 0.95rem;
    }

    .logo img {
        height: 24px;
    }

    .mobile-menu {
        left: 1rem;
        right: 1rem;
    }

    /* Hero */
    .hero-title {
        font-size: 1.35rem;
        /* 21.6px */
    }

    .hero-desc {
        font-size: 0.9rem;
        /* 14.4px */
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.25rem;
    }

    .premium-phone-mockup {
        max-width: 220px;
    }
}




/* =========================================
   Global Mobile Fixes
   ========================================= */

/* Prevent zoom on double tap */
* {
    touch-action: manipulation;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {

    input,
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for RTL text wrapping */
@media (max-width: 768px) {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}