/* ============================================================
   T68 官网样式 — 深色终端主题，纯静态无依赖
   ============================================================ */

:root {
  --bg: #0b0e14;
  --bg-alt: #0e121b;
  --panel: #141925;
  --panel-2: #181e2c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8edf6;
  --text-2: #aab4c5;
  --text-3: #768198;
  --accent: #7aa5ff;
  --accent-strong: #5b8def;
  --accent-soft: rgba(122, 165, 255, 0.14);
  --green: #3ddc84;
  --green-soft: rgba(61, 220, 132, 0.12);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
          "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP",
          system-ui, "Segoe UI", sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 日文页面优先使用日文字体，避免汉字显示为简体字形 */
html:lang(ja) body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP",
    "PingFang SC", system-ui, "Segoe UI", sans-serif;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.12em 0.42em;
  border-radius: 6px;
  white-space: nowrap;
}

.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }

/* ---------------- 通用 ---------------- */

.section { padding: 110px 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 56px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.section__head h2, .kb__copy h2, .feature-row__text h2, .cta__inner h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.22;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.section__lead { color: var(--text-2); margin-top: 16px; font-size: 17px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(180deg, #8fb4ff, #6c97f2);
  color: #0c1322;
  box-shadow: 0 10px 30px -10px rgba(108, 151, 242, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(108, 151, 242, 0.65); }
.btn--ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--sm { padding: 9px 17px; font-size: 14px; }
.btn--lg { padding: 16px 32px; font-size: 16.5px; }

/* ---------------- Nav ---------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 14, 20, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; }
.nav__logo { width: 32px; height: 32px; border-radius: 8px; }
.nav__name { letter-spacing: 0.02em; }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 14.5px;
  color: var(--text-2);
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: 12px; }

/* ---------------- 隐私政策等法律页 ---------------- */

.legal { max-width: 780px; padding: 130px 0 90px; }
.legal__back {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.15s ease;
}
.legal__back:hover { color: var(--text); }
.legal h1 { font-size: clamp(30px, 5vw, 40px); margin: 20px 0 8px; letter-spacing: -0.01em; }
.legal__date { color: var(--text-3); font-size: 14px; margin-bottom: 34px; }
.legal__intro { font-size: 16px; }
.legal h2 { font-size: 20px; margin: 40px 0 10px; }
.legal p { color: var(--text-2); font-size: 15.5px; line-height: 1.9; margin-bottom: 12px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }

@media (max-width: 680px) {
  .legal { padding: 104px 0 64px; }
}

/* ---------------- 语言切换 ---------------- */

.lang { position: relative; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.lang__btn:hover,
.lang__btn.is-open {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}
.lang__btn svg { opacity: 0.85; flex: none; }
.lang__code { min-width: 22px; text-align: center; line-height: 1; }

.lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 158px;
  display: none;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  z-index: 120;
}
.lang__menu.is-open { display: flex; }
.lang__menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text-2);
  background: none;
  border: 0;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.lang__menu button:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.lang__menu button.is-current { color: var(--accent); font-weight: 600; }
.lang__menu button.is-current::after { content: "\2713"; font-size: 12px; font-weight: 700; }

.nav__menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__menu span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav__menu.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__menu.is-open span:nth-child(2) { opacity: 0; }
.nav__menu.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */

.hero { position: relative; padding: 150px 0 70px; overflow: hidden; }
.hero__glow {
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 720px;
  background:
    radial-gradient(ellipse 600px 360px at 30% 30%, rgba(91, 141, 239, 0.18), transparent 70%),
    radial-gradient(ellipse 500px 320px at 75% 60%, rgba(61, 220, 132, 0.08), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero__title {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.grad {
  background: linear-gradient(100deg, #9dbbff 10%, #6c97f2 45%, #3ddc84 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub { color: var(--text-2); font-size: 17.5px; margin: 24px 0 32px; max-width: 470px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
  display: flex;
  gap: 38px;
  margin-top: 44px;
}
.hero__stats dt {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.hero__stats dd { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* Hero 设备框 */
.hero__visual { position: relative; }
.device {
  background: #1c2230;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0,0,0,0.4);
}
.device img { width: 100%; height: 100%; object-fit: cover; }
.device--ipad {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  transform: perspective(1600px) rotateY(-7deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.hero__visual:hover .device--ipad { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }
.device--iphone {
  position: absolute;
  width: 26%;
  left: -6%;
  bottom: -14%;
  aspect-ratio: 9 / 19.5;
  border-radius: 26px;
}
.device--landscape { aspect-ratio: 16 / 7.4; border-radius: 18px; }
.device--shadow { box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8); }

.hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 25, 37, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 12.5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.8);
}
.hero__chip code { font-size: 12px; }
.hero__chip--1 { top: 8%; right: -3%; animation: float 6s ease-in-out infinite; }
.hero__chip--2 { bottom: 6%; right: 4%; animation: float 6s ease-in-out 1.4s infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  background: #232a3a;
  border: 1px solid rgba(255,255,255,0.1);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
}
.keycap--active {
  background: linear-gradient(180deg, #8fb4ff, #6c97f2);
  color: #0c1322;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(108,151,242,0.5);
}

/* Marquee */
.marquee {
  margin-top: 90px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--mono);
  color: var(--text-3);
  font-size: 15px;
}
.marquee__track i { font-style: normal; font-size: 8px; color: var(--accent); opacity: 0.6; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- Cards ---------------- */

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-card);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}
.card__icon svg { width: 23px; height: 23px; }
.card__icon--green { background: var(--green-soft); color: var(--green); }
.card h3 { font-size: 18.5px; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--text-2); font-size: 14.8px; }
.card p strong { color: var(--text); }

/* ---------------- Keyboard section ---------------- */

.kb {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 70px;
}
.kb__copy h2 { margin-bottom: 18px; }
.states { list-style: none; margin-top: 30px; display: grid; gap: 20px; }
.states li { display: flex; gap: 18px; align-items: flex-start; }
.states__key {
  flex: none;
  width: 76px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  background: #232a3a;
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
}
.states__key::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 2px solid var(--accent);
  opacity: 0.85;
  box-shadow: 0 0 18px rgba(122,165,255,0.45);
}
.states__key--locked { background: linear-gradient(180deg, #8fb4ff, #6c97f2); color: #0c1322; border-color: transparent; }
.states__key--locked::after { border-color: var(--green); box-shadow: 0 0 18px rgba(61,220,132,0.5); }
.states__key--multi::after { border-color: var(--green); }
.states li strong { font-size: 16px; display: block; margin-bottom: 3px; }
.states li p { color: var(--text-2); font-size: 14.3px; }
.kb__note {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--green);
  background: rgba(61,220,132,0.06);
  border-radius: 0 10px 10px 0;
  color: var(--text-2);
  font-size: 14px;
}

.kb__visual { display: grid; gap: 22px; }
.kbd-demo {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-card);
}
.kbd-row { display: flex; gap: 10px; }
.kbd-row .keycap { flex: 1; height: 44px; min-width: 0; font-size: 13px; border-radius: 9px; }
.kbd-row .keycap--tab { flex: 1.5; }
.kbd-row .keycap--space { flex: 4; }

.kb__points { gap: 20px; }
.mini {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 22px;
}
.mini b { font-family: var(--mono); color: var(--accent); font-size: 13px; font-weight: 600; }
.mini h4 { margin: 10px 0 7px; font-size: 16px; }
.mini p { color: var(--text-2); font-size: 13.8px; }

/* ---------------- Feature rows ---------------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 70px;
  align-items: center;
  padding: 40px 0;
}
.feature-row + .feature-row { margin-top: 40px; }
.feature-row--reverse .feature-row__text { order: 2; }
.feature-row--reverse .feature-row__media { order: 1; }
.feature-row__text h2 { margin: 14px 0 18px; }
.feature-row__text > p { color: var(--text-2); font-size: 16px; }
.checks { list-style: none; margin-top: 24px; display: grid; gap: 13px; }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); font-size: 15px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%233ddc84' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.feature-row__media--phone { display: flex; justify-content: center; }
.feature-row__media--phone .device--iphone { position: static; width: min(340px, 78%); }

/* ---------------- Tabs & screenshots ---------------- */

.tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 30px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
}
.tab {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.tab.is-active { background: #2a3348; color: var(--text); }

.shots {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
.shots.is-active { display: grid; animation: fadeUp 0.4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.shot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: zoom-in;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.shot:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.shot img { width: 100%; }
.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 16px 13px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(5,7,12,0.85));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.shot:hover figcaption { opacity: 1; transform: none; }
.shot--wide { grid-column: 1 / -1; width: min(100%, 800px); margin: 0 auto; }
.shot--tall { grid-row: span 1; }
.shots[data-panel="iphone"] .shot--tall { justify-self: center; width: min(78%, 380px); }
.shots[data-panel="ipad"] .shot--tall { justify-self: center; width: min(72%, 420px); }

/* ---------------- FAQ ---------------- */

.faq { max-width: 820px; }
.faq__list { display: grid; gap: 14px; }
.faq__item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq__item[open] { border-color: var(--border-strong); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 21px 24px;
  font-size: 16.5px;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform 0.25s ease;
}
.faq__chev::before, .faq__chev::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent);
  border-radius: 1px;
  transform: translate(-50%, -50%);
}
.faq__chev::before { width: 12px; height: 2px; }
.faq__chev::after { width: 2px; height: 12px; transition: transform 0.25s ease; }
.faq__item[open] .faq__chev::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__body { padding: 0 24px 22px; color: var(--text-2); font-size: 15px; }

/* ---------------- CTA ---------------- */

.cta { text-align: center; }
.cta__inner {
  max-width: 680px;
  margin: 0 auto;
  background:
    radial-gradient(ellipse 420px 240px at 50% 0%, rgba(108,151,242,0.16), transparent 70%),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 70px 40px;
}
.cta__logo { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 26px; }
.cta__inner h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.25; }
.cta__inner > p { color: var(--text-2); margin: 18px 0 32px; font-size: 16.5px; }
.cta__note { margin-top: 20px !important; font-size: 13px !important; color: var(--text-3) !important; }

/* ---------------- Footer ---------------- */

.footer { border-top: 1px solid var(--border); padding: 44px 0; background: var(--bg-alt); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 38px; height: 38px; border-radius: 9px; }
.footer__brand strong { display: block; font-size: 16px; line-height: 1.3; }
.footer__brand span { font-size: 12.5px; color: var(--text-3); }
.footer__links { display: flex; gap: 26px; }
.footer__links a { font-size: 14px; color: var(--text-2); transition: color 0.15s; }
.footer__links a:hover { color: var(--accent); }
.footer__copy { font-size: 13px; color: var(--text-3); width: 100%; text-align: right; }

/* ---------------- Lightbox ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 8, 13, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vw;
}
.lightbox.is-open { display: flex; animation: fadeUp 0.22s ease; }
.lightbox__figure { max-width: 100%; max-height: 100%; text-align: center; }
.lightbox__figure img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}
.lightbox__figure figcaption { color: var(--text-2); font-size: 14.5px; margin-top: 16px; }
.lightbox__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,0.14); transform: rotate(90deg); }

/* ---------------- Reveal on scroll ---------------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 70px; }
  .hero__copy { text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__stats { justify-content: center; }
  .hero__visual { max-width: 640px; margin: 0 auto; width: 100%; }
  .kb { grid-template-columns: 1fr; gap: 50px; }
  .feature-row, .feature-row--reverse { grid-template-columns: 1fr; gap: 40px; }
  .feature-row--reverse .feature-row__text { order: 1; }
  .feature-row--reverse .feature-row__media { order: 2; }
  .shots, .shots.is-active { grid-template-columns: repeat(2, 1fr); }
  .shot--wide { grid-column: 1 / -1; }
  .shots[data-panel] .shot--tall { width: 100%; max-width: 380px; margin: 0 auto; }
}

@media (max-width: 680px) {
  .section { padding: 76px 0; }
  .container { width: calc(100% - 32px); }
  .hero { padding: 120px 0 50px; }
  .hero__title { font-size: clamp(34px, 9.5vw, 46px); }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .hero__chip--1 { right: -2%; }
  .hero__chip--2 { display: none; }
  .device--iphone { width: 30%; }

  .nav__links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11,14,20,0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 8px 20px 18px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 6px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__menu { display: flex; }
  .nav__right .btn { display: none; }
  .lang__btn { padding: 6px 10px; }
  .lang__menu { right: 0; min-width: 150px; }

  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .shots, .shots.is-active { grid-template-columns: 1fr; }
  .shot--wide { grid-column: span 1; }
  .shot figcaption { opacity: 1; transform: none; }
  .cta__inner { padding: 52px 22px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__copy { text-align: left; }
  .footer__links { flex-wrap: wrap; gap: 16px 22px; }
  .kb__points { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
