:root {
  --navy: #0b1530;
  --navy-2: #111d3f;
  --accent: #ea580c;
  --accent-2: #fb923c;
  --text: #1e293b;
  --muted: #5b6b83;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --line: #e3e9f3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 21, 48, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: "Inter", system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: .5rem; }
p + p { margin-top: 1rem; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }
.grad { background: linear-gradient(90deg, var(--accent-2), #fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 10px; border: 0; font: inherit; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--accent), #c2410c); box-shadow: 0 6px 18px rgba(234, 88, 12, .3); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(234, 88, 12, .4); }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, .35); box-shadow: none; }
.btn-ghost:hover { border-color: var(--accent-2); box-shadow: none; }
.btn-light { background: #fff; color: var(--navy); box-shadow: none; }
.btn-wa { background: #16a34a; box-shadow: 0 6px 18px rgba(22, 163, 74, .3); margin-top: 1.5rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 21, 48, .92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-size: 1.15rem; }
.brand strong { font-weight: 800; }
.menu { display: flex; align-items: center; gap: 1.75rem; }
.menu a:not(.btn) { color: #cbd5e1; font-weight: 500; font-size: .95rem; }
.menu a:not(.btn):hover { color: #fff; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 80% -10%, #1e3a8a 0%, transparent 60%), var(--navy); color: #cbd5e1; padding: clamp(4rem, 9vw, 7rem) 0; }
.hero-glow { position: absolute; width: 520px; height: 520px; left: -160px; bottom: -260px; background: radial-gradient(circle, rgba(251, 146, 60, .25), transparent 65%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero .eyebrow { color: var(--accent-2); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; margin-bottom: 1.25rem; }
.lead { font-size: 1.12rem; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 1.75rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; font-size: .92rem; }
.hero-points li::before { content: "✓"; color: var(--accent-2); font-weight: 700; margin-right: .45rem; }
.code-window { background: #0f1b3d; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; transform: rotate(1.5deg); }
.dots { display: flex; gap: 6px; padding: 12px 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; }
.dots i:nth-child(2) { background: #f59e0b; }
.dots i:nth-child(3) { background: #22c55e; }
pre { padding: 1.25rem 1.4rem; font: 500 .9rem/1.75 ui-monospace, "Cascadia Code", Consolas, monospace; color: #e2e8f0; overflow-x: auto; }
.k { color: #c084fc; } .f { color: var(--accent-2); } .s { color: #86efac; } .c { color: #64748b; }

/* Stats */
.stats { background: var(--navy-2); border-top: 1px solid rgba(255, 255, 255, .06); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 1.75rem 0; }
.stats-grid div { display: flex; flex-direction: column; padding: 0 .5rem; }
.stats-grid div + div { border-left: 1px solid rgba(255, 255, 255, .08); }
.stats strong { color: #fff; font-size: 1.2rem; }
.stats span { color: #94a3b8; font-size: .88rem; }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.two-col p:not(.eyebrow) { color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #fdc9a5; }
.card p { color: var(--muted); font-size: .96rem; }
.card-feature { background: linear-gradient(160deg, var(--navy), #1e3a8a); border: 0; }
.card-feature h3 { color: #fff; }
.card-feature p { color: #cbd5e1; }
.card-feature .link { display: inline-block; margin-top: 1rem; color: var(--accent-2); font-weight: 600; }
.icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, rgba(251, 146, 60, .15), rgba(234, 88, 12, .15)); margin-bottom: 1.25rem; }
.icon svg, .contact-list svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-feature .icon { background: rgba(251, 146, 60, .15); }
.card-feature .icon svg { stroke: var(--accent-2); }

/* Staffing */
.checks { list-style: none; margin: 1.5rem 0 2rem; }
.checks li { position: relative; padding-left: 2rem; margin-bottom: .85rem; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/13px no-repeat; }
.checks strong { color: var(--navy); }
.roles { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.tags span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .95rem; font-size: .9rem; font-weight: 500; color: var(--navy); }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--line); }
.steps span { display: inline-block; font-weight: 800; font-size: 1.6rem; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .5rem; }
.steps p { color: var(--muted); font-size: .95rem; }

/* Why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.why div { border-top: 3px solid var(--accent); padding-top: 1.25rem; }
.why p { color: var(--muted); font-size: .95rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, #ea580c, #f59e0b); color: #fff7ed; padding: 4rem 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-bottom: 1.75rem; }

/* Contact */
.contact-list { list-style: none; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list svg { flex: none; margin-top: .2rem; }
.contact-list div { display: flex; flex-direction: column; }
.contact-list strong { color: var(--navy); }
.contact-list span, .contact-list a { color: var(--muted); }
.contact-list a:hover { color: var(--accent); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; color: var(--navy); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); color: var(--text); resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(234, 88, 12, .35); border-color: var(--accent); background: #fff; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); margin-top: 3.5rem; }

/* Footer */
.footer { background: var(--navy); color: #94a3b8; padding: 2.5rem 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.footer nav { display: flex; gap: 1.5rem; }
.footer nav a { color: #cbd5e1; }
.footer nav a:hover { color: #fff; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-card { max-width: 520px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps, .why { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .menu { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: .5rem 16px 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .08); display: none; }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .menu .btn { margin-top: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0; }
  .stats-grid div:nth-child(3) { border-left: 0; }
}
@media (max-width: 560px) {
  .cards, .steps, .why { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* AI hero animation */
#neural { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.ai-badge { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem; margin-bottom: 1.25rem; border-radius: 999px; border: 1px solid rgba(251, 146, 60, .35); background: rgba(251, 146, 60, .08); color: #fed7aa; font-size: .85rem; font-weight: 600; }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; animation: ping 1.6s ease-out infinite; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
.rotator { display: inline-block; min-height: 1.2em; }
.caret { display: inline-block; width: 3px; height: .9em; margin-left: 4px; vertical-align: -.08em; background: var(--accent-2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dots b { margin-left: auto; font: 500 .75rem ui-monospace, Consolas, monospace; color: #64748b; }
.dots { align-items: center; }
.code-window .ln { display: inline; opacity: 0; animation: typeIn .4s ease forwards; }
.code-window .ln:nth-child(1) { animation-delay: .3s; } .code-window .ln:nth-child(2) { animation-delay: .6s; }
.code-window .ln:nth-child(3) { animation-delay: .9s; } .code-window .ln:nth-child(4) { animation-delay: 1.2s; }
.code-window .ln:nth-child(5) { animation-delay: 1.5s; } .code-window .ln:nth-child(6) { animation-delay: 1.7s; }
.code-window .ln:nth-child(7) { animation-delay: 1.9s; } .code-window .ln:nth-child(8) { animation-delay: 2.3s; }
@keyframes typeIn { to { opacity: 1; } }
pre { white-space: pre; }
.ai-status { display: flex; align-items: center; gap: .6rem; padding: .8rem 1.4rem; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .85rem; color: #94a3b8; }
#ai-status-text { transition: opacity .3s; }

/* AI section */
.ai-section { background: radial-gradient(900px 400px at 50% 0%, #1e293b, transparent 70%), var(--navy); }
.ai-section h2 { color: #fff; }
.ai-section .section-head p:not(.eyebrow) { color: #94a3b8; }
.ai-section .eyebrow { color: var(--accent-2); }
.ai-card { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .08); }
.ai-card:hover { border-color: rgba(251, 146, 60, .5); box-shadow: 0 0 0 1px rgba(251, 146, 60, .2), 0 20px 40px rgba(0, 0, 0, .3); }
.ai-card h3 { color: #fff; }
.ai-card p { color: #94a3b8; }
.ai-card .icon { background: rgba(251, 146, 60, .12); }
.ai-card .icon svg { stroke: var(--accent-2); }

@media (prefers-reduced-motion: reduce) {
  .code-window .ln { opacity: 1; animation: none; }
  .caret, .pulse::after { animation: none; }
}

/* AI chat widget */
.chatbot { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.chat-launch { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: 0 10px 28px rgba(234, 88, 12, .45); transition: transform .2s; }
.chat-launch:hover { transform: scale(1.06); }
.chat-launch svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-launch::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fb923c; animation: ring 2.4s ease-out infinite; }
.chat-launch.open::before { animation: none; opacity: 0; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.chat-dot { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.chat-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); max-height: calc(100dvh - 110px); display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(11, 21, 48, .3); animation: chatIn .25s ease; }
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; background: var(--navy); color: #fff; }
.chat-head div { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
.chat-head span { display: flex; align-items: center; gap: .45rem; font-size: .78rem; color: #94a3b8; }
.chat-head .pulse { width: 7px; height: 7px; }
.chat-close { background: none; border: 0; color: #cbd5e1; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 .25rem; }
.chat-close:hover { color: #fff; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--bg-alt); }
.msg { max-width: 85%; padding: .65rem .9rem; border-radius: 14px; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg a { color: inherit; text-decoration: underline; }
.msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 4px; }
.msg-bot a { color: var(--accent); }
.msg-user { align-self: flex-end; background: linear-gradient(135deg, #fb923c, #ea580c); color: #fff; border-bottom-right-radius: 4px; }
.typing { display: flex; gap: 4px; padding: .8rem .9rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: .45rem; padding: .7rem 1rem; background: var(--bg-alt); border-top: 1px solid var(--line); }
.chat-chips[hidden] { display: none; }
.chat-chips button { font: inherit; font-size: .8rem; padding: .4rem .75rem; border-radius: 999px; border: 1px solid #fdc9a5; background: #fff7ed; color: #9a3412; cursor: pointer; text-align: left; }
.chat-chips button:hover { background: #ffedd5; }
.chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; font: inherit; font-size: .92rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-alt); color: var(--text); min-width: 0; }
.chat-form input:focus { outline: 2px solid rgba(234, 88, 12, .3); border-color: var(--accent); background: #fff; }
.chat-form button { width: 44px; border: 0; border-radius: 12px; background: var(--accent); cursor: pointer; display: grid; place-items: center; flex: none; }
.chat-form svg { width: 20px; height: 20px; fill: #fff; }
.chat-foot { font-size: .7rem; color: var(--muted); text-align: center; padding: 0 1rem .6rem; }
@media (max-width: 560px) {
  .chatbot { right: 12px; bottom: 12px; }
  .chat-panel { height: calc(100vh - 110px); height: calc(100dvh - 110px); }
}
@media (prefers-reduced-motion: reduce) { .chat-launch::before, .chat-panel, .typing i { animation: none; } }

/* Animated robot launcher */
.chat-launch { width: 66px; height: 66px; }
.chat-launch .robot { width: 46px; height: 46px; fill: none; stroke: none; animation: robotBob 3s ease-in-out infinite; overflow: visible; }
.r-head { fill: #fff; }
.r-face { fill: var(--navy); }
.r-ear { fill: #fed7aa; }
.r-antenna { stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.r-light { fill: #fde047; animation: robotLight 1.4s ease-in-out infinite; }
.r-eyes { fill: #fb923c; transform-origin: 32px 31px; animation: robotBlink 4s infinite; }
.r-mouth { stroke: #fb923c; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.chat-launch:hover .robot { animation: robotWave .6s ease-in-out infinite; }
@keyframes robotBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes robotBlink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
@keyframes robotLight { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes robotWave { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }

/* Greeting bubble */
.chat-greet { position: absolute; right: 0; bottom: 80px; width: max-content; display: flex; align-items: center; gap: .5rem; max-width: 240px; padding: .7rem .9rem .7rem 1rem; background: #fff; color: var(--navy); font-size: .9rem; font-weight: 600; border-radius: 14px 14px 4px 14px; box-shadow: 0 12px 30px rgba(11, 21, 48, .2); cursor: pointer; opacity: 0; transform: translateY(10px) scale(.9); transform-origin: bottom right; pointer-events: none; transition: opacity .35s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.chat-greet.show { opacity: 1; transform: none; pointer-events: auto; }
.chat-greet::after { content: ""; position: absolute; right: 22px; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 0 0 3px 0; }
.chat-greet-x { background: none; border: 0; color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 .1rem; }
.chat-greet-x:hover { color: var(--navy); }
.chatbot:has(.chat-panel:not([hidden])) .chat-greet { display: none; }
@media (prefers-reduced-motion: reduce) { .chat-launch .robot, .r-light, .r-eyes { animation: none; } .chat-greet { transition: none; } }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.4rem; transition: border-color .2s; }
.faq details[open] { border-color: #fdc9a5; }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2rem 1.15rem 0; position: relative; font-weight: 600; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 1.2rem; }

/* Walking robot mascot */
.tf-mascot { position: fixed; left: 0; top: 0; z-index: 99; width: 132px; height: 179px; padding: 0; border: 0; background: none; cursor: pointer;
  transition-property: transform, opacity; transition-timing-function: linear, ease; transition-duration: 3000ms, .5s;
  filter: drop-shadow(0 10px 14px rgba(11, 21, 48, .35)); -webkit-tap-highlight-color: transparent; }
.tf-mascot svg { width: 100%; height: 100%; overflow: visible; }
.tf-mascot.hidden { opacity: 0; pointer-events: none; transition-timing-function: ease-in, ease; }
.tf-mascot .m-head, .tf-mascot .m-eyes, .tf-mascot .m-body { transform-box: view-box; transition: transform .6s ease; }
.tf-mascot .m-head { transform-origin: 70px 92px; }
.tf-mascot .m-eyes { transform-origin: 70px 58px; }
.tf-mascot .m-body { transform-origin: 70px 140px; }
.tf-mascot .eye { transform-box: fill-box; transform-origin: center; animation: mBlink 4.2s infinite; }
.tf-mascot .m-arm-l, .tf-mascot .m-arm-r { transform-box: view-box; transition: transform .7s cubic-bezier(.34, 1.4, .64, 1); }
.tf-mascot .m-arm-l { transform-origin: 35.5px 105px; }
.tf-mascot .m-arm-r { transform-origin: 104.5px 105px; }
.tf-mascot .m-leg-l, .tf-mascot .m-leg-r { transform-box: view-box; }
.tf-mascot .m-leg-l { transform-origin: 57px 140px; }
.tf-mascot .m-leg-r { transform-origin: 83px 140px; }
.tf-mascot .m-brows path, .tf-mascot .m-happy path, .tf-mascot .m-smile, .tf-mascot .m-worry { fill: none; stroke: #38bdf8; stroke-width: 2.6; stroke-linecap: round; transition: opacity .35s; }
.tf-mascot .m-brows, .tf-mascot .m-happy, .tf-mascot .m-worry, .tf-mascot .m-sweat, .tf-mascot .m-palm { opacity: 0; transition: opacity .35s; }
.tf-mascot .m-fist { transition: opacity .35s; }
.tf-mascot .m-eyes { transition: transform .6s ease, opacity .35s; }
.tf-mascot .m-thought { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; fill: #fff; stroke: #c9d3df; }
.tf-mascot .m-tdots circle { fill: #38bdf8; stroke: none; animation: mDots 1.2s infinite; }
.tf-mascot .m-tdots circle:nth-child(2) { animation-delay: .2s; } .tf-mascot .m-tdots circle:nth-child(3) { animation-delay: .4s; }
.tf-mascot .cd { animation: mDots 1.4s infinite; } .tf-mascot .cd:nth-of-type(2) { animation-delay: .2s; } .tf-mascot .cd:nth-of-type(3) { animation-delay: .4s; }
.tf-mascot .m-shadow { transform-box: fill-box; transform-origin: center; }

/* Speech bubble above the head */
.tf-mascot .m-say { position: absolute; left: 50%; bottom: 100%; margin-bottom: 4px; transform: translateX(-50%) scale(.8); opacity: 0; width: max-content; max-width: 200px; padding: .55rem .8rem; background: #fff; color: var(--navy); font: 600 .85rem/1.3 "Inter", system-ui, sans-serif; border-radius: 12px; box-shadow: 0 10px 24px rgba(11, 21, 48, .25); pointer-events: none; transition: opacity .3s, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.tf-mascot .m-say::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 3px 0; }
.tf-mascot .m-say.show { opacity: 1; transform: translateX(-50%) scale(1); }

/* Walking: legs step, body bobs and sways, arms swing */
.tf-mascot.walk .m-leg-l { animation: mStep 1s ease-in-out infinite; }
.tf-mascot.walk .m-leg-r { animation: mStep 1s ease-in-out infinite reverse; }
.tf-mascot.walk .m-arm-l { animation: mSwing 1s ease-in-out infinite; }
.tf-mascot.walk .m-arm-r { animation: mSwing 1s ease-in-out infinite reverse; }
.tf-mascot.walk svg { animation: mWalkBob .5s ease-in-out infinite; }
.tf-mascot.walk .m-head { transform: rotate(3deg); }
.tf-mascot.walk.facing-left .m-head { transform: rotate(-3deg); }
.tf-mascot.walk .m-eyes { transform: translateX(4px); }
.tf-mascot.walk.facing-left .m-eyes { transform: translateX(-4px); }

/* Idle breathing when standing */
.tf-mascot:not(.walk) svg { animation: mBreathe 3s ease-in-out infinite; }

/* Worried: brows up, wavy mouth, sweat drop, looking left and right */
.tf-mascot.worried .m-brows, .tf-mascot.worried .m-worry, .tf-mascot.worried .m-sweat { opacity: 1; }
.tf-mascot.worried .m-smile { opacity: 0; }
.tf-mascot.worried .m-eyes { animation: mLookAround 2.4s ease-in-out infinite; }
.tf-mascot.worried .m-head { animation: mFret 2.4s ease-in-out infinite; }
.tf-mascot.worried .m-arm-l { transform: rotate(18deg); }
.tf-mascot.worried .m-arm-r { transform: rotate(-18deg); }

/* Present: holds out an open hand with happy eyes */
.tf-mascot.present .m-arm-r { transform: rotate(-115deg); }
.tf-mascot.present .m-palm { opacity: 1; }
.tf-mascot.present .m-fist { opacity: 0; }
.tf-mascot.present .m-eyes { opacity: 0; }
.tf-mascot.present .m-happy { opacity: 1; }
.tf-mascot.present .m-head { transform: rotate(-4deg); }

/* Think: head tilt, eyes up, thought bubble, hand to chin */
.tf-mascot.think .m-head { transform: rotate(-8deg); }
.tf-mascot.think .m-eyes { transform: translate(5px, -6px); }
.tf-mascot.think .m-thought { opacity: 1; transform: none; }
.tf-mascot.think .m-arm-r { transform: rotate(-150deg); }
.tf-mascot.up .m-head { transform: rotate(5deg); }
.tf-mascot.up .m-eyes { transform: translate(-3px, -7px); }
.tf-mascot.down .m-head { transform: translateY(3px) rotate(3deg); }
.tf-mascot.down .m-eyes { transform: translate(0, 6px); }
.tf-mascot.look .m-arm-l { transform: rotate(140deg); animation: mWaveL 1s ease-in-out 2; }

body.mascot-on .chat-greet { display: none; }
.chat-launch { transition: transform .2s, opacity .3s; }
body.mascot-on .chat-launch { transform: scale(.85); opacity: .85; }

@keyframes mBlink { 0%, 46%, 52%, 100% { transform: scaleY(1); } 49% { transform: scaleY(.12); } }
@keyframes mDots { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes mStep { 0%, 100% { transform: rotate(16deg); } 50% { transform: rotate(-16deg); } }
@keyframes mSwing { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
@keyframes mWalkBob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-4px) rotate(1.5deg); } }
@keyframes mBreathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes mLookAround { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 70% { transform: translateX(6px); } }
@keyframes mFret { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 70% { transform: rotate(5deg); } }
@keyframes mWaveL { 0%, 100% { transform: rotate(140deg); } 50% { transform: rotate(115deg); } }
@media (max-width: 560px) { .tf-mascot { width: 92px; height: 125px; } .tf-mascot .m-say { font-size: .75rem; max-width: 150px; } }

/* Mini game: running away and getting caught */
.tf-mascot.run .m-leg-l { animation: mStep .35s ease-in-out infinite; }
.tf-mascot.run .m-leg-r { animation: mStep .35s ease-in-out infinite reverse; }
.tf-mascot.run .m-arm-l { animation: mSwing .35s ease-in-out infinite; }
.tf-mascot.run .m-arm-r { animation: mSwing .35s ease-in-out infinite reverse; }
.tf-mascot.run svg { animation: mWalkBob .2s ease-in-out infinite; }
.tf-mascot.run .m-eyes { opacity: 0; }
.tf-mascot.run .m-happy { opacity: 1; }
.tf-mascot.caught svg { animation: mJump .5s ease-out 3; }
.tf-mascot.caught .m-arm-l { transform: rotate(150deg); }
.tf-mascot.caught .m-arm-r { transform: rotate(-150deg); }
.tf-mascot.caught .m-eyes { opacity: 0; }
.tf-mascot.caught .m-happy { opacity: 1; }
.tf-confetti { position: fixed; z-index: 120; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; animation: tfBurst 1.2s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes mJump { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-26px) scale(1.04); } 70% { transform: translateY(0) scale(1.06, .94); } }
@keyframes tfBurst { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 140px)) rotate(var(--rot)); opacity: 0; } }

/* Voice and mic buttons in the chat */
.chat-voice { background: none; border: 0; cursor: pointer; padding: 4px; display: grid; place-items: center; border-radius: 8px; }
.chat-voice svg { width: 22px; height: 22px; fill: none; stroke: #94a3b8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-voice .wave { display: none; }
.chat-voice.on svg { stroke: var(--accent-2); }
.chat-voice.on .wave { display: inline; }
.chat-voice.on .mute { display: none; }
.chat-voice:hover { background: rgba(255, 255, 255, .08); }
.chat-form .chat-mic { background: var(--bg-alt); border: 1px solid var(--line); }
.chat-form .chat-mic svg { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.chat-form .chat-mic.listening { background: #fee2e2; border-color: #f87171; animation: micPulse 1s ease-in-out infinite; }
.chat-form .chat-mic.listening svg { stroke: #dc2626; }
.chat-form .chat-mic[hidden] { display: none; }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, .5); } 50% { box-shadow: 0 0 0 6px rgba(248, 113, 113, 0); } }

/* 3D robot section */
.robot-section { background: var(--bg-alt); }
.robot-frame { max-width: 900px; margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #f2efe7; }
.robot-frame iframe { display: block; width: 100%; height: 720px; border: 0; }
.robot-open { text-align: center; margin-top: 1rem; }
.robot-open a { font-weight: 600; }
@media (max-width: 560px) { .robot-frame iframe { height: 760px; } }

/* More menu links: use the menu button below 1080px so the links never crowd the logo */
@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .menu { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: .5rem 16px 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .08); display: none; }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .menu .btn { margin-top: 1rem; }
}

/* The chat button is the live 3D robot */
.chat-launch.robot3d { width: 132px; height: 150px; border-radius: 22px; background: none; box-shadow: none; padding: 0; overflow: visible; }
.chat-launch.robot3d::before { display: none; }
.chat-launch.robot3d:hover { transform: scale(1.05); }
.chat-launch.robot3d .chat-robot { width: 100%; height: 100%; border: 0; background: transparent; pointer-events: none; display: block; color-scheme: normal; }
.chat-launch.robot3d .chat-dot { top: 18px; right: 22px; }
.chat-launch.robot3d.open { transform: scale(.82); }
body.mascot-on .chat-launch.robot3d { transform: none; opacity: 1; }
.chat-greet { bottom: 158px; }
@media (max-width: 560px) {
  .chat-launch.robot3d { width: 100px; height: 114px; }
  .chat-greet { bottom: 120px; }
  .chat-panel { height: calc(100vh - 150px); height: calc(100dvh - 150px); }
}
.chat-panel { max-height: calc(100dvh - 190px); }

/* Fun chat: typing effect, emoji reactions, floating emojis, confetti */
.msg.typing-text::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; margin-left: 1px; }
.msg-react { align-self: flex-start; display: flex; gap: 4px; margin: -4px 0 4px 4px; }
.msg-react button { font-size: .95rem; line-height: 1; padding: 3px 6px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; opacity: .55; transition: transform .15s, opacity .15s, background .15s; }
.msg-react button:hover { opacity: 1; transform: scale(1.18); }
.msg-react button.picked { opacity: 1; background: #fff7ed; border-color: #fdc9a5; animation: reactPop .4s ease; }
@keyframes reactPop { 0% { transform: scale(1); } 40% { transform: scale(1.5) rotate(-10deg); } 100% { transform: scale(1.15); } }
.emoji-float { position: fixed; z-index: 200; font-size: 1.4rem; pointer-events: none; animation: emojiUp 1.3s ease-out forwards; }
@keyframes emojiUp { 0% { transform: translate(-50%, 0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), -110px) scale(1.2); opacity: 0; } }
.chat-confetti { position: fixed; z-index: 200; width: 7px; height: 11px; border-radius: 2px; pointer-events: none; animation: confFall 1.9s cubic-bezier(.25, .6, .4, 1) forwards; }
@keyframes confFall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(var(--fall)) rotate(var(--rot)); opacity: 0; } }
.chat-chips button:nth-child(1), .chat-chips button:nth-child(2) { background: linear-gradient(135deg, #fff7ed, #ffedd5); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .emoji-float, .chat-confetti { display: none; } .msg.typing-text::after { animation: none; } }

/* First-visit intro: the robot breaks into pieces */
.robot-shard { position: fixed; z-index: 150; pointer-events: none; background-repeat: no-repeat; will-change: transform; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
