/* ternwind — pure black, Vercel-inspired */

:root {
  --bg: #000000;
  --panel: #0a0a0a;
  --panel-2: #101010;
  --line: #242424;
  --line-soft: #1a1a1a;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --dim: #6b6b6b;
  --radius: 16px;
  --shell: 1200px;
  --header-h: 64px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC",
    "Noto Sans KR", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(0, 0, 0, 0.86);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.brand svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.brand span {
  transform: translateY(0.5px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--text);
  background: #111111;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ghost-link {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.ghost-link:hover {
  color: var(--text);
  background: #111111;
}

/* Language dropdown */

.lang-menu {
  position: relative;
}

.lang-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

.lang-menu summary:hover,
.lang-menu[open] summary {
  color: var(--text);
  border-color: #454545;
}

.lang-menu summary svg {
  width: 11px;
  height: 11px;
  transition: transform 0.2s ease;
}

.lang-menu[open] summary svg {
  transform: rotate(180deg);
}

.lang-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 178px;
  padding: 6px;
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.lang-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-panel a:hover {
  background: #161616;
  color: var(--text);
}

.lang-panel a[aria-current="true"] {
  color: var(--text);
}

.lang-panel a[aria-current="true"]::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Mobile nav */

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line-soft);
  padding: 12px 0 20px;
  background: rgba(0, 0, 0, 0.96);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: var(--muted);
  font-size: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.mobile-nav a:hover {
  color: var(--text);
}

.mobile-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
}

.mobile-langs a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.mobile-langs a[aria-current="true"] {
  color: var(--text);
  border-color: #555;
}

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

.hero {
  position: relative;
  padding: 104px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% 0 auto;
  height: 620px;
  background: radial-gradient(
    52% 62% at 50% 0%,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0) 70%
  );
  pointer-events: none;
}

.hero .shell {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(44px, 7.4vw, 86px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.05em;
  text-wrap: balance;
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.65, 0.3, 1) both;
}

.hero-sub {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.65, 0.3, 1) 0.08s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.65, 0.3, 1) 0.16s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: #000;
}

.btn-primary:hover {
  background: #d8d8d8;
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid #333333;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: #666666;
  background: #0d0d0d;
  transform: translateY(-1px);
}

.btn small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.55;
  font-family: var(--font-mono);
}

/* Showcase */

.showcase {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  margin-top: 76px;
  animation: fadeUp 1s cubic-bezier(0.2, 0.65, 0.3, 1) 0.24s both;
}

.showcase::before {
  content: "";
  position: absolute;
  inset: -60px 6% -30px;
  background: radial-gradient(
    52% 58% at 50% 46%,
    rgba(126, 196, 166, 0.07),
    rgba(255, 255, 255, 0) 70%
  );
  pointer-events: none;
  z-index: -1;
}

.device {
  position: relative;
  width: clamp(140px, 17vw, 208px);
  flex: none;
  border: 1px solid #2b2b2b;
  border-radius: 26px;
  overflow: hidden;
  background: #050505;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75);
  transition: transform 0.5s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.device img {
  width: 100%;
  height: auto;
}

.device.tilt-l {
  transform: rotate(-3.5deg) translateY(14px);
}

.device.tilt-r {
  transform: rotate(3.5deg) translateY(14px);
}

.device.tilt-l:hover,
.device.tilt-r:hover {
  transform: rotate(0deg) translateY(6px);
}

.window-frame {
  width: clamp(280px, 38vw, 520px);
  flex: none;
  border: 1px solid #2b2b2b;
  border-radius: 14px;
  overflow: hidden;
  background: #050505;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.8);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #0b0b0b;
  border-bottom: 1px solid var(--line-soft);
}

.window-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e2e2e;
}

.window-bar em {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 0.02em;
}

.window-frame img {
  width: 100%;
  height: auto;
}

.showcase-caption {
  margin: 26px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
  text-transform: uppercase;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: var(--header-h);
}

.section-label {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.section-head .lead {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 620px;
}

/* ---------- Product ---------- */

.product {
  padding: 48px 0 8px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.product + .product {
  margin-top: 64px;
  border-top: 1px solid var(--line-soft);
  padding-top: 72px;
}

.product-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.product-kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.product h3 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.product-tagline {
  margin: 14px 0 0;
  font-size: clamp(17px, 1.9vw, 22px);
  color: #cfcfcf;
  letter-spacing: -0.02em;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-meta span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.product-desc {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

/* Gallery */

.gallery {
  margin-top: 40px;
}

.phone-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.phone-gallery .shot {
  border: 1px solid #262626;
  border-radius: 20px;
  overflow: hidden;
  background: #060606;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.phone-gallery .shot:hover {
  border-color: #454545;
  transform: translateY(-4px);
}

.phone-gallery img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.ta-media {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
  align-items: start;
}

.ta-media .window-frame {
  width: 100%;
}

.ta-aside {
  display: grid;
  gap: 16px;
}

.ta-media img {
  cursor: zoom-in;
}

.ta-stats {
  display: grid;
  gap: 10px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--panel);
}

.stat-card strong {
  display: block;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat-card span {
  font-size: 12.5px;
  color: var(--dim);
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
  margin-top: 48px;
}

.feature {
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
}

.feature h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Download panel */

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #0d0d0d 0%, #070707 100%);
}

.panel-label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.download-copy h4 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.download-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 460px;
}

.download-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px dashed #333333;
  border-radius: 9px;
  font-size: 12px;
  color: var(--dim);
  cursor: not-allowed;
  white-space: nowrap;
}

.store em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 4px;
  background: #161616;
  color: #7a7a7a;
}

.store svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(460px, 100%);
}

.pkg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pkg:hover {
  border-color: #4a4a4a;
  background: #111111;
}

.pkg span {
  font-size: 13px;
  color: #d0d0d0;
  white-space: nowrap;
}

.pkg code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--dim);
}

/* ---------- Principles ---------- */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  overflow: hidden;
}

.principle {
  background: #050505;
  padding: 34px;
  min-height: 220px;
  transition: background 0.3s ease;
}

.principle:hover {
  background: #0b0b0b;
}

.principle .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #8a8a8a;
}

.principle h3 {
  margin: 34px 0 10px;
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 420px;
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: end;
}

.about h2 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.about-body {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.about-body p {
  margin: 0 0 18px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  color: #cfcfcf;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-link:hover {
  border-color: #4a4a4a;
  background: #0d0d0d;
}

.contact-link code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
}

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

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 64px 0 44px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand .brand {
  font-size: 18px;
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 13.5px;
  max-width: 260px;
}

.footer-col h5 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--dim);
}

.footer-bottom .langs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.footer-bottom .langs a:hover {
  color: var(--text);
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 1200px);
  max-height: 90vh;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: #0a0a0a;
}

.lightbox-close:hover {
  border-color: #666;
}

/* ---------- 404 ---------- */

.notfound {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 0 96px;
}

.notfound .code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--dim);
}

.notfound h1 {
  margin: 14px 0 0;
  font-size: clamp(40px, 9vw, 96px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.notfound p {
  margin: 20px 0 34px;
  color: var(--muted);
  max-width: 460px;
}

.notfound .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.65, 0.3, 1),
    transform 0.75s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 1000px) {
  .desktop-nav,
  .ghost-link {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-actions {
    margin-left: auto;
  }

  .showcase {
    gap: 12px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .hero {
    padding-top: 72px;
  }

  .showcase {
    flex-wrap: wrap;
    justify-content: center;
  }

  .window-frame {
    order: -1;
    width: min(100%, 520px);
  }

  .device {
    width: clamp(130px, 30vw, 180px);
  }

  .ta-media {
    grid-template-columns: 1fr;
  }

  .ta-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section {
    padding: 72px 0;
  }

  .phone-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 36px);
  }

  .eyebrow {
    display: block;
    font-size: 10px;
    letter-spacing: 0.12em;
    line-height: 1.6;
    white-space: normal;
  }

  .eyebrow .dot {
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
  }

  .hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .phone-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .phone-gallery .shot {
    flex: 0 0 62%;
    scroll-snap-align: start;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .feature {
    padding: 22px 0;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principle {
    min-height: 0;
    padding: 26px;
  }

  .principle h3 {
    margin-top: 24px;
  }

  .download-panel {
    padding: 24px;
    gap: 24px;
  }

  .download-actions {
    align-items: stretch;
    width: 100%;
  }

  .stores {
    justify-content: flex-start;
  }

  .pkg-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .ta-stats {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .showcase-caption {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    animation-fill-mode: both !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Processed screenshots ---------- */

.device,
.phone-gallery .shot {
  border: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.device img,
.phone-gallery .shot img {
  filter: drop-shadow(0 26px 48px rgba(0, 0, 0, 0.7));
}

.phone-gallery .shot:hover {
  border: 0;
  transform: translateY(-5px);
}

/* ---------- Home product rows ---------- */

.home-product {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--line-soft);
}

.home-product:first-of-type {
  border-top: 0;
  padding-top: 8px;
}

.home-product-visual {
  display: flex;
  justify-content: center;
}

.home-product-visual img {
  width: 100%;
  max-width: 280px;
}

.home-product-visual .window-frame {
  width: 100%;
  max-width: none;
}

.home-product-copy h3 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.home-product-copy .tagline {
  margin: 12px 0 0;
  font-size: 18px;
  color: #cfcfcf;
  letter-spacing: -0.02em;
}

.home-product-copy .desc {
  margin: 18px 0 0;
  max-width: 540px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.meta-row span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding-bottom: 4px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid #3a3a3a;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.text-link:hover {
  border-color: var(--text);
}

.text-link svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* ---------- Sub page hero ---------- */

.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 44px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.2s ease;
}

.crumbs:hover {
  color: var(--text);
}

.page-hero {
  padding: 56px 0 8px;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto;
  height: 480px;
  background: radial-gradient(
    46% 60% at 40% 0%,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0) 72%
  );
  pointer-events: none;
}

.page-hero .shell {
  position: relative;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 64px;
  align-items: center;
  padding-bottom: 64px;
}

.product-hero .visual {
  display: flex;
  justify-content: center;
}

.product-hero .visual img {
  width: 100%;
  max-width: 310px;
}

.product-hero .visual .window-frame {
  width: 100%;
  max-width: 520px;
}

.product-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 600;
  text-wrap: balance;
}

.product-hero .lead {
  margin: 26px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.product-hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Split layout / specs ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: start;
}

.split h2 {
  margin: 0 0 24px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.split p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
}

.spec-list {
  border-top: 1px solid var(--line-soft);
}

.spec-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.spec-row span:first-child {
  color: var(--dim);
}

.spec-row span:last-child {
  color: #cfcfcf;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  margin-top: 8px;
}

.step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
}

.step .n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
  padding-top: 5px;
}

.step h4 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.code {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #070707;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: #c9c9c9;
}

.code .c {
  color: #5f5f5f;
}

/* ---------- Gallery variants ---------- */

.ta-shots {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
}

.ta-shots .popup {
  width: min(100%, 360px);
  justify-self: center;
  order: 1;
}

.ta-shots .popup img {
  width: 100%;
  cursor: zoom-in;
}

.ta-shots .window-frame {
  width: 100%;
}

.ta-shots .ta-settings-shot {
  grid-column: 1 / -1;
  width: min(100%, 880px);
  justify-self: center;
  order: 2;
}

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

.faq {
  margin-top: 40px;
  border-top: 1px solid var(--line-soft);
}

.faq details {
  border-bottom: 1px solid var(--line-soft);
}

.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 15.5px;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--dim);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0 0 24px;
  max-width: 760px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

/* ---------- Related ---------- */

.related {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 88px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #0d0d0d 0%, #070707 100%);
}

.related h3 {
  margin: 6px 0 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.related p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 520px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}

.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #2a2a2a;
  border-radius: 11px;
  background: #080808;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.65;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #6a6a6a;
  background: #0b0b0b;
}

.form-note {
  margin: 0;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.6;
}

.form > .btn {
  justify-self: start;
  min-width: 200px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.aside-cards {
  display: grid;
  gap: 12px;
}

.info-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.info-card h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 550;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.info-card a {
  color: var(--text);
  border-bottom: 1px solid #3d3d3d;
}

.info-card a:hover {
  border-color: var(--text);
}

.phone-gallery.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ta-cap {
  margin-top: 14px;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.6;
}

.section-head.spaced {
  margin-top: 64px;
}

.split.spaced {
  margin-top: 56px;
}

.contact-hero {
  position: relative;
  padding: 84px 0 24px;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto;
  height: 520px;
  background: radial-gradient(
    44% 60% at 30% 0%,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0) 72%
  );
  pointer-events: none;
}

.contact-hero .shell {
  position: relative;
}

.contact-hero h1 {
  margin: 0;
  font-size: clamp(44px, 7.4vw, 80px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.contact-hero .lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.contact-section {
  border-top: 0;
  padding-top: 24px;
}

/* ---------- Extended responsive ---------- */
@media (max-width: 960px) {
  .home-product {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
  }

  .product-hero {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .ta-shots {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-product {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0;
  }

  .home-product-visual img {
    max-width: 240px;
  }

  .product-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 44px;
  }

  .product-hero .visual {
    justify-content: flex-start;
  }

  .product-hero .visual img {
    max-width: 240px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .related {
    padding: 24px;
  }

  .crumbs {
    margin-bottom: 32px;
  }
}

/* ---------- Screenshot media: preserve intrinsic ratio ---------- */
.device img,
.window-frame img,
.phone-gallery .shot img,
.home-product-visual img,
.product-hero .visual img,
.ta-shots img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .phone-gallery.five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .phone-gallery,
  .phone-gallery.five {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 2px;
    padding: 0 2px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .phone-gallery::-webkit-scrollbar {
    display: none;
  }

  .phone-gallery .shot,
  .phone-gallery.five .shot {
    flex: 0 0 72%;
    max-width: 300px;
    scroll-snap-align: start;
  }

  .ta-shots {
    gap: 20px;
  }

  .ta-shots .popup {
    width: min(100%, 420px);
  }

  .ta-shots .ta-settings-shot {
    width: 100%;
  }

  .product-hero .visual {
    justify-content: center;
  }

  .product-hero .visual img {
    max-width: min(64vw, 250px);
  }

  .home-product-visual img {
    max-width: min(62vw, 250px);
  }

  .gallery {
    margin-top: 28px;
  }

  .ta-cap {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .phone-gallery .shot,
  .phone-gallery.five .shot {
    flex-basis: 78%;
  }
}

@media (max-width: 760px) {
  .showcase {
    gap: 14px 10px;
    margin-top: 44px;
  }

  .showcase .device {
    width: min(42vw, 168px);
  }

  .showcase-caption {
    margin-top: 16px;
    line-height: 1.5;
  }
}

/* ---------- Apps catalogue ---------- */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0b0b0b, #080808);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.app-card:hover {
  border-color: #3a3a3a;
  transform: translateY(-2px);
}

.app-card:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-card-version {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
}

.app-card h2 {
  margin: 22px 0 0;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.app-card .tagline {
  margin: 12px 0 0;
  color: #cfcfcf;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.app-card .desc {
  flex: 1;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.app-card .meta-row {
  margin-top: 20px;
}

.app-card .text-link {
  margin-top: 22px;
  align-self: flex-start;
}

.apps-empty {
  color: var(--muted);
}

@media (max-width: 640px) {
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .app-card {
    padding: 22px;
  }

  .app-card h2 {
    margin-top: 18px;
  }

  .app-card .tagline {
    font-size: 16px;
  }
}

/* ---------- Download file details ---------- */

.pkg {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.pkg-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  white-space: normal;
}

.pkg-meta code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #c9c9c9;
  word-break: break-all;
}

.pkg-meta small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--dim);
}

.dl-file {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--dim);
}

.dl-file code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #c9c9c9;
  word-break: break-all;
}

.dl-sha,
.pkg-sha {
  width: min(460px, 100%);
}

.dl-sha summary,
.pkg-sha summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--dim);
  text-transform: uppercase;
  list-style: none;
}

.dl-sha summary::-webkit-details-marker,
.pkg-sha summary::-webkit-details-marker {
  display: none;
}

.dl-sha summary::before,
.pkg-sha summary::before {
  content: "+ ";
}

.dl-sha[open] summary::before,
.pkg-sha[open] summary::before {
  content: "− ";
}

.sha-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
}

.sha-list div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sha-list code {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  color: #a8a8a8;
  word-break: break-all;
}

.sha-list code.hash {
  color: #666;
}

.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.policy {
  max-width: 800px;
  margin: 0 auto;
}

.policy h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 12px 0 18px;
}

.policy-dates {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}

.policy-lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 14px;
}

.policy h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 48px 0 14px;
}

.policy h3 {
  font-size: 17px;
  margin: 28px 0 8px;
}

.policy p,
.policy li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.policy p {
  margin: 0 0 14px;
}

.policy ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.policy li {
  margin-bottom: 8px;
}

.policy strong {
  color: var(--text);
  font-weight: 600;
}

.policy a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  background: #141414;
  padding: 2px 5px;
  border-radius: 4px;
}

.policy .table-wrap {
  overflow-x: auto;
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.policy table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.policy th,
.policy td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  font-size: 13.5px;
  line-height: 1.6;
}

.policy th {
  color: var(--text);
  font-weight: 600;
  background: #0c0c0c;
}

.policy td {
  color: var(--muted);
}

.policy tr:last-child td {
  border-bottom: 0;
}

.dl-privacy {
  margin: 10px 0 0;
  font-size: 13px;
}

.dl-privacy a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dl-privacy a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .policy h2 {
    margin-top: 38px;
  }

  .policy .table-wrap {
    overflow: visible;
    border: 0;
  }

  .policy table {
    min-width: 0;
  }

  .policy thead {
    display: none;
  }

  .policy tbody,
  .policy tr,
  .policy td {
    display: block;
  }

  .policy tr {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 14px;
  }

  .policy td {
    border: 0;
    padding: 0;
    margin-bottom: 10px;
  }

  .policy td:last-child {
    margin-bottom: 0;
  }

  .policy td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 3px;
  }
}
