/* LUMII business-card proposal — self-contained, offline */
:root {
  --brand: #6A5CFF;
  --violet: #7C3AED;
  --cyan: #06B6D4;
  --ink: #101828;
  --muted: #667085;
  --line: #EDE9FE;
  --lav: #F5F3FF;
  --lav-2: #EDE9FE;
  --paper: #FFFFFF;
  --bg: #FBFBFE;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.10), 0 2px 8px rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.08);
  --radius-card: 12px;
  --nav-h: 68px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(251, 251, 254, 0.86);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; gap: 24px;
}
.nav-logo { height: 22px; width: auto; }
.nav-logo img { height: 22px; width: auto; }
.nav-spacer { flex: 1; }
.seg {
  display: inline-flex;
  background: var(--lav);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 580;
  letter-spacing: 0.01em;
  color: var(--muted);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.seg button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}
.seg button:hover:not([aria-pressed="true"]) { color: var(--ink); }

.btn-present {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(106, 92, 255, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn-present:hover { background: #5b4df0; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(106, 92, 255, 0.34); }
.btn-present svg { width: 14px; height: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 32px 28px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% 0 auto 0; height: 70%;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(106, 92, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 30% 40% at 78% 20%, rgba(6, 182, 212, 0.08), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; }
.hero-logo { height: 36px; width: auto; margin: 0 auto 36px; }
.hero-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
}
.hero h1 .en {
  display: block;
  margin-top: 8px;
  font-size: 0.46em;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
}
.hero-meta {
  margin-top: 28px;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.hero-meta span { color: var(--muted); margin: 0 12px; opacity: 0.55; }
.hero-slogan {
  margin-top: 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.hero-slogan em {
  font-style: normal;
  color: var(--brand);
}

/* ---------- landing (sizes to content; do not stretch to viewport) ---------- */
.landing {
  display: block;
}

/* ---------- overview ---------- */
.overview {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 8px 32px 24px;
}
.section-label {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 22px;
}
.section-label h2 {
  font-size: 13px; font-weight: 650;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px)  { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.thumb {
  display: block;
  text-decoration: none;
  group-role: none;
}
.thumb-art {
  position: relative;
  aspect-ratio: 90 / 54;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--lav);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.thumb:hover .thumb-art,
.thumb:focus-visible .thumb-art {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.thumb-art img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: var(--lav);
}
.thumb-meta {
  display: flex; align-items: baseline; justify-content: center;
  margin-top: 10px;
  padding: 0 2px;
}
.thumb-num {
  font-size: 13px; font-weight: 650;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.thumb-name { display: none; }

/* ---------- scheme sections ---------- */
.schemes { max-width: var(--max); margin: 0 auto; padding: 0 32px 40px; }
.scheme {
  padding: 72px 0 80px;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.scheme-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
}
.scheme-id {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.scheme-id small {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.scheme-actions { display: flex; gap: 8px; }
.ghost {
  height: 34px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 12px; font-weight: 580;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.ghost:hover { color: var(--ink); border-color: #d6d0fb; background: var(--lav); }

.faces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 800px) { .faces { grid-template-columns: 1fr; } }

.face { min-width: 0; }
.face-label {
  font-size: 11px; font-weight: 650;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.card-stage {
  perspective: 1600px;
}
.card {
  position: relative;
  width: 100%;
  aspect-ratio: 90 / 54;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
  cursor: zoom-in;
  border-radius: var(--radius-card);
}
.card.is-portrait {
  aspect-ratio: auto;
  max-height: 420px;
  width: auto;
  margin: 0 auto;
  max-width: 100%;
}
.card.is-portrait img { width: auto; height: 420px; max-width: 100%; object-fit: contain; }

/* Used when we still want the flip treatment */
.card.flipped { transform: rotateY(180deg); }
.card-face {
  position: absolute; inset: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.card-face.back { transform: rotateY(180deg); }
.card-face img, .card > img, .card-static img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #fff;
}

.card-static {
  position: relative;
  width: 100%;
  aspect-ratio: 90 / 54;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card-static:hover { transform: translateY(-3px); box-shadow: 0 22px 56px rgba(16, 24, 40, 0.12); }
.card-static.is-portrait {
  aspect-ratio: 9 / 16;
  max-width: 260px;
  margin: 0 auto;
}

.flip-hint {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.mockup-block { margin-top: 48px; }
.mockup-block .card-static {
  aspect-ratio: auto;
  height: auto;
  background: #f3f2f8;
  cursor: zoom-in;
}
.mockup-block .card-static img {
  width: 100%; height: auto;
  object-fit: contain;
  background: #f6f5fb;
}
.mockup-block.is-tall .card-static { max-width: 640px; margin: 0 auto; }
.mockup-empty {
  margin-top: 48px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--lav);
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 32px 48px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.footer .mark { height: 18px; margin: 0 auto 14px; opacity: 0.9; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(16, 24, 40, 0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.lb.open { opacity: 1; pointer-events: auto; }
.lb img {
  max-width: min(1240px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  background: #111;
}
.lb-cap {
  position: absolute; left: 0; right: 0; bottom: 22px;
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.lb-btn {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lb-btn:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-close {
  position: absolute; top: 18px; right: 22px;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  background: rgba(255,255,255,0.1);
}

/* ---------- present mode ---------- */
.present {
  position: fixed; inset: 0; z-index: 70;
  background: var(--bg);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.present.open { opacity: 1; pointer-events: auto; }
.present-bar {
  height: 64px;
  display: flex; align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
  flex-shrink: 0;
}
.present-bar .nav-logo img { height: 20px; }
.present-title {
  font-size: 14px; font-weight: 620;
  letter-spacing: 0.04em;
}
.present-title span { color: var(--muted); font-weight: 500; margin-left: 10px; }
.present-stage {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 28px 48px 16px;
  min-height: 0;
  overflow: auto;
}
.present-faces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  width: min(1180px, 100%);
  align-items: center;
}
.present-faces .card-static { cursor: pointer; }
.present-mock {
  width: min(900px, 100%);
  margin-top: 28px;
}
.present-mock .card-static { aspect-ratio: auto; height: auto; background: #f3f2f8; }
.present-mock .card-static img { width: 100%; height: auto; object-fit: contain; }
.present-mock.is-hidden { display: none; }
.present-foot {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  padding: 8px 24px 22px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.dots { display: flex; gap: 8px; }
.dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.2s, transform 0.2s;
}
.dots button[aria-current="true"] {
  background: var(--brand);
  transform: scale(1.25);
}
.kbd {
  display: inline-block;
  min-width: 18px; padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 650;
  color: var(--ink);
  background: #fff;
}

body.mode-present { overflow: hidden; }
body.mode-lb { overflow: hidden; }
body.mode-lb .nav, body.mode-lb .footer { visibility: hidden; }

@media (max-width: 800px) {
  .nav-inner { padding: 0 16px; }
  .hero { padding: 56px 20px 36px; }
  .overview, .schemes { padding-left: 16px; padding-right: 16px; }
  .btn-present span.lbl { display: none; }
  .present-faces { grid-template-columns: 1fr; gap: 16px; }
  .present-stage { padding: 16px; }
  .lb-prev, .lb-next { display: none; }
}


/* shot: freeze motion so screenshots are clean */
html.shot, html.shot * {
  transition: none !important;
  animation: none !important;
  scroll-behavior: auto !important;
}

/* 3D flip card (presentation) */
.flip {
  width: min(680px, 46vw);
  aspect-ratio: 90 / 54;
  perspective: 1800px;
  cursor: pointer;
}
.flip.is-portrait { width: min(300px, 40vw); aspect-ratio: 9 / 16; }
.flip-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip .face-3d {
  position: absolute; inset: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip .face-3d img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.flip .face-3d.rear { transform: rotateY(180deg); }

.present { background: #FAFAFE; }
.present-stage {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 28px 40px 12px;
}
.present-col { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.present-mock {
  width: min(620px, 42vw);
  margin-top: 0;
}
.present-mock .card-static { aspect-ratio: auto; height: auto; background: #f3f2f8; }
.present-mock .card-static img { width: 100%; height: auto; object-fit: contain; }
@media (max-width: 900px) {
  .present-stage { flex-direction: column; gap: 20px; }
  .flip { width: min(760px, 86vw); }
  .present-mock { width: min(760px, 86vw); }
}
