/* =========================================
   Design System & Variables
   ========================================= */
:root {
    /* Colors - Light SaaS Theme */
    --bg-base: #ffffff;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f8fafc;
    --bg-darker: #f1f5f9;
    
    --primary: #6366f1;      /* Indigo 500 */
    --primary-hover: #4f46e5; /* Indigo 600 */
    --secondary: #e2e8f0;    /* Slate 200 */
    --accent: #f472b6;       /* Pink 400 */
    --highlight: #6366f1;    /* Using primary for highlight */
    
    --text-main: #0f172a;    /* Slate 900 */
    --text-muted: #64748b;   /* Slate 500 */
    
    --border-subtle: rgba(0, 0, 0, 0.05);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', -apple-system, sans-serif;
    line-height: 1.2;
    color: var(--text-main);
}

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

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.highlight { color: var(--highlight); }
.bg-darker { background-color: var(--bg-darker); }
.mt-4 { margin-top: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.text-gray-400 { color: var(--text-muted); }
.text-gray-500 { color: #64748b; }
.w-full { width: 100%; text-align: center; }
.text-primary { color: var(--primary); }

/* =========================================
   Typography Utilities
   ========================================= */
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 4rem auto;
    line-height: 1.6;
}

/* Feature Showcase Layouts */
.feature-section {
    padding: 10rem 0;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.bg-soft-green { background: #f0fdf4; }
.bg-soft-blue { background: #eff6ff; }
.bg-soft-purple { background: #faf5ff; }

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

.feature-list {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-main);
}

.feature-list li i {
    color: #22c55e; /* Success green */
    width: 20px;
    height: 20px;
}

/* Code Blocks */
.code-block-wrapper {
    background: #1e293b;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    color: #e2e8f0;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.code-lang {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}

.code-content {
    overflow-x: auto;
    scrollbar-width: thin;
}

.code-content pre {
    margin: 0;
}

.json-key { color: #818cf8; }
.json-string { color: #34d399; }
.json-number { color: #fbbf24; }

/* =========================================
   Buttons & Badges
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
}

.btn:active {
    transform: scale(0.96);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--primary-hover);
    box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background-color: rgba(99, 102, 241, 0.15);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.icon-transition {
    transition: transform var(--transition-fast);
}

.group:hover .icon-transition {
    transform: translateX(4px);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

/* =========================================
   Glassmorphism Cards
   ========================================= */
.glass {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-normal);
}

.glass:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

/* =========================================
   Navbar (Premium Redesign)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.85rem 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    color: #0a0a0a;
    gap: 0.65rem;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    color: var(--primary);
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.3));
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    padding: 0.35rem;
    border-radius: 2rem;
    transition: all var(--transition-normal);
}

.navbar.scrolled .nav-pill {
    background: rgba(245, 245, 245, 0.5);
    border-color: rgba(0, 0, 0, 0.04);
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    padding: 0.5rem 1.15rem;
    border-radius: 1.5rem;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: #0a0a0a;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.dashboard-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    transition: transform var(--transition-fast);
}

.dashboard-link:hover {
    transform: translateY(-1px);
}

.nav-github {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: var(--text-muted);
    transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.nav-github i,
.nav-github svg {
    width: 20px;
    height: 20px;
}

.nav-github:hover {
    color: var(--text-main);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
}

.btn-pill {
    border-radius: 2rem;
}

.btn-nav {
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
    background: #0a0a0a;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-nav:hover {
    background: #2563eb; /* A nice premium blue */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #0a0a0a;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.mobile-menu.active {
    display: flex;
}

.nav-link.mobile {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border-bottom: none;
    font-weight: 600;
    color: #6b7280;
}

.nav-link.mobile:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #0a0a0a;
}

/* =========================================
   Hero Section (Premium Redesign)
   ========================================= */
.hero {
    min-height: 90vh; /* More breathing room */
    padding-top: 10rem;
    padding-bottom: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #fff;
    /* Sophisticated radial mesh gradient for depth */
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(217, 70, 239, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(217, 70, 239, 0.05) 0px, transparent 50%),
        radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 40px 40px;
}

.badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
}

.dot-blue {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-muted);
    font-weight: 500;
    max-width: 650px;
    margin: 0 auto 3rem auto;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.shadow-blue {
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(0,0,0,0.1);
}

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

.icon-gray {
    color: var(--text-muted);
}

/* =========================================
   Features Section
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-purple { background: rgba(192, 132, 252, 0.2); color: var(--secondary); }
.icon-blue { background: rgba(129, 140, 248, 0.2); color: var(--primary); }
.icon-pink { background: rgba(244, 114, 182, 0.2); color: var(--accent); }
.icon-yellow { background: rgba(253, 224, 71, 0.2); color: var(--highlight); }

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

/* =========================================
   How It Works Section (Timeline)
   ========================================= */
.steps-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--border-subtle) 10%, var(--border-subtle) 90%, transparent);
    transform: translateX(-50%);
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step.reverse {
    flex-direction: row-reverse;
}

.step-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--bg-surface);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    z-index: 2;
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.3);
}

.step-content, .step-empty {
    width: 50%;
    padding: 0 3rem;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.step-text {
    color: var(--text-muted);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem 0;
    background: var(--bg-darker);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

.footer-github {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--border-subtle);
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.footer-github svg {
    width: 16px;
    height: 16px;
}

.footer-github:hover {
    color: var(--text-main);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
}

/* =========================================
   Animations
   ========================================= */
@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
    50% { transform: scale(1.1) translate(2%, 2%); opacity: 0.5; }
    100% { transform: scale(0.9) translate(-2%, -2%); opacity: 0.4; }
}

/* Entrance Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Adding a class 'visible' triggered by JS */
.animate-up.visible, 
/* For elements visible on load without JS observer */
.animate-up:not(.reveal) {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Trigger CSS animations immediately for hero elements */
#hero .animate-up {
    animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   Showcase / App Features Section
   ========================================= */
.showcase {
    background-color: var(--bg-base);
    position: relative;
    overflow: hidden;
}

.showcase::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.showcase::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.showcase-items {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    position: relative;
    z-index: 2;
    padding-top: 2rem;
}

.showcase-item {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.showcase-item.reverse {
    flex-direction: row-reverse;
}

.showcase-content {
    flex: 1;
}

.showcase-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* =========================================
   Responsive Adjustments
   ========================================= */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .feature-list {
        align-items: center;
    }
    .feature-section {
        padding: 6rem 0;
    }
}

/* =========================================
   UI Mockups (Replacing Screenshots)
   ========================================= */
.mockup-wrapper {
    flex: 1;
    position: relative;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.mockup-tilt {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-lg);
    background: #ffffff;
    color: #0f172a; /* Slate 900 */
    width: 100%;
    max-width: 450px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}



/* macOS Header Styles */
.macos-header {
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
}

.macos-dots {
    display: flex;
    gap: 0.4rem;
}

.macos-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.macos-dots span:nth-child(1) { background: #ff5f56; }
.macos-dots span:nth-child(2) { background: #ffbd2e; }
.macos-dots span:nth-child(3) { background: #27c93f; }

/* Base Card Styles */
.mockup-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9; /* Slate 100 */
}
.mockup-card-body {
    padding: 1.5rem;
}
.mockup-card-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc; /* Slate 50 */
    border-top: 1px solid #f1f5f9;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Admin Card Specifics */
.admin-card-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.badge-mockup {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: capitalize;
}
.badge-published {
    background: #0f172a;
    color: white;
}
.admin-card-date {
    font-size: 0.75rem;
    color: #94a3b8; /* Slate 400 */
    font-weight: 500;
}
.admin-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.admin-card-subtitle {
    font-size: 0.875rem;
    color: #64748b; /* Slate 500 */
    font-weight: 500;
}
.admin-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.admin-stat-box {
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.admin-stat-icon {
    width: 20px;
    height: 20px;
}
.text-indigo { color: #818cf8; }
.text-emerald { color: #34d399; }
.text-pink { color: #f472b6; }
.stat-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #94a3b8;
}
.stat-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
}
.footer-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6366f1; /* Indigo 600 */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* iPhone 16 Frame Specifics */
.mobile-frame {
    width: 320px;
    height: 650px;
    background: #000;
    border-radius: 3rem;
    padding: 10px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.4), inset 0 0 0 2px #1e1e1e;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.dynamic-island {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 25px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
    transition: width 0.3s ease;
}

.mobile-screen {
    width: 100%;
    height: 100%;
    background: #fdfdff;
    border-radius: 2.5rem;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
.guest-header {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem 1rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.guest-title {
    font-size: 1.125rem;
    font-weight: 900;
    line-height: 1.2;
    color: #0f172a;
}
.guest-subtitle {
    font-size: 0.625rem;
    font-weight: 700;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}
.guest-search {
    background: #ffffff;
    border: 2px solid #eef2ff;
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.guest-search svg { width: 14px; height: 14px; color: #a5b4fc; }
.guest-categories {
    display: flex;
    gap: 0.5rem;
    overflow-x: hidden;
}
.guest-cat-btn {
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    white-space: nowrap;
}
.guest-cat-btn.active {
    background: #0f172a;
    color: white;
}
.guest-cat-btn.inactive {
    background: white;
    color: #64748b;
    border: 1px solid #f1f5f9;
}
.guest-body {
    padding: 1rem;
    flex: 1;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.guest-item {
    background: white;
    border-radius: 1.25rem;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 0.5rem;
}
.item-info { flex: 1; }
.item-code {
    background: #eef2ff;
    color: #818cf8;
    font-size: 0.5rem;
    font-weight: 900;
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
    display: inline-block;
    margin-bottom: 0.25rem;
}
.item-title {
    font-size: 0.875rem;
    font-weight: 900;
    line-height: 1.2;
    color: #1e293b;
    margin-bottom: 0.25rem;
}
.item-desc {
    font-size: 0.625rem;
    color: #94a3b8;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.badge-veg {
    background: #ecfdf5;
    color: #059669;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}
.badge-veg svg { width: 8px; height: 8px; }
.item-action {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}
.item-price {
    font-size: 0.75rem;
    font-weight: 900;
    color: #0f172a;
    background: #f8fafc;
    padding: 0.2rem 0.4rem;
    border-radius: 0.5rem;
}
.btn-add {
    background: #eef2ff;
    color: #4f46e5;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}
.btn-add svg { width: 14px; height: 14px; }

/* Settings Card Specifics */
.settings-header-wrap {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.settings-icon-div {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: #fdf2f8;
    color: #ec4899;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.settings-icon-div svg { width: 20px; height: 20px; }
.settings-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
}
.settings-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
    line-height: 1.4;
}
.settings-field {
    margin-bottom: 1rem;
}
.settings-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.5rem;
}
.settings-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #0f172a;
    font-family: inherit;
    font-weight: 500;
}
.settings-input:focus { outline: none; border-color: #ec4899; }
textarea.settings-input { resize: none; height: 80px; }

/* =========================================
   Unified Responsive System
   ========================================= */

/* Tablets and Laptops */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }
    
    .feature-content {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }

    .feature-list {
        align-items: center;
    }
}

/* Mobile Devices (Main Breakpoint) */
@media (max-width: 850px) {
    .navbar {
        padding: 1rem 0;
    }

    .hidden-mobile {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    .hero {
        padding-top: 6rem;
        padding-bottom: 4rem;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
        line-height: 1.1 !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 2.5rem !important;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        gap: 0.75rem;
    }

    .hero-actions .btn {
        width: 100%;
        padding: 0.85rem 1.5rem;
    }

    .section {
        padding: 4rem 1.5rem !important;
    }

    /* Stacking Grids */
    .grid-stack-mobile {
        grid-template-columns: 1fr !important;
    }

    .problem-split-container {
        grid-template-columns: 1fr !important;
        border-radius: 1.5rem !important;
    }

    .vs-badge-centered {
        display: none !important;
    }

    /* Steps Timeline */
    .timeline-line {
        left: 20px;
        transform: none;
    }

    .step, .step.reverse {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
        margin-bottom: 3rem;
    }

    .step-number {
        left: 20px;
        top: 0;
        transform: translateX(-50%);
    }

    .step-content {
        width: 100%;
        padding: 0;
        text-align: left;
    }

    .step-empty {
        display: none;
    }

    /* Footer Responsive */
    .footer-content {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .footer-brand {
        align-items: center;
    }
}

/* Extra Small Phones */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }
}
