/* ============================================================
   旭光工作室 — 一頁式網站  /  Design System
   科技感、現代俐落 · 亮色系 · 日出意象主色
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Palette presets are swapped via [data-accent] on <html> */
  --brand-1: #FF6A2C;      /* 旭光橘 */
  --brand-2: #FF9A3D;      /* amber  */
  --brand-3: #FF3D77;      /* sunrise magenta */
  --accent:  #4D5BFF;      /* electric indigo (tech secondary) */
  --accent-soft: #ECEEFF;

  --grad-brand: linear-gradient(120deg, var(--brand-2) 0%, var(--brand-1) 45%, var(--brand-3) 100%);
  --grad-sun: radial-gradient(closest-side, var(--brand-2), var(--brand-1) 55%, rgba(255,61,119,0));

  --ink:      #14151B;
  --ink-2:    #3C4150;
  --ink-3:    #6B7180;
  --line:     #ECECF1;
  --line-2:   #E2E2EA;

  --bg:       #FFFFFF;
  --bg-soft:  #F8F7F5;     /* warm paper */
  --bg-tint:  #FFF4EC;     /* faint sunrise wash */
  --card:     #FFFFFF;

  --radius:   18px;        /* tweakable */
  --radius-sm: 12px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(20,21,27,.05);
  --shadow:    0 12px 36px -12px rgba(20,21,27,.16);
  --shadow-lg: 0 36px 80px -24px rgba(20,21,27,.26);
  --shadow-brand: 0 24px 60px -18px rgba(255,106,44,.45);

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);

  --font-display: "Space Grotesk", "Noto Sans TC", system-ui, sans-serif; /* tweakable */
  --font-body: "Noto Sans TC", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

[data-accent="blue"] {
  --brand-1: #2563FF; --brand-2: #4D8BFF; --brand-3: #00C2D6;
  --accent: #7A5AE0; --accent-soft: #EEEBFF;
  --grad-brand: linear-gradient(120deg, #4D8BFF 0%, #2563FF 50%, #00C2D6 100%);
  --grad-sun: radial-gradient(closest-side, #4D8BFF, #2563FF 55%, rgba(0,194,214,0));
  --bg-tint: #EEF4FF; --shadow-brand: 0 24px 60px -18px rgba(37,99,255,.42);
}
[data-accent="teal"] {
  --brand-1: #0E9E7E; --brand-2: #2BC39A; --brand-3: #16B8C9;
  --accent: #5B6BFF; --accent-soft: #E8FFF7;
  --grad-brand: linear-gradient(120deg, #2BC39A 0%, #0E9E7E 50%, #16B8C9 100%);
  --grad-sun: radial-gradient(closest-side, #2BC39A, #0E9E7E 55%, rgba(22,184,201,0));
  --bg-tint: #E9FBF4; --shadow-brand: 0 24px 60px -18px rgba(14,158,126,.40);
}
[data-accent="violet"] {
  --brand-1: #7A45FF; --brand-2: #A06BFF; --brand-3: #E24DD0;
  --accent: #2BC39A; --accent-soft: #F1ECFF;
  --grad-brand: linear-gradient(120deg, #A06BFF 0%, #7A45FF 50%, #E24DD0 100%);
  --grad-sun: radial-gradient(closest-side, #A06BFF, #7A45FF 55%, rgba(226,77,208,0));
  --bg-tint: #F4EFFF; --shadow-brand: 0 24px 60px -18px rgba(122,69,255,.42);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
::selection { background: var(--brand-1); color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 132px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-1);
  padding: 7px 14px; border-radius: var(--radius-pill); white-space: nowrap;
  background: var(--bg-tint); border: 1px solid color-mix(in srgb, var(--brand-1) 18%, transparent);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-1) 18%, transparent); }

.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700; line-height: 1.08; letter-spacing: -.02em;
  font-size: clamp(30px, 4.4vw, 48px);
  margin-top: 18px;
}
.section-head p.lead {
  color: var(--ink-3); font-size: clamp(16px, 1.5vw, 19px);
  margin-top: 16px; max-width: 60ch;
}
.section-head.center p.lead { margin-inline: auto; }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--bh); padding: 0 26px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  border-radius: var(--radius-pill);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); background-size: 140% 140%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 30px 70px -16px color-mix(in srgb, var(--brand-1) 55%, transparent); background-position: 100% 50%; }
.btn-ghost { background: var(--bg); color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { --bh: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { --bh: 58px; padding: 0 32px; font-size: 17px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand .mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .18em; color: var(--ink-3); text-transform: uppercase; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 9px 14px; border-radius: 10px; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2); align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- HERO (shared) ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(60px, 8vw, 110px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .9; }
.hero-bg .grid { position: absolute; inset: 0; background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%); opacity: .5; }
.hero .wrap { position: relative; z-index: 1; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.04;
  font-size: clamp(38px, 6vw, 70px);
}
.hero .sub { color: var(--ink-2); font-size: clamp(17px, 1.7vw, 21px); max-width: 52ch; margin-top: 22px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 40px; }
.hero .trust .stat { display: flex; flex-direction: column; }
.hero .trust .stat b { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.hero .trust .stat span { font-size: 13px; color: var(--ink-3); }
.hero .trust .sep { width: 1px; height: 34px; background: var(--line-2); }

/* Hero variants visibility */
.hero-variant { display: none; }
[data-hero="split"]   .hero-variant.v-split   { display: block; }
[data-hero="spotlight"] .hero-variant.v-spotlight { display: block; }
[data-hero="chat"]    .hero-variant.v-chat    { display: block; }

/* Hero A — split */
.v-split .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.v-split .hero-copy { max-width: 600px; }
.v-split .hero-mock { position: relative; }
.v-chat .hero-chat { position: relative; }

/* Hero B — spotlight (centered) */
.v-spotlight .hero-grid { text-align: center; max-width: 920px; margin-inline: auto; }
.v-spotlight h1 { font-size: clamp(40px, 7vw, 84px); }
.v-spotlight .sub { margin-inline: auto; }
.v-spotlight .cta-row, .v-spotlight .trust { justify-content: center; }
.v-spotlight .float-cards { position: relative; margin-top: 56px; height: clamp(220px, 28vw, 320px); }

/* Hero C — chat */
.v-chat .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

/* Stat float chips */
.chip-float {
  position: absolute; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 600;
}
.chip-float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.chip-float small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }

/* ---------- Product mockup (browser window) ---------- */
.mock {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock-bar .dots { display: flex; gap: 7px; }
.mock-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #E2E2EA; }
.mock-bar .url { flex: 1; height: 28px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 12px; font-size: 12px; color: var(--ink-3); font-family: var(--font-display); }
.mock-body { padding: 20px; display: grid; gap: 14px; }
.mock-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.mock-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.mock-card .k { font-size: 12px; color: var(--ink-3); }
.mock-card .v { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-top: 4px; }
.mock-card .v.up { color: var(--brand-1); }
.spark { height: 46px; margin-top: 10px; display: flex; align-items: flex-end; gap: 5px; }
.spark i { flex: 1; background: var(--grad-brand); border-radius: 4px 4px 0 0; opacity: .85; }

/* automation nodes mini */
.flow-mini { display: flex; align-items: center; gap: 8px; }
.flow-mini .node { flex: 1; height: 38px; border-radius: 10px; background: var(--card); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 600; box-shadow: var(--shadow-sm); }
.flow-mini .arr { color: var(--brand-1); font-weight: 700; }
.flow-mini .node .d { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- Chat widget (demo) ---------- */
.chatbox {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column;
  max-height: 560px;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat-head .ava { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-brand); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-brand); }
.chat-head .who { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.chat-head .who small { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 12.5px; color: #16A06A; }
.chat-head .who small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1FBE7C; box-shadow: 0 0 0 3px rgba(31,190,124,.2); }
.chat-head .pwr { margin-left: auto; font-size: 11px; color: var(--ink-3); font-family: var(--font-display); letter-spacing: .04em; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-soft); scroll-behavior: smooth; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; box-shadow: var(--shadow-sm); animation: pop .3s var(--ease) both; }
.msg.bot { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg.user { background: var(--ink); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.msg.bot b { color: var(--brand-1); }
.msg.op { background: color-mix(in srgb, var(--brand-1) 8%, var(--card)); border: 1px solid color-mix(in srgb, var(--brand-1) 35%, var(--line)); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg.op .op-tag { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--brand-ink); margin-bottom: 3px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.typing { display: inline-flex; gap: 4px; align-self: flex-start; background: var(--card); border: 1px solid var(--line); padding: 13px 16px; border-radius: 16px; border-bottom-left-radius: 5px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-sugs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 0; }
.sug { font-size: 13px; font-weight: 500; padding: 8px 13px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); transition: transform .2s, background .2s; }
.sug:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 14%, #fff); }
.chat-input { display: flex; gap: 9px; padding: 14px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; height: 46px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-2); padding: 0 18px; outline: none; transition: border-color .2s; }
.chat-input input:focus { border-color: var(--brand-1); }
.chat-input button { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; flex: 0 0 auto; transition: transform .2s; }
.chat-input button:hover { transform: scale(1.06); }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
.svc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; margin-top: 56px; }
.svc-card {
  grid-column: span 2;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.svc-card:nth-child(4) { grid-column: 2 / span 2; }
.svc-card:nth-child(5) { grid-column: 4 / span 2; }
.svc-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-brand); }
.svc-ic.alt { background: var(--ink); box-shadow: none; }
.svc-ic.acc { background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff)); box-shadow: 0 18px 40px -16px var(--accent); }
.svc-ic.pos { background: linear-gradient(120deg, #16B8A8, #0E8A8F 55%, #0C6E86); box-shadow: 0 18px 40px -16px rgba(14, 138, 143, .6); }
.svc-ic.order { background: linear-gradient(120deg, #8B5CF6, #6D28D9 55%, #5B21B6); box-shadow: 0 18px 40px -16px rgba(109, 40, 217, .6); }
.svc-ic svg { width: 28px; height: 28px; }
.svc-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 23px; margin-top: 22px; letter-spacing: -.01em; }
.svc-card .desc { color: var(--ink-3); margin-top: 10px; font-size: 15.5px; }
.svc-card .feat { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.svc-card .feat li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.svc-card .feat li svg { width: 19px; height: 19px; color: var(--brand-1); flex: 0 0 auto; margin-top: 1px; }
.svc-card .more { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--brand-1); white-space: nowrap; }
.svc-card .more svg { width: 17px; height: 17px; transition: transform .25s; }
.svc-card:hover .more svg { transform: translateX(4px); }

/* ---------- Process ---------- */
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; position: relative; }
.proc-grid::before { content: ""; position: absolute; top: 30px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px); z-index: 0; }
.proc-step { position: relative; z-index: 1; }
.proc-step .num { width: 60px; height: 60px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--brand-1); }
.proc-step.hot .num { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }
.proc-step h4 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin-top: 18px; }
.proc-step p { color: var(--ink-3); font-size: 14.5px; margin-top: 8px; }

/* ---------- Pricing ---------- */
.pricing { background: var(--bg-soft); }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 56px; align-items: stretch; }
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.price-card.featured { background: var(--ink); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); position: relative; }
.price-card.featured .tier, .price-card.featured .price small, .price-card.featured .feat li { color: rgba(255,255,255,.72); }
.price-card.featured .feat li svg { color: var(--brand-2); }
.price-tag { position: absolute; top: 22px; right: 22px; font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--grad-brand); color: #fff; }
.price-card .tier { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
.price-card .pname { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-top: 6px; }
.price-card .price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.price-card .price b { font-family: var(--font-display); font-weight: 700; font-size: 40px; letter-spacing: -.02em; }
.price-card .price small { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.price-card .pdesc { font-size: 14.5px; color: var(--ink-3); margin-top: 12px; }
.price-card.featured .pdesc { color: rgba(255,255,255,.7); }
.price-card .feat { list-style: none; margin-top: 24px; display: grid; gap: 12px; flex: 1; }
.price-card .feat li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.price-card .feat li svg { width: 19px; height: 19px; color: var(--brand-1); flex: 0 0 auto; margin-top: 1px; }
.price-card .btn { margin-top: 28px; width: 100%; }
.price-note { text-align: center; margin-top: 28px; font-size: 14px; color: var(--ink-3); }

/* ---------- Testimonials ---------- */
.tst-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 56px; }
.tst-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; display: flex; flex-direction: column; }
.tst-card .quote-mark { font-family: var(--font-display); font-size: 46px; line-height: .6; color: var(--brand-1); height: 28px; }
.tst-card .quote { font-size: 16px; color: var(--ink-2); margin-top: 8px; flex: 1; }
.tst-stars { display: flex; gap: 3px; margin-top: 18px; color: #FFB020; }
.tst-stars svg { width: 17px; height: 17px; }
.tst-by { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.tst-ava { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.tst-by .nm { font-weight: 700; font-size: 15px; }
.tst-by .rl { font-size: 13px; color: var(--ink-3); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-media { display: grid; gap: 16px; }
.about-media > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: block; }
.stat-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.stat-box b { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 44px); letter-spacing: -.02em; display: block; }
.stat-box b .grad-text { display: inline; }
.stat-box span { font-size: 14px; color: var(--ink-3); }
.values { display: grid; gap: 14px; margin-top: 26px; }
.value { display: flex; gap: 14px; }
.value .vic { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-tint); color: var(--brand-1); display: grid; place-items: center; flex: 0 0 auto; }
.value .vic svg { width: 20px; height: 20px; }
.value h5 { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.value p { font-size: 14px; color: var(--ink-3); margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin: 56px auto 0; display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq-item.open { border-color: color-mix(in srgb, var(--brand-1) 35%, transparent); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 24px; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.faq-q .ico { margin-left: auto; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: var(--bg-soft); display: grid; place-items: center; transition: background .25s, transform .35s var(--ease); }
.faq-item.open .faq-q .ico { background: var(--grad-brand); color: #fff; transform: rotate(135deg); }
.faq-q .ico svg { width: 16px; height: 16px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a .inner { padding: 0 24px 24px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Contact / CTA ---------- */
.contact { background: var(--ink); color: #fff; overflow: hidden; position: relative; }
.contact .glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--grad-sun); filter: blur(30px); opacity: .5; top: -180px; right: -120px; pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 72px); position: relative; z-index: 1; }
.contact .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: var(--brand-2); }
.contact h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -.02em; margin-top: 18px; }
.contact .lead { color: rgba(255,255,255,.66); margin-top: 18px; font-size: 17px; max-width: 44ch; }
.contact-info { display: grid; gap: 18px; margin-top: 34px; }
.cinfo { display: flex; align-items: center; gap: 14px; }
.cinfo .ic { width: 46px; height: 46px; border-radius: 13px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; color: var(--brand-2); flex: 0 0 auto; }
.cinfo .ic svg { width: 20px; height: 20px; }
.cinfo small { display: block; color: rgba(255,255,255,.5); font-size: 12.5px; }
.cinfo span { font-weight: 600; font-size: 15.5px; }

.form-card { background: var(--card); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.form-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.form-card .fsub { color: var(--ink-3); font-size: 14.5px; margin-top: 6px; }
.field { margin-top: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field label .req { color: var(--brand-1); }
.field input, .field textarea, .field select {
  width: 100%; height: 50px; border-radius: 13px; border: 1.5px solid var(--line-2);
  padding: 0 15px; outline: none; background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; min-height: 96px; padding: 13px 15px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand-1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-1) 14%, transparent); }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field.invalid input, .field.invalid textarea { border-color: #E5484D; box-shadow: 0 0 0 4px rgba(229,72,77,.12); }
.field .err { display: none; color: #E5484D; font-size: 12.5px; margin-top: 6px; }
.field.invalid .err { display: block; }
.chk-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 7px; }
.chk { position: relative; }
.chk input { position: absolute; opacity: 0; pointer-events: none; }
.chk span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-2); font-size: 14px; font-weight: 500; transition: all .2s; }
.chk span::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-2); transition: all .2s; }
.chk input:checked + span { border-color: var(--brand-1); background: var(--bg-tint); color: var(--brand-1); }
.chk input:checked + span::before { background: var(--grad-brand); border-color: transparent; box-shadow: inset 0 0 0 2px #fff; }
.form-card .btn { width: 100%; margin-top: 24px; }
.form-foot { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 14px; }
.form-success { text-align: center; padding: 30px 10px; display: none; }
.form-success .ok { width: 72px; height: 72px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; margin: 0 auto 18px; box-shadow: var(--shadow-brand); animation: pop .4s var(--ease) both; }
.form-success .ok svg { width: 34px; height: 34px; color: #fff; }
.form-success h3 { font-family: var(--font-display); font-size: 23px; }
.form-success p { color: var(--ink-3); margin-top: 8px; font-size: 15px; }
.form-card.sent form { display: none; }
.form-card.sent .form-success { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-block: 60px; }
.footer .brand { color: #fff; }
.footer .brand small { color: rgba(255,255,255,.45); }
.footer .fdesc { margin-top: 16px; font-size: 14px; max-width: 30ch; }
.footer h6 { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .04em; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer a { font-size: 14px; transition: color .2s; }
.footer a:hover { color: var(--brand-2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.soc { display: flex; gap: 10px; }
.soc a { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: rgba(255,255,255,.7); transition: background .2s, color .2s; }
.soc a:hover { background: var(--brand-1); color: #fff; }
.soc svg { width: 18px; height: 18px; }

/* ---------- Floating chat launcher ---------- */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.fab-panel { width: min(380px, calc(100vw - 36px)); transform-origin: bottom right; transition: transform .35s var(--ease), opacity .3s; transform: scale(.9) translateY(12px); opacity: 0; pointer-events: none; }
.fab.open .fab-panel { transform: none; opacity: 1; pointer-events: auto; }
.fab-btn { width: 62px; height: 62px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-brand); align-self: flex-end; transition: transform .25s; position: relative; }
.fab-btn:hover { transform: scale(1.06); }
.fab-btn svg { width: 27px; height: 27px; }
.fab-btn .badge { position: absolute; top: -2px; right: -2px; width: 20px; height: 20px; border-radius: 50%; background: #E5484D; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.fab-btn .ic-close { display: none; }
.fab.open .fab-btn .ic-open { display: none; }
.fab.open .fab-btn .ic-close { display: block; }
.fab.open .fab-btn .badge { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { scroll-behavior: auto !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--pad) 20px; gap: 2px; box-shadow: var(--shadow); }
  .nav.open .nav-links a { padding: 13px 14px; }
  .v-split .hero-grid, .v-chat .hero-grid { grid-template-columns: 1fr; }
  .v-split .hero-mock, .v-chat .hero-chat { max-width: 560px; }
  .proc-grid { grid-template-columns: 1fr 1fr; }
  .proc-grid::before { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .proc-grid, .about-stats, .footer-grid, .field.row2 { grid-template-columns: 1fr; }
  .hero .trust .sep { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== Accessibility & contrast polish ===== */
:root { --ink-3: #5A606E; --brand-ink: #C2410C; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: 10px 18px; font-weight: 600; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 2px; }
.eyebrow, .svc-card .more, .req { color: var(--brand-ink); }
.field .lbl { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field .lbl .req { color: var(--brand-ink); }
.chk input:focus-visible + span { outline: 3px solid var(--brand-ink); outline-offset: 3px; border-radius: 6px; }

/* ===== Card grids: 3-wide → single column (skip the awkward 2-col zone) ===== */
@media (max-width: 820px) {
  .svc-grid, .price-grid, .tst-grid { grid-template-columns: 1fr; }
  .svc-card, .svc-card:nth-child(4), .svc-card:nth-child(5) { grid-column: auto; }
  .svc-card, .price-card, .tst-card { max-width: 480px; margin-inline: auto; }
}
