/* ==========================================================================
   Adarmi — main stylesheet
   1. Design tokens   2. Base   3. Layout   4. Components   5. Sections
   6. Pages           7. Chat   8. Motion   9. Responsive
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --navy: #0B1120;          /* Midnight Navy */
  --blue: #2563EB;          /* Electric Blue */
  --cyan: #22D3EE;          /* Cyan */
  --white: #F8FAFC;         /* White */
  --black: #05080F;
  --surface: #0F172A;
  --surface-2: #131D33;
  --border: rgba(148, 163, 184, .16);
  --border-strong: rgba(34, 211, 238, .35);
  --text: #E2E8F0;
  --muted: #94A3B8;
  --gradient: linear-gradient(135deg, var(--blue), var(--cyan));
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px rgba(34, 211, 238, .25), 0 18px 50px -12px rgba(37, 99, 235, .45);
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --container: 1200px;
  --header-h: 72px;
}

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  color: var(--text); background: var(--black);
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(37, 99, 235, .14), transparent 60%), linear-gradient(180deg, var(--navy), var(--black) 120%);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--white); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--white); }
code { font-family: var(--mono); font-size: .9em; background: rgba(255,255,255,.07); padding: .1em .35em; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: var(--white); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--white); color: var(--navy); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: #CBD5E1; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gradient); border-radius: 2px; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
main:focus { outline: none; }

/* 3. Layout -------------------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section.tight { padding-top: clamp(2rem, 5vw, 3.5rem); }
.section.alt { background: linear-gradient(180deg, rgba(15, 23, 42, .65), rgba(11, 17, 32, .3)); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* 4. Components ---------------------------------------------------------- */
.btn {
  --bg: transparent; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.4rem; border-radius: 999px; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; color: var(--white); background: var(--bg);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); color: var(--white); }
.btn-primary { background: var(--gradient); box-shadow: 0 10px 30px -10px rgba(37, 99, 235, .8); }
.btn-primary:hover { box-shadow: 0 14px 38px -10px rgba(34, 211, 238, .75); }
.btn-ghost { border-color: rgba(248, 250, 252, .22); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .08); }
.btn-sm { padding: .55rem 1.05rem; font-size: .92rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.btn-row.center { justify-content: center; }

.card {
  position: relative; background: linear-gradient(180deg, rgba(19, 29, 51, .85), rgba(15, 23, 42, .85));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}
.card-icon {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; margin-bottom: 1.25rem;
  color: var(--cyan); background: linear-gradient(135deg, rgba(37, 99, 235, .22), rgba(34, 211, 238, .12)); border: 1px solid rgba(34, 211, 238, .25);
}
.card-icon.lg { width: 72px; height: 72px; border-radius: 18px; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; margin-top: auto; }
.card-link svg { transition: transform .2s ease; }
.card-link:hover svg { transform: translateX(4px); }

.check-list { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; }
.check-list svg { flex: none; color: var(--cyan); margin-top: .2rem; }
.check-list.cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}

.preview-ribbon { background: repeating-linear-gradient(135deg, #1E293B 0 12px, #172033 12px 24px); color: #FDE68A; text-align: center; font-size: .85rem; padding: .45rem 1rem; border-bottom: 1px solid rgba(253, 230, 138, .25); }
.internal-notice { border: 1px dashed rgba(253, 230, 138, .55); background: rgba(253, 230, 138, .07); color: #FDE68A; border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 2rem; font-size: .95rem; }
.internal-notice code { color: #FDE68A; }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .1rem .45rem; border-radius: 6px; background: rgba(253, 230, 138, .15); color: #FDE68A; border: 1px solid rgba(253, 230, 138, .35); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease; border-bottom: 1px solid transparent; }
.site-header.is-scrolled, .site-header.nav-open { background: rgba(11, 17, 32, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.logo-word { color: var(--white); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .35rem; }
.nav-list a:not(.btn) { display: block; padding: .5rem .8rem; color: #CBD5E1; text-decoration: none; font-weight: 500; font-size: .97rem; border-radius: 8px; position: relative; }
.nav-list a:not(.btn):hover { color: var(--white); }
.nav-list a[aria-current="page"] { color: var(--white); }
.nav-list a[aria-current="page"]::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--gradient); }
.nav-cta { margin-left: .6rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--white); border-radius: 10px; padding: .45rem; cursor: pointer; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--black); padding: 4rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1fr; gap: 2.5rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-title { font-size: .8rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.footer-slogan { color: var(--white); font-weight: 600; margin-top: 1rem; margin-bottom: .4rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); }
.footer-bottom p { margin: 0; }
.legal { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.legal a { color: var(--muted); text-decoration: none; }
.legal a:hover { color: var(--white); }

/* 5. Sections ------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.hero-glow { position: absolute; width: 700px; height: 700px; right: -150px; top: -200px; background: radial-gradient(circle, rgba(37, 99, 235, .35), transparent 65%); filter: blur(20px); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { max-width: 580px; }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: #CBD5E1; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-points svg { color: var(--cyan); }
.hero-footnote { font-size: .8rem; color: var(--muted); margin-top: .75rem; }
.hero-footnote a { color: var(--muted); }
.hero-art { position: relative; }
.hero-visual { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(37, 99, 235, .25)); }

.intro-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3rem; align-items: start; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.service-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s ease; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .14), transparent 45%); }
.service-card:hover, .service-card:focus-within { border-color: var(--border-strong); box-shadow: var(--glow); }
.service-card:hover::before, .service-card:focus-within::before { opacity: 1; }
.service-card p { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature { padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(15, 23, 42, .55); transition: border-color .25s ease, transform .25s ease; }
.feature:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.feature p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, transparent, var(--blue), var(--cyan), transparent); opacity: .5; }
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step-num { position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 1.25rem; font-family: var(--mono); font-weight: 700; color: var(--white); background: var(--navy); border: 1px solid var(--cyan); box-shadow: 0 0 24px rgba(34, 211, 238, .3); }
.step p { color: var(--muted); font-size: .97rem; }

.pricing-teaser { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.pricing-teaser > div { max-width: 720px; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.project-card { display: flex; flex-direction: column; }
.project-thumb { aspect-ratio: 16 / 9; border-radius: 12px; margin: -.5rem -.5rem 1.25rem; display: grid; place-items: center; color: rgba(34, 211, 238, .55); background: linear-gradient(135deg, rgba(37, 99, 235, .14), rgba(34, 211, 238, .06)), repeating-linear-gradient(45deg, rgba(148, 163, 184, .05) 0 10px, transparent 10px 20px); border: 1px dashed rgba(34, 211, 238, .25); overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.status-pill { align-self: flex-start; font-size: .75rem; font-weight: 600; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: .25rem .65rem; border-radius: 999px; color: var(--cyan); background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .3); }
.status-pill.done { color: #86EFAC; background: rgba(134, 239, 172, .1); border-color: rgba(134, 239, 172, .3); }
.tag-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-list li { font-size: .82rem; padding: .2rem .6rem; border-radius: 6px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); color: #CBD5E1; }
.note-card { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(15, 23, 42, .6); color: var(--muted); }
.note-card svg { color: var(--cyan); flex: none; }
.note-card p { margin: 0; }

.faq-list { display: grid; gap: .8rem; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: rgba(15, 23, 42, .65); transition: border-color .2s ease; }
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.15rem 3.25rem 1.15rem 1.4rem; font-weight: 600; color: var(--white); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 1.4rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: translateY(-70%) rotate(45deg); transition: transform .25s ease; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-body { padding: 0 1.4rem 1.2rem; color: #CBD5E1; }
.faq-body p { margin: 0; }

.cta-band { position: relative; overflow: hidden; text-align: center; padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem); border-radius: 28px; border: 1px solid var(--border-strong); background: linear-gradient(135deg, rgba(37, 99, 235, .25), rgba(11, 17, 32, .9) 55%, rgba(34, 211, 238, .18)); }
.cta-band h2 { max-width: 760px; margin-inline: auto; position: relative; }
.cta-band .lead { max-width: 640px; margin-inline: auto; position: relative; }
.cta-glow { position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, rgba(34, 211, 238, .25), transparent); pointer-events: none; }

/* 6. Pages --------------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); }
.page-hero .container { position: relative; max-width: 900px; margin-left: max(1.25rem, calc((100% - var(--container)) / 2)); }
.page-hero.not-found { min-height: 60vh; display: grid; align-items: center; }
.page-hero.not-found .container { margin-inline: auto; }
.page-hero.not-found .eyebrow { justify-content: center; }

.service-jump { margin-bottom: 1rem; }
.service-jump ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.service-jump a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--border); color: #CBD5E1; text-decoration: none; font-size: .9rem; background: rgba(15, 23, 42, .6); transition: border-color .2s ease, color .2s ease; }
.service-jump a:hover { border-color: var(--cyan); color: var(--white); }
.service-jump svg { color: var(--cyan); }
.service-list { padding: 2rem 0 4rem; display: grid; gap: 1.5rem; }
.service-detail { display: grid; grid-template-columns: 140px 1fr; gap: 2rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 24px; border: 1px solid var(--border); background: linear-gradient(135deg, rgba(19, 29, 51, .85), rgba(11, 17, 32, .7)); transition: border-color .25s ease; }
.service-detail:hover, .service-detail:target { border-color: var(--border-strong); }
.service-detail-head { display: flex; flex-direction: column; gap: 1rem; }
.service-index { font-family: var(--mono); font-size: 2.5rem; font-weight: 700; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.service-detail .lead { max-width: 760px; }
.service-detail .check-list { margin-bottom: 2rem; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card .check-list { flex: 1; }
.price-card.is-featured { border-color: var(--border-strong); box-shadow: var(--glow); background: linear-gradient(180deg, rgba(37, 99, 235, .2), rgba(15, 23, 42, .9) 40%); }
.price-flag { position: absolute; top: -13px; left: 2rem; margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .75rem; border-radius: 999px; background: var(--gradient); color: var(--white); }
.price { margin: .25rem 0 .75rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .45rem; }
.amount { font-size: 2.1rem; font-weight: 800; color: var(--white); letter-spacing: -.02em; }
.per { color: var(--muted); font-size: .95rem; }
.support-band { margin-top: 1.5rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; padding: 1.75rem 2rem; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(15, 23, 42, .7); }
.support-band .card-icon { margin: 0; }
.support-band h3 { margin-bottom: .3rem; }
.support-band h3 .amount { font-size: 1.25rem; }
.support-band p { margin: 0; color: var(--muted); }
.fees-note { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.5rem; color: #CBD5E1; font-size: .95rem; }
.fees-note svg { color: var(--cyan); flex: none; margin-top: .2rem; }

.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: start; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; color: var(--white); padding: 0; }
.req { color: var(--cyan); }
.opt { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--white); background: rgba(5, 8, 15, .6);
  border: 1px solid rgba(148, 163, 184, .28); border-radius: 10px; padding: .75rem .9rem; transition: border-color .2s ease, box-shadow .2s ease;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
select option, select optgroup { background: var(--navy); color: var(--white); }
textarea { resize: vertical; min-height: 140px; }
input::placeholder, textarea::placeholder { color: #64748B; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .2); }
[aria-invalid="true"] { border-color: #F87171 !important; }
.error { color: #FCA5A5; font-size: .87rem; margin: .35rem 0 0; min-height: 0; }
.error:empty { display: none; }
.radio-row { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.radio, .checkbox { display: inline-flex; align-items: flex-start; gap: .55rem; font-weight: 400 !important; cursor: pointer; color: #CBD5E1 !important; }
.radio input, .checkbox input { width: 18px; height: 18px; accent-color: var(--blue); margin-top: .2rem; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 10px; border: 1px solid var(--border-strong); background: rgba(34, 211, 238, .07); color: var(--white); }
.form-status.is-error { border-color: rgba(248, 113, 113, .5); background: rgba(248, 113, 113, .08); }
.contact-side { display: grid; gap: 1.25rem; }
.side-card { padding: 1.6rem; }
.side-card h2 { font-size: 1.2rem; }
.side-card p { color: var(--muted); margin: 0 0 .5rem; }
.mini-steps { margin: 0; padding-left: 1.2rem; color: var(--muted); display: grid; gap: .35rem; }

.prose { color: #CBD5E1; }
.prose h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: .5rem; }

/* 7. Chat assistant ------------------------------------------------------ */
.chat { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 80; }
.chat-launcher { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.2rem .85rem 1rem; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; color: var(--white); background: var(--gradient); box-shadow: 0 12px 34px -8px rgba(37, 99, 235, .8), 0 0 0 1px rgba(255, 255, 255, .12) inset; transition: transform .2s ease; }
.chat-launcher:hover { transform: translateY(-2px); }
.chat-launcher[aria-expanded="true"] { display: none; }
.chat-panel { position: absolute; right: 0; bottom: 0; width: min(390px, calc(100vw - 2rem)); height: min(600px, calc(100vh - 6rem)); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-strong); background: rgba(11, 17, 32, .97); backdrop-filter: blur(16px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), var(--glow); transform-origin: bottom right; animation: chat-in .22s ease-out; }
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1rem .9rem; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, rgba(37, 99, 235, .25), rgba(34, 211, 238, .08)); }
.chat-head h2 { font-size: 1rem; margin: 0; }
.chat-status { margin: .1rem 0 0; font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.chat-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient); color: var(--white); }
.chat-close { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: .35rem; border-radius: 8px; }
.chat-close:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .65rem; scroll-behavior: smooth; }
.msg { max-width: 88%; padding: .65rem .9rem; border-radius: 14px; font-size: .94rem; line-height: 1.5; }
.msg p { margin: 0 0 .4rem; } .msg p:last-child { margin: 0; }
.msg ul { margin: .3rem 0; padding-left: 1.1rem; }
.msg.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; }
.msg a { color: var(--cyan); }
.msg .note { font-size: .78rem; color: var(--muted); }
.chat-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .75rem; }
.chat-quick button { font: inherit; font-size: .82rem; padding: .4rem .75rem; border-radius: 999px; cursor: pointer; color: var(--cyan); background: rgba(34, 211, 238, .07); border: 1px solid rgba(34, 211, 238, .35); transition: background-color .2s ease; }
.chat-quick button:hover { background: rgba(34, 211, 238, .16); }
.chat-input { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; padding: .6rem .8rem; }
.chat-send { flex: none; width: 44px; border: 0; border-radius: 10px; cursor: pointer; color: var(--white); background: var(--gradient); display: grid; place-items: center; }
.lead-form { display: grid; gap: .5rem; margin-top: .5rem; }
.lead-form input[type="text"], .lead-form input[type="email"] { padding: .5rem .7rem; font-size: .9rem; }
.lead-form .checkbox { font-size: .82rem; }
.lead-form .btn { padding: .55rem 1rem; font-size: .9rem; }

/* 8. Motion -------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.hv-orbit { transform-origin: 280px 270px; animation: spin 60s linear infinite; }
.hv-orbit-rev { animation-duration: 45s; animation-direction: reverse; }
.hv-flow { stroke-dasharray: 6 8; animation: flow 3s linear infinite; }
.hv-pulse { transform-origin: 280px 270px; animation: pulse 4s ease-in-out infinite; }
.hv-float { animation: float 7s ease-in-out infinite; }
.hv-d2 { animation-delay: -2.3s; } .hv-d3 { animation-delay: -4.6s; }
.hv-typing { animation: typing 1.4s ease-in-out infinite; } .hv-t2 { animation-delay: .2s; } .hv-t3 { animation-delay: .4s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { to { stroke-dashoffset: -28; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes typing { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .service-card { transform: none !important; }
}

/* 9. Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-list { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.25rem 1.5rem; background: rgba(11, 17, 32, .98); border-bottom: 1px solid var(--border); display: none; }
  .nav-open .nav-list { display: flex; }
  .nav-list a:not(.btn) { padding: .85rem .5rem; border-bottom: 1px solid var(--border); }
  .nav-list a[aria-current="page"]::after { left: .5rem; right: auto; width: 24px; bottom: .5rem; }
  .nav-cta { margin: 1rem 0 0; } .nav-cta .btn { width: 100%; padding: .8rem; }
  .hero-inner, .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin-inline: auto; }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .support-band { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .card-grid, .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { text-align: left; display: grid; grid-template-columns: 56px 1fr; column-gap: 1rem; }
  .step-num { grid-row: span 2; margin: 0; }
  .step h3 { margin: .25rem 0 .25rem; }
  .service-detail { grid-template-columns: 1fr; gap: 1rem; }
  .service-detail-head { flex-direction: row; align-items: center; justify-content: space-between; }
  .form-row.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 1.5rem; }
  .chat { right: .75rem; bottom: .75rem; }
  .chat-launcher-label { display: none; }
  .chat-launcher { padding: .9rem; }
  .btn-row .btn-lg { width: 100%; }
}
