/* ============================================================
   GreenSafe Solutions — Design System
   Premium, bilingual (BG/EN), desktop + mobile
   ============================================================ */

:root {
    /* Palette */
    --forest-950: #142411;
    --forest-900: #1E2E1A;
    --forest-800: #2D4A27;
    --leaf-700: #3B7333;
    --leaf-600: #4B8F41;
    --leaf-500: #64b059;
    --cream-50:  #FBF9F1;
    --cream-100: #F4EFE0;
    --gold-400:  #C9A24B;
    --gold-300:  #DDBE7A;
    --ink:       #1A2518;
    --muted:     #556052;
    --white:     #FFFFFF;
    --line:      rgba(45, 74, 39, 0.12);

    /* Surfaces & shadows */
    --bg: var(--cream-50);
    --surface: var(--white);
    --shadow-sm: 0 2px 10px rgba(27, 50, 23, 0.05);
    --shadow-md: 0 8px 24px rgba(27, 50, 23, 0.08);
    --shadow-lg: 0 20px 50px rgba(27, 50, 23, 0.14);

    /* Shape & type */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 999px;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Montserrat', 'Manrope', sans-serif;

    --ios-gloss: linear-gradient(to bottom, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.15) 50%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.15) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--bg);
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--forest-800); line-height: 1.18; letter-spacing: -0.01em; }

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

a { color: var(--leaf-600); text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   Header / Navigation
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(251, 249, 241, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.nav-brand img { height: 44px; width: auto; }

.nav-brand .brand-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--leaf-600);
    border-left: 2px solid var(--leaf-500);
    padding-left: 10px;
    line-height: 1.3;
    max-width: 130px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    list-style: none;
}

.nav-links a {
    padding: 9px 12px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--forest-800);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav-links a:hover { background: rgba(75, 143, 65, 0.12); color: var(--leaf-700); }
.nav-links a.active { background: var(--forest-800); color: var(--white) !important; }

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--cream-100);
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    padding: 3px;
    margin: 0 6px;
}

.lang-toggle button {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
}

.lang-toggle button.active { background: var(--forest-800); color: var(--white); box-shadow: var(--shadow-sm); }

.nav-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: 6px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2.4px;
    background: var(--forest-800);
    border-radius: 2px;
    margin: 4.5px 0;
    transition: transform 0.25s, opacity 0.25s;
}

/* ============================================================
   Buttons — iOS glossy brand signature
   ============================================================ */

.btn-ios {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 26px;
    background-color: var(--leaf-600);
    color: var(--white) !important;
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(75, 143, 65, 0.38), inset 0 -3px 0 rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.45);
    text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
    transition: transform 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s;
}

.btn-ios::before { content: ''; position: absolute; inset: 0; background: var(--ios-gloss); pointer-events: none; }

.btn-ios:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(75, 143, 65, 0.45), inset 0 -3px 0 rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.45); }

.btn-ios:active { transform: scale(0.96); box-shadow: 0 2px 6px rgba(75, 143, 65, 0.3), inset 0 -1px 0 rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2); }

.btn-ios.dark { background-color: var(--forest-800); box-shadow: 0 4px 14px rgba(45, 74, 39, 0.3), inset 0 -3px 0 rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-ios.dark:hover { box-shadow: 0 7px 20px rgba(45, 74, 39, 0.38), inset 0 -3px 0 rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.3); }

.btn-ios.gold { background-color: var(--gold-400); box-shadow: 0 4px 14px rgba(201, 162, 75, 0.35), inset 0 -3px 0 rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.5); }
.btn-ios.gold:hover { box-shadow: 0 7px 20px rgba(201, 162, 75, 0.45), inset 0 -3px 0 rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.5); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    background: transparent;
    color: var(--forest-800) !important;
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 700;
    border: 1.6px solid rgba(45, 74, 39, 0.25);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost:hover { border-color: var(--leaf-600); background: rgba(75, 143, 65, 0.06); }

.btn-ghost.light { color: var(--white) !important; border-color: rgba(255,255,255,0.4); }
.btn-ghost.light:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ============================================================
   Badges & section titles
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(75, 143, 65, 0.12);
    color: var(--leaf-700);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
}

.badge.gold { background: rgba(201, 162, 75, 0.16); color: #8a6a24; }

.section-title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-sub { color: var(--muted); font-size: 15.5px; max-width: 620px; }

.section-head { margin-bottom: 34px; }

.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
    position: relative;
    padding: 72px 0 88px;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(75, 143, 65, 0.14), transparent 60%),
        radial-gradient(900px 400px at -10% 20%, rgba(201, 162, 75, 0.10), transparent 55%),
        linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(45, 74, 39, 0.055) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 70%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 70%);
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.hero-badge { margin-bottom: 18px; }

.hero h1 {
    font-size: clamp(36px, 5.4vw, 58px);
    font-weight: 800;
    color: var(--forest-900);
    margin-bottom: 18px;
    letter-spacing: -0.015em;
}

.hero h1 em {
    font-style: normal;
    color: var(--leaf-600);
    position: relative;
}

.hero p.lead { font-size: 17px; color: var(--muted); max-width: 540px; margin-bottom: 30px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-proof { display: flex; gap: 26px; margin-top: 36px; flex-wrap: wrap; }

.proof-item .num { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--forest-800); }
.proof-item .lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; }

.hero-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.hero-card .logo-wide { width: min(300px, 90%); margin: 0 auto 20px; }

.hero-scan-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--leaf-600), var(--leaf-500));
    color: var(--white) !important;
    font-size: 16.5px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(75, 143, 65, 0.45);
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
}

.hero-scan-link::after {
    content: 'Ново!';
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffd166, #ffb020);
    color: var(--forest-900);
    padding: 5px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 3px 10px rgba(255, 176, 32, 0.45);
    animation: scanPulse 1.8s ease-in-out infinite;
}

html[lang="en"] .hero-scan-link::after { content: 'New!'; }

.hero-scan-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(75, 143, 65, 0.5);
}

@keyframes scanPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

/* ============================================================
   Cards & grids
   ============================================================ */

.grid { display: grid; gap: 22px; }

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

/* Asymmetric two-column splits (used on Services/Contacts/About) */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.split-alt { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.split-ct { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: start; }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card .icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(75, 143, 65, 0.12);
    font-size: 24px;
    margin-bottom: 16px;
}

.card h3 { font-family: var(--font-body); font-size: 18px; font-weight: 800; color: var(--forest-800); margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); }

.card.dark { background: linear-gradient(140deg, var(--forest-900), var(--forest-800)); border-color: transparent; }
.card.dark h3 { color: var(--white); }
.card.dark p { color: rgba(255,255,255,0.78); }
.card.dark .icon { background: rgba(255,255,255,0.12); }

.card-meta { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--leaf-700); font-weight: 600; }

/* ============================================================
   Forms
   ============================================================ */

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--forest-800);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(45, 74, 39, 0.18);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus { border-color: var(--leaf-600); box-shadow: 0 0 0 3px rgba(75, 143, 65, 0.12); }

/* ============================================================
   Bottom dock (mobile) & chatbot bubble
   ============================================================ */

.bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    display: flex;
    gap: 12px;
    z-index: 2000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.dock-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-body);
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.3);
    text-shadow: 0 -1px 0 rgba(0,0,0,0.15);
}

.dock-btn::before { content: ''; position: absolute; inset: 0; background: var(--ios-gloss); pointer-events: none; }
.dock-btn-call { background-color: var(--leaf-600); }
.dock-btn-mail { background-color: var(--forest-800); }

.chat-bubble {
    position: fixed;
    right: 20px;
    bottom: 104px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--leaf-500), var(--leaf-700));
    box-shadow: 0 6px 20px rgba(59, 115, 51, 0.45), inset 0 1px 0 rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1900;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.chat-bubble:hover { transform: scale(1.06); }
.chat-bubble:active { transform: scale(0.94); }

.chat-bubble svg { width: 27px; height: 27px; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    background: var(--forest-950);
    color: rgba(255,255,255,0.7);
    padding: 56px 0 30px;
    margin-top: 70px;
    font-size: 14px;
}

.site-footer a { color: rgba(255,255,255,0.85); }

.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }

.footer-brand img { height: 40px; margin-bottom: 14px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,0.45); }

/* ============================================================
   Scroll reveal
   ============================================================ */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Demo page extras
   ============================================================ */

.demo-section { padding: 56px 0; border-top: 1px dashed var(--line); }
.demo-section:first-of-type { border-top: none; }

.swatch-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }

.swatch {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.swatch .color { height: 74px; }

.swatch .meta { background: var(--white); padding: 9px 12px; font-size: 12px; }
.swatch .meta strong { display: block; font-size: 13px; color: var(--ink); }
.swatch .meta span { color: var(--muted); font-family: 'Consolas', monospace; font-size: 11px; }

.type-row { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.type-row:last-child { border-bottom: none; }
.type-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

.phone-frame {
    width: 300px;
    border-radius: 38px;
    background: var(--bg);
    border: 9px solid var(--forest-950);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin: 0 auto;
}

.phone-frame .pf-header { display: flex; align-items: center; gap: 8px; padding: 12px; background: rgba(251,249,241,0.92); border-bottom: 1px solid var(--line); }
.phone-frame .pf-header img { height: 24px; }
.phone-frame .pf-body { padding: 16px; }
.phone-frame .pf-body .min-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow-sm); }
.phone-frame .pf-dock { display: flex; gap: 8px; padding: 10px 12px; background: rgba(255,255,255,0.94); border-top: 1px solid rgba(0,0,0,0.06); }
.phone-frame .pf-dock .mini { flex: 1; text-align: center; padding: 9px; border-radius: 8px; font-size: 11px; font-weight: 800; color: var(--white); }
.phone-frame .pf-dock .mini.c { background: var(--leaf-600); }
.phone-frame .pf-dock .mini.m { background: var(--forest-800); }

.demo-note { font-size: 13.5px; color: var(--muted); background: rgba(75, 143, 65, 0.07); border: 1px dashed rgba(75, 143, 65, 0.3); border-radius: var(--radius-md); padding: 12px 16px; margin-top: 22px; }

/* Home business teaser */
.biz-teaser { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; }

.biz-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; font-size: 12.5px; color: rgba(255,255,255,0.9); font-weight: 700; }

.biz-chip { background: rgba(255,255,255,0.08); border-radius: 10px; padding: 12px; }

/* ============================================================
   Chatbot panel
   ============================================================ */

.chat-panel {
    position: fixed;
    right: 20px;
    bottom: 176px;
    width: 340px;
    max-width: calc(100vw - 40px);
    height: 460px;
    max-height: calc(100vh - 230px);
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(18, 36, 15, 0.28);
    border: 1px solid var(--line);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1950;
}

.chat-panel.open { display: flex; animation: chatIn 0.22s ease; }

@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }

.chat-head {
    background: linear-gradient(140deg, var(--forest-900), var(--forest-800));
    color: var(--white);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-head .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.chat-head .wt { font-size: 14px; font-weight: 800; }
.chat-head .ws { font-size: 11.5px; color: rgba(255,255,255,0.65); }

.chat-close {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 6px;
}

.chat-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--cream-50);
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
}

.chat-msg.bot {
    background: var(--white);
    border: 1px solid rgba(45, 74, 39, 0.16);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    color: var(--ink);
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.chat-msg.user { background: var(--leaf-600); color: var(--white); border-bottom-right-radius: 4px; align-self: flex-end; }

.chat-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 10px 16px 8px;
    border-top: 1px dashed var(--line);
    background: var(--cream-50);
}

.chat-quick button {
    border: 1px solid rgba(75, 143, 65, 0.35);
    background: rgba(75, 143, 65, 0.08);
    color: var(--leaf-700);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.15s;
}

.chat-quick button:hover { background: var(--leaf-600); color: var(--white); }

.chat-input-row {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.chat-input-row input {
    flex: 1;
    border: 1px solid rgba(45, 74, 39, 0.18);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
}

.chat-input-row input:focus { border-color: var(--leaf-600); }

.chat-send {
    border: none;
    background: var(--leaf-600);
    color: var(--white);
    border-radius: 10px;
    padding: 0 16px;
    font-weight: 800;
    cursor: pointer;
    font-size: 15px;
}

.chat-dot { display: inline-flex; gap: 3px; }
.chat-dot span { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf-600); animation: blink 1.2s infinite; }
.chat-dot span:nth-child(2) { animation-delay: 0.2s; }
.chat-dot span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* ============================================================
   AI Scanner
   ============================================================ */

.scan-zone {
    border: 2px dashed rgba(75, 143, 65, 0.4);
    background: rgba(251, 249, 241, 0.6);
    border-radius: var(--radius-lg);
    padding: 46px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}

.scan-zone:hover, .scan-zone.dragover { border-color: var(--leaf-600); background: rgba(75, 143, 65, 0.06); }

.scan-zone.working { cursor: wait; }

.scan-glint { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, transparent, var(--leaf-500), transparent); box-shadow: 0 0 14px var(--leaf-500); display: none; }

.scan-zone.working .scan-glint { display: block; animation: scanAnim 1.8s infinite linear; }

@keyframes scanAnim { 0% { top: 0; } 50% { top: 100%; } 100% { top: 0; } }

.scan-cam-ico { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: rgba(75, 143, 65, 0.13); display: flex; align-items: center; justify-content: center; }

.scan-preview { margin-top: 16px; border-radius: var(--radius-md); overflow: hidden; max-width: 380px; margin-left: auto; margin-right: auto; box-shadow: var(--shadow-md); }
.scan-preview img { width: 100%; }

.scan-result { margin-top: 20px; animation: chatIn 0.25s ease; }

.conf-row { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; }
.conf-bar { flex: 1; height: 9px; border-radius: 5px; background: rgba(45,74,39,0.1); overflow: hidden; }
.conf-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--leaf-700), var(--leaf-500)); transition: width 0.8s ease; }

.danger-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: var(--radius-full); font-size: 12.5px; font-weight: 800; }
.danger-pill.high { background: rgba(194, 62, 62, 0.12); color: #b23a3a; }
.danger-pill.med  { background: rgba(201, 162, 75, 0.18); color: #8a6a24; }
.danger-pill.low  { background: rgba(75, 143, 65, 0.12); color: var(--leaf-700); }

.scan-note {
    background: rgba(201, 162, 75, 0.1);
    border: 1px dashed rgba(201, 162, 75, 0.5);
    border-radius: var(--radius-md);
    padding: 13px 16px;
    font-size: 13.5px;
    color: #6b531f;
    margin: 16px 0;
}

.scan-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.scan-actions .btn-ios { flex: 1; min-width: 160px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .split, .split-alt, .split-ct { grid-template-columns: 1fr; gap: 30px; }
    .biz-teaser { grid-template-columns: 1fr; gap: 28px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .biz-chips { grid-template-columns: 1fr; }
}

@media (max-width: 1500px) {
    .nav-brand .brand-tag { display: none; }
    .nav-links a { padding: 9px 10px; }
}

@media (max-width: 1280px) {
    .nav-links { position: fixed; inset: 0 0 auto 0; top: 64px; flex-direction: column; align-items: stretch; background: rgba(251,249,241,0.98); padding: 14px 20px 22px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform 0.3s ease; z-index: 999; }
    .nav-links.open { transform: translateY(0); }
    .nav-links a { display: block; padding: 13px 16px; border-radius: var(--radius-md); white-space: normal; }
    .nav-call { display: none; }
    .hamburger { display: block; }
    .nav-brand img { height: 36px; }
    .nav-brand .brand-tag { display: none; }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero { padding: 44px 0 56px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn-ios, .hero-cta .btn-ghost { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .type-row { grid-template-columns: 1fr; gap: 6px; }
    .bottom-dock { display: flex; }
    .chat-bubble { bottom: 100px; right: 16px; }
    .chat-panel { right: 16px; bottom: 172px; width: calc(100vw - 32px); max-height: calc(100vh - 180px); }
}
