/* ============================================================
   MOYISOFT 墨忆软件 — Dark premium, ink-meets-code aesthetic
   ============================================================ */

:root {
  /* color */
  --bg: #05060a;
  --bg-2: #080b14;
  --bg-3: #0b1020;
  --ink: #eef1f8;
  --muted: rgba(238, 241, 248, 0.58);
  --faint: rgba(238, 241, 248, 0.34);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --cyan: #46e0ff;
  --violet: #8a6bff;
  --magenta: #ff5cc4;

  --glass: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.06);

  --accent-grad: linear-gradient(110deg, var(--cyan), var(--violet) 55%, var(--magenta));
  --glow-cyan: 0 0 40px rgba(70, 224, 255, 0.35);

  /* type */
  --font-display: "Syne", "Noto Serif SC", serif;
  --font-body: "Manrope", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "Space Mono", "Noto Sans SC", monospace;

  /* layout */
  --maxw: 1240px;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --radius: 18px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* page intro: the whole page fades in on load */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageIn .55s ease-out both; }
@media (prefers-reduced-motion: reduce) { body { animation: none; } }

/* base ambient gradient behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60% 50% at 50% 8%, rgba(138, 107, 255, 0.16), transparent 70%),
    radial-gradient(50% 40% at 85% 70%, rgba(255, 92, 196, 0.10), transparent 70%),
    radial-gradient(60% 50% at 10% 90%, rgba(70, 224, 255, 0.10), transparent 70%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
img, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }
::selection { background: rgba(138, 107, 255, 0.4); color: #fff; }

/* ---------- canvas + fallback ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}
.fallback-orb {
  position: fixed;
  top: 30%; left: 50%;
  width: 46vmax; height: 46vmax;
  transform: translate(-50%, -50%);
  z-index: -2;
  display: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 35%, rgba(70, 224, 255, 0.55), transparent 55%),
    radial-gradient(circle at 65% 60%, rgba(255, 92, 196, 0.45), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(138, 107, 255, 0.6), transparent 62%);
  filter: blur(30px);
  animation: floatOrb 14s ease-in-out infinite;
}
body.no-webgl .fallback-orb { display: block; }
@keyframes floatOrb {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -56%) scale(1.06); }
}

/* ---------- grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.05);
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent-grad);
  box-shadow: var(--glow-cyan);
}

/* ---------- custom cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 10001; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: width .25s ease, height .25s ease, border-color .25s ease, background .25s ease;
}
.cursor.is-hover .cursor-ring { width: 56px; height: 56px; border-color: var(--violet); background: rgba(138, 107, 255, 0.1); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem var(--pad);
  transition: padding .4s ease, background .4s ease, backdrop-filter .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 0.85rem var(--pad);
  background: rgba(6, 8, 14, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
/* logo mark: MOYISOFT app icon — deep-ink rounded "seal" with the white glyph
   and cyan accent dot, used in the nav and footer */
.brand-mark {
  position: relative;
  width: 2.1rem; height: 2.1rem;
  border-radius: 22%;
  overflow: hidden;
  flex: none;
  box-shadow: 0 5px 18px rgba(10, 8, 32, 0.55);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.brand-mark .brand-img {
  display: block;
  width: 100%; height: 100%;
}
.brand:hover .brand-mark {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(70, 224, 255, 0.32);
}
.brand-name {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.92rem;
  color: var(--muted);
  position: relative;
  padding: 0.2rem 0;
  transition: color .25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.6,.1,.1,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 1.1rem; }
.lang-toggle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--muted);
  transition: border-color .25s, color .25s;
}
.lang-toggle:hover { color: var(--ink); border-color: var(--violet); }
.lang-toggle .lang-current { color: var(--ink); }
.lang-toggle .lang-sep { margin: 0 0.25rem; opacity: 0.4; }

.menu-toggle { display: none; flex-direction: column; gap: 6px; padding: 0.5rem; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  transition: transform .25s ease, box-shadow .3s ease, background .3s ease, color .3s, border-color .3s;
  will-change: transform;
}
.btn-primary {
  background: var(--accent-grad);
  color: #05060a;
  font-weight: 600;
  box-shadow: 0 6px 30px rgba(138, 107, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 44px rgba(138, 107, 255, 0.55); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--glass);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--violet); background: var(--glass-2); }
.nav-cta { padding: 0.6rem 1.2rem; font-size: 0.86rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--pad) 4rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
/* readability scrim behind hero text */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 30% 0 -50vw;
  z-index: -1;
  background: linear-gradient(100deg, rgba(5, 6, 10, 0.92) 30%, rgba(5, 6, 10, 0.55) 60%, transparent 85%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 40rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin-bottom: 1.6rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-size: clamp(2.8rem, 9vw, 6.6rem);
}
.hero-title .line { display: block; }
.hero-title .accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
:root[data-lang="zh"] .hero-title { letter-spacing: 0.04em; line-height: 1.12; }
/* English reads at a smaller scale than the Chinese display type */
:root[data-lang="en"] .hero-title { font-size: clamp(2rem, 5vw, 3.9rem); line-height: 1.04; letter-spacing: -0.02em; }

.hero-sub {
  margin-top: 1.8rem;
  max-width: 36rem;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--muted);
  font-weight: 300;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }

.scroll-hint {
  position: absolute;
  bottom: 2.2rem; left: var(--pad);
  display: flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.scroll-hint-line {
  width: 46px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  position: relative; overflow: hidden;
}
.scroll-hint-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--cyan);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) var(--pad);
}
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--violet);
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
:root[data-lang="zh"] .section-title { letter-spacing: 0.02em; }
.section-lead {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  max-width: 40rem;
}

/* ============================================================
   SERVICES — glass cards
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card {
  position: relative;
  padding: 2rem 1.8rem 2.2rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .4s, background .4s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(138, 107, 255, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); background: var(--glass-2); }
.card:hover::before { opacity: 1; }

.card-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.05em;
}
.card-glyph {
  width: 48px; height: 48px;
  margin: 1.4rem 0 1.4rem;
  border-radius: 12px;
  position: relative;
  background: var(--glass-2);
  border: 1px solid var(--line);
}
/* abstract glyphs drawn with gradients/clip */
.card-glyph::after {
  content: "";
  position: absolute; inset: 11px;
  background: var(--accent-grad);
  border-radius: 4px;
}
.card-glyph[data-glyph="engineering"]::after { clip-path: polygon(0 50%, 28% 22%, 28% 78%, 100% 50%, 72% 22%, 72% 78%); }
.card-glyph[data-glyph="ai"]::after { border-radius: 50%; clip-path: polygon(50% 0,61% 35%,100% 35%,68% 57%,79% 100%,50% 72%,21% 100%,32% 57%,0 35%,39% 35%); }
.card-glyph[data-glyph="cloud"]::after { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; inset: 14px 9px; }
.card-glyph[data-glyph="design"]::after { border-radius: 50%; clip-path: circle(50% at 50% 50%); inset: 9px; -webkit-mask: radial-gradient(circle at 50% 50%, transparent 22%, #000 23%); mask: radial-gradient(circle at 50% 50%, transparent 22%, #000 23%); }
.card-glyph[data-glyph="data"]::after { clip-path: polygon(0 100%, 0 60%, 33% 60%, 33% 30%, 66% 30%, 66% 0, 100% 0, 100% 100%); }
.card-glyph[data-glyph="experience"]::after { border-radius: 50%; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}
.card p { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); }
.about-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  margin-top: 1rem;
  letter-spacing: -0.01em;
}
:root[data-lang="zh"] .about-title { letter-spacing: 0.02em; }
.about-right p { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); margin-bottom: 1.2rem; max-width: 36rem; }

/* ============================================================
   VISION — closing statement
   ============================================================ */
.vision { text-align: center; max-width: 60rem; }
.vision .section-index { display: block; margin-bottom: 2rem; }
.vision-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.4vw, 3.2rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  position: relative;
}
:root[data-lang="zh"] .vision-quote { line-height: 1.45; letter-spacing: 0.03em; }
.vision-quote::before {
  content: "“";
  display: block;
  font-size: 4rem;
  line-height: 0.5;
  margin-bottom: 1.6rem;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.vision-by {
  margin-top: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--faint);
}

/* ============================================================
   PRODUCTS — featured product card
   ============================================================ */
.product-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3rem);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .4s, background .4s, box-shadow .4s;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px circle at 10% -10%, rgba(70, 224, 255, 0.12), transparent 55%),
    radial-gradient(520px circle at 105% 120%, rgba(138, 107, 255, 0.18), transparent 55%);
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: var(--glass-2);
  /* 负 spread 收紧投影，避免向上溢出到相邻卡片表面（仅向下柔和散开） */
  box-shadow: 0 26px 48px -16px rgba(8, 10, 20, 0.55);
}
.product-card + .product-card { margin-top: clamp(1.2rem, 3vw, 2rem); }
.product-num {
  position: relative;
  align-self: start;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--faint);
  letter-spacing: 0.05em;
}
.product-body { position: relative; }
.product-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.product-logo {
  flex: none;
  width: clamp(2.4rem, 5vw, 3rem);
  height: clamp(2.4rem, 5vw, 3rem);
  filter: drop-shadow(0 6px 16px rgba(91, 124, 255, 0.4));
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.product-logo svg { display: block; width: 100%; height: 100%; }
.product-card:hover .product-logo { transform: translateY(-2px) rotate(-3deg); }
.product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.015em;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.product-kind {
  margin-top: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.02em;
  color: var(--ink);
}
.product-desc {
  margin-top: 0.9rem;
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.3rem;
}
.product-tags li {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.4rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
}
.product-go {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  color: var(--ink);
  transition: border-color .3s, background .3s, transform .3s;
}
.product-card:hover .product-go { border-color: var(--violet); background: var(--glass-2); }
.product-go svg { transition: transform .3s ease; }
.product-card:hover .product-go svg { transform: translate(2px, -2px); }

@media (max-width: 720px) {
  .product-card { grid-template-columns: 1fr; align-items: start; }
  .product-go { justify-self: start; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem var(--pad) 3rem;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}
.footer-tagline { font-family: var(--font-display); color: var(--muted); letter-spacing: 0.02em; }
.footer-links { display: flex; gap: 1.6rem; }
.footer-links a { color: var(--muted); font-size: 0.9rem; transition: color .25s; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--faint);
}
.footer-bottom .mono { font-family: var(--font-mono); letter-spacing: 0.04em; }

.footer-beian {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin-top: 1.4rem;
  font-size: 0.78rem;
}
.beian-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--faint);
  transition: color .25s;
}
.beian-link:hover { color: var(--muted); }
.beian-link img { height: 18px; width: auto; opacity: 0.85; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .visual-orb, .scroll-hint-line::after { animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav.menu-open { background: rgba(6,8,14,0.96); backdrop-filter: blur(20px); }
  .nav.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--pad) 1.6rem;
    border-bottom: 1px solid var(--line);
    background: rgba(6,8,14,0.98);
  }
  .nav.menu-open .nav-links a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .nav.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .cards { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
