/* ============================================
   ChefMarket Landing Page - Main Styles
   Modern B2B HoReCa Marketplace
   ============================================ */

/* ============================================
   CSS Variables & Theme
   ============================================ */
:root {
    /* Primary Colors */
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --primary-gradient: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);

    /* Accent Colors */
    --accent-orange: #F57C00;
    --accent-orange-light: #FFB74D;

    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --black: #000000;

    /* Status Colors */
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    --info: #2196F3;

    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAF8;
    --bg-dark: #0A1612;
    --bg-card: #FFFFFF;

    /* Text Colors */
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(46, 125, 50, 0.3);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

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

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

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
}

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

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ============================================
   Custom Cursor
   ============================================ */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: var(--z-tooltip);
    transition: transform 0.1s ease;
    display: none;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: var(--z-tooltip);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .cursor, .cursor-follower {
        display: block;
    }
}

/* ============================================
   Preloader
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.loader-inner {
    display: flex;
    gap: var(--space-sm);
}

.loader-circle {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    animation: loaderBounce 1.4s ease-in-out infinite both;
}

.loader-circle:nth-child(1) { animation-delay: -0.32s; }
.loader-circle:nth-child(2) { animation-delay: -0.16s; }
.loader-circle:nth-child(3) { animation-delay: 0s; }

@keyframes loaderBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loader-text {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

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

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: var(--space-sm) 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

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

.navbar:not(.scrolled) .logo-text {
    color: var(--white);
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: var(--space-xs) 0;
}

.navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.navbar:not(.scrolled) .nav-link:hover,
.navbar:not(.scrolled) .nav-link.active {
    color: var(--white);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.5);
}

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

.navbar:not(.scrolled) .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-sm);
    border: none;
    background: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

.navbar:not(.scrolled) .bar {
    background: var(--white);
}

.hamburger.active .bar {
    background: var(--text-primary);
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0A1612 0%, #1B3D2F 50%, #0A1612 100%);
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.sphere-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.8) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.sphere-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.6) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.sphere-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 124, 0, 0.5) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

.floating-shapes {
    position: absolute;
    inset: 0;
}

.shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    animation: floatShape 20s linear infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 20%;
    animation-delay: -5s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 15%;
    animation-delay: -10s;
}

.shape-4 {
    width: 50px;
    height: 50px;
    bottom: 20%;
    right: 25%;
    animation-delay: -15s;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.hero-content {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
    max-width: 100%;
    flex-wrap: wrap;
}

.badge-icon {
    color: var(--accent-orange);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 50%, #FFB74D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero-description strong {
    color: var(--accent-orange-light);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(46, 125, 50, 0.6), 0 0 0 10px rgba(46, 125, 50, 0.1); }
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-xs);
}

/* Hero Visual - Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 40px;
    padding: 10px;
    box-shadow: var(--shadow-2xl), 0 0 60px rgba(46, 125, 50, 0.3);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background: #1a1a1a;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1B5E20 0%, #0D3B12 100%);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-header {
    padding: var(--space-lg) var(--space-md);
    padding-top: var(--space-2xl);
}

.app-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

.app-logo i {
    color: var(--accent-orange-light);
}

.app-search {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.15);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.app-content {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    padding: var(--space-md);
}

.category-scroll {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    overflow-x: auto;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    color: var(--gray-600);
    white-space: nowrap;
}

.category-item.active {
    background: var(--primary-light);
    color: var(--white);
}

.category-item i {
    font-size: 1.25rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: relative;
}

.product-badge {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    background: var(--error);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.product-img {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.product-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.product-price .old {
    font-size: 0.625rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-price .new {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
}

.app-nav {
    display: flex;
    justify-content: space-around;
    padding: var(--space-md);
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.app-nav .nav-item {
    font-size: 1.25rem;
    color: var(--gray-400);
    position: relative;
}

.app-nav .nav-item.active {
    color: var(--primary);
}

.app-nav .nav-item.cart .cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    width: 16px;
    height: 16px;
    background: var(--error);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.5) 0%, transparent 70%);
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(40px);
    z-index: -1;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
    animation: floatCard 6s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    left: -60px;
    animation-delay: 0s;
}

.card-2 {
    top: 40%;
    right: -40px;
    animation-delay: -2s;
}

.card-3 {
    bottom: 15%;
    left: -40px;
    animation-delay: -4s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.card-icon.success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.card-icon.warning {
    background: rgba(245, 124, 0, 0.1);
    color: var(--warning);
}

.card-icon.info {
    background: rgba(33, 150, 243, 0.1);
    color: var(--info);
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    animation: fadeInUp 1s ease 1s both;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; }
}


/* ============================================
   Section Styles
   ============================================ */
section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    background: var(--bg-primary);
}

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

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--gray-200);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    position: relative;
    margin-bottom: var(--space-lg);
}

.icon-bg {
    position: absolute;
    inset: 0;
    background: rgba(46, 125, 50, 0.1);
    border-radius: var(--radius-lg);
    transform: rotate(-6deg);
}

.feature-icon i {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.feature-description {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.feature-stats {
    display: flex;
    align-items: center;
}

.feature-stats .stat {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    background: var(--bg-secondary);
}

.steps-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.steps-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    transform: translateX(-50%);
}

.step-item {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    position: relative;
}

.step-item:nth-child(even) {
    flex-direction: row-reverse;
}

.step-item:nth-child(even) .step-content {
    text-align: right;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
}

.step-content {
    flex: 1;
    max-width: 350px;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.step-item:nth-child(even) .step-icon {
    margin-left: auto;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================
   Apps Section
   ============================================ */
.apps-section {
    background: var(--bg-primary);
}

.apps-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.app-tab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--gray-100);
    transition: var(--transition-base);
}

.app-tab:hover {
    background: var(--gray-200);
}

.app-tab.active {
    color: var(--white);
}

.app-tab.active[data-tab="restaurant"] {
    background: linear-gradient(135deg, #FF6B00 0%, #FF9800 100%);
    box-shadow: 0 0 40px rgba(255, 107, 0, 0.3);
}

.app-tab.active[data-tab="supplier"] {
    background: linear-gradient(135deg, #6366F1 0%, #818CF8 100%);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}

.app-panel {
    display: none;
}

.app-panel.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.app-info h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.app-description {
    color: var(--text-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.app-features-list {
    margin-bottom: var(--space-xl);
}

.app-features-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
}

.app-features-list i {
    color: var(--success);
    font-size: 1rem;
}

.app-download-btns {
    display: flex;
    gap: var(--space-md);
}

.store-btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--text-primary);
    color: var(--white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.store-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.store-btn i {
    font-size: 1.75rem;
}

.store-btn .small {
    display: block;
    font-size: 0.625rem;
    opacity: 0.8;
}

.store-btn .big {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

.store-btn.large {
    padding: var(--space-lg) var(--space-xl);
}

.store-btn.large i {
    font-size: 2rem;
}

.store-btn.large .small {
    font-size: 0.75rem;
}

.store-btn.large .big {
    font-size: 1.125rem;
}

/* App Mockups */
.app-preview {
    display: flex;
    justify-content: center;
}

.app-mockup {
    width: 280px;
    height: 480px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 40px;
    padding: 10px;
    box-shadow: var(--shadow-2xl);
}

.mockup-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
}

.restaurant-mockup .mockup-screen {
    background: linear-gradient(180deg, #FF6B00 0%, #E65100 100%);
}

.supplier-mockup .mockup-screen {
    background: linear-gradient(180deg, #6366F1 0%, #4338CA 100%);
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-top: var(--space-md);
}

.screen-header .greeting {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.screen-header .balance {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}

.quick-actions {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
}

.active-orders {
    flex: 1;
}

.order-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.order-status {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.order-status.processing {
    background: var(--accent-orange);
    color: var(--white);
}

.order-info {
    display: flex;
    justify-content: space-between;
    color: var(--white);
    font-size: 0.75rem;
}

/* Supplier Mockup Specifics */
.stats-row {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.stat-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
}

.stat-box .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-box .stat-label {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.8);
}

.pending-orders {
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.order-notification {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: 0.875rem;
    width: 100%;
}



/* ============================================
   FAQ Section
   ============================================ */
.faq {
    background: var(--bg-secondary);
}

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

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: var(--transition-base);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    transition: var(--transition-base);
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 var(--space-lg) var(--space-lg);
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background: var(--bg-primary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.contact-info {
    padding-right: var(--space-2xl);
}

.contact-info .section-tag {
    display: inline-flex;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: var(--space-md);
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.contact-details {
    margin-bottom: var(--space-xl);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}


/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition-base);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    background: linear-gradient(135deg, #0A1612 0%, #1B3D2F 50%, #0A1612 100%);
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234CAF50' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.cta-app-groups {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.cta-app-group {
    text-align: center;
}

.cta-app-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}

.cta-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.qr-code {
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-primary);
}

.cta-qr span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-dark);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: var(--space-lg);
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand > p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.footer-links ul li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: var(--space-xs);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: var(--white);
}

/* ============================================
   Trust Badges Section
   ============================================ */
.trust-badges {
    padding: var(--space-2xl) 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--gray-200);
}

.badges-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.badge-icon-wrapper {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

/* ============================================
   Hero Stat Icons
   ============================================ */
.stat-icon {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: var(--space-xs);
}

/* ============================================
   How It Works Tabs
   ============================================ */
.how-it-works-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.hiw-tab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-secondary);
    background: var(--gray-100);
    border: 2px solid transparent;
    transition: var(--transition-base);
    cursor: pointer;
}

.hiw-tab.active {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.hiw-tab:hover:not(.active) {
    background: var(--gray-200);
}

.hiw-panel {
    display: none;
}

.hiw-panel.active {
    display: block;
}

/* ============================================
   Problems Section
   ============================================ */
.problems-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.problems-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.problems-column-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.problems-column-title i {
    color: var(--primary);
}

.problem-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.problem, .solution {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.problem {
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px dashed var(--gray-200);
}

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

.problem-icon i {
    color: var(--error);
    font-size: 1rem;
    margin-top: 2px;
}

.solution p {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
}

.solution-icon i {
    color: var(--success);
    font-size: 1rem;
    margin-top: 2px;
}

/* ============================================
   Why ChefMarket Section
   ============================================ */
.why-chefmarket {
    padding: var(--space-4xl) 0;
}

.why-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.why-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: var(--transition-base);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.why-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto var(--space-lg);
}

.why-card-icon.restaurant-accent {
    background: linear-gradient(135deg, #FF6B00 0%, #FF9800 100%);
    color: var(--white);
}

.why-card-icon.supplier-accent {
    background: linear-gradient(135deg, #6366F1 0%, #818CF8 100%);
    color: var(--white);
}

.why-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.why-card-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.why-card-features {
    text-align: left;
    margin-bottom: var(--space-xl);
}

.why-card-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.why-card-features li i {
    color: var(--success);
}


/* ============================================
   WhatsApp Button
   ============================================ */
.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    margin-bottom: var(--space-xl);
    display: inline-flex;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ============================================
   Contact Response Time
   ============================================ */
.contact-response-time {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-top: var(--space-lg);
}


/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        margin-top: var(--space-2xl);
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .floating-card {
        display: none;
    }

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

    .app-panel.active {
        grid-template-columns: 1fr;
    }

    .app-info {
        text-align: center;
    }

    .app-features-list {
        max-width: 400px;
        margin: 0 auto var(--space-xl);
    }

    .app-download-btns {
        justify-content: center;
    }

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

    .why-cards {
        grid-template-columns: 1fr;
        max-width: 450px;
    }

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

    .contact-info {
        padding-right: 0;
        text-align: center;
    }

    .contact-info .section-title {
        text-align: center;
    }

    .contact-details {
        max-width: 400px;
        margin: 0 auto var(--space-xl);
    }

    .contact-item {
        text-align: left;
    }

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

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-lg);
        transition: var(--transition-base);
        z-index: var(--z-fixed);
    }

    .nav-menu.active {
        right: 0;
    }

    .navbar:not(.scrolled) .nav-menu.active .nav-link,
    .nav-menu.active .nav-link {
        font-size: 1.5rem;
        color: var(--text-primary);
    }

    .navbar:not(.scrolled) .nav-menu.active .nav-link:hover {
        color: var(--primary);
    }

    .nav-container {
        padding: 0 var(--space-md);
    }

    .nav-actions {
        display: none;
    }

    .hamburger {
        display: flex;
        z-index: var(--z-modal);
    }

    .section-title {
        font-size: 1.75rem;
    }

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

    .steps-line {
        left: 30px;
    }

    .step-item,
    .step-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
        padding-left: var(--space-3xl);
    }

    .step-item:nth-child(even) .step-content {
        text-align: left;
    }

    .step-item:nth-child(even) .step-icon {
        margin-left: 0;
    }

    .step-number {
        position: absolute;
        left: 0;
    }

    .apps-tabs {
        flex-direction: column;
        align-items: center;
    }

    .app-tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .how-it-works-tabs {
        flex-direction: column;
        align-items: center;
    }

    .hiw-tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .footer-brand {
        grid-column: span 1;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero-container {
        padding: 0 var(--space-md);
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .phone-frame {
        width: 240px;
        height: 500px;
    }

    .store-btn {
        padding: var(--space-sm) var(--space-md);
    }

    .store-btn i {
        font-size: 1.5rem;
    }
}

/* ============================================
   Self-Delivery SaaS Section
   ============================================ */
.self-delivery-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.sd-tier-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    align-items: start;
}

.sd-tier-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 2px solid var(--gray-200);
    transition: var(--transition-base);
    position: relative;
}

.sd-tier-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.sd-tier-card.popular {
    border-color: var(--primary);
    transform: scale(1.05);
}

.sd-tier-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.sd-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.sd-tier-header {
    text-align: center;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--space-lg);
}

.sd-tier-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(46,125,50,0.1), rgba(76,175,80,0.1));
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
}

.sd-tier-card.popular .sd-tier-icon {
    background: var(--primary-gradient);
    color: var(--white);
}

.sd-tier-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.sd-tier-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
}

.sd-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.sd-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.sd-tier-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

.sd-tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg);
}

.sd-tier-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sd-tier-features li i {
    width: 16px;
    font-size: 0.8rem;
}

.sd-tier-features li .fa-check { color: var(--primary); }
.sd-tier-features li .fa-times { color: var(--gray-400); }
.sd-tier-features li.disabled { color: var(--text-muted); }

.btn-select-tier {
    margin-top: var(--space-md);
    font-weight: 600;
}

/* Trial Banner */
.sd-trial-banner {
    margin-top: var(--space-2xl);
}

.sd-trial-inner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-xl);
    padding: var(--space-lg) var(--space-xl);
}

.sd-trial-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.sd-trial-content h4 { font-size: 1rem; font-weight: 700; color: #166534; margin: 0 0 4px; }
.sd-trial-content p { font-size: 0.875rem; color: #15803d; margin: 0; }

/* ============================================
   Self-Delivery Registration Modal
   ============================================ */
.sd-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.sd-modal-overlay.open { display: flex; }

.sd-modal {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 32px;
    max-width: 520px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    animation: sdModalIn 0.3s ease;
}

@keyframes sdModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.sd-modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px; border: none;
    background: var(--gray-100); border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 1rem;
    transition: var(--transition-base); z-index: 1;
}
.sd-modal-close:hover { background: var(--gray-200); color: var(--text-primary); }

.sd-steps {
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 32px;
}

.sd-step { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.sd-step-num {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--gray-200); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700; transition: var(--transition-base);
}
.sd-step.active .sd-step-num { background: var(--primary-gradient); color: var(--white); }
.sd-step.done .sd-step-num { background: var(--primary); color: var(--white); }

.sd-step-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }
.sd-step.active .sd-step-label { color: var(--primary); font-weight: 600; }

.sd-step-line { width: 40px; height: 2px; background: var(--gray-200); margin: 0 8px; margin-bottom: 18px; }

.sd-step-content { display: none; }
.sd-step-content.active { display: block; }

/* Step 1 */
.sd-plan-summary { text-align: center; padding: 24px 0; }
.sd-plan-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--primary-gradient); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin: 0 auto 16px;
}
.sd-plan-summary h3 { font-size: 1.25rem; color: var(--text-primary); margin: 0 0 12px; }
.sd-plan-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-bottom: 12px; }
.sd-price-amount { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.sd-price-period { font-size: 1rem; color: var(--text-muted); }
.sd-trial-badge-inline {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f0fdf4; color: #166534;
    padding: 8px 16px; border-radius: var(--radius-full);
    font-size: 0.85rem; font-weight: 600;
}

/* Step 2 — Form */
.sd-form-title { font-size: 1.2rem; color: var(--text-primary); margin: 0 0 20px; text-align: center; }
.sd-form-group { margin-bottom: 16px; }
.sd-form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.sd-form-group .req { color: #ef4444; }
.sd-input-wrap { position: relative; display: flex; align-items: center; }
.sd-input-wrap i { position: absolute; left: 14px; color: var(--text-muted); font-size: 0.9rem; pointer-events: none; }
.sd-input-wrap input {
    width: 100%; padding: 12px 14px 12px 40px;
    border: 2px solid var(--gray-200); border-radius: var(--radius-lg);
    font-size: 0.9rem; font-family: inherit; color: var(--text-primary);
    background: var(--white); transition: var(--transition-base); outline: none;
}
.sd-input-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,125,50,0.1); }
.sd-input-wrap input.error { border-color: #ef4444; }
.sd-error { display: block; font-size: 0.75rem; color: #ef4444; margin-top: 4px; min-height: 16px; }
.sd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sd-form-actions { display: flex; gap: 12px; margin-top: 24px; }
.sd-form-actions .btn { flex: 1; }
.sd-btn-loading { display: inline-flex; align-items: center; gap: 6px; }

/* Step 3 */
.sd-success { text-align: center; padding: 16px 0; }
.sd-success-icon { font-size: 4rem; color: var(--primary); margin-bottom: 16px; }
.sd-success h3 { font-size: 1.3rem; color: var(--text-primary); margin: 0 0 8px; }
.sd-success > p { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 24px; line-height: 1.5; }
.sd-success-details { background: var(--gray-50, #f8fafc); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 24px; }
.sd-success-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.9rem; color: var(--text-secondary); }
.sd-success-row i { color: var(--primary); width: 20px; text-align: center; }
.sd-success-row + .sd-success-row { border-top: 1px solid var(--gray-200); }

/* Responsive */
@media (max-width: 1024px) {
    .sd-tier-cards { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .sd-tier-card.popular { transform: none; order: -1; }
    .sd-tier-card.popular:hover { transform: translateY(-8px); }
}

@media (max-width: 480px) {
    .sd-modal { padding: 24px 20px; border-radius: var(--radius-xl); margin: 8px; }
    .sd-form-row { grid-template-columns: 1fr; }
    .sd-price-amount { font-size: 2rem; }
    .sd-step-line { width: 24px; }
    .sd-step-label { font-size: 0.65rem; }
    .sd-trial-inner { flex-direction: column; text-align: center; }
    .sd-form-actions { flex-direction: column; }
}
