/* ============================================================
   APIG / AEC GROUP — AI Film Intelligence
   Light editorial-tech theme (v3): white surfaces, blue-violet
   gradient accents. Same structure as v2, source site look kept
   deliberately distinct through layout and richer components.
   ============================================================ */
:root {
  --bg: #f5f5f7;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-2: rgba(255, 255, 255, 0.96);
  --line: rgba(0, 0, 0, 0.085);
  --line-strong: rgba(0, 0, 0, 0.15);
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --dim: #9a9aa0;
  --cyan: #1f9e70;
  --violet: #57c795;
  --pink: #86d3a6;
  --lime: #4cc38a;
  --grad: linear-gradient(115deg, #1f9e70 0%, #38b883 52%, #86d3a6 100%);
  --grad-2: linear-gradient(115deg, #1f9e70, #57c795);
  --glow: 0 0 50px rgba(10, 132, 255, .12);
  --shadow: 0 22px 60px rgba(19, 42, 76, .10);
  --shadow-sm: 0 6px 20px rgba(19, 42, 76, .07);
  --radius: 22px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(10, 132, 255, .10), transparent 65%),
    radial-gradient(760px 520px at 8% 18%, rgba(142, 125, 255, .09), transparent 62%),
    radial-gradient(700px 500px at 70% 86%, rgba(255, 159, 10, .07), transparent 65%),
    #f5f5f7;
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .45;
  background-image: linear-gradient(rgba(0,0,0,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.025) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(10, 132, 255, .22); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: #fff; padding: 10px 16px; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------- announcement ---------------- */
.announce {
  height: 30px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(90deg, rgba(31,158,112,.10), rgba(56,184,131,.11), rgba(134,211,166,.09));
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.1px; text-transform: uppercase; color: #4a5568;
}
.announce .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(76,195,138,.6); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 4px rgba(76,195,138,.5); } }

/* ---------------- nav ---------------- */
.topbar { position: sticky; top: 0; z-index: 60; background: rgba(245, 245, 247, .82); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.nav-wrap { max-width: var(--max); margin: 0 auto; padding: 0 26px; height: 66px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 40px; width: auto; max-width: 190px; object-fit: contain; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-size: 15px; font-weight: 800; color: #fff; background: var(--grad); box-shadow: 0 8px 20px rgba(31,158,112,.25); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; letter-spacing: 2.4px; }
.brand-text small { font-family: var(--mono); font-size: 9px; letter-spacing: 1.2px; color: var(--dim); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 9px; font-size: 12.5px; color: #4a4a50; transition: .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: rgba(0,0,0,.045); }
.nav-links a.active { color: var(--cyan); background: #fff; font-weight: 700; box-shadow: var(--shadow-sm); }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.lang-switch { display: flex; padding: 3px; border-radius: 10px; background: rgba(0,0,0,.055); border: 1px solid transparent; }
.lang-switch button { border: 0; background: transparent; color: var(--muted); border-radius: 7px; padding: 5px 9px; font-family: var(--mono); font-size: 10px; font-weight: 700; }
.lang-switch button.active { background: #fff; color: var(--cyan); box-shadow: var(--shadow-sm); }
.nav-cta { border: 0; border-radius: 10px; padding: 10px 15px; font-size: 12px; font-weight: 700; background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.12); transition: transform .2s, background .2s; }
.nav-cta:hover { background: #000; transform: translateY(-2px); }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px 0; border-radius: 2px; }

/* ---------------- shared ---------------- */
.app { min-height: 70vh; }
.page { max-width: var(--max); margin: 0 auto; padding: 66px 26px 100px; animation: fade .4s ease; }
.page-slim { padding-top: 46px; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--cyan); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--grad); }
.section { margin-top: 96px; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.12; letter-spacing: -1.8px; margin: 0 0 14px; font-weight: 700; }
.section-head p { color: var(--muted); margin: 0; font-size: 14.5px; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 11px; padding: 12px 20px; font-size: 13px; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cyan); color: #fff; box-shadow: 0 10px 24px rgba(31,158,112,.25); }
.btn-primary:hover { background: #14845c; box-shadow: 0 14px 30px rgba(31,158,112,.32); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fafafa; border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-sm { padding: 8px 13px; font-size: 11.5px; border-radius: 9px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.tag { display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(31,158,112,.22); background: #e9f8f0; color: #14845c; border-radius: 999px; padding: 4px 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .9px; text-transform: uppercase; }
.tag.violet { border-color: rgba(56,184,131,.25); background: #eaf8f0; color: #14845c; }
.tag.pink { border-color: rgba(134,211,166,.25); background: #eef9f1; color: #14845c; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); display: inline-block; box-shadow: 0 0 0 3px rgba(76,195,138,.16); }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: 58px 0 30px; overflow: hidden; }
.hero-grid { max-width: var(--max); margin: 0 auto; padding: 0 26px; display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-title { font-size: clamp(48px, 6.4vw, 82px); line-height: 1.02; letter-spacing: -3.6px; margin: 0 0 24px; font-weight: 750; }
.hero-title span { display: block; }
.hero-sub { color: #515157; font-size: 16px; max-width: 570px; margin: 0 0 30px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--mono); font-size: 10px; letter-spacing: .8px; color: var(--muted); text-transform: uppercase; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row span::before { content: '✓'; color: var(--lime); font-size: 11px; font-weight: 800; }
.hero-visual { position: relative; padding: 20px 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; z-index: 0; }
.orb.a { width: 300px; height: 300px; background: rgba(31,158,112,.28); top: -80px; right: 0; animation: float 9s ease-in-out infinite; }
.orb.b { width: 260px; height: 260px; background: rgba(56,184,131,.24); bottom: -70px; left: -40px; animation: float 11s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate3d(0, 22px, 0) scale(1.06); } }

.terminal { position: relative; z-index: 2; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 34px 80px rgba(19,42,76,.13); }
.term-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafafa; }
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d1d1d6; display: block; }
.term-dots i:nth-child(1) { background: #ff5f57; } .term-dots i:nth-child(2) { background: #febc2e; } .term-dots i:nth-child(3) { background: #28c840; }
.term-head .mono { font-size: 10px; color: var(--muted); letter-spacing: .8px; }
.term-head .live { margin-left: auto; font-family: var(--mono); font-size: 9px; color: #14845c; letter-spacing: 1px; }
.term-body { padding: 22px; min-height: 288px; display: flex; flex-direction: column; gap: 13px; background: linear-gradient(#fff, #f9fdfb); }
.term-line { font-size: 12.5px; line-height: 1.65; padding: 11px 14px; border-radius: 12px; max-width: 92%; }
.term-line.bot { background: #f2f2f7; border: 1px solid var(--line); align-self: flex-start; color: #3a3a3f; }
.term-line.user { background: var(--cyan); border: 1px solid var(--cyan); align-self: flex-end; color: #fff; }
.term-line .prompt { color: var(--cyan); font-family: var(--mono); margin-right: 8px; font-weight: 700; }
.term-result { display: flex; gap: 11px; align-items: center; border: 1px solid rgba(31,158,112,.2); background: #e9f8f0; border-radius: 12px; padding: 9px; }
.term-result img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; background: #eee; }
.term-result strong { display: block; font-size: 12px; }
.term-result small { font-family: var(--mono); font-size: 9.5px; color: #14845c; }
.term-foot { border-top: 1px solid var(--line); padding: 13px; display: flex; gap: 9px; background: #fff; }
.term-foot input { flex: 1; background: transparent; border: 0; outline: none; font-size: 12px; color: var(--ink); }
.term-foot button { border: 0; border-radius: 9px; width: 36px; height: 34px; background: var(--cyan); color: #fff; font-size: 15px; }
.float-chip { position: absolute; z-index: 3; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 13px; font-family: var(--mono); font-size: 9.5px; color: var(--muted); box-shadow: var(--shadow); }
.float-chip.one { top: -18px; right: 32px; animation: float 7s ease-in-out infinite; }
.float-chip.two { bottom: -20px; left: 8px; animation: float 8s ease-in-out infinite reverse; }
.float-chip b { color: var(--cyan); font-size: 13px; display: block; }

/* ---------------- ticker + stats ---------------- */
.ticker { margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.6); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 34px; padding: 13px 0; font-family: var(--mono); font-size: 10px; letter-spacing: 2.4px; color: var(--dim); animation: marquee 28s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.stats-band { max-width: var(--max); margin: 0 auto; padding: 46px 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-box { position: relative; padding: 24px 20px; overflow: hidden; }
.stat-box::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 44%; background: var(--grad); }
.stat-num { font-size: 32px; font-weight: 750; letter-spacing: -1.5px; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin-top: 7px; display: block; }

/* ---------------- capability cards ---------------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cap-card { padding: 26px 22px; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.cap-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cap-card::before { content: ''; position: absolute; width: 140px; height: 140px; border-radius: 50%; top: -80px; right: -60px; background: rgba(31,158,112,.10); filter: blur(30px); }
.cap-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; background: #e9f8f0; border: 1px solid rgba(31,158,112,.16); margin-bottom: 22px; }
.cap-num { font-family: var(--mono); font-size: 9px; color: var(--cyan); letter-spacing: 2px; }
.cap-card h3 { font-size: 15px; margin: 8px 0 9px; }
.cap-card p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------------- category mosaic ---------------- */
.cat-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 168px; gap: 12px; }
.cat-tile { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); cursor: pointer; background: #fff; box-shadow: var(--shadow-sm); }
.cat-tile.large { grid-column: span 2; grid-row: span 2; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .5s, opacity .3s; }
.cat-tile:hover img { transform: scale(1.07); opacity: 1; }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(255,255,255,.98) 0%, rgba(255,255,255,.78) 30%, rgba(255,255,255,0) 72%); }
.cat-overlay { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 18px; }
.cat-overlay strong { display: block; font-size: 15px; line-height: 1.25; color: var(--ink); }
.cat-tile.large .cat-overlay strong { font-size: 23px; letter-spacing: -.6px; }
.cat-overlay small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 1px; color: #14845c; text-transform: uppercase; margin-top: 5px; }
.cat-overlay .count { position: absolute; right: 16px; bottom: 18px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.cat-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; background: linear-gradient(135deg, #e9f8f0, #e9f8f0); }

/* ---------------- product card ---------------- */
.prod-scroll { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 22px; scroll-snap-type: x mandatory; }
.prod-scroll::-webkit-scrollbar { height: 6px; } .prod-scroll::-webkit-scrollbar-thumb { background: #d1d1d6; border-radius: 6px; }
.product-card { flex: 0 0 292px; scroll-snap-align: start; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 24px 54px rgba(19,42,76,.14); }
.pc-media { position: relative; height: 188px; background: linear-gradient(135deg, #e9f8f0, #eef9f1); overflow: hidden; }
.pc-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; position: absolute; inset: 0; }
.pc-img.active { opacity: 1; }
.pc-badge { position: absolute; top: 11px; left: 11px; z-index: 3; background: rgba(255,255,255,.95); }
.pc-counter { position: absolute; top: 11px; right: 11px; z-index: 3; font-family: var(--mono); font-size: 9px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; color: var(--muted); }
.pc-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--ink); font-size: 15px; display: grid; place-items: center; opacity: 0; transition: .2s; }
.product-card:hover .pc-nav { opacity: 1; }
.pc-nav.prev { left: 9px; } .pc-nav.next { right: 9px; }
.pc-nav:hover { background: var(--cyan); color: #fff; border-color: var(--cyan); }
.pc-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.pc-sub { font-family: var(--mono); font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; color: #14845c; }
.pc-title { font-size: 14.5px; line-height: 1.35; margin: 9px 0 8px; min-height: 39px; }
.pc-desc { font-size: 11.5px; line-height: 1.6; color: var(--muted); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.pc-tags span { font-family: var(--mono); font-size: 9px; background: #f5f5f7; border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; color: #5a5a60; }
.pc-actions { display: flex; gap: 7px; margin-top: auto; }
.pc-actions .btn { flex: 1; }

/* ---------------- steps ---------------- */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.step-grid::before { content: ''; position: absolute; top: 27px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, rgba(31,158,112,.35), rgba(56,184,131,.35), transparent); }
.step { position: relative; }
.step-num { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-family: var(--mono); font-size: 14px; font-weight: 700; background: linear-gradient(140deg, #e9f8f0, #eaf8f0); border: 1px solid rgba(31,158,112,.25); color: var(--cyan); box-shadow: var(--shadow-sm); }
.step h3 { font-size: 14px; margin: 18px 0 8px; }
.step p { font-size: 12px; color: var(--muted); margin: 0; }

/* ---------------- faq ---------------- */
.faq-list { display: grid; gap: 9px; max-width: 860px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; border: 0; background: transparent; padding: 16px 18px; display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; font-weight: 600; }
.faq-q span:last-child { color: var(--cyan); font-size: 17px; line-height: 1; }
.faq-a { display: none; padding: 0 18px 17px; font-size: 12.5px; color: var(--muted); line-height: 1.75; }
.faq-item.open .faq-a { display: block; animation: fade .25s; }
.faq-item.open { border-color: rgba(31,158,112,.35); }

/* ---------------- cta ---------------- */
.cta-glow { position: relative; margin-top: 96px; border-radius: 26px; padding: 54px 36px; text-align: center; overflow: hidden; background: linear-gradient(120deg, #e9f8f0, #e9f8f0 55%, #eef9f1); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow-sm); }
.cta-glow::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(31,158,112,.12); filter: blur(70px); top: -230px; left: calc(50% - 210px); }
.cta-glow h2 { position: relative; font-size: clamp(28px, 4vw, 42px); letter-spacing: -1.5px; margin: 0 0 10px; }
.cta-glow p { position: relative; color: var(--muted); margin: 0 0 24px; }

/* ---------------- advisor ---------------- */
.advisor-grid { display: grid; grid-template-columns: 380px 1fr; gap: 16px; align-items: start; }
.panel { padding: 23px; }
.panel h3 { margin: 0 0 4px; font-size: 17px; }
.panel > p { margin: 0 0 20px; font-size: 12.5px; color: var(--muted); }
.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: #5a5a60; margin-bottom: 7px; }
.field select, .field input { width: 100%; border: 1px solid var(--line); background: #fafafa; border-radius: 10px; padding: 11px 12px; font-size: 13px; outline: none; color: var(--ink); }
.field select:focus, .field input:focus { border-color: var(--cyan); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.finder-btn { width: 100%; margin-top: 4px; }
.finder-hint { font-size: 10.5px; color: var(--dim); text-align: center; margin: 10px 0 0; }
.rec-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.rec-item { display: flex; gap: 11px; align-items: center; padding: 9px; border-radius: 11px; background: #fafafa; border: 1px solid var(--line); cursor: pointer; }
.rec-item:hover { border-color: rgba(31,158,112,.4); }
.rec-item img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #eee; }
.rec-item .info { flex: 1; min-width: 0; }
.rec-item strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-item small { font-family: var(--mono); font-size: 9px; color: var(--muted); }
.chat-panel { display: flex; flex-direction: column; height: 660px; overflow: hidden; padding: 0; }
.chat-head { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 11px; background: #fff; }
.chat-avatar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 15px; }
.chat-head strong { font-size: 14px; }
.chat-head small { font-family: var(--mono); font-size: 9px; color: #14845c; letter-spacing: .8px; display: block; }
.chat-head .btn { margin-left: auto; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; background: linear-gradient(#fff, #f8fcfa); }
.chat-scroll::-webkit-scrollbar { width: 6px; } .chat-scroll::-webkit-scrollbar-thumb { background: #d1d1d6; border-radius: 6px; }
.msg { display: flex; gap: 10px; max-width: 93%; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg .avatar { width: 27px; height: 27px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 9px; font-weight: 700; background: var(--grad); color: #fff; }
.msg.user .avatar { background: #d8d8dd; color: #444; }
.msg-body { min-width: 0; }
.msg-text { background: #f2f2f7; border: 1px solid var(--line); border-radius: 13px; border-top-left-radius: 4px; padding: 11px 14px; font-size: 12.5px; line-height: 1.68; white-space: pre-wrap; color: #1d1d1f; }
.msg.user .msg-text { background: var(--cyan); border-color: var(--cyan); color: #fff; border-radius: 13px; border-top-right-radius: 4px; }
.msg-text strong { color: #000; }
.msg.user .msg-text strong { color: #fff; }
.msg-products { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.msg-product { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px; cursor: pointer; }
.msg-product:hover { border-color: var(--cyan); }
.msg-product img { width: 34px; height: 34px; object-fit: cover; border-radius: 7px; background: #eee; }
.msg-product span { flex: 1; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-product em { font-style: normal; font-family: var(--mono); font-size: 9px; color: #14845c; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chip { border: 1px solid rgba(31,158,112,.25); background: #fff; color: #14845c; border-radius: 999px; padding: 5px 10px; font-size: 10px; }
.chip:hover { background: #e9f8f0; }
.typing span { display: inline-block; width: 5px; height: 5px; margin: 0 2px; border-radius: 50%; background: var(--cyan); animation: bounce 1.1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-compose { display: flex; gap: 9px; padding: 13px; border-top: 1px solid var(--line); background: #fff; }
.chat-compose input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 12.5px; outline: none; background: #fafafa; }
.chat-compose input:focus { border-color: var(--cyan); background: #fff; }
.chat-compose button { width: 40px; border: 0; border-radius: 10px; background: var(--cyan); color: #fff; font-size: 15px; }
.chat-note { padding: 0 14px 11px; font-size: 9.5px; color: #9a9aa0; text-align: center; background: #fff; }

/* ---------------- catalogue ---------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.search-box { flex: 1; min-width: 250px; display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.search-box span { color: var(--cyan); font-size: 17px; }
.search-box input { flex: 1; border: 0; outline: none; background: transparent; padding: 12px 0; font-size: 13px; }
.toolbar select { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 12px; font-size: 12px; outline: none; }
.result-line { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; color: var(--muted); margin: 0 0 18px; text-transform: uppercase; }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.prod-grid .product-card { flex: initial; width: auto; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); margin: 0 0 8px; }

/* ---------------- specs ---------------- */
.spec-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.spec-tab { border: 1px solid var(--line); background: #fff; color: #4a4a50; border-radius: 999px; padding: 8px 14px; font-size: 11.5px; }
.spec-tab:hover { border-color: var(--cyan); color: var(--cyan); }
.spec-tab.active { background: var(--cyan); color: #fff; border-color: var(--cyan); font-weight: 700; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.spec-table th, .spec-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table th { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: #14845c; background: #fafafa; }
.spec-table td strong { color: var(--ink); }
.spec-note { margin-top: 14px; font-size: 10.5px; color: var(--dim); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 22px; }
.info-item { background: #fafafa; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; }
.info-item small { display: block; font-family: var(--mono); font-size: 9px; color: var(--dim); }
.info-item strong { font-size: 11.5px; }

/* ---------------- application cards ---------------- */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.app-card { padding: 24px; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.app-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: linear-gradient(135deg, #e9f8f0, #e9f8f0); border: 1px solid var(--line); margin-bottom: 18px; }
.app-card h3 { font-size: 15px; margin: 0 0 8px; }
.app-card p { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.app-ask { border: 0; background: transparent; color: #14845c; font-family: var(--mono); font-size: 10px; letter-spacing: .6px; padding: 0; font-weight: 700; }

/* ---------------- contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.1px; text-transform: uppercase; color: #5a5a60; margin-bottom: 6px; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; border: 1px solid var(--line); background: #fafafa; border-radius: 10px; padding: 11px 12px; font-size: 13px; outline: none; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--cyan); background: #fff; }
.form-status { margin-top: 12px; font-size: 12px; color: #14845c; display: none; }
.form-status.error { color: #d70015; }
.form-status a { text-decoration: underline; font-weight: 700; }
.channel { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.channel:last-child { border-bottom: 0; }
.channel-icon { width: 36px; height: 36px; border-radius: 10px; background: #e9f8f0; border: 1px solid rgba(31,158,112,.18); display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.channel strong { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: #14845c; }
.channel span, .channel a { font-size: 12px; color: #4a4a50; }
.channel a:hover { color: var(--cyan); }

/* ---------------- modal ---------------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(20,25,35,.45); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 20px; animation: fade .2s; }
.modal { width: min(880px, 100%); max-height: 90vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 40px 100px rgba(0,0,0,.25); }
.modal::-webkit-scrollbar { width: 7px; } .modal::-webkit-scrollbar-thumb { background: #d1d1d6; border-radius: 6px; }
.modal-head { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.modal-head strong { font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--cyan); }
.modal-close { border: 1px solid var(--line); background: #f2f2f7; color: var(--ink); border-radius: 9px; width: 32px; height: 32px; }
.modal-body { padding: 24px; }
.modal-hero { display: grid; grid-template-columns: 360px 1fr; gap: 24px; }
.big-img { width: 100%; height: 280px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(135deg,#e9f8f0,#eef9f1); }
.thumbs { display: flex; gap: 7px; margin-top: 8px; }
.thumb { width: 62px; height: 52px; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; cursor: pointer; opacity: .55; background: #eee; }
.thumb:hover, .thumb.active { opacity: 1; border-color: var(--cyan); }
.modal-hero h2 { font-size: 23px; line-height: 1.25; letter-spacing: -.7px; margin: 10px 0 12px; }
.modal-desc { color: #515157; font-size: 13px; line-height: 1.75; margin: 0 0 16px; }
.feature-line { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.feature-line span { font-family: var(--mono); font-size: 9.5px; border: 1px solid var(--line); background: #f5f5f7; padding: 4px 9px; border-radius: 7px; color: #5a5a60; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px; }
.related-item { display: flex; gap: 9px; align-items: center; border: 1px solid var(--line); background: #fafafa; border-radius: 11px; padding: 7px; cursor: pointer; }
.related-item:hover { border-color: var(--cyan); }
.related-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 7px; background: #eee; }
.related-item span { font-size: 11px; line-height: 1.3; }

/* ---------------- footer ---------------- */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 54px 26px 28px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 34px; }
.footer h4 { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.8px; text-transform: uppercase; color: #14845c; margin: 0 0 16px; }
.footer p { font-size: 12px; color: var(--muted); margin: 0 0 9px; }
.footer a { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.footer a:hover { color: var(--cyan); }
.footer-bottom { max-width: var(--max); margin: 34px auto 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 9px; letter-spacing: .6px; color: var(--dim); }

/* ---------------- floating chat ---------------- */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 80; }
.chat-toggle { width: 54px; height: 54px; border-radius: 17px; border: 0; margin-left: auto; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 14px 34px rgba(31,158,112,.3); transition: transform .2s; }
.chat-toggle:hover { transform: scale(1.06); }
.chat-toggle svg { width: 23px; height: 23px; }
.float-panel { width: min(384px, calc(100vw - 28px)); height: min(570px, calc(100vh - 110px)); background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(19,42,76,.2); border: 1px solid var(--line); overflow: hidden; display: none; flex-direction: column; margin-bottom: 12px; }
.float-panel.open { display: flex; animation: pop .22s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.float-panel .msg-text { font-size: 12px; }
.toast-root { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; }
.toast { background: rgba(29,29,31,.94); color: #fff; border-radius: 11px; padding: 10px 16px; font-size: 12px; animation: fade .2s; }

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { max-width: 640px; }
  .grid-4, .prod-grid, .app-grid, .step-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid::before { display: none; }
  .cat-mosaic { grid-template-columns: repeat(2, 1fr); }
  .advisor-grid, .contact-grid { grid-template-columns: 1fr; }
  .chat-panel { height: 580px; }
  .modal-hero { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .announce { font-size: 8px; padding: 0 10px; text-align: center; }
  .nav-wrap { padding: 0 16px; gap: 10px; }
  .nav-links { position: absolute; top: 66px; left: 0; right: 0; background: rgba(255,255,255,.98); flex-direction: column; align-items: stretch; padding: 10px 16px; border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .page { padding: 44px 16px 76px; }
  .hero { padding-top: 38px; }
  .hero-title { font-size: 42px; letter-spacing: -2px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); padding: 34px 16px 0; }
  .grid-4, .prod-grid, .app-grid, .step-grid, .info-grid, .related-grid, .cat-mosaic { grid-template-columns: 1fr 1fr; }
  .cat-tile.large { grid-column: span 2; grid-row: span 1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .float-panel { position: fixed; right: 10px; bottom: 84px; }
  .chat-widget { right: 14px; bottom: 14px; }
}
@media (max-width: 480px) {
  .grid-4, .prod-grid, .app-grid, .step-grid, .info-grid, .related-grid, .cat-mosaic { grid-template-columns: 1fr; }
  .cat-tile.large { grid-column: span 1; }
  .hero-title { font-size: 36px; }
  .product-card { flex-basis: 268px; }
}
