/* ZEVE.TOP — flat, geeky, dark-first. Colors follow the original site screenshots. */

@font-face {
  font-family: "ZEVE Slab";
  src: url("fonts/alfa-slab-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #121518;
  --bg-alt: #1f2428;
  --surface: #181c20;
  --surface-2: #22282d;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #eef1f3;
  --muted: #a1aab1;
  --faint: #6c767e;
  --accent: #7fd3df;
  --accent-soft: rgba(127, 211, 223, .12);
  --btn: #d8f2f5;
  --btn-ink: #10161a;
  --soon: #f2c46d;
  --tile-shadow: #3a4652;

  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas, "Menlo", monospace;
  --slab: "ZEVE Slab", "Rockwell", "Roboto Slab", Georgia, serif;

  --wrap: 1280px;
  --gutter: 48px;
  --nav-h: 120px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f6f7;
  --bg-alt: #eaedf0;
  --surface: #ffffff;
  --surface-2: #f0f3f5;
  --line: rgba(18, 21, 24, .1);
  --line-strong: rgba(18, 21, 24, .2);
  --text: #121518;
  --muted: #545e66;
  --faint: #8a939a;
  --accent: #0b8a9c;
  --accent-soft: rgba(11, 138, 156, .1);
  --btn: #121518;
  --btn-ink: #eef1f3;
  --soon: #a86b00;
  --tile-shadow: #b9c3cb;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s, color .25s;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.slab { font-family: var(--slab); letter-spacing: .04em; }
.dot { font-style: normal; color: var(--accent); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--btn); color: var(--btn-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 0 26px;
  border-radius: 10px; font-weight: 600; font-size: 18px; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn span[aria-hidden] { font-size: 1.15em; transition: transform .2s; }
.btn:hover span[aria-hidden] { transform: translate(2px, -2px); }
.btn--solid { background: var(--btn); color: var(--btn-ink); min-height: 78px; padding: 0 28px; gap: 40px; font-size: 20px; }
.btn--solid:hover { background: var(--accent); color: #0d1316; }
/* dark button with the colored ZEVE OS wordmark; stays dark in both themes */
.btn--dark { background: #0b0d0f; color: #eef1f3; border: 1px solid rgba(255, 255, 255, .16); min-height: 78px; padding: 0 28px; gap: 14px; font-size: 20px; }
.btn--dark span[aria-hidden] { margin-left: 26px; }
.btn--dark:hover { border-color: var(--accent); color: var(--accent); }
.btn__wordmark { height: .95em; width: auto; } /* match the button text size */
.btn--line { border: 1px solid var(--line-strong); font-weight: 500; }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }
.btn--text { padding: 0 8px; font-weight: 500; }
.btn--text:hover { color: var(--accent); }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; color: var(--muted); }
.icon-btn:hover { color: var(--text); background: var(--accent-soft); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 18px; }
.brand__icon { width: 52px; height: 52px; border-radius: 12px; }
.brand__word { font-family: var(--slab); font-size: 34px; letter-spacing: .08em; line-height: 1; }
.brand__word i { font-style: normal; color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 28px; }
.nav__talk { font-weight: 500; display: inline-flex; gap: 40px; align-items: center; }
.nav__talk span { font-size: 1.3em; }
.nav__talk:hover { color: var(--accent); }
.menu-btn { flex-direction: column; gap: 8px; display: inline-flex; }
.menu-btn span { display: block; width: 32px; height: 2px; background: currentColor; transition: transform .25s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }

.menu { border-top: 1px solid var(--line); background: var(--bg); padding: 32px 0 40px; }
.menu__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 32px; margin-bottom: 28px; }
.menu__list a { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 600; }
.menu__list a:hover { color: var(--accent); }
.menu__list .mono { font-size: 13px; color: var(--faint); font-weight: 400; }
.menu__login { min-height: 60px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}
.hero::after { /* fade the grid so text stays clean */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 25% 45%, var(--bg) 40%, color-mix(in srgb, var(--bg) 70%, transparent) 100%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); padding-top: 80px; padding-bottom: 80px; }

.eyebrow { display: flex; align-items: center; gap: 14px; color: var(--accent); font-weight: 700; font-size: 20px; letter-spacing: .06em; margin-bottom: 36px; }
.eyebrow__rule { width: 34px; height: 1px; background: currentColor; margin-right: 6px; }
.caret { width: 10px; height: 20px; background: var(--accent); margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__title { font-size: clamp(48px, 6.4vw, 88px); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; margin-bottom: 36px; }
.hero__lead { color: var(--muted); font-size: 22px; line-height: 1.9; margin-bottom: 48px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }


/* logo button */
.hero__logo { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: min(100%, 600px); justify-self: center; cursor: pointer; }
.orbit { position: absolute; inset: -4%; width: 108%; height: 108%; fill: none; stroke: var(--line-strong); stroke-width: 1; transition: transform .8s; }
.hero__logo:hover .orbit { transform: rotate(8deg); }
.hero__tile { position: relative; width: 70%; transform: rotate(-7deg); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.hero__tile img { position: relative; width: 100%; border-radius: 15%; }
.hero__shadow { position: absolute; inset: 0; border-radius: 15%; background: var(--tile-shadow); transform: translate(5%, 5%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.hero__logo:hover .hero__tile, .hero__logo:focus-visible .hero__tile { transform: rotate(0deg) translateY(-6px); }
.hero__logo:hover .hero__shadow, .hero__logo:focus-visible .hero__shadow { transform: translate(3%, 7%); }
.hero__logo:active .hero__tile { transform: rotate(0deg) translateY(0); }
.hero__logo:active .hero__shadow { transform: translate(1%, 1%); }

.hero__enter {
  position: absolute; left: 50%; bottom: 6%; transform: translate(-50%, 8px);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-size: 14px; color: var(--text);
  opacity: 0; transition: opacity .25s, transform .25s;
}
.hero__enter img { height: 18px; width: auto; }
.hero__logo:hover .hero__enter, .hero__logo:focus-visible .hero__enter { opacity: 1; transform: translate(-50%, 0); }

@media (hover: none) { /* touch: always show the entry hint */
  .hero__enter { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- sections ---------- */
.section { padding: 140px 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }
.kicker { font-size: 14px; letter-spacing: .12em; color: var(--muted); margin-bottom: 28px; text-transform: uppercase; }
.h2 { font-size: clamp(34px, 3.6vw, 46px); line-height: 1.35; font-weight: 800; margin-bottom: 28px; }
.h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.4; font-weight: 800; margin-bottom: 24px; }
.body { color: var(--muted); font-size: 19px; line-height: 1.9; }
.body--narrow { max-width: 720px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.points li { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.points li:first-child { padding-top: 0; }
.points li:last-child { border-bottom: 0; }
.points__icon { color: var(--accent); font-size: 32px; line-height: 1.1; }
.points h3 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.points p { color: var(--muted); font-size: 19px; }

/* context */
.term {
  margin: 0; padding: 0 0 26px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--bg);
  font-size: 15px; line-height: 2; color: var(--text); white-space: pre; overflow-x: auto;
}
.term__bar { display: flex; gap: 8px; padding: 14px 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-strong); }
.term { padding-left: 0; }
.term__p { color: var(--accent); margin-left: 22px; }
.term__c { color: var(--faint); margin-left: 22px; }
.term__ok { color: var(--accent); margin-left: 22px; }
.term__dim { color: var(--faint); }
.sub { margin-top: 72px; font-size: 14px; letter-spacing: .12em; color: var(--muted); }
.grid--tight { margin-top: 20px; }


/* tabs + scene */
.tabs { display: flex; flex-wrap: wrap; gap: 16px; margin: 56px 0 40px; }
.tab { min-height: 64px; padding: 0 36px; border-radius: 10px; border: 1px solid var(--line-strong); font-size: 20px; transition: background-color .2s, color .2s, border-color .2s; }
.tab:hover { border-color: var(--accent); }
.tab[aria-selected="true"] { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.scene { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px 44px; border: 1px solid var(--line-strong); border-radius: 28px; background: var(--surface); }
.scene[hidden] { display: none; }
.scene__tag { color: var(--accent); font-size: 15px; letter-spacing: .14em; margin-bottom: 28px; }
.checks { margin: 32px 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: var(--muted); font-size: 18px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.status { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.link { display: inline-flex; gap: 28px; font-weight: 600; font-size: 19px; }
.link:hover { color: var(--accent); }

.flow { border: 1px solid var(--line-strong); border-radius: 22px; background: var(--bg); padding: 36px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.flow__title { color: var(--muted); font-size: 16px; letter-spacing: .3em; margin-bottom: 36px; }
.flow__inputs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.flow__inputs span { padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-2); font-size: 18px; }
.flow__arrow { color: var(--muted); font-size: 26px; margin: 14px 0; }
.flow__core { width: min(100%, 420px); padding: 26px 20px; border: 1px solid var(--accent); border-radius: 18px; background: var(--accent-soft); display: grid; gap: 6px; }
.flow__star { color: var(--accent); font-size: 34px; line-height: 1; margin-bottom: 8px; }
.flow__core strong { font-size: 20px; }
.flow__core em { font-style: normal; color: var(--muted); }
.flow__out { display: flex; gap: 40px; align-items: baseline; font-size: 18px; }
.flow__out span { color: var(--muted); }

/* stack grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.cell { padding: 32px 28px 36px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); transition: background-color .2s; }
.cell:hover { background: var(--accent-soft); }
.cell__id { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .14em; color: var(--faint); margin-bottom: 22px; }
.cell h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.cell p { color: var(--muted); font-size: 17px; line-height: 1.8; }
.cell b { color: var(--text); font-weight: 700; }
.cell--key { background: var(--surface); box-shadow: inset 0 2px 0 var(--accent); }
.cell--key h3 { font-size: 26px; }
.pill { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); white-space: nowrap; }
.pill--soon { border-color: var(--soon); color: var(--soon); }

/* delivery */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px 30px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; }
.steps li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 30px; color: var(--accent); background: var(--bg); font-size: 18px; line-height: 1; padding: 2px 0; z-index: 1; }
.steps__no { color: var(--accent); font-size: 14px; letter-spacing: .1em; margin-bottom: 18px; }
.steps h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 17px; }
.steps__out { margin-top: auto; padding-top: 22px; color: var(--text) !important; font-size: 14px !important; }

/* cta */
.cta { text-align: left; }
.cta__title { font-size: clamp(38px, 5vw, 68px); font-weight: 800; line-height: 1.2; margin-bottom: 28px; }
.cta .body { max-width: 680px; margin-bottom: 44px; }
.contact { display: grid; gap: 0; margin-bottom: 44px; max-width: 520px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); overflow: hidden; }
.contact li { display: flex; align-items: baseline; gap: 24px; padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 20px; }
.contact li:last-child { border-bottom: 0; }
.contact span { color: var(--faint); min-width: 84px; font-size: 13px; letter-spacing: .14em; }
.contact b { font-weight: 600; }
.qr-trigger { font: inherit; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 12px; padding: 0; cursor: pointer; border-bottom: 1px dashed var(--line-strong); }
.qr-trigger:hover, .qr-trigger[aria-expanded="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.qr-trigger__hint { font-style: normal; font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--faint); border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 8px; }

/* WeChat QR: dark card, fixed at the right edge, vertically centered */
.qr-pop { position: fixed; z-index: 60; top: 50%; right: max(24px, 4vw); transform: translate(12px, -50%); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.qr-pop[hidden] { display: block; visibility: hidden; }
.qr-pop.is-open { visibility: visible; opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.qr-pop__card { display: flex; gap: 22px; padding: 22px 22px 18px; border-radius: 20px; background: #0b0d0f; border: 1px solid rgba(255, 255, 255, .14); text-align: center; color: #eef1f3; }
.qr-pop__item { margin: 0; width: 256px; }
.qr-pop__card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border-radius: 12px; }
.qr-pop__id { margin-top: 16px; font-size: 14px; letter-spacing: .12em; color: #7fd3df; }
.qr-pop__tip { margin-top: 4px; font-size: 14px; color: #a1aab1; }

.contact a { color: var(--accent); }
.contact a:hover { text-decoration: underline; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; color: var(--faint); font-size: 14px; }
.brand--sm { gap: 12px; color: var(--text); }
.brand--sm .brand__icon { width: 28px; height: 28px; border-radius: 7px; }
.brand--sm .brand__word { font-size: 20px; }
.footer__icp:empty { display: none; }
.footer a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 32px; --nav-h: 96px; }
  .nav__talk { display: none; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-top: 64px; }
  .hero__logo { width: min(100%, 480px); grid-row: 1; }
  .split, .scene { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(2)::after { display: none; }
  .section { padding: 104px 0; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --nav-h: 72px; }
  body { font-size: 16px; }
  .brand { gap: 12px; }
  .brand__icon { width: 40px; height: 40px; border-radius: 10px; }
  .brand__word { font-size: 26px; }
  .nav__actions { gap: 4px; }
  .nav__login { min-height: 44px; padding: 0 14px; font-size: 15px; gap: 8px; }
  .icon-btn { width: 44px; height: 44px; }
  .menu-btn span { width: 26px; }
  .hero__grid { padding-top: 40px; padding-bottom: 64px; gap: 24px; }
  .hero__logo { width: 88%; }
  .eyebrow { font-size: 16px; margin-bottom: 24px; }
  .hero__title { margin-bottom: 24px; }
  .hero__lead { font-size: 17px; margin-bottom: 36px; }
  .hero__lead br { display: none; }
  .btn--solid { min-height: 64px; font-size: 18px; gap: 24px; }
  .btn--dark { min-height: 64px; font-size: 18px; gap: 10px; padding: 0 20px; }
  .btn--dark span[aria-hidden] { margin-left: 12px; }
  .term { font-size: 12.5px; }
  .term__p, .term__c, .term__ok { margin-left: 14px; }
  .sub { margin-top: 48px; }
  .section { padding: 80px 0; }
  .body { font-size: 17px; }
  .points li { grid-template-columns: 40px 1fr; gap: 14px; }
  .points h3 { font-size: 21px; }
  .points p { font-size: 16px; }
  .tabs { gap: 8px; margin: 40px 0 24px; }
  .tab { flex: 1; min-height: 52px; padding: 0 8px; font-size: 16px; }
  .scene { padding: 32px 18px; border-radius: 20px; gap: 32px; }
  .flow { padding: 28px 14px; }
  .flow__inputs span { font-size: 15px; padding: 10px; }
  .flow__out { gap: 20px; font-size: 16px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
}

@media (max-width: 640px) {
  /* phones: centered card over a dim backdrop */
  .qr-pop { top: 0; right: 0; bottom: 0; left: 0; transform: none; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .6); }
  .qr-pop[hidden] { display: flex; }
  .qr-pop.is-open { transform: none; }
  .qr-pop { overflow-y: auto; padding: 16px 0; }
  .qr-pop__card { flex-direction: column; gap: 18px; padding: 18px 18px 14px; }
  .qr-pop__item { width: min(220px, calc(100vw - 84px)); }
}

@media (max-width: 420px) {
  /* the icon already reads "ZEVE"; drop the wordmark so the nav fits */
  .nav .brand__word { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
