/* =========================================================
   tuofeimao — Apple design language · cat brand mark
   Palette: #f5f5f7 canvas · #1d1d1f text · #0071e3 blue
   ========================================================= */

:root {
  /* Apple light materials */
  --bg: #ffffff;
  --bg-elevated: #f5f5f7;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-solid: #ffffff;
  --bg-card-hover: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-fill: rgba(0, 0, 0, 0.04);
  --surface-fill-hover: rgba(0, 0, 0, 0.06);

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --separator: #d2d2d7;

  /* Apple label colors */
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;

  /* System Blue — primary interactive accent only */
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-active: #006edb;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --accent-soft-strong: rgba(0, 113, 227, 0.12);

  --radius-sm: 10px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 8px 28px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.06);
  --shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.08);

  --header-h: 48px;
  --space: clamp(1rem, 3vw, 1.5rem);
  --container: 980px;
  --container-wide: 1120px;

  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 0.32s;
  --dur-fast: 0.12s;

  /* System font stack — optical sizing ships with platform fonts */
  font: 100%/1.47 system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur-fast) ease, opacity var(--dur-fast) ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 980px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 2 * var(--space), var(--container-wide));
  margin-inline: auto;
}

/* ---------- Typography (size-specific tracking) ---------- */
.display {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  font-optical-sizing: auto;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 16ch;
  font-weight: 600;
}

.section-desc {
  margin-top: 1rem;
  max-width: 36rem;
  color: var(--text-secondary);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.47;
  font-weight: 400;
  letter-spacing: -0.011em;
}

.eyebrow {
  display: block;
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Apple uses solid black display type — gradient accents are rare on marketing pages */
.text-gradient {
  color: var(--text);
}

/* ---------- Buttons — feedback on press ---------- */
.btn {
  --btn-scale: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.7rem 1.375rem;
  border: 1px solid transparent;
  border-radius: 980px;
  font: inherit;
  font-weight: 400;
  font-size: 1.0625rem;
  letter-spacing: -0.011em;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transform: scale(var(--btn-scale));
  transition:
    transform 100ms ease-out,
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    box-shadow var(--dur) var(--ease-out);
}

.btn:active {
  --btn-scale: 0.97;
}

.btn-lg {
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  font-size: 1.0625rem;
}

.btn-sm {
  min-height: 36px;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* Primary: solid System Blue, white label */
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-primary:active {
  background: var(--accent-active);
}

/* Ghost / secondary: light fill */
.btn-ghost {
  background: var(--surface-fill);
  border-color: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-fill-hover);
  color: var(--text);
}

.btn-icon {
  display: inline-block;
  font-weight: 500;
  transition: transform var(--dur) var(--ease-out);
}

.btn:hover .btn-icon {
  transform: translateX(2px);
}

/* ---------- Header ----------
   NOTE: Avoid backdrop-filter on this sticky bar.
   On iOS / WeChat WebView, backdrop-filter makes position:fixed
   descendants (mobile menu) size to the header instead of the viewport,
   which causes the "menu floating over hero" bug. Use solid fill instead.
*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

body.is-nav-open .site-header {
  background: #ffffff;
  border-bottom-color: var(--border);
}

.nav {
  position: relative;
  height: var(--header-h);
  width: min(100% - 2 * var(--space), var(--container-wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.022em;
  z-index: 110;
  min-width: 0;
  text-decoration: none !important;
}

.logo:hover {
  color: var(--text);
  opacity: 0.88;
}

.logo:hover .logo-mark {
  transform: scale(1.04);
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
  border-radius: 9px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 4px 12px rgba(0, 113, 227, 0.28);
  transition: transform 160ms var(--ease-out);
}

.logo-mark-sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 3px 10px rgba(0, 113, 227, 0.22);
}

.logo-text {
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-text em {
  font-style: normal;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 110;
  flex-shrink: 0;
}

/* Language switch — compact segmented control */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 980px;
  background: var(--surface-fill);
  border: 1px solid var(--border);
  gap: 0;
}

.lang-btn {
  min-height: 28px;
  min-width: 36px;
  padding: 0.2rem 0.55rem;
  border: 0;
  border-radius: 980px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    transform 100ms ease-out;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn:active {
  transform: scale(0.97);
}

.lang-btn.is-active {
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/*
  Body-level nav menu.
  Desktop: sits in the sticky header band (fixed, transparent).
  Mobile: full-screen drawer below the header (see max-width: 768px).
*/
.nav-menu {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 105;
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  height: var(--header-h);
  width: min(100% - 2 * var(--space), var(--container-wide));
  transform: translateX(-50%);
  pointer-events: none; /* empty area clicks pass through to logo/lang */
  box-sizing: border-box;
  /* Leave room for logo (left) and lang switch (right) */
  padding-left: 10.5rem;
  padding-right: 7.5rem;
  justify-content: flex-end;
}

.nav-menu .nav-list,
.nav-menu .nav-cta {
  pointer-events: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.65rem;
  border-radius: 980px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  opacity: 0.88;
  text-decoration: none !important;
  transition:
    opacity var(--dur-fast) ease,
    background-color var(--dur-fast) ease,
    transform 100ms ease-out;
}

.nav-list a:hover {
  opacity: 1;
  color: var(--text);
  background: var(--surface-fill);
}

.nav-list a:active {
  transform: scale(0.97);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 980px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 100ms ease-out, background-color var(--dur-fast) ease;
}

.nav-toggle:hover {
  background: var(--surface-fill);
}

.nav-toggle:active {
  transform: scale(0.95);
}

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--dur) var(--ease-spring), opacity var(--dur-fast) ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

/* ---------- Hero — airy, restrained ---------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 12vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--bg-elevated);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
}

.hero-orb-1 {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  top: -15%;
  right: 10%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.12), transparent 70%);
}

.hero-orb-2 {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  bottom: -10%;
  left: 5%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.04), transparent 70%);
}

.hero-grid {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}

.hero-actions .btn {
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.3rem 0.8rem;
  border-radius: 980px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--accent);
  background: var(--accent-soft);
}

.badge-outline {
  color: var(--text-secondary);
  background: var(--surface-fill);
}

.hero .display {
  margin-inline: auto;
}

.hero-lead {
  margin: 1.25rem auto 0;
  max-width: 34rem;
  color: var(--text-secondary);
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.47;
  letter-spacing: -0.011em;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 3rem auto 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
  max-width: 32rem;
  text-align: center;
}

.hero-stats dt {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-tertiary);
  margin-bottom: 0.3rem;
}

.hero-stats dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.016em;
  color: var(--text);
}

/* ---------- Trust strip ---------- */
.trust {
  border-block: 1px solid var(--border);
  background: var(--bg);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 1rem 0;
}

.trust-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.35rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-align: center;
}

.trust-icon {
  color: var(--accent);
  font-size: 0.65rem;
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4rem, 10vw, 6.5rem) 0;
  background: var(--bg);
}

.section-alt {
  background: var(--bg-elevated);
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 2.75rem);
  text-align: center;
}

.section-head .section-title {
  margin-inline: auto;
  max-width: 18ch;
}

.section-head .section-desc {
  margin-inline: auto;
}

/* ---------- Cards — white material on gray canvas ---------- */
.glass-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.glass-card:hover {
  box-shadow: var(--shadow-card);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.about-grid h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.55rem;
  letter-spacing: -0.02em;
}

.about-grid p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.47;
  letter-spacing: -0.011em;
}

.about-grid a {
  font-weight: 400;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.service-num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.service-card h3 {
  font-size: 1.3125rem;
  margin-bottom: 0.55rem;
  letter-spacing: -0.022em;
}

.service-card > p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.47;
  margin-bottom: 1.1rem;
  letter-spacing: -0.011em;
}

.check-list li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.2rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.product-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ececf0;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s var(--ease-out);
}

.product-card:hover .product-visual img {
  transform: scale(1.04);
}

.product-card h3 {
  font-size: 1.0625rem;
  padding: 1.1rem 1.1rem 0.35rem;
  letter-spacing: -0.016em;
}

.product-card p {
  padding: 0 1.1rem 1.2rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
}

@media (prefers-reduced-motion: reduce) {
  .product-card:hover .product-visual img {
    transform: none;
  }
}

/* ---------- Process ---------- */
.process-list {
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
  margin-inline: auto;
}

.process-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-sm);
}

.process-step {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 980px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  background: var(--accent);
}

.process-body h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.016em;
}

.process-body p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.47;
  letter-spacing: -0.011em;
}

/* ---------- Why ---------- */
.why-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.why-copy {
  text-align: left;
}

.why-copy .section-title,
.why-copy .section-desc {
  margin-inline: 0;
}

.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 100%;
}

.why-item strong {
  font-size: 1rem;
  letter-spacing: -0.016em;
  font-weight: 600;
}

.why-item span {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
}

/* ---------- Contact ---------- */
.contact-section {
  padding-bottom: clamp(4.5rem, 10vw, 6.5rem);
  background: var(--bg-elevated);
}

.contact-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-elevated);
}

.contact-copy {
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.contact-copy .section-title {
  max-width: 12ch;
  text-align: left;
}

.contact-copy .section-desc {
  text-align: left;
}

.contact-copy .eyebrow {
  text-align: left;
}

.contact-meta {
  margin-top: 2rem;
  display: grid;
  gap: 1.15rem;
}

.contact-meta li {
  display: grid;
  gap: 0.2rem;
}

.meta-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-tertiary);
}

.contact-meta a {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: break-all;
  text-decoration: none;
}

.contact-meta a:hover {
  text-decoration: underline;
}

.contact-meta span:not(.meta-label) {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 1rem;
}

.contact-panel {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.contact-panel-title {
  font-weight: 600;
  letter-spacing: -0.016em;
  margin-bottom: 0.85rem;
  font-size: 1.0625rem;
}

.hint-list {
  flex: 1;
  margin-bottom: 1.5rem;
}

.hint-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
}

.hint-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.contact-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--text-tertiary);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.25rem;
  background: var(--bg-elevated);
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand .logo-mark {
  flex-shrink: 0;
}

.footer-brand strong {
  display: block;
  letter-spacing: -0.016em;
  font-size: 0.9375rem;
}

.footer-brand p {
  margin-top: 0.1rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 400;
  text-decoration: none !important;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline !important;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .trust-list {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-layout {
    grid-template-columns: 1fr;
  }

  .why-copy {
    text-align: center;
  }

  .why-copy .section-title,
  .why-copy .section-desc {
    margin-inline: auto;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .contact-copy .section-title,
  .contact-copy .section-desc,
  .contact-copy .eyebrow {
    text-align: center;
    margin-inline: auto;
  }

  .contact-meta {
    text-align: center;
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  /* Mid widths: tighten desktop strip padding so links don't collide */
  .nav-menu {
    padding-left: 9.5rem;
    padding-right: 7rem;
    gap: 0.35rem;
  }

  .nav-list a {
    padding-inline: 0.45rem;
    font-size: 0.7rem;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 52px;
  }

  .nav {
    width: 100%;
    max-width: none;
    padding-inline: max(var(--space), env(safe-area-inset-left, 0px))
      max(var(--space), env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }

  .logo {
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
  }

  .logo-mark {
    width: 28px;
    height: 28px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  /*
    Full-screen solid drawer — body-level fixed, viewport-relative.
    Closed: fully hidden (not semi-transparent over the page).
  */
  .nav-menu {
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: none;
    transform: none;
    padding: 1rem max(var(--space), env(safe-area-inset-left, 0px))
      max(1.5rem, env(safe-area-inset-bottom, 0px))
      max(var(--space), env(safe-area-inset-right, 0px));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.75rem;
    background: #ffffff;
    border-top: 1px solid var(--border);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 95;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.25s var(--ease-out),
      visibility 0.25s;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu .nav-list,
  .nav-menu .nav-cta {
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    width: 100%;
  }

  .nav-list a {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem;
    font-size: 1.0625rem;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    opacity: 1;
    box-sizing: border-box;
  }

  .nav-cta {
    display: flex;
    width: 100%;
    min-height: 48px;
    margin-top: 0.25rem;
  }

  body.is-nav-open main,
  body.is-nav-open .site-footer {
    pointer-events: none;
    user-select: none;
  }

  .hero {
    padding-top: clamp(2rem, 8vw, 3.5rem);
  }

  .display {
    font-size: clamp(2rem, 9vw, 2.75rem);
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-badges {
    gap: 0.4rem;
  }

  .badge {
    font-size: 0.7rem;
    max-width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .container {
    width: min(100% - 2 * var(--space), var(--container-wide));
  }

}

@media (max-width: 520px) {
  .logo-text em {
    display: none;
  }

  .trust-list {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .why-list {
    grid-template-columns: 1fr;
  }

  .section-title {
    max-width: none;
  }

  .hero-stats dd {
    font-size: 0.9rem;
  }
}

/* Very narrow phones */
@media (max-width: 360px) {
  .lang-btn {
    min-width: 32px;
    padding-inline: 0.4rem;
    font-size: 0.7rem;
  }

  .logo-text {
    font-size: 0.9rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .service-card:hover,
  .product-card:hover {
    transform: none;
  }

  .btn:active {
    --btn-scale: 1;
  }

}

/* ---------- Reduced transparency ---------- */
@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: #ffffff;
  }
}

/* ---------- Higher contrast ---------- */
@media (prefers-contrast: more) {
  :root {
    --border: rgba(0, 0, 0, 0.35);
    --border-strong: rgba(0, 0, 0, 0.5);
    --text-secondary: #3a3a3c;
  }

  .glass-card,
  .service-card,
  .product-card,
  .process-item,
  .contact-card {
    border-width: 2px;
  }
}

/* Safe area for notched phones — pad chrome, not the whole body (avoids overflow) */
@supports (padding: max(0px)) {
  .site-footer {
    padding-bottom: max(2.25rem, env(safe-area-inset-bottom));
  }

  .mail-sheet {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* ---------- Mail contact sheet ---------- */
.mail-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: end center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.mail-sheet[hidden] {
  display: none;
}

.mail-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  border: 0;
  cursor: pointer;
}

.mail-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  margin-bottom: 0.5rem;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-elevated);
  transform-origin: bottom center;
  animation: mail-sheet-in 0.35s var(--ease-out);
}

@keyframes mail-sheet-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mail-sheet-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 980px;
  background: var(--surface-fill);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 100ms ease-out, background-color var(--dur-fast) ease;
}

.mail-sheet-close:hover {
  background: var(--surface-fill-hover);
}

.mail-sheet-close:active {
  transform: scale(0.95);
}

.mail-sheet-title {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
  padding-right: 2rem;
}

.mail-sheet-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.47;
  margin-bottom: 1.15rem;
}

.mail-sheet-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.mail-sheet-email {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.016em;
  word-break: break-all;
  color: var(--text);
  user-select: all;
}

.mail-sheet-actions {
  display: grid;
  gap: 0.55rem;
}

.mail-sheet-hint {
  min-height: 1.25rem;
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--accent);
}

@media (min-width: 520px) {
  .mail-sheet {
    place-items: center;
  }

  .mail-sheet-panel {
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mail-sheet-panel {
    animation: none;
  }
}
