/* ======================================================
   IB VENDING SERVICES — Stylesheet
   Design: Bright, Apple-inspired minimalism
   Fonts : Outfit (display) + DM Sans (body)
   ====================================================== */

/* ---------- Design Tokens ---------- */
:root {
    /* Brand */
    --primary:       #2563EB;
    --primary-hover:  #1D4ED8;
    --primary-light:  #DBEAFE;
    --secondary:      #F5B800;
    --secondary-light:#FEF3C7;
    --violet:         #F5B800;
    --mint:           #EAB308;

    /* Neutrals */
    --dark:    #0B1120;
    --gray-900:#111827;
    --gray-800:#1F2937;
    --gray-700:#374151;
    --gray-600:#4B5563;
    --gray-500:#6B7280;
    --gray-400:#9CA3AF;
    --gray-300:#D1D5DB;
    --gray-200:#E5E7EB;
    --gray-100:#F3F4F6;
    --gray-50: #F9FAFB;
    --white:   #FFFFFF;

    /* Gradients */
    --gradient-brand:  linear-gradient(135deg, #2563EB, #60A5FA);
    --gradient-hero:   linear-gradient(135deg, #2563EB, #60A5FA, #F5B800);
    --gradient-dark:   linear-gradient(135deg, #0B1120 0%, #162033 100%);

    /* Fonts */
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body:    'DM Sans', system-ui, sans-serif;

    /* Shadows */
    --shadow-xs:  0 1px 2px rgba(0,0,0,.04);
    --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
    --shadow-md:  0 4px 16px rgba(0,0,0,.08);
    --shadow-lg:  0 12px 32px rgba(0,0,0,.10);
    --shadow-xl:  0 20px 48px rgba(0,0,0,.12);

    /* Radii */
    --r-sm:   8px;
    --r-md:  12px;
    --r-lg:  16px;
    --r-xl:  24px;
    --r-full: 9999px;

    /* Transitions */
    --ease: cubic-bezier(.4,0,.2,1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection { background:rgba(37,99,235,.12); color:var(--dark); }

::-webkit-scrollbar       { width:7px; }
::-webkit-scrollbar-track  { background:var(--gray-100); }
::-webkit-scrollbar-thumb  { background:var(--gray-300); border-radius:4px; }
::-webkit-scrollbar-thumb:hover { background:var(--gray-400); }

img { max-width:100%; display:block; }
a   { color:inherit; text-decoration:none; }
button { cursor:pointer; border:none; background:none; font:inherit; }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.container--narrow { max-width: 840px; }

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

.desktop-br { display:block; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 {
    font-family: var(--font-display);
    color: var(--dark);
    line-height: 1.12;
    letter-spacing: -.02em;
}
h2 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 600; line-height:1.3; }

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

.section-header { text-align:center; max-width:680px; margin:0 auto 64px; }
.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--primary);
    margin-bottom: 16px;
}
.section-desc {
    font-size: 18px;
    color: var(--gray-500);
    margin-top: 18px;
    line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--r-full);
    padding: 12px 28px;
    transition: all .3s var(--ease);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(37,99,235,.35);
}
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 20px rgba(37,99,235,.45);
    transform: translateY(-2px);
}
.btn-ghost {
    border: 2px solid var(--gray-200);
    color: var(--dark);
    background: transparent;
}
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.btn-lg { padding:16px 36px; font-size:16px; }
.btn-full { width:100%; }

/* ---------- Scroll Progress ---------- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: var(--gradient-brand);
    z-index: 10001;
    width: 0;
    pointer-events: none;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all .35s var(--ease);
}
.nav.scrolled {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 24px rgba(0,0,0,.06);
    padding: 12px 0;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    background: var(--gradient-brand);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    border-radius: 10px;
    letter-spacing: .02em;
}
.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}
.nav-links a {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
    transition: color .25s var(--ease);
    position: relative;
}
.nav-links a::after {
    content:'';
    position:absolute;
    bottom:-4px; left:0;
    width:0; height:2px;
    background: var(--primary);
    border-radius:1px;
    transition: width .3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width:100%; }

.nav-cta { margin-left:12px; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform .35s var(--ease), opacity .25s var(--ease);
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity:0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================
   HERO
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 140px 0 80px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .18;
    will-change: transform;
}
.orb-1 {
    width: 700px; height: 700px;
    background: var(--primary);
    top: -220px; right: -180px;
    animation: float-1 18s ease-in-out infinite;
}
.orb-2 {
    width: 500px; height: 500px;
    background: var(--violet);
    bottom: -140px; left: -120px;
    animation: float-2 22s ease-in-out infinite;
}
.orb-3 {
    width: 400px; height: 400px;
    background: #60A5FA;
    top: 30%; left: 55%;
    animation: float-3 20s ease-in-out infinite;
}

.hero-content { position:relative; z-index:2; max-width:800px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--r-full);
    margin-bottom: 32px;
}
.badge-pulse {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(48px, 7vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.035em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-xl);
    padding: 20px 40px;
}
.hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}
.hero-stat span {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}
.hero-stat-divider {
    width: 1px; height: 36px;
    background: var(--gray-200);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}
.scroll-line {
    width: 2px; height: 40px;
    background: var(--gray-300);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content:'';
    position:absolute;
    top:-40px; left:0;
    width:100%; height:40px;
    background: var(--primary);
    animation: scroll-line 2s ease-in-out infinite;
}

/* ========================================
   TRUST BAR
   ======================================== */
.trust-bar {
    padding: 48px 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}
.trust-label {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 28px;
}
.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.trust-logo {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 400;
    color: var(--gray-400);
    letter-spacing: .06em;
    transition: color .3s var(--ease);
}
.trust-logo strong { font-weight:700; }
.trust-logo:hover { color:var(--gray-600); }

/* ========================================
   SERVICES
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--r-lg);
    padding: 40px 36px;
    transition: all .4s var(--ease);
    position: relative;
}
.service-card:hover {
    border-color: var(--accent, var(--primary));
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.service-icon {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
    margin-bottom: 24px;
    transition: background .3s var(--ease);
}
.service-card:hover .service-icon {
    background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.service-card h3 { margin-bottom:12px; }
.service-card p  { color:var(--gray-500); line-height:1.7; }

/* ========================================
   STATS
   ======================================== */
.stats {
    background: var(--gradient-dark);
    overflow: hidden;
}
.stats-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}
.stat-item {
    text-align: center;
    padding: 16px;
}
.stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 8px;
}
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.stat-suffix {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-item p {
    color: var(--gray-400);
    font-size: 15px;
    font-weight: 500;
}

/* ========================================
   PRODUCTS
   ======================================== */
.products-section { background: #F0F5FF; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.product-card {
    background: var(--white);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.product-visual {
    background: var(--g);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.product-emoji {
    font-size: 72px;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.15));
    transition: transform .5s var(--ease);
}
.product-card:hover .product-emoji {
    transform: scale(1.12) rotate(-3deg);
}
.product-info {
    padding: 32px;
}
.product-info h3 { margin-bottom:10px; }
.product-info > p { color:var(--gray-500); margin-bottom:20px; }
.product-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.product-features li {
    font-size: 14px;
    color: var(--gray-600);
    padding-left: 22px;
    position: relative;
}
.product-features li::before {
    content: '';
    position: absolute;
    left: 0; top: 7px;
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid var(--mint);
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
}
.step {
    flex: 1;
    text-align: center;
    padding: 0 32px;
}
.step-number {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}
.step h3 { margin-bottom:12px; }
.step p  { color:var(--gray-500); font-size:16px; }

.step-connector {
    width: 80px;
    min-width: 80px;
    height: 2px;
    background: var(--gray-200);
    margin-top: 30px;
    position: relative;
}
.step-connector::after {
    content:'';
    position:absolute;
    right:-3px; top:-4px;
    width:10px; height:10px;
    border-right:2px solid var(--gray-300);
    border-top:2px solid var(--gray-300);
    transform:rotate(45deg);
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-section { background:var(--gray-50); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.testimonial-card {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
    display: flex;
    flex-direction: column;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.testimonial-stars {
    color: #FBBF24;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.testimonial-card blockquote {
    font-size: 16px;
    line-height: 1.75;
    color: var(--gray-600);
    flex: 1;
    margin-bottom: 24px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--gray-100);
    padding-top: 20px;
}
.author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.testimonial-author strong {
    display: block;
    font-size: 15px;
    color: var(--dark);
}
.testimonial-author span {
    font-size: 13px;
    color: var(--gray-500);
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq-item:hover,
.faq-item.open {
    border-color: var(--primary-light);
}
.faq-item.open {
    box-shadow: 0 4px 16px rgba(37,99,235,.08);
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 28px;
    text-align: left;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    transition: color .25s var(--ease);
}
.faq-item.open .faq-question { color:var(--primary); }

.faq-chevron {
    flex-shrink: 0;
    color: var(--gray-400);
    transition: transform .35s var(--ease), color .25s var(--ease);
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s var(--ease);
}
.faq-answer p {
    padding: 0 28px 24px;
    color: var(--gray-500);
    line-height: 1.75;
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
    background: var(--gradient-brand);
    text-align: center;
    overflow: hidden;
    position: relative;
}
.cta-banner::before {
    content:'';
    position:absolute;
    inset:0;
    background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events:none;
}
.cta-content { position:relative; z-index:1; }
.cta-content h2 {
    color: var(--white);
    margin-bottom: 16px;
}
.cta-content p {
    color: rgba(255,255,255,.8);
    font-size: 18px;
    margin-bottom: 36px;
}

/* ========================================
   CONTACT
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}
.contact-info h2  { margin-bottom:18px; }
.contact-info > p { color:var(--gray-500); margin-bottom:36px; line-height:1.7; }

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: var(--gray-600);
}
.contact-detail-item svg { flex-shrink:0; color:var(--primary); }

/* Form */
.contact-form {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--r-lg);
    padding: 40px;
    position: relative;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--dark);
    background: var(--white);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
    appearance: none;
    -webkit-appearance: none;
}
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239CA3AF' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color:var(--gray-400); }
.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(37,99,235,.08);
}
.form-group textarea { resize:vertical; min-height:100px; }

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,.08);
}

/* Submit button states */
#submitBtn { position:relative; }
.btn-loader { display:none; }
#submitBtn.loading .btn-text  { opacity:0; }
#submitBtn.loading .btn-loader { display:flex; }
#submitBtn.loading {
    pointer-events:none;
    opacity:.8;
}

/* Success state */
.form-success {
    display: none;
    position: absolute;
    inset: 0;
    background: var(--white);
    border-radius: var(--r-lg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 10;
    animation: fadeIn .5s var(--ease);
}
.contact-form.success .form-success { display:flex; }
.form-success h3 {
    font-size: 28px;
    margin: 20px 0 8px;
}
.form-success p { color:var(--gray-500); }

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--dark);
    padding: 72px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p {
    color: var(--gray-500);
    font-size: 15px;
    margin-top: 16px;
    max-width: 300px;
    line-height: 1.7;
}
.footer-links { display:flex; flex-direction:column; gap:12px; }
.footer-links h4 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}
.footer-links a {
    font-size: 14px;
    color: var(--gray-500);
    transition: color .25s var(--ease);
}
.footer-links a:hover { color:var(--gray-300); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
}
.footer-bottom p { font-size:14px; color:var(--gray-500); }
.footer-legal {
    display: flex;
    gap: 28px;
}
.footer-legal a {
    font-size: 14px;
    color: var(--gray-500);
    transition: color .25s var(--ease);
}
.footer-legal a:hover { color:var(--gray-300); }

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 32px; right: 32px;
    width: 48px; height: 48px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    box-shadow: var(--shadow-md);
    z-index: 999;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: all .35s var(--ease);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========================================
   MOBILE CTA
   ======================================== */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--gray-200);
    z-index: 998;
    transform: translateY(100%);
    transition: transform .4s var(--ease);
}
.mobile-cta.visible { transform:translateY(0); }

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children in grids */
.services-grid  .reveal:nth-child(2) { transition-delay:.1s; }
.services-grid  .reveal:nth-child(3) { transition-delay:.2s; }
.services-grid  .reveal:nth-child(4) { transition-delay:.3s; }

.products-grid  .reveal:nth-child(2) { transition-delay:.1s; }
.products-grid  .reveal:nth-child(3) { transition-delay:.2s; }
.products-grid  .reveal:nth-child(4) { transition-delay:.3s; }

.testimonials-grid .reveal:nth-child(2) { transition-delay:.12s; }
.testimonials-grid .reveal:nth-child(3) { transition-delay:.24s; }

.steps .reveal:nth-child(2) { transition-delay:.15s; }
.steps .reveal:nth-child(3) { transition-delay:.3s; }

.faq-list .reveal:nth-child(2) { transition-delay:.06s; }
.faq-list .reveal:nth-child(3) { transition-delay:.12s; }
.faq-list .reveal:nth-child(4) { transition-delay:.18s; }
.faq-list .reveal:nth-child(5) { transition-delay:.24s; }
.faq-list .reveal:nth-child(6) { transition-delay:.30s; }

/* ========================================
   KEYFRAMES
   ======================================== */
@keyframes float-1 {
    0%,100% { transform:translate(0,0) scale(1); }
    25%     { transform:translate(40px,-30px) scale(1.05); }
    50%     { transform:translate(15px,35px) scale(.95); }
    75%     { transform:translate(-25px,8px) scale(1.02); }
}
@keyframes float-2 {
    0%,100% { transform:translate(0,0) scale(1); }
    33%     { transform:translate(-30px,25px) scale(1.04); }
    66%     { transform:translate(20px,-20px) scale(.96); }
}
@keyframes float-3 {
    0%,100% { transform:translate(0,0) scale(1); }
    30%     { transform:translate(35px,20px) scale(.97); }
    70%     { transform:translate(-15px,-30px) scale(1.03); }
}
@keyframes pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%     { opacity:.5; transform:scale(1.5); }
}
@keyframes scroll-line {
    0%   { top:-40px; }
    100% { top:40px; }
}
@keyframes fadeIn {
    from { opacity:0; transform:scale(.95); }
    to   { opacity:1; transform:scale(1); }
}

/* ========================================
   RESPONSIVE — TABLET (<=1024px)
   ======================================== */
@media (max-width:1024px) {
    .section { padding:96px 0; }

    .services-grid  { gap:20px; }
    .products-grid  { gap:20px; }
    .stats-grid     { grid-template-columns:repeat(2,1fr); gap:40px 20px; }
    .testimonials-grid { grid-template-columns:1fr; max-width:600px; margin:0 auto; }

    .steps { flex-direction:column; align-items:center; gap:40px; }
    .step  { padding:0; max-width:440px; }
    .step-connector { display:none; }

    .contact-grid   { grid-template-columns:1fr; gap:48px; }
    .footer-grid    { grid-template-columns:1fr 1fr; gap:40px; }
}

/* ========================================
   RESPONSIVE — MOBILE (<=768px)
   ======================================== */
@media (max-width:768px) {
    .section { padding:72px 0; }
    .section-header { margin-bottom:48px; }
    .desktop-br { display:none; }

    /* Nav */
    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        transform: translateX(100%);
        transition: transform .45s var(--ease);
    }
    .nav-links.active { transform:translateX(0); }
    .nav-links a {
        font-size: 26px;
        font-weight: 600;
    }
    .nav-cta { display:none; }
    .hamburger { display:flex; }

    /* Hero */
    .hero { padding:120px 0 64px; min-height:auto; }
    .hero-title { margin-bottom:20px; }
    .hero-subtitle { margin-bottom:32px; }
    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 24px 32px;
    }
    .hero-stat-divider {
        width: 40px; height: 1px;
    }
    .scroll-indicator { display:none; }

    /* Grids → single column */
    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .service-card { padding:32px 28px; }
    .contact-form { padding:28px; }
    .form-row     { grid-template-columns:1fr; }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .footer-legal { justify-content:center; }

    /* Mobile CTA */
    .mobile-cta { display:block; }

    /* Back to top — above mobile CTA */
    .back-to-top { bottom:90px; right:20px; }

    /* Stagger resets for single-column */
    .services-grid .reveal,
    .products-grid .reveal,
    .testimonials-grid .reveal,
    .faq-list .reveal { transition-delay:0s !important; }
}

/* ========================================
   RESPONSIVE — SMALL MOBILE (<=480px)
   ======================================== */
@media (max-width:480px) {
    .container { padding:0 16px; }
    .section   { padding:56px 0; }
    .hero-badge { font-size:12px; padding:6px 14px; }
    .trust-logos { gap:24px; }
    .trust-logo  { font-size:13px; }
    .hero-stats  { padding:20px 24px; }
    .product-visual { height:160px; }
    .product-emoji  { font-size:56px; }
    .product-info   { padding:24px; }
    .faq-question   { padding:18px 20px; font-size:15px; }
    .faq-answer p   { padding:0 20px 20px; }
}

/* ========================================
   3D MACHINE EXPLORER
   ======================================== */
.machine-section { background:var(--gray-50); overflow:hidden; }

.machine-viewer {
    display:flex; flex-direction:column; align-items:center;
    margin-bottom:72px;
    -webkit-user-select:none; user-select:none;
}
.machine-stage {
    width:480px; height:520px;
    perspective:1200px;
    display:flex; align-items:center; justify-content:center;
    cursor:grab; touch-action:none;
}
.machine-stage:active { cursor:grabbing; }

.machine-box {
    width:230px; height:450px;
    position:relative;
    transform-style:preserve-3d;
    transform:rotateX(-8deg) rotateY(-25deg);
}

/* --- Faces base --- */
.m-face { position:absolute; }

.m-front {
    width:230px; height:450px;
    transform:translateZ(50px);
    background:linear-gradient(180deg,#1c1f28,#15171f);
    border-radius:14px 14px 6px 6px;
    display:flex; flex-direction:column;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.05);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.m-back {
    width:230px; height:450px;
    transform:rotateY(180deg) translateZ(50px);
    background:#131520; border-radius:14px;
    display:flex; flex-direction:column;
    align-items:center; justify-content:center;
    gap:32px; padding:32px;
}
.m-left {
    width:100px; height:450px; left:65px;
    transform:rotateY(-90deg) translateZ(115px);
    background:linear-gradient(90deg,#111318,#1a1c24);
    display:flex; flex-direction:column;
    align-items:center; justify-content:center; gap:24px;
}
.m-right {
    width:100px; height:450px; left:65px;
    transform:rotateY(90deg) translateZ(115px);
    background:linear-gradient(-90deg,#111318,#1a1c24);
    display:flex; flex-direction:column;
    align-items:center; justify-content:center; gap:24px;
}
.m-top {
    width:230px; height:100px; top:175px;
    transform:rotateX(90deg) translateZ(225px);
    background:#1c1f28; border-radius:14px 14px 0 0;
}
.m-bottom {
    width:230px; height:100px; top:175px;
    transform:rotateX(-90deg) translateZ(225px);
    background:#0e1018;
}

/* --- Front: LED --- */
.m-led {
    height:34px; background:#0d1118;
    display:flex; align-items:center; justify-content:center; gap:8px;
    color:#F5B800;
    font-family:var(--font-display); font-size:9px; font-weight:700;
    letter-spacing:.22em;
    border-bottom:1px solid rgba(255,255,255,.04);
}
.m-led-pulse {
    width:6px; height:6px; background:#F5B800; border-radius:50%;
    box-shadow:0 0 8px rgba(245,184,0,.6);
    animation:pulse 2s ease-in-out infinite;
}

/* --- Front: Glass --- */
.m-glass {
    flex:1;
    background:linear-gradient(180deg,#060a14,#090e1a);
    margin:8px; border-radius:6px; padding:6px;
    display:flex; flex-direction:column; gap:0;
    position:relative;
    border:1px solid rgba(255,255,255,.04);
    border-top:2px solid rgba(37,99,235,.35);
    box-shadow:inset 0 2px 16px rgba(37,99,235,.06);
}
.m-shelf {
    display:flex; align-items:flex-end; justify-content:center;
    gap:4px; flex:1; padding:3px 4px 5px;
    border-bottom:1px solid rgba(255,255,255,.06);
}
.m-shelf:last-of-type { border-bottom:none; }

/* Products — shared */
.m-prod { position:relative; }

/* Bottle — tall narrow with cap */
.m-btl {
    width:15px; height:52px;
    background:linear-gradient(180deg,
        color-mix(in srgb,var(--c) 90%,#fff) 0%,
        var(--c) 10%,var(--c) 36%,
        rgba(255,255,255,.16) 36%,rgba(255,255,255,.16) 50%,
        var(--c) 50%,color-mix(in srgb,var(--c) 50%,#000) 100%);
    border-radius:2px;
    box-shadow:inset 1px 0 0 rgba(255,255,255,.1),0 1px 4px rgba(0,0,0,.35);
}
.m-btl::before {
    content:''; position:absolute;
    top:-2px; left:4px; width:7px; height:5px;
    background:color-mix(in srgb,var(--c) 75%,#fff);
    border-radius:2px 2px 0 0;
}

/* Can — standard with label band */
.m-can {
    width:19px; height:40px;
    background:linear-gradient(180deg,
        rgba(255,255,255,.15) 0%,var(--c) 6%,
        var(--c) 32%,rgba(255,255,255,.14) 32%,rgba(255,255,255,.14) 48%,
        var(--c) 48%,color-mix(in srgb,var(--c) 50%,#000) 100%);
    border-radius:2px 2px 1px 1px;
    box-shadow:inset 1px 0 0 rgba(255,255,255,.07),0 1px 4px rgba(0,0,0,.35);
}

/* Snack package — short & wide */
.m-pkg {
    width:25px; height:32px;
    background:linear-gradient(180deg,
        color-mix(in srgb,var(--c) 85%,#fff) 0%,var(--c) 18%,
        var(--c) 55%,rgba(255,255,255,.1) 55%,rgba(255,255,255,.1) 65%,
        var(--c) 65%,color-mix(in srgb,var(--c) 55%,#000) 100%);
    border-radius:3px 3px 2px 2px;
    box-shadow:0 1px 4px rgba(0,0,0,.3);
}

.m-glare {
    position:absolute; inset:0;
    background:linear-gradient(125deg,transparent 30%,rgba(255,255,255,.05) 44%,rgba(255,255,255,.1) 50%,rgba(255,255,255,.05) 56%,transparent 70%);
    border-radius:4px; pointer-events:none;
}

/* --- Front: Controls --- */
.m-controls { height:100px; padding:8px; display:flex; gap:8px; }
.m-screen {
    flex:1; background:#0b1020;
    border-radius:6px; border:1px solid rgba(255,255,255,.05);
    display:flex; flex-direction:column;
    align-items:center; justify-content:center; gap:6px;
}
.m-screen-ib {
    background:var(--gradient-brand);
    -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
    font-family:var(--font-display); font-size:22px; font-weight:800;
}
.m-screen-txt {
    color:rgba(255,255,255,.3);
    font-size:7px; font-family:var(--font-display);
    letter-spacing:.14em; text-transform:uppercase;
}
.m-pay {
    width:76px;
    display:flex; flex-direction:column;
    gap:8px; align-items:center; justify-content:center;
}
.m-nfc-icon {
    width:42px; height:42px;
    border:1px solid rgba(255,255,255,.06); border-radius:8px;
    display:flex; align-items:center; justify-content:center;
    background:rgba(245,184,0,.04);
}
.m-card-slot { width:52px; height:4px; background:rgba(255,255,255,.08); border-radius:2px; }

/* --- Front: Dispenser --- */
.m-dispenser { height:66px; padding:8px 12px 10px; display:flex; align-items:center; justify-content:center; }
.m-flap {
    width:168px; height:40px; background:#060a12;
    border-radius:6px; border:1px solid rgba(255,255,255,.04);
    box-shadow:inset 0 6px 12px rgba(0,0,0,.5);
}

/* --- Back internals --- */
.m-vents { display:grid; grid-template-columns:repeat(5,1fr); gap:5px; }
.m-vents span { width:22px; height:3px; background:rgba(255,255,255,.05); border-radius:1px; }
.m-label {
    color:rgba(255,255,255,.2);
    font-family:var(--font-display); font-size:9px;
    text-align:center; letter-spacing:.12em;
    text-transform:uppercase; line-height:1.8;
}
.m-label small { font-size:7px; color:rgba(255,255,255,.12); letter-spacing:.06em; }
.m-barcode {
    width:56px; height:28px;
    background:repeating-linear-gradient(90deg,rgba(255,255,255,.15) 0 2px,transparent 2px 4px);
    border-radius:2px;
}

/* --- Side internals --- */
.m-side-logo {
    font-family:var(--font-display); font-size:26px; font-weight:800;
    color:rgba(255,255,255,.06); letter-spacing:.04em;
}
.m-side-stripe {
    width:3px; height:120px;
    background:linear-gradient(180deg,var(--primary),var(--secondary));
    border-radius:2px; opacity:.2;
}

/* --- Shadow & Hint --- */
.machine-shadow-el {
    width:300px; height:36px;
    background:radial-gradient(ellipse at center,rgba(0,0,0,.1) 0%,transparent 70%);
    margin-top:-16px; flex-shrink:0;
}
.machine-hint {
    display:flex; align-items:center; gap:8px;
    color:var(--gray-400);
    font-size:14px; font-family:var(--font-display); font-weight:500;
    margin-top:8px;
    transition:opacity .5s var(--ease);
    animation:hint-bob 2.5s ease-in-out infinite;
}
@keyframes hint-bob {
    0%,100% { opacity:.5; transform:translateX(0); }
    50%     { opacity:1;  transform:translateX(4px); }
}

/* --- Feature callouts --- */
.machine-features {
    display:grid; grid-template-columns:repeat(4,1fr);
    gap:32px; text-align:center;
}
.mf-dot {
    width:12px; height:12px; border-radius:50%;
    background:var(--c); margin:0 auto 14px;
    box-shadow:0 0 14px color-mix(in srgb,var(--c) 40%,transparent);
}
.mf-item h4 {
    font-family:var(--font-display); font-size:16px; font-weight:600;
    color:var(--dark); margin-bottom:6px;
}
.mf-item p { font-size:14px; color:var(--gray-500); line-height:1.5; }

.machine-features .reveal:nth-child(2) { transition-delay:.1s; }
.machine-features .reveal:nth-child(3) { transition-delay:.2s; }
.machine-features .reveal:nth-child(4) { transition-delay:.3s; }

/* Machine responsive */
@media (max-width:1024px) {
    .machine-features { grid-template-columns:repeat(2,1fr); gap:28px; }
}
@media (max-width:768px) {
    .machine-stage { width:360px; height:440px; perspective:1000px; }
    .machine-viewer { margin-bottom:48px; }
    .machine-features { grid-template-columns:repeat(2,1fr); gap:24px; }
}
@media (max-width:480px) {
    .machine-stage { width:300px; height:380px; }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion:reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity:1; transform:none; }
}
