/* ========================================
   iTailors — Light, Warm, Trustworthy
   ======================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #fafafa;
    --bg-white: #ffffff;
    --bg-warm: #f7f5f2;
    --bg-section: #f1eeeb;
    --border: #e8e5e1;
    --border-hover: #d5d0cb;
    --text: #1a1a1a;
    --text-secondary: #5a5a5a;
    --text-muted: #8a8a8a;
    --blue: #4f46e5;
    --blue-light: #eef2ff;
    --blue-bg: rgba(79,70,229,.06);
    --purple: #7c3aed;
    --purple-bg: rgba(124,58,237,.06);
    --teal: #0d9488;
    --teal-bg: rgba(13,148,136,.06);
    --amber: #d97706;
    --amber-bg: rgba(217,119,6,.06);
    --green: #16a34a;
    --green-light: #f0fdf4;
    --red: #dc2626;
    --red-light: #fef2f2;
    --font: 'Inter', -apple-system, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
    --shadow-xl: 0 20px 60px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.04);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
::selection { background: rgba(79,70,229,.12); color: var(--blue); }
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ======= NAVBAR ======= */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; transition: all .4s var(--ease); }
.navbar.scrolled { padding: 10px 0; background: rgba(255,255,255,.9); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.nav-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; z-index: 1001; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--blue); color: white; font-family: var(--font-display); font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.logo-text { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: .88rem; font-weight: 500; color: var(--text-secondary); transition: color .3s; }
.nav-link:hover { color: var(--text); }
.btn-nav { font-size: .88rem; font-weight: 600; padding: 9px 22px; border-radius: 10px; background: var(--blue); color: white !important; border: none; cursor: pointer; transition: all .3s var(--ease); box-shadow: 0 2px 8px rgba(79,70,229,.2); }
.btn-nav:hover { background: #4338ca; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(79,70,229,.3); }
.nav-phone { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--text-secondary); margin-right: 8px; transition: color .3s; }
.nav-phone:hover { color: var(--blue); }
.navbar:not(.scrolled) .nav-phone { color: rgba(255,255,255,.7); }
.navbar:not(.scrolled) .nav-phone:hover { color: #fff; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.lang-btn { background: none; border: none; cursor: pointer; font-family: inherit; font-size: .82rem; font-weight: 600; color: var(--text-muted); padding: 4px 6px; border-radius: 6px; transition: color .2s, background .2s; }
.lang-btn:hover { color: var(--text); }
.lang-btn.active { color: var(--blue); background: var(--blue-bg); }
.lang-sep { color: var(--text-muted); opacity: .4; font-size: .8rem; }
.navbar:not(.scrolled) .lang-btn { color: rgba(255,255,255,.6); }
.navbar:not(.scrolled) .lang-btn:hover { color: #fff; }
.navbar:not(.scrolled) .lang-btn.active { color: #fff; background: rgba(255,255,255,.12); }
.navbar:not(.scrolled) .lang-sep { color: rgba(255,255,255,.3); }
.cc-static { cursor: default; }
.cc-static:hover { color: inherit !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 1001; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); transition: all .3s var(--ease); border-radius: 2px; }

/* ======= COMMON ======= */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); margin-bottom: 14px; padding: 6px 14px; border-radius: 100px; background: var(--blue-light); }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 16px; color: var(--text); }
.highlight { background: linear-gradient(135deg, var(--blue), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* ======= BUTTONS ======= */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 12px; font-size: .92rem; font-weight: 600; font-family: var(--font); cursor: pointer; border: none; transition: all .35s var(--ease); }
.btn-primary { background: var(--blue); color: white; box-shadow: 0 2px 12px rgba(79,70,229,.2); }
.btn-primary:hover { background: #4338ca; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(79,70,229,.3); }
.btn-glow { box-shadow: 0 4px 20px rgba(79,70,229,.3); }
.btn-glow:hover { box-shadow: 0 8px 32px rgba(79,70,229,.4); }
.btn-white { background: rgba(255,255,255,.9); color: var(--text); border: 1.5px solid rgba(255,255,255,.5); backdrop-filter: blur(8px); }
.btn-white:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-hover); background: var(--bg-white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 16px 32px; font-size: .95rem; }
.btn-full { width: 100%; justify-content: center; }

/* ======= ANIMATIONS ======= */
.animate-in { opacity: 0; transform: translateY(28px); animation: fadeInUp .7s var(--ease) forwards; }
.animate-in:nth-child(1){animation-delay:.1s} .animate-in:nth-child(2){animation-delay:.2s}
.animate-in:nth-child(3){animation-delay:.35s} .animate-in:nth-child(4){animation-delay:.45s}
.animate-in:nth-child(5){animation-delay:.55s} .animate-in:nth-child(6){animation-delay:.65s}
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.animate-on-scroll { opacity: 0; transform: translateY(36px); transition: all .65s var(--ease); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ======= HERO ======= */
.hero {
    position: relative; padding: 160px 0 100px; overflow: hidden;
    background: linear-gradient(165deg, #0f0a2e 0%, #1a1145 30%, #241863 55%, #1e1250 80%, #0d0820 100%);
    color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.hero-gradient-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5;
    animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; top: -10%; right: -5%; background: radial-gradient(circle, rgba(99,102,241,.45), transparent 70%); animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; bottom: -5%; left: 10%; background: radial-gradient(circle, rgba(6,182,212,.3), transparent 70%); animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; top: 40%; left: 50%; background: radial-gradient(circle, rgba(139,92,246,.25), transparent 70%); animation-delay: -8s; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -15px) scale(1.05); }
    66% { transform: translate(-15px, 10px) scale(0.95); }
}

.hero-grid-pattern {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}
.hero-noise {
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: .5;
}

/* Floating shapes */
.hero-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.h-shape {
    position: absolute; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.08);
    animation: shapeFloat 15s ease-in-out infinite;
}
.shape-1 { width: 80px; height: 80px; top: 15%; left: 8%; border-radius: 20px; transform: rotate(25deg); animation-delay: 0s; }
.shape-2 { width: 50px; height: 50px; top: 65%; left: 15%; animation-delay: -3s; border: 1.5px solid rgba(99,102,241,.15); }
.shape-3 { width: 120px; height: 120px; top: 20%; right: 12%; border-radius: 30px; transform: rotate(-15deg); animation-delay: -6s; border: 1.5px solid rgba(6,182,212,.1); }
.shape-4 { width: 40px; height: 40px; bottom: 20%; right: 25%; animation-delay: -9s; background: rgba(139,92,246,.06); }
.shape-5 { width: 65px; height: 65px; bottom: 30%; left: 40%; border-radius: 16px; transform: rotate(40deg); animation-delay: -12s; border: 1.5px solid rgba(255,255,255,.05); }
@keyframes shapeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-12px) rotate(5deg); }
    50% { transform: translateY(5px) rotate(-3deg); }
    75% { transform: translateY(-8px) rotate(2deg); }
}

/* Hero content — centered */
.hero .container { position: relative; z-index: 2; }
.hero-center { text-align: center; max-width: 780px; margin: 0 auto 60px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 20px; border-radius: 100px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
    font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.8);
    margin-bottom: 28px; backdrop-filter: blur(8px);
}
.hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 100px; font-size: .8rem; font-weight: 600; backdrop-filter: blur(8px); }
.badge-urgent { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.2); color: #fca5a5; }
.badge-funding { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.2); color: #86efac; }
.badge-pulse { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,.5); animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot { 0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,.4)} 50%{box-shadow:0 0 0 8px rgba(239,68,68,0)} }

.hero-title {
    font-family: var(--font-display); font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 900; letter-spacing: -.04em; line-height: 1.1;
    margin-bottom: 24px; color: #fff;
}
.hero-typed-line { display: block; }
.typed-word {
    background: linear-gradient(135deg, #818cf8, #a78bfa, #22d3ee);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.typed-cursor {
    display: inline-block; width: 3px; height: .85em; background: #818cf8;
    margin-left: 4px; vertical-align: text-bottom; border-radius: 2px;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-subtitle {
    font-size: 1.15rem; color: rgba(255,255,255,.6); line-height: 1.8;
    max-width: 560px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 0; }

/* Floating metric cards */
.hero-cards {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    max-width: 920px; margin: 0 auto 48px;
}
.hero-card {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px; border-radius: 16px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: all .4s var(--ease);
}
.hero-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.15); }

.hc-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hc-green { background: rgba(34,197,94,.15); color: #4ade80; }
.hc-blue { background: rgba(99,102,241,.15); color: #818cf8; }
.hc-purple { background: rgba(139,92,246,.15); color: #a78bfa; }
.hc-teal { background: rgba(6,182,212,.15); color: #22d3ee; }

.hc-body { min-width: 0; }
.hc-val { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.hc-label { display: block; font-size: .72rem; color: rgba(255,255,255,.45); line-height: 1.3; }

/* Trust bar */
.hero-source { text-align: center; font-size: .7rem; color: rgba(255,255,255,.25); margin-top: 20px; font-style: italic; }

.hero-trust {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    flex-wrap: wrap; padding-top: 8px;
}
.ht-label { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .08em; }
.ht-items { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.ht-items span { font-size: .82rem; color: rgba(255,255,255,.55); font-weight: 500; }

/* Navbar on dark hero — light text */
.navbar:not(.scrolled) .logo-text { color: #fff; }
.navbar:not(.scrolled) .logo-mark { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.1); }
.navbar:not(.scrolled) .nav-link { color: rgba(255,255,255,.7); }
.navbar:not(.scrolled) .nav-link:hover { color: #fff; }
.navbar:not(.scrolled) .nav-link::after { background: linear-gradient(135deg, #818cf8, #22d3ee); }
.navbar:not(.scrolled) .nav-toggle span { background: #fff; }

/* ======= PROOF STRIP ======= */
.proof-strip { padding: 40px 0 32px; background: var(--bg-white); border-bottom: 1px solid var(--border); }
.proof-row { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.proof-item { text-align: center; }
.proof-val { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.proof-label { display: block; font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.proof-sep { width: 1px; height: 36px; background: var(--border); }
.proof-footnote { text-align: center; font-size: .7rem; color: var(--text-muted); margin-top: 20px; font-style: italic; }

/* ======= PROBLEMS ======= */
.problems { padding: 100px 0; background: var(--bg-white); }
.problems-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.desc-source { font-size: .82rem; color: var(--text-muted); font-weight: 400; font-style: italic; }

.problem-card {
    padding: 36px 32px; border-radius: 18px; background: var(--bg-white); border: 1px solid var(--border);
    transition: all .4s var(--ease); position: relative;
}
.problem-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-hover); }

.problem-icon-wrap {
    width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: var(--blue-light); color: var(--blue); margin-bottom: 20px;
    transition: transform .4s var(--ease);
}
.problem-card:hover .problem-icon-wrap { transform: scale(1.08); }
.problem-icon-wrap.icon-purple { background: var(--purple-bg); color: var(--purple); }
.problem-icon-wrap.icon-amber { background: var(--amber-bg); color: var(--amber); }
.problem-icon-wrap.icon-teal { background: var(--teal-bg); color: var(--teal); }

.problem-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.problem-card p { font-size: .88rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.problem-solution {
    display: flex; align-items: center; gap: 8px;
    font-size: .85rem; font-weight: 600; color: var(--blue);
    padding-top: 16px; border-top: 1px solid var(--border);
}
.ps-arrow { color: var(--blue); font-size: 1.1rem; flex-shrink: 0; }

/* ======= SOLUTIONS ======= */
.solutions { padding: 100px 0; }
.solutions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.solution-card {
    padding: 36px 30px; border-radius: 18px; background: var(--bg-white);
    border: 1px solid var(--border); transition: all .4s var(--ease); position: relative;
}
.solution-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.solution-card.featured { border-color: rgba(79,70,229,.2); box-shadow: 0 4px 20px rgba(79,70,229,.06); }
.solution-card.featured:hover { box-shadow: 0 12px 40px rgba(79,70,229,.12); }

.solution-badge { position: absolute; top: 20px; right: 20px; padding: 4px 12px; border-radius: 100px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: rgba(239,68,68,.08); color: var(--red); border: 1px solid rgba(239,68,68,.12); }
.solution-badge.popular { background: var(--blue-light); color: var(--blue); border: 1px solid rgba(79,70,229,.12); }

.sol-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 14px; margin-bottom: 20px; transition: transform .4s; }
.solution-card:hover .sol-icon { transform: scale(1.08); }
.sol-icon-blue { background: var(--blue-light); color: var(--blue); }
.sol-icon-purple { background: var(--purple-bg); color: var(--purple); }
.sol-icon-teal { background: var(--teal-bg); color: var(--teal); }
.sol-icon-amber { background: var(--amber-bg); color: var(--amber); }

.solution-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.solution-card > p { font-size: .88rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 18px; }
.sol-features { list-style: none; margin-bottom: 20px; }
.sol-features li { padding: 5px 0; font-size: .86rem; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.sol-features li::before { content: '✓'; color: var(--green); font-weight: 700; font-size: .85rem; }
.sol-result { padding: 10px 14px; border-radius: 10px; background: var(--blue-light); font-size: .84rem; color: var(--text-secondary); }
.sol-result strong { color: var(--blue); }
.solutions-note { text-align: center; font-size: .88rem; color: var(--text-muted); margin-top: 32px; max-width: 620px; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* ======= AUTOMATIONS (was AI Tools) ======= */
.automations { padding: 100px 0; background: var(--bg-white); }

.auto-demo {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    border-radius: 20px; overflow: hidden; background: var(--bg-white);
    border: 1px solid var(--border); box-shadow: var(--shadow-lg); margin-bottom: 32px;
}
.auto-demo-content { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.auto-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--purple); margin-bottom: 14px; }
.auto-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse-ai 2s ease-in-out infinite; }
@keyframes pulse-ai { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.3)} 50%{box-shadow:0 0 0 8px rgba(34,197,94,0)} }
.auto-demo-content h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.auto-demo-content p { font-size: .92rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.auto-metrics { display: flex; gap: 24px; }
.auto-metric { display: flex; flex-direction: column; }
.am-val { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--blue); }
.am-label { font-size: .72rem; color: var(--text-muted); }

/* Chat window */
.auto-demo-chat { background: var(--bg-warm); padding: 28px; display: flex; align-items: center; border-left: 1px solid var(--border); }
.chat-window { width: 100%; border-radius: 16px; overflow: hidden; background: var(--bg-white); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.chat-header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.ch-avatar { width: 32px; height: 32px; border-radius: 8px; background: var(--blue); color: white; font-family: var(--font-display); font-weight: 800; font-size: .7rem; display: flex; align-items: center; justify-content: center; }
.ch-info { display: flex; flex-direction: column; }
.ch-name { font-size: .82rem; font-weight: 700; }
.ch-status { font-size: .7rem; color: var(--green); font-weight: 500; display: flex; align-items: center; gap: 4px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.chat-messages { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 10px 14px; border-radius: 12px; font-size: .84rem; line-height: 1.55; max-width: 85%; }
.msg-small { padding: 8px 12px; font-size: .8rem; }
.msg-user { background: var(--blue); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-bot { background: var(--bg); align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid var(--border); }
.bot-typing { display: flex; gap: 4px; padding: 2px 0; }
.bot-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: bDot 1.4s ease-in-out infinite; }
.bot-typing span:nth-child(2) { animation-delay: .2s; }
.bot-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes bDot { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-4px)} }
.bot-typing.hidden { display: none; }
.bot-text { display: none; }
.bot-text.visible { display: inline; }

/* Agent-specific styles */
.agent-avatar { background: linear-gradient(135deg, var(--blue), var(--purple)) !important; }
.agent-window { border-color: rgba(79,70,229,.15); }

.msg-agent { background: var(--bg); align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid var(--border); padding: 14px 16px; max-width: 92%; }

.agent-thinking {
    display: flex; align-items: center; gap: 8px;
    font-size: .82rem; color: var(--text-muted); font-weight: 500;
}
.agent-spinner {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid var(--border); border-top-color: var(--blue);
    animation: agentSpin .8s linear infinite;
}
@keyframes agentSpin { to { transform: rotate(360deg); } }
.agent-thinking.hidden { display: none; }

.agent-steps { display: none; flex-direction: column; gap: 6px; }
.agent-steps.visible { display: flex; }

.agent-step {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: .82rem; color: var(--text-secondary); line-height: 1.5;
    opacity: 0; transform: translateY(6px);
    animation: stepIn .4s var(--ease) forwards;
}
.agent-step:nth-child(1) { animation-delay: 0s; }
.agent-step:nth-child(2) { animation-delay: .4s; }
.agent-step:nth-child(3) { animation-delay: .8s; }
.agent-step:nth-child(4) { animation-delay: 1.2s; }
.agent-step:nth-child(5) { animation-delay: 1.6s; }
.agent-step:nth-child(6) { animation-delay: 2s; }
@keyframes stepIn { to { opacity: 1; transform: translateY(0); } }

.as-icon { flex-shrink: 0; font-size: .75rem; }
.as-check { color: var(--green); font-weight: 700; }
.agent-step strong { color: var(--text); }

.agent-result {
    margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
    font-size: .85rem; color: var(--text); font-weight: 500; line-height: 1.6;
    opacity: 0; animation: stepIn .5s var(--ease) 2.6s forwards;
}

/* Automation cards grid */
.auto-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.auto-card {
    padding: 28px 24px; border-radius: 16px; background: var(--bg);
    border: 1px solid var(--border); transition: all .4s var(--ease);
}
.auto-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ac-icon-wrap { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.ac-blue { background: var(--blue-light); color: var(--blue); }
.ac-purple { background: var(--purple-bg); color: var(--purple); }
.ac-amber { background: var(--amber-bg); color: var(--amber); }
.ac-teal { background: var(--teal-bg); color: var(--teal); }
.auto-card h4 { font-family: var(--font-display); font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.auto-card p { font-size: .82rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.ac-saving { font-size: .78rem; font-weight: 600; color: var(--green); }

/* ======= TRUST SECTION ======= */
.trust-section { padding: 100px 0; }

/* Founder note */
.founder-note {
    display: flex; gap: 32px; align-items: flex-start;
    padding: 40px 44px; border-radius: 20px;
    background: linear-gradient(135deg, #f8f6ff, #eef2ff); border: 1px solid rgba(79,70,229,.08);
    box-shadow: var(--shadow-md);
}
.fn-photo-placeholder {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--blue); color: white;
    font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79,70,229,.2);
}
.fn-content blockquote {
    font-size: 1.02rem; color: var(--text-secondary); line-height: 1.8;
    font-style: italic; margin-bottom: 16px; border: none; padding: 0;
}
.fn-author strong { display: block; font-size: .92rem; color: var(--text); }
.fn-author span { font-size: .8rem; color: var(--text-muted); }

/* Guarantees */
.guarantees-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guarantee-card {
    padding: 28px 24px; border-radius: 16px; background: var(--bg-white);
    border: 1px solid var(--border); transition: all .4s var(--ease);
}
.guarantee-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-hover); }
.gc-icon {
    width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center;
    justify-content: center; margin-bottom: 14px;
}
.gc-green { background: var(--green-light); color: var(--green); }
.gc-blue { background: var(--blue-light); color: var(--blue); }
.gc-purple { background: var(--purple-bg); color: var(--purple); }
.gc-amber { background: var(--amber-bg); color: var(--amber); }
.gc-teal { background: var(--teal-bg); color: var(--teal); }
.gc-rose { background: rgba(236,72,153,.06); color: #ec4899; }
.guarantee-card h4 { font-family: var(--font-display); font-size: .95rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.guarantee-card p { font-size: .84rem; color: var(--text-secondary); line-height: 1.6; }

/* Testimonial */
.testimonial {
    text-align: center; padding: 40px; border-radius: 20px;
    background: var(--bg-white); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.tst-stars { font-size: 1.1rem; color: #f59e0b; letter-spacing: 3px; margin-bottom: 16px; }
.testimonial blockquote {
    font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8;
    font-style: italic; max-width: 700px; margin: 0 auto 24px; border: none; padding: 0;
}
.tst-author { display: flex; align-items: center; gap: 12px; justify-content: center; }
.tst-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--teal); color: white;
    font-family: var(--font-display); font-weight: 700; font-size: .75rem;
    display: flex; align-items: center; justify-content: center;
}
.tst-info { text-align: left; }
.tst-info strong { display: block; font-size: .88rem; color: var(--text); }
.tst-info span { font-size: .78rem; color: var(--text-muted); }

/* Micro-trust on solution cards */
.sol-trust { font-size: .75rem; color: var(--green); font-weight: 600; margin-top: 8px; }

/* Guarantee badge in proof strip */
.guarantee-val { color: var(--green); }

/* ======= FUNDING ======= */
.funding { padding: 100px 0; }
.funding-card { border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, #eef2ff, #f3e8ff); border: 1px solid rgba(79,70,229,.1); box-shadow: var(--shadow-lg); }
.funding-layout { display: grid; grid-template-columns: 1.3fr 1fr; }
.funding-content { padding: 52px 48px; }
.funding-flag { font-size: 2.2rem; margin-bottom: 16px; }
.funding-content h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 14px; color: var(--text); }
.funding-content > p { font-size: .92rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.funding-checks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.fc-item { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 500; }
.fc-check { color: var(--green); font-weight: 700; }

.funding-sidebar { padding: 48px 40px; background: rgba(255,255,255,.5); display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid rgba(79,70,229,.06); }
.fund-big-number { text-align: center; margin-bottom: 28px; }
.fbn-val { display: block; font-family: var(--font-display); font-size: 4rem; font-weight: 900; background: linear-gradient(135deg, var(--blue), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.fbn-label { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }

.fund-programs { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.fund-prog { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 10px; background: var(--bg-white); border: 1px solid var(--border); }
.fp-name { font-size: .8rem; font-weight: 600; }
.fp-badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 10px; border-radius: 100px; }
.fp-badge.active { background: var(--green-light); color: var(--green); }
.fp-badge.soon { background: rgba(217,119,6,.08); color: var(--amber); }
.fp-badge.info { background: var(--blue-light); color: var(--blue); }
.fund-note { font-size: .72rem; color: var(--text-muted); text-align: center; margin-top: 16px; font-style: italic; }

/* ======= RESULTS ======= */
.results { padding: 100px 0; background: var(--bg-white); }
.case-study { border-radius: 20px; overflow: hidden; background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.cs-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; padding: 44px; align-items: start; }
.cs-col-label { display: inline-block; padding: 5px 14px; border-radius: 100px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.cs-col-label.before { background: var(--red-light); color: var(--red); }
.cs-col-label.after { background: var(--green-light); color: var(--green); }
.cs-before ul, .cs-after ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cs-before li, .cs-after li { font-size: .88rem; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.x-mark { color: var(--red); font-weight: 700; }
.check-mark { color: var(--green); font-weight: 700; }

.cs-arrow-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 40px; }
.cs-arrow { width: 52px; height: 52px; border-radius: 50%; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.cs-time { font-size: .75rem; font-weight: 700; color: var(--text-muted); }

.cs-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.csm { text-align: center; padding: 28px; border-right: 1px solid var(--border); }
.csm:last-child { border-right: none; }
.csm-val { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--blue); margin-bottom: 2px; }
.csm-label { font-size: .78rem; color: var(--text-muted); }

/* ======= PROCESS ======= */
.process { padding: 100px 0; }
.steps-grid { display: flex; align-items: stretch; gap: 0; }
.step-card {
    flex: 1; text-align: center; padding: 32px 22px; border-radius: 18px; background: var(--bg-white);
    border: 1px solid var(--border); transition: all .4s var(--ease);
    display: flex; flex-direction: column;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; background: linear-gradient(135deg, var(--blue), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; opacity: .15; line-height: 1; margin-bottom: 8px; }
.step-card:hover .step-num { opacity: .3; }
.step-icon-wrap { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; transition: transform .4s var(--ease); }
.step-card:hover .step-icon-wrap { transform: scale(1.1); }
.si-blue { background: var(--blue-light); color: var(--blue); }
.si-purple { background: var(--purple-bg); color: var(--purple); }
.si-teal { background: var(--teal-bg); color: var(--teal); }
.si-green { background: var(--green-light); color: var(--green); }
.step-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: .84rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 14px; flex: 1; }
.step-time { font-size: .75rem; font-weight: 700; color: var(--blue); margin-top: auto; }

.step-connector { display: flex; align-items: center; padding-top: 60px; }
.step-connector span { width: 24px; height: 2px; background: var(--border); display: block; }

/* ======= CONTACT ======= */
.contact { padding: 100px 0; background: var(--bg-white); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-text { font-size: 1.02rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }
.contact-benefits { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.cb { font-size: .9rem; font-weight: 600; color: var(--green); }
.contact-channels { display: flex; flex-direction: column; gap: 10px; }
.cc-item { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--text-secondary); transition: color .3s; }
.cc-item:hover { color: var(--blue); }
.cc-item svg { color: var(--text-muted); }

.contact-form { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 20px; background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px; font-size: .9rem; font-family: var(--font); color: var(--text);
    background: var(--bg-white); border: 1px solid var(--border); border-radius: 10px; outline: none;
    transition: all .3s; resize: none;
}
.form-group select { cursor: pointer; -webkit-appearance: none; appearance: none; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,70,229,.08); }
.form-note { font-size: .73rem; color: var(--text-muted); text-align: center; }

/* ======= FOOTER ======= */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-tagline { color: var(--text-muted); font-size: .85rem; margin-top: 14px; }
.footer-legal { font-size: .72rem; color: var(--text-muted); margin-top: 8px; opacity: .7; }
.footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1fr; }
.footer-col h4 { font-family: var(--font-display); font-size: .85rem; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; font-size: .84rem; color: var(--text-muted); margin-bottom: 10px; transition: color .3s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: .8rem; color: var(--text-muted); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--text-muted); transition: color .3s; display: flex; }
.footer-social a:hover { color: var(--text); }

/* ======= RESPONSIVE ======= */
@media (max-width: 1200px) {
    .nav-links { gap: 20px; }
    .nav-link { font-size: .85rem; }
    .btn-nav { padding: 9px 18px; font-size: .85rem; }
    .nav-phone { display: none; }
}

@media (max-width: 1024px) {
    .hero-cards { grid-template-columns: repeat(2, 1fr); max-width: 600px; }
    .auto-demo { grid-template-columns: 1fr; }
    .auto-demo-chat { border-left: none; border-top: 1px solid var(--border); }
    .funding-layout { grid-template-columns: 1fr; }
    .funding-sidebar { border-left: none; border-top: 1px solid rgba(79,70,229,.06); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }

    /* Mobile nav kicks in at 1024 to avoid cramped desktop */
    .nav-links {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background-color: #ffffff !important;
        background-image: none !important;
        flex-direction: column; justify-content: center; align-items: center;
        gap: 22px; opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity .3s var(--ease), visibility .3s;
        z-index: 1050; padding: 80px 24px 24px;
        overflow-y: auto;
    }
    .nav-links.open { opacity: 1; visibility: visible; pointer-events: all; }
    body:has(.nav-links.open) .navbar { background: #ffffff !important; }
    .nav-link { font-size: 1.1rem; color: var(--text) !important; }
    .btn-nav { font-size: 1rem; padding: 12px 28px; }
    .lang-switch { margin-left: 0; margin-top: 12px; gap: 10px; }
    .lang-btn { font-size: .95rem; padding: 6px 12px; color: var(--text-secondary) !important; }
    .lang-btn.active { color: var(--blue) !important; background: var(--blue-bg) !important; }
    .nav-toggle { display: flex; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

@media (max-width: 768px) {
    /* Disable heavy GPU effects on mobile for smooth scroll */
    .hero-gradient-orb { animation: none !important; filter: blur(40px); opacity: .35; }
    .hero-grid-pattern, .hero-noise, .hero-shapes { display: none; }
    .navbar.scrolled { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: #ffffff !important; }
    .animate-on-scroll { transition: opacity .4s ease, transform .4s ease; }
    * { -webkit-tap-highlight-color: transparent; }

    .container { padding: 0 20px; }
    .hero { padding: 130px 0 80px; }
    .hero-title { font-size: clamp(1.9rem, 6vw, 2.6rem); }
    .hero-subtitle { font-size: .98rem; }
    .hero-cards { grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
    .hero-actions { gap: 12px; flex-wrap: wrap; justify-content: center; }
    .proof-row { gap: 20px; }
    .proof-sep { display: none; }
    .section-header { margin-bottom: 44px; }
    .problems-grid { grid-template-columns: 1fr; }
    .solutions-grid { grid-template-columns: 1fr; }
    .auto-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .guarantees-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .cs-top { grid-template-columns: 1fr; gap: 20px; }
    .cs-arrow-wrap { flex-direction: row; }
    .cs-arrow svg { transform: rotate(90deg); }
    .cs-metrics { grid-template-columns: 1fr 1fr; }
    .csm { border-bottom: 1px solid var(--border); }
    .steps-grid { flex-direction: column; gap: 12px; }
    .step-connector { display: none; }
    .contact-layout { grid-template-columns: 1fr; gap: 36px; }
    .contact-form { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .ai-metrics, .auto-metrics { flex-wrap: wrap; gap: 14px; }
    .founder-note { padding: 32px 24px; }
    .funding-content, .funding-sidebar { padding: 36px 28px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .hero-gradient-orb { animation: none !important; }
}

@media (max-width: 520px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
    .auto-grid { grid-template-columns: 1fr; }
    .guarantees-grid { grid-template-columns: 1fr; }
    .founder-note { flex-direction: column; text-align: center; }
    .fn-photo-placeholder { margin: 0 auto; }
    .cs-metrics { grid-template-columns: 1fr 1fr; }
    .hero-cards { grid-template-columns: 1fr; max-width: 340px; }
    .hero-shapes { display: none; }
    .funding-content, .funding-sidebar { padding: 28px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .footer-brand .logo { justify-content: center; }
    .footer-col a { text-align: center; }
    .solution-card, .problem-card, .guarantee-card, .auto-card, .step-card { padding: 24px; }
    .testimonial { padding: 28px 22px; }
    .case-study { padding: 28px 20px; }
    .logo-text { font-size: 1.05rem; }
    .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
    .proof-row { gap: 16px; }
    .proof-val { font-size: 1.05rem; }
    .nav-container { padding: 0 18px; }
}
