/* ============================================================
   ETouch Web Studio — Aigocy design system, ETouch brand palette
   Brand: navy #0f1f3d + electric blue #1a56db
   ============================================================ */

:root {
  /* ETouch brand */
  --brand: #1a56db;
  --brand-soft: color-mix(in srgb, var(--brand) 10%, transparent);
  --brand-glow: color-mix(in srgb, var(--brand) 32%, transparent);
  --brand-ink: color-mix(in srgb, var(--brand), white 22%);
  --brand-text-on-fill: #ffffff;
  --navy: #0f1f3d;

  /* neutrals (zinc ramp) */
  --primary: #09090b;
  --secondary: #71717a;
  --neutral-50: #fafafa;
  --neutral-100: #f4f4f5;
  --neutral-200: #e4e4e7;
  --neutral-300: #d4d4d8;
  --neutral-400: #a1a1aa;
  --neutral-500: #71717a;
  --neutral-600: #52525b;
  --neutral-700: #3f3f46;
  --neutral-800: #27272a;
  --neutral-900: #18181b;
  --neutral-950: #09090b;
  --white: #ffffff;

  /* type */
  --font-display: "Urbanist", system-ui, -apple-system, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  /* layout */
  --max-w: 1200px;
  --gutter: 24px;

  /* radius vocabulary — only 3 */
  --radius-pill: 99px;
  --radius-card: 16px;
  --radius-input: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* anchor targets clear the sticky pill nav */
section[id], .hero[id] { scroll-margin-top: 100px; }

body {
  margin: 0;
  background: var(--neutral-50);
  color: var(--neutral-700);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

p { margin: 0 0 1em; }

a { color: var(--brand); text-decoration: none; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- eyebrow pill ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.eyebrow svg { width: 14px; height: 14px; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  cursor: pointer;
}
.btn.primary { background: var(--primary); color: var(--white); }
.btn.primary:hover { background: var(--navy); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--primary); border-color: var(--neutral-300); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.brand { background: var(--brand); color: var(--brand-text-on-fill); }
.btn.brand:hover { background: var(--brand-ink); transform: translateY(-1px); }
.btn.block { width: 100%; }

/* ---------- sticky pill nav ---------- */
.nav-pill {
  position: sticky;
  top: 20px;
  z-index: 50;
  max-width: var(--max-w);
  margin: 20px auto 0;
  padding: 8px 8px 8px 24px;
  width: calc(100% - var(--gutter) * 2);
  display: flex;
  align-items: center;
  gap: 26px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.nav-pill .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-pill .brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-pill nav { display: flex; gap: 22px; margin-left: auto; }
.nav-pill nav a {
  font-size: 14.5px;
  color: var(--neutral-600);
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-pill nav a:hover { color: var(--primary); }
.nav-pill nav a.active { color: var(--primary); border-bottom-color: var(--brand); }
.nav-pill .btn { padding: 11px 22px; font-size: 14.5px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--primary); margin: 5px 0; border-radius: 2px;
}

/* ---------- hero + ambient glow ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 0 90px;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(44px, 7vw, 92px);
  color: var(--secondary);
  margin: 26px 0 22px;
  max-width: 17ch;
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}
.hero .lead {
  font-size: 18px;
  color: var(--neutral-600);
  max-width: 56ch;
  margin-bottom: 34px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 52% at 82% 34%, var(--brand-glow), transparent 70%),
    radial-gradient(40% 46% at 12% 78%, color-mix(in srgb, var(--navy) 26%, transparent), transparent 72%);
}
.scroll-indicator {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-family: var(--font-mono);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- section furniture ---------- */
section { padding-block: 108px; }
section.tight { padding-block: 72px; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 54px); margin: 20px 0 18px; }
.section-head .lead { font-size: 17.5px; color: var(--neutral-600); max-width: 60ch; }

/* ---------- service item (numbered) ---------- */
.services { display: grid; gap: 0; }
.service-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 30px;
  padding: 46px 0;
  border-bottom: 1px solid var(--neutral-200);
  align-items: start;
}
.service-item:last-child { border-bottom: 0; }
.service-item .step {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  color: var(--brand);
  line-height: 1;
  padding-top: 6px;
}
.service-item h3 { font-size: 27px; margin-bottom: 12px; }
.service-item p { color: var(--neutral-600); max-width: 62ch; }
.deliverables { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.deliverables li {
  font-size: 13.5px;
  color: var(--neutral-700);
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}
.deliverables li::before { content: "→ "; color: var(--brand); }

/* ---------- work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08); }
.work-card .thumb {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--navy), var(--brand));
}
.work-card .thumb span {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.02em;
}
.work-card .body { padding: 22px; }
.work-card h3 { font-size: 19px; margin-bottom: 8px; }
.work-card p { font-size: 14.5px; color: var(--neutral-600); margin: 0 0 14px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--neutral-500);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}

/* ---------- process timeline ---------- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.process article {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  position: relative;
}
.process h4 { font-size: 21px; margin-bottom: 12px; }
.process p { font-size: 15px; color: var(--neutral-600); margin-bottom: 18px; }
.process .duration {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  color: var(--neutral-700);
}
.process .step-num {
  position: absolute;
  top: 30px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--brand);
}

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.price-tier {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-card);
  padding: 34px 30px;
  position: relative;
}
.price-tier.featured { border-color: var(--brand); box-shadow: 0 16px 44px rgba(26, 86, 219, 0.12); }
.price-tier .tag {
  position: absolute;
  top: -13px;
  left: 30px;
  background: var(--brand);
  color: var(--brand-text-on-fill);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 5px 14px;
}
.price-tier h3 { font-size: 20px; margin-bottom: 18px; }
.price-tier .price { margin-bottom: 6px; }
.price-tier .price .amount {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.price-tier .price .period { font-size: 15px; color: var(--neutral-500); }
.price-tier .meta { font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--neutral-600); margin-bottom: 18px; }
.price-tier .features { list-style: none; padding: 0; margin: 0 0 26px; }
.price-tier .features li { font-size: 14.5px; color: var(--neutral-700); padding: 7px 0; display: flex; gap: 10px; }
.price-tier .features li::before { content: "✓"; color: var(--brand); font-weight: 700; }

/* ---------- testimonial ---------- */
.quote-wrap { max-width: 820px; margin: 0 auto; text-align: center; }
.quote-wrap blockquote {
  margin: 0 0 26px;
  font-size: 22px;
  line-height: 1.55;
  color: var(--neutral-700);
  font-family: var(--font-display);
  font-weight: 500;
}
.quote-who { display: flex; align-items: center; justify-content: center; gap: 14px; }
.quote-who .avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(140deg, var(--navy), var(--brand));
  display: grid; place-items: center;
  color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 18px;
}
.quote-who .who-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--primary); }
.quote-who .who-role { font-size: 13.5px; color: var(--neutral-500); font-family: var(--font-serif); font-style: italic; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--neutral-200); }
.faq summary {
  cursor: pointer;
  padding: 24px 34px 24px 0;
  font-weight: 600;
  font-size: 17.5px;
  color: var(--primary);
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 22px;
  font-size: 24px;
  font-weight: 300;
  color: var(--brand);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 34px 24px 0; color: var(--neutral-600); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  border-radius: var(--radius-card);
  padding: 66px 58px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 70% at 78% 30%, color-mix(in srgb, var(--brand) 46%, transparent), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: var(--white); font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; }
.cta-band p { color: rgba(255, 255, 255, 0.72); max-width: 54ch; margin: 0 auto 30px; font-size: 17px; }
.cta-band .btn.primary { background: var(--white); color: var(--navy); }
.cta-band .btn.primary:hover { background: var(--brand); color: var(--white); }
.cta-band .btn.ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.34); }
.cta-band .btn.ghost:hover { border-color: var(--white); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; }
.contact-list li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--neutral-200); align-items: flex-start; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--neutral-400);
  text-transform: uppercase;
  min-width: 96px;
  padding-top: 3px;
}
.contact-list .v { color: var(--neutral-700); font-size: 15.5px; }
.contact-list .v a { color: var(--brand); }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--neutral-700); }
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 15px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-input);
  background: var(--white);
  color: var(--primary);
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { min-height: 132px; resize: vertical; }
.form-note { font-size: 13px; color: var(--neutral-500); }
.form-status { font-size: 14.5px; font-weight: 500; min-height: 22px; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }

/* ---------- footer ---------- */
footer { background: var(--neutral-100); margin-top: 40px; }
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer__brand img { width: 34px; height: 34px; border-radius: 8px; }
.footer__brand span { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--primary); }
.footer__inner p { font-size: 14.5px; color: var(--neutral-600); max-width: 34ch; }
.footer__inner h5 {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin: 0 0 16px;
}
.footer__inner ul { list-style: none; padding: 0; margin: 0; }
.footer__inner ul li { margin-bottom: 10px; }
.footer__inner ul a { font-size: 14.5px; color: var(--neutral-600); }
.footer__inner ul a:hover { color: var(--brand); }
.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px var(--gutter);
  border-top: 1px solid var(--neutral-200);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--neutral-500);
}

/* ---------- footer signature (canonical) ---------- */
.foot-signature {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid rgba(250, 250, 247, 0.04);
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #6b665c;
  padding-bottom: 30px;
}
.foot-signature a { color: var(--brand); font-weight: 500; transition: color 0.15s; }
.foot-signature a:hover { color: var(--primary); }

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

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-pill { padding: 8px 12px 8px 20px; gap: 12px; }
  .nav-pill .brand { font-size: 17px; gap: 8px; min-width: 0; }
  .nav-pill .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-pill .brand img { width: 26px; height: 26px; }
  .nav-pill nav { display: none; }
  .nav-toggle { display: block; margin-left: auto; order: 2; flex: none; }
  .nav-pill .btn { order: 3; flex: none; padding: 10px 16px; font-size: 13.5px; }
  .nav-pill.open nav {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 18px 24px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.1);
    gap: 14px;
  }
  .work-grid, .pricing, .process { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .service-item { grid-template-columns: 64px 1fr; gap: 18px; }
}
@media (max-width: 520px) {
  .nav-pill .brand span { font-size: 14px; }
  .nav-pill .btn { padding: 9px 13px; font-size: 12.5px; }
  .nav-pill .brand img { display: none; }
}
@media (max-width: 600px) {
  section { padding-block: 72px; }
  .footer__inner { grid-template-columns: 1fr; }
  .cta-band { padding: 46px 26px; }
  .hero { min-height: 78vh; padding: 70px 0 60px; }
}

@media print {
  .foot-signature { display: none; }
}
