/* ═══════════ HoWay.co — Dark Tech Theme ═══════════ */
:root {
  --bg: #05070f;
  --bg-alt: #090d1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef1f8;
  --text-dim: #98a2b8;
  --cyan: #38e1ff;
  --violet: #8b5cf6;
  --blue: #4f7cff;
  --grad: linear-gradient(100deg, var(--cyan), var(--blue) 50%, var(--violet));
  --font-en: "Space Grotesk", sans-serif;
  --font-zh: "Noto Sans SC", sans-serif;
  --radius: 18px;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en), var(--font-zh);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Language switching ── */
html[lang="zh"] .en { display: none !important; }
html[lang="en"] .zh { display: none !important; }
html[lang="zh"] body { font-family: var(--font-zh), var(--font-en); }

h1, h2, h3 { line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.br-d { display: none; }
@media (min-width: 760px) { .br-d { display: block; } }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 7, 15, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-weight: 700; color: #04060d; font-size: 1.1rem;
  box-shadow: 0 0 24px rgba(79, 124, 255, 0.45);
}
.logo-text { font-family: var(--font-en); }
.logo-dot { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 0.95rem; }
.nav-links a { color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  padding: 9px 20px; border-radius: 999px;
  border: 1px solid rgba(56, 225, 255, 0.4);
  background: rgba(56, 225, 255, 0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { background: rgba(56, 225, 255, 0.16); box-shadow: 0 0 20px rgba(56, 225, 255, 0.25); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 999px; padding: 7px 14px; cursor: pointer;
  font-family: var(--font-en); font-size: 0.85rem; letter-spacing: 0.02em;
  transition: border-color 0.2s;
}
.lang-toggle:hover { border-color: rgba(255, 255, 255, 0.25); }
.lang-sep { margin: 0 5px; opacity: 0.4; }
html[lang="zh"] .zh-opt, html[lang="en"] .en-opt { color: var(--cyan); font-weight: 600; }
.menu-btn { display: none; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.32; pointer-events: none;
}
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(5, 7, 15, 0.25) 0%, rgba(5, 7, 15, 0.78) 75%, var(--bg) 100%),
              linear-gradient(180deg, rgba(5, 7, 15, 0.6), transparent 30%, transparent 70%, var(--bg));
}
#neural { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; }
.orb-1 { width: 480px; height: 480px; background: rgba(79, 124, 255, 0.22); top: -120px; left: -120px; animation: drift 14s ease-in-out infinite alternate; }
.orb-2 { width: 420px; height: 420px; background: rgba(139, 92, 246, 0.18); bottom: -100px; right: -100px; animation: drift 17s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.1); } }

.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.88rem; color: var(--text-dim); margin-bottom: 30px;
  backdrop-filter: blur(8px);
}
.badge-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(56, 225, 255, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(56, 225, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 225, 255, 0); }
}
.hero-title { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 900; margin-bottom: 24px; }
.hero-sub { font-size: clamp(1.02rem, 2vw, 1.25rem); color: var(--text-dim); margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad); color: #04060d;
  box-shadow: 0 8px 32px rgba(79, 124, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 44px rgba(79, 124, 255, 0.5); }
.btn-ghost { border-color: var(--border); background: var(--surface); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--surface-hover); }
.btn-whatsapp { background: #22c55e; color: #04160a; box-shadow: 0 8px 28px rgba(34, 197, 94, 0.35); margin-top: 8px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Hero dashboard mockup ── */
.hero-mock {
  max-width: 960px; margin: 0 auto 60px; text-align: left;
  border-radius: 20px; border: 1px solid rgba(96, 150, 255, 0.25);
  background: rgba(6, 9, 20, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 80px rgba(79, 124, 255, 0.14);
  transform: perspective(1400px) rotateX(8deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.hero-mock:hover { transform: perspective(1400px) rotateX(0deg); }
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; }
.mock-bar span:nth-child(1) { background: #ff5f57; }
.mock-bar span:nth-child(2) { background: #febc2e; }
.mock-bar span:nth-child(3) { background: #28c840; }
.mock-bar em { font-style: normal; font-size: 0.8rem; color: var(--text-dim); margin-left: 10px; font-family: var(--font-en); letter-spacing: 0.04em; }
.mock-live { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 700; color: #28c840; letter-spacing: 0.12em; font-family: var(--font-en); }
.mock-live i { width: 7px; height: 7px; border-radius: 50%; background: #28c840; box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.5); animation: pulse 1.6s infinite; }
.mock-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; }
.mock-pane { padding: 18px; min-height: 250px; }
.mock-pane + .mock-pane { border-left: 1px solid var(--border); }
.pane-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; color: var(--text-dim);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px;
}
.pane-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: pulse 2s infinite; }

.chat-feed { display: flex; flex-direction: column; gap: 9px; font-size: 0.82rem; line-height: 1.5; }
.cmsg { max-width: 88%; padding: 8px 13px; border-radius: 13px; opacity: 0; transform: translateY(8px); animation: cmsgIn 0.4s forwards; }
.cmsg-in { align-self: flex-start; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--text); }
.cmsg-out { align-self: flex-end; background: rgba(56, 225, 255, 0.1); border: 1px solid rgba(56, 225, 255, 0.35); border-bottom-right-radius: 4px; color: var(--text); }
.cmsg-typing { align-self: flex-end; display: flex; gap: 4px; padding: 11px 14px; background: rgba(56, 225, 255, 0.08); border: 1px solid rgba(56, 225, 255, 0.25); border-radius: 13px; border-bottom-right-radius: 4px; }
.cmsg-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); animation: typebounce 1s infinite; }
.cmsg-typing i:nth-child(2) { animation-delay: 0.15s; }
.cmsg-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes cmsgIn { to { opacity: 1; transform: none; } }
@keyframes typebounce { 30% { transform: translateY(-4px); opacity: 1; } 60% { transform: none; } }

.flow-svg { width: 100%; height: auto; margin-bottom: 10px; }
.flow-line { animation: dashmove 1.2s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -12; } }
.flow-node rect { fill: rgba(255, 255, 255, 0.05); stroke: rgba(96, 150, 255, 0.5); stroke-width: 1.2; }
.flow-node text { font-size: 13px; text-anchor: middle; fill: #eef1f8; }
.flow-log { font-size: 0.76rem; color: var(--text-dim); display: grid; gap: 5px; font-family: var(--font-en); }
.flow-log p { animation: logfade 6s infinite; opacity: 0.4; }
.flow-log p:nth-child(1) { animation-delay: 0s; }
.flow-log p:nth-child(2) { animation-delay: 2s; }
.flow-log p:nth-child(3) { animation-delay: 4s; }
@keyframes logfade { 0%, 100% { opacity: 0.35; } 15%, 35% { opacity: 1; color: #7ee2a0; } }

.kpi { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.08); }
.kpi-label { font-size: 0.8rem; color: var(--text-dim); }
.kpi-num { font-family: var(--font-en); font-weight: 700; font-size: 1.15rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spark { width: 100%; height: 48px; margin-top: 14px; }
.spark-fill { fill: rgba(56, 225, 255, 0.09); }
.spark-line { stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: sparkdraw 2.4s ease-out forwards, sparkglow 3s ease-in-out 2.4s infinite alternate; }
@keyframes sparkdraw { to { stroke-dashoffset: 0; } }
@keyframes sparkglow { from { filter: drop-shadow(0 0 2px rgba(56, 225, 255, 0.4)); } to { filter: drop-shadow(0 0 7px rgba(56, 225, 255, 0.9)); } }

/* ── Card visuals ── */
.card-viz {
  height: 116px; margin-bottom: 20px; border-radius: 13px;
  background: rgba(3, 5, 12, 0.55); border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  padding: 10px 14px;
}
.card-viz svg { width: 100%; height: 100%; }
.nx-link { stroke: rgba(96, 150, 255, 0.35); stroke-width: 1; }
.nx-core { fill: var(--cyan); filter: drop-shadow(0 0 6px rgba(56, 225, 255, 0.9)); }
.nx-core-ring { fill: none; stroke: rgba(56, 225, 255, 0.5); stroke-width: 1; animation: ringpulse 2.4s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ringpulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.nx-dot { fill: #6096ff; animation: nxblink 2.4s infinite; }
.nx-dot.d2 { animation-delay: 0.4s; } .nx-dot.d3 { animation-delay: 0.8s; } .nx-dot.d4 { animation-delay: 1.2s; } .nx-dot.d5 { animation-delay: 1.6s; } .nx-dot.d6 { animation-delay: 2s; }
@keyframes nxblink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

.pipe-line { stroke: rgba(96, 150, 255, 0.5); stroke-width: 1.5; animation: dashmove 1.2s linear infinite; }
.pipe-node rect { fill: rgba(255, 255, 255, 0.05); stroke: rgba(96, 150, 255, 0.5); stroke-width: 1.2; }
.pipe-node text { font-size: 14px; text-anchor: middle; fill: #eef1f8; }

.viz-chat { flex-direction: column; align-items: stretch; justify-content: center; gap: 7px; font-size: 0.78rem; }
.viz-chat .vb { max-width: 85%; padding: 6px 11px; border-radius: 11px; line-height: 1.45; opacity: 0; }
.vb-in { align-self: flex-start; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--border); border-bottom-left-radius: 3px; animation: vbcycle 7s infinite; }
.vb-typing { align-self: flex-end; display: flex; gap: 4px; padding: 9px 12px; background: rgba(56, 225, 255, 0.08); border: 1px solid rgba(56, 225, 255, 0.25); border-radius: 11px; border-bottom-right-radius: 3px; animation: vbtypecycle 7s infinite; }
.vb-typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); animation: typebounce 1s infinite; }
.vb-typing i:nth-child(2) { animation-delay: 0.15s; }
.vb-typing i:nth-child(3) { animation-delay: 0.3s; }
.vb-out { align-self: flex-end; background: rgba(56, 225, 255, 0.1); border: 1px solid rgba(56, 225, 255, 0.35); border-bottom-right-radius: 3px; animation: vbcycle2 7s infinite; }
@keyframes vbcycle { 0% { opacity: 0; transform: translateY(6px); } 8%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes vbtypecycle { 0%, 14% { opacity: 0; } 20%, 42% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes vbcycle2 { 0%, 48% { opacity: 0; transform: translateY(6px); } 56%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.viz-bars { gap: 9px; align-items: flex-end; padding-bottom: 18px; }
.viz-bars i {
  flex: 1; max-width: 22px; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  height: var(--h); opacity: 0.9;
  transform-origin: bottom; animation: bargrow 2.6s ease-in-out var(--d) infinite alternate;
}
@keyframes bargrow { 0% { transform: scaleY(0.55); opacity: 0.5; } 100% { transform: scaleY(1); opacity: 0.95; } }

.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 44px);
  flex-wrap: wrap;
}
.stat-num {
  font-family: var(--font-en); font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 0.85rem; color: var(--text-dim); }
.stat-div { width: 1px; height: 44px; background: var(--border); }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); }
.scroll-line {
  width: 1px; height: 44px; background: linear-gradient(var(--cyan), transparent);
  animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ═══════════ MANIFESTO ═══════════ */
.manifesto { padding: 110px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.manifesto-text { font-size: clamp(1.4rem, 3.4vw, 2.3rem); font-weight: 700; text-align: center; line-height: 1.5; }
.manifesto-text em { font-style: normal; color: var(--text-dim); text-decoration: line-through; text-decoration-color: rgba(56, 225, 255, 0.6); text-decoration-thickness: 2px; }

/* ═══════════ SECTIONS ═══════════ */
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(56, 225, 255, 0.3); background: rgba(56, 225, 255, 0.06);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 20px; font-weight: 600;
}
.section-head h2, .about-text h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }

/* ── Services cards ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card {
  padding: 34px 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(79, 124, 255, 0.12), transparent 45%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: rgba(79, 124, 255, 0.4); background: var(--surface-hover); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(56, 225, 255, 0.08); border: 1px solid rgba(56, 225, 255, 0.25);
  color: var(--cyan);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; margin-bottom: 12px; }
.card h3 small { font-size: 0.7rem; color: var(--violet); border: 1px solid rgba(139, 92, 246, 0.4); padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; font-weight: 600; }
.card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 18px; }
.card-tags { font-size: 0.8rem; color: var(--cyan); opacity: 0.85; font-family: var(--font-en); letter-spacing: 0.02em; }
.card-sub { border-style: dashed; }

/* ── Process ── */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: step; }
.process-step {
  padding: 32px 28px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  position: relative; transition: transform 0.3s, border-color 0.3s;
}
.process-step:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.45); }
.step-num {
  font-family: var(--font-en); font-size: 2.6rem; font-weight: 700; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.9; margin-bottom: 18px;
}
.process-step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.process-step p { color: var(--text-dim); font-size: 0.93rem; }

/* ── Use cases ── */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 70px; }
@media (max-width: 700px) { .cases-grid { grid-template-columns: 1fr; } }
.case {
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(79, 124, 255, 0.07), rgba(139, 92, 246, 0.04) 60%, transparent);
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}
.case:hover { transform: translateY(-5px); border-color: rgba(56, 225, 255, 0.4); }
.case-img { height: 175px; overflow: hidden; position: relative; }
.case-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 15, 0.25), rgba(5, 7, 15, 0.05) 55%, rgba(9, 13, 26, 0.95));
}
.case-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.8); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.case:hover .case-img img { transform: scale(1.06); }
.case-body { padding: 24px 28px 30px; }
.case-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--violet); border: 1px solid rgba(139, 92, 246, 0.4); background: rgba(139, 92, 246, 0.08);
  padding: 3px 12px; border-radius: 999px; margin-bottom: 12px;
}
.case h3 { font-size: 1.3rem; }
.case p { color: var(--text-dim); font-size: 0.95rem; }

/* ── Selected work ── */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  position: relative; display: block; height: 340px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.work-card:hover { transform: translateY(-6px); border-color: rgba(56, 225, 255, 0.45); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.work-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.75) brightness(0.85);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s;
}
.work-card:hover img { transform: scale(1.07); filter: saturate(1) brightness(0.95); }
.work-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; gap: 6px;
  background: linear-gradient(180deg, rgba(5, 7, 15, 0.1) 30%, rgba(5, 7, 15, 0.92));
}
.work-tag {
  align-self: flex-start; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--cyan); border: 1px solid rgba(56, 225, 255, 0.4); background: rgba(5, 7, 15, 0.55);
  padding: 3px 12px; border-radius: 999px; margin-bottom: 6px; backdrop-filter: blur(6px);
}
.work-overlay h3 { font-size: 1.25rem; color: var(--text); }
.work-metric { font-family: var(--font-en); font-size: 1.5rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.work-metric small { font-size: 0.8rem; font-weight: 400; -webkit-text-fill-color: var(--text-dim); margin-left: 6px; }
.work-note { text-align: center; margin-top: 28px; font-size: 0.8rem; color: var(--text-dim); opacity: 0.7; }

.trust-strip { text-align: center; }
.trust-label { font-size: 0.85rem; color: var(--text-dim); letter-spacing: 0.1em; margin-bottom: 22px; text-transform: uppercase; }
.marquee { overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span {
  padding: 10px 26px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-dim); font-size: 0.95rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.about-text .section-tag { margin-bottom: 20px; }
.about-text h2 { margin-bottom: 22px; }
.about-text p { color: var(--text-dim); margin-bottom: 16px; }
.about-points { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.about-points li { display: flex; align-items: baseline; gap: 12px; color: var(--text); }
.about-points li::before { content: "✦"; color: var(--cyan); flex-shrink: 0; }

.about-photo {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.about-photo img { width: 100%; height: 260px; object-fit: cover; display: block; filter: saturate(0.85); }

.terminal {
  width: 92%; margin: -70px 0 0 auto; position: relative; z-index: 2;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(3, 5, 12, 0.9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(79, 124, 255, 0.12);
  font-family: "SF Mono", "Fira Code", Menlo, monospace;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3f4e; }
.terminal-bar span:nth-child(1) { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }
.terminal-bar em { margin-left: auto; font-style: normal; font-size: 0.75rem; color: var(--text-dim); }
.terminal-body { padding: 22px 20px; font-size: 0.82rem; line-height: 1.9; min-height: 275px; color: #b8c4de; }
.terminal-body .t-prompt { color: var(--cyan); }
.terminal-body .t-ok { color: #28c840; }
.terminal-body .t-dim { color: #5b6579; }
.t-cursor { display: inline-block; width: 8px; height: 15px; background: var(--cyan); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Contact ── */
.contact-card {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px;
  padding: clamp(30px, 5vw, 60px); border-radius: 28px;
  background: linear-gradient(150deg, rgba(79, 124, 255, 0.1), rgba(139, 92, 246, 0.06) 55%, rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(79, 124, 255, 0.25);
  position: relative; overflow: hidden;
}
.contact-card::after {
  content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: rgba(56, 225, 255, 0.1); filter: blur(100px);
  top: -160px; right: -120px; pointer-events: none;
}
.contact-left { position: relative; z-index: 1; }
.contact-left .section-tag { margin-bottom: 18px; }
.contact-left h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
.contact-left > p { color: var(--text-dim); margin-bottom: 24px; }
.contact-meta { margin-top: 30px; color: var(--text-dim); font-size: 0.92rem; display: grid; gap: 6px; }

.contact-form { position: relative; z-index: 1; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: rgba(3, 5, 12, 0.6); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 225, 255, 0.15);
}
.form-note { font-size: 0.8rem; color: var(--text-dim); text-align: center; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--bg-alt); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand p { color: var(--text-dim); font-size: 0.85rem; }
.footer-copy { color: var(--text-dim); font-size: 0.85rem; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  .about-grid, .contact-card { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 90px 0; }
  .mock-grid { grid-template-columns: 1fr; }
  .mock-pane { min-height: 0; }
  .mock-pane + .mock-pane { border-left: none; border-top: 1px solid var(--border); }
  .mock-flow { display: none; }
  .hero-mock { transform: none; }
  .hero-mock:hover { transform: none; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { height: 260px; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5, 7, 15, 0.97); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  }
  .nav-links.open { max-height: 340px; }
  .nav-links a { padding: 16px 24px; border-top: 1px solid var(--border); }
  .nav-cta { border: none; border-top: 1px solid var(--border) !important; border-radius: 0; background: rgba(56, 225, 255, 0.08); text-align: center; }
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 0 8px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
  }
  .menu-btn span { height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
  .menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn.open span:nth-child(2) { opacity: 0; }
  .menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .form-row { grid-template-columns: 1fr; }
  .stat-div { display: none; }
  .hero-stats { gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
