/* =========================================================
   Ascend Neural — Editorial Dark + Neural Pulse
   ========================================================= */

:root {
  --bg: #0a0c14;
  --bg-soft: #11141f;
  --bg-elev: #181c2a;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.18);
  --text: #f2efe6;
  --text-mute: rgba(242, 239, 230, 0.58);
  --text-faint: rgba(242, 239, 230, 0.32);
  --accent: #6fffd2;
  --accent-glow: rgba(111, 255, 210, 0.35);
  --accent-warm: #ffb57a;
  --max: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', 'Noto Sans TC', 'Noto Sans SC', system-ui, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}

/* Chinese typography — slightly looser line height, proper CJK fonts */
html[data-lang="zh-TW"] body {
  font-family: 'DM Sans', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;
  line-height: 1.7;
}

html[data-lang="zh-CN"] body {
  font-family: 'DM Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  line-height: 1.7;
}

/* Fake-italic on CJK looks bad — keep emphasis via color/underline instead */
html[data-lang^="zh"] em {
  font-style: normal;
}

/* Display fonts still use Instrument Serif for Latin glyphs, CJK falls back */
html[data-lang="zh-TW"] .hero-title,
html[data-lang="zh-TW"] .section-title,
html[data-lang="zh-TW"] .product-name,
html[data-lang="zh-TW"] .care-title,
html[data-lang="zh-TW"] .footer-brand h3,
html[data-lang="zh-TW"] .legal-page h1,
html[data-lang="zh-TW"] .legal-page h2,
html[data-lang="zh-TW"] .marquee-track,
html[data-lang="zh-TW"] .service-card h3,
html[data-lang="zh-TW"] .advantage-item h4,
html[data-lang="zh-TW"] .solution-row h4 {
  font-family: 'Instrument Serif', 'Noto Serif TC', 'Songti TC', 'PingFang TC', serif;
}

html[data-lang="zh-CN"] .hero-title,
html[data-lang="zh-CN"] .section-title,
html[data-lang="zh-CN"] .product-name,
html[data-lang="zh-CN"] .care-title,
html[data-lang="zh-CN"] .footer-brand h3,
html[data-lang="zh-CN"] .legal-page h1,
html[data-lang="zh-CN"] .legal-page h2,
html[data-lang="zh-CN"] .marquee-track,
html[data-lang="zh-CN"] .service-card h3,
html[data-lang="zh-CN"] .advantage-item h4,
html[data-lang="zh-CN"] .solution-row h4 {
  font-family: 'Instrument Serif', 'Noto Serif SC', 'Songti SC', 'PingFang SC', serif;
}

/* Subtle grain overlay across the whole site */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.25'/></svg>");
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* =========================================================
   Typography
   ========================================================= */

.display {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.mono.small {
  font-size: 10px;
}

em {
  font-style: italic;
  color: var(--accent);
}

/* =========================================================
   Navigation
   ========================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px var(--pad);
  background: rgba(10, 12, 20, 0.55);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), padding 0.4s var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  padding: 12px var(--pad);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 22px;
  height: 22px;
  position: relative;
  display: inline-flex;
}

.logo-mark::before,
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

.logo-mark::after {
  inset: 4px;
  background: var(--accent);
  opacity: 0.35;
}

.logo-text {
  font-family: 'Instrument Serif', serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-mute);
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 13px;
  padding: 9px 16px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s var(--ease);
  background: rgba(255, 255, 255, 0.02);
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(111, 255, 210, 0.06);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.lang-switch button {
  background: transparent;
  border: none;
  color: var(--text-mute);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  min-width: 28px;
  text-align: center;
}

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

.lang-switch button.active {
  background: var(--text);
  color: var(--bg);
}

/* Legal-page top banner shown when not English */
.lang-banner {
  background: rgba(255, 181, 122, 0.08);
  border: 1px solid rgba(255, 181, 122, 0.22);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-mute);
  margin-bottom: 48px;
}

.lang-banner strong {
  color: var(--accent-warm);
  font-weight: 500;
}

.lang-banner[hidden] {
  display: none;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--pad) 80px;
  overflow: hidden;
  isolation: isolate;
}

#neural-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.7;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    transparent,
    var(--bg) 75%
  );
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  animation: rise 1s var(--ease) 0.1s both;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 124px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  max-width: 14ch;
  animation: rise 1.1s var(--ease) 0.25s both;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
  position: relative;
}

.hero-title em::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-mute);
  max-width: 52ch;
  margin-bottom: 40px;
  line-height: 1.6;
  animation: rise 1.1s var(--ease) 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: rise 1.1s var(--ease) 0.55s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -10px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-2);
  color: var(--text);
}

.btn-secondary span {
  transition: transform 0.3s var(--ease);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-secondary:hover span {
  transform: translateX(4px);
}

/* Side annotations */
.hero-side {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  opacity: 0;
  animation: rise 1.4s var(--ease) 0.9s both;
}

.hero-side-left {
  left: var(--pad);
  bottom: 90px;
}

.hero-side-right {
  right: var(--pad);
  bottom: 90px;
  align-items: flex-end;
  text-align: right;
}

@media (max-width: 900px) {
  .hero-side { display: none; }
}

/* =========================================================
   Marquee
   ========================================================= */

.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--text-mute);
  font-style: italic;
}

.marquee-track span.sep {
  color: var(--accent);
  font-style: normal;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================
   Section base
   ========================================================= */

.section {
  padding: clamp(80px, 12vw, 160px) var(--pad);
  position: relative;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 80px;
  max-width: 800px;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.section-intro {
  font-size: 17px;
  color: var(--text-mute);
  max-width: 56ch;
  line-height: 1.6;
}

/* =========================================================
   Services Grid
   ========================================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--bg);
  padding: 48px 40px;
  position: relative;
  transition: background 0.4s var(--ease);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  background: var(--bg-soft);
}

.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.service-card:hover .service-num::after {
  background: var(--accent);
  transition: background 0.4s var(--ease);
}

.service-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: auto;
}

.service-en {
  display: block;
  margin-top: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.3s var(--ease);
}

.service-card:hover .service-en {
  color: var(--accent);
}

/* =========================================================
   Advantage
   ========================================================= */

.section-dark {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 50%, var(--bg) 100%);
}

.advantage-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 900px) {
  .advantage-grid { grid-template-columns: 1fr; gap: 48px; }
}

.advantage-features {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.advantage-item {
  background: var(--bg);
  padding: 32px 0;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  transition: padding 0.4s var(--ease);
}

.advantage-item:hover {
  padding-left: 20px;
  padding-right: 20px;
}

.advantage-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 6px;
}

.advantage-item h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.advantage-item p {
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.6;
}

/* Decorative visual block */
.advantage-visual {
  position: sticky;
  top: 120px;
  aspect-ratio: 1 / 1.1;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 30%, rgba(111, 255, 210, 0.12), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(107, 138, 255, 0.08), transparent 50%),
    var(--bg-soft);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit {
  position: absolute;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 { width: 60%; height: 60%; animation: spin 30s linear infinite; }
.orbit-2 { width: 80%; height: 80%; animation: spin 50s linear infinite reverse; opacity: 0.6; }
.orbit-3 { width: 100%; height: 100%; opacity: 0.35; }

.orbit::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-2::after { background: var(--accent-warm); box-shadow: 0 0 16px rgba(255, 181, 122, 0.5); }

.orbit-core {
  width: 80px;
  height: 80px;
  background: var(--bg-elev);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  position: relative;
  z-index: 2;
}

.visual-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =========================================================
   Solutions
   ========================================================= */

.solutions-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.solution-row {
  display: grid;
  grid-template-columns: 100px 1fr 1.2fr 60px;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
  cursor: pointer;
}

.solution-row:hover {
  padding-left: 20px;
  padding-right: 20px;
  background: var(--bg-soft);
}

.solution-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

.solution-row h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.solution-row p {
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.55;
}

.solution-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  transition: all 0.3s var(--ease);
  justify-self: end;
}

.solution-row:hover .solution-arrow {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(-45deg);
}

@media (max-width: 800px) {
  .solution-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }
  .solution-arrow { display: none; }
}

/* =========================================================
   Contact
   ========================================================= */

.contact-section {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(111, 255, 210, 0.07), transparent),
    var(--bg);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-meta-item {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.contact-meta-item .mono {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
}

.contact-meta-item p {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-2);
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  outline: none;
  transition: border-color 0.3s var(--ease);
  resize: none;
}

.field textarea {
  min-height: 100px;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 12px;
}

.form-note {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 8px;
}

/* =========================================================
   Footer
   ========================================================= */

footer {
  border-top: 1px solid var(--border);
  padding: 80px var(--pad) 40px;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

.footer-brand h3 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-mute);
  font-size: 15px;
  max-width: 36ch;
}

.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-mute);
  font-size: 14px;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-bottom a:hover { color: var(--accent); }

/* =========================================================
   Legal pages
   ========================================================= */

.legal-page {
  padding: 160px var(--pad) 120px;
  max-width: 820px;
  margin: 0 auto;
}

.legal-page .section-label {
  margin-bottom: 16px;
}

.legal-page h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.legal-page .lead {
  font-size: 18px;
  color: var(--text-mute);
  line-height: 1.6;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.legal-page h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 48px 0 16px;
}

.legal-page p,
.legal-page li {
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-page ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-page strong {
  color: var(--text);
  font-weight: 500;
}

/* =========================================================
   Animations
   ========================================================= */

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.3); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Compliance / Customer Care section
   ========================================================= */

.compliance-section {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(107, 138, 255, 0.06), transparent),
    var(--bg);
}

.compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 1000px) {
  .compliance-grid { grid-template-columns: 1fr; gap: 56px; }
}

.care-block {
  position: sticky;
  top: 120px;
}

.care-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.care-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.care-item {
  background: var(--bg);
  padding: 20px 0;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: baseline;
}

.care-item .mono {
  color: var(--accent);
}

.care-item .value {
  font-family: 'Instrument Serif', serif;
  font-size: 19px;
  letter-spacing: -0.005em;
  line-height: 1.35;
  color: var(--text);
}

.care-item .value small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 4px;
  letter-spacing: 0;
}

@media (max-width: 540px) {
  .care-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0;
  }
}

/* Policy tile grid */

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .policy-grid { grid-template-columns: 1fr; }
}

.policy-tile {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
  position: relative;
  transition: background 0.4s var(--ease);
  cursor: pointer;
}

.policy-tile:hover {
  background: var(--bg-soft);
}

.policy-tile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.policy-tile-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.policy-tile-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  font-size: 13px;
  transition: all 0.3s var(--ease);
}

.policy-tile:hover .policy-tile-arrow {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(-45deg);
}

.policy-tile h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.policy-tile p {
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.55;
  margin-top: auto;
}

/* =========================================================
   Pricing / Engagements
   ========================================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
}

.product-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
}

.product-card.featured {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(111, 255, 210, 0.06) 0%, var(--bg-soft) 40%),
    var(--bg-soft);
  box-shadow: 0 30px 60px -30px var(--accent-glow);
}

.product-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.product-tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-tier-num { color: var(--text-faint); }
.product-tier-tag { color: var(--accent); }

.product-name {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.product-tagline {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.55;
  margin-bottom: 28px;
  min-height: 44px;
}

.product-price {
  font-family: 'Instrument Serif', serif;
  font-size: 56px;
  letter-spacing: -0.025em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.product-price .currency {
  font-size: 22px;
  color: var(--text-mute);
  margin-right: 4px;
}

.product-price .from {
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-mute);
  margin-right: 8px;
  font-style: italic;
  align-self: center;
}

.product-price .per {
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-mute);
  font-style: normal;
  margin-left: 2px;
}

.product-price-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 32px;
  padding: 0;
  flex: 1;
}

.product-features li {
  font-size: 14px;
  color: var(--text);
  display: flex;
  gap: 12px;
  line-height: 1.5;
}

.product-features li::before {
  content: '';
  flex-shrink: 0;
  width: 14px;
  height: 1px;
  background: var(--accent);
  margin-top: 11px;
}

.product-card:not(.featured) .product-features li::before {
  background: var(--text-faint);
}

.product-cta {
  width: 100%;
  justify-content: center;
  padding: 13px 18px;
}

.product-card.featured .product-cta {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.product-card.featured .product-cta:hover {
  background: var(--text);
  border-color: var(--text);
  box-shadow: 0 14px 30px -10px var(--accent-glow);
}

.product-card:not(.featured) .product-cta {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text);
}

.product-card:not(.featured) .product-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.product-foot {
  font-size: 10.5px;
  color: var(--text-faint);
  text-align: center;
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pricing-note {
  margin-top: 48px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pricing-note .mono {
  color: var(--accent);
  white-space: nowrap;
}

.pricing-note a {
  border-bottom: 1px solid var(--border-2);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.pricing-note a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* =========================================================
   Expanded footer (4 columns)
   ========================================================= */

.footer-top.four {
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.1fr;
}

@media (max-width: 900px) {
  .footer-top.four { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 540px) {
  .footer-top.four { grid-template-columns: 1fr; }
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-contact .mono {
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 13px;
}

.footer-contact .mono.small {
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-meta-line {
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.55;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }
}

/* =========================================================
   DYNAMIC GLASS
   Layered glassmorphism with mouse-tracked spotlight + edge glow.
   Variables --mouse-x / --mouse-y are set per-card by script.js
   ========================================================= */

/* ── Ambient drifting glow blobs in dark sections ── */
.section-dark {
  position: relative;
  overflow: hidden;
}

.section-dark > .section-inner {
  position: relative;
  z-index: 2;
}

.section-dark::before {
  content: '';
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(42% 48% at 18% 28%, rgba(111, 255, 210, 0.075) 0%, transparent 60%),
    radial-gradient(38% 42% at 82% 72%, rgba(255, 181, 122, 0.05) 0%, transparent 60%),
    radial-gradient(30% 38% at 50% 100%, rgba(111, 255, 210, 0.04) 0%, transparent 60%);
  animation: ambient-drift 28s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

@keyframes ambient-drift {
  0%   { transform: translate3d(0, 0, 0)        rotate(0deg); }
  33%  { transform: translate3d(40px, -25px, 0) rotate(2deg); }
  66%  { transform: translate3d(-25px, 30px, 0) rotate(-1.5deg); }
  100% { transform: translate3d(15px, -10px, 0) rotate(1deg); }
}

/* ── Subtle ambient glow even in light sections (for service cards) ── */
#services {
  position: relative;
  overflow: hidden;
}
#services > .section-inner { position: relative; z-index: 2; }
#services::before {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(35% 40% at 25% 40%, rgba(111, 255, 210, 0.025) 0%, transparent 60%),
    radial-gradient(30% 35% at 75% 60%, rgba(111, 255, 210, 0.02) 0%, transparent 60%);
  animation: ambient-drift 32s ease-in-out infinite alternate-reverse;
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

/* ── Glass treatment: cards become translucent + frosted ── */
.product-card,
.service-card,
.policy-tile {
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Re-establish featured product card on top of glass base */
.product-card.featured {
  background:
    linear-gradient(180deg, rgba(111, 255, 210, 0.08) 0%, rgba(255, 255, 255, 0.012) 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008));
  border-color: rgba(111, 255, 210, 0.45);
  box-shadow:
    0 30px 60px -30px var(--accent-glow),
    inset 0 1px 0 rgba(111, 255, 210, 0.18);
}

/* Layer 1: mouse-tracked radial spotlight (soft inner glow) */
.product-card::before,
.service-card::before,
.policy-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    520px circle at var(--mouse-x) var(--mouse-y),
    rgba(111, 255, 210, 0.10),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  z-index: 0;
}

.product-card:hover::before,
.service-card:hover::before,
.policy-tile:hover::before {
  opacity: 1;
}

/* Layer 2: mouse-tracked edge glow (the signature "shiny border") */
.product-card::after,
.service-card::after,
.policy-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    340px circle at var(--mouse-x) var(--mouse-y),
    rgba(111, 255, 210, 0.65),
    rgba(111, 255, 210, 0) 55%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
  z-index: 1;
}

.product-card:hover::after,
.service-card:hover::after,
.policy-tile:hover::after {
  opacity: 1;
}

/* Ensure card content stays above the glass layers */
.product-card > *,
.service-card > *,
.policy-tile > * {
  position: relative;
  z-index: 2;
}

/* ── Glass nav — enhanced backdrop ── */
.nav {
  background: linear-gradient(180deg,
    rgba(10, 12, 20, 0.72) 0%,
    rgba(10, 12, 20, 0.48) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Glass contact form ── */
.contact-form {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Glass care block (compliance section) ── */
.care-block {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.006));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Performance: disable glass effects on tiny screens ── */
@media (max-width: 600px) {
  .product-card,
  .service-card,
  .policy-tile,
  .contact-form,
  .care-block {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg-soft);
  }
  .section-dark::before,
  #services::before {
    animation-duration: 60s; /* slow down on mobile to save battery */
  }
}

/* ── Respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .section-dark::before,
  #services::before {
    animation: none;
  }
}

/* =========================================================
   Contact form — honeypot & response message
   ========================================================= */

/* Honeypot: hidden from sighted humans, visible to crawlers/bots */
.hp-trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Form response (success / error) */
.form-result {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
  border: 1px solid transparent;
  background: transparent;
  color: transparent;
  display: none;
  transition: opacity 0.25s var(--ease);
}

.form-result.success,
.form-result.error {
  display: block;
}

.form-result.success {
  background: rgba(111, 255, 210, 0.07);
  border-color: rgba(111, 255, 210, 0.28);
  color: var(--accent);
}

.form-result.error {
  background: rgba(255, 181, 122, 0.08);
  border-color: rgba(255, 181, 122, 0.28);
  color: var(--accent-warm);
}
