@import url("/assets/fonts.css");

/* ============================ tokens ============================ */
:root {
  color-scheme: dark;

  --bg: #0b0c0a;
  --bg-2: #0e100d;
  --surface: #131511;
  --surface-2: #181b16;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eceee6;
  --muted: #9ba194;
  --dim: #7f857a;
  --accent: #c6f24e;
  --accent-text: #c6f24e;
  --accent-ink: #0b0c0a;
  --accent-soft: rgba(198, 242, 78, 0.12);
  --danger: #ff7a7a;
  --ok: #9be37a;

  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  --shell: 1220px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f3ed;
  --bg-2: #eeece4;
  --surface: #fbfaf6;
  --surface-2: #ffffff;
  --line: rgba(18, 20, 15, 0.11);
  --line-2: rgba(18, 20, 15, 0.2);
  --text: #14160f;
  --muted: #5b6156;
  --dim: #5f6459;
  --accent: #b7e63c;
  --accent-text: #55700d;
  --accent-ink: #10130a;
  --accent-soft: rgba(183, 230, 60, 0.22);
  --danger: #c33a3a;
  --ok: #3f7a22;
  --shadow: 0 30px 70px -45px rgba(20, 22, 15, 0.5);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 450;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -8%, var(--accent-soft), transparent 70%),
    radial-gradient(760px 520px at 92% 4%, rgba(103, 143, 255, 0.08), transparent 68%),
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: auto, auto, 76px 76px, 76px 76px;
  opacity: 0.9;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 82%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="light"] body::before {
  background:
    radial-gradient(900px 520px at 10% -10%, var(--accent-soft), transparent 70%),
    radial-gradient(720px 480px at 94% 0%, rgba(70, 110, 255, 0.07), transparent 70%),
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: auto, auto, 76px 76px, 76px 76px;
  opacity: 0.75;
}

main {
  position: relative;
  z-index: 1;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

.shell {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mono--dim {
  color: var(--dim);
}

.micro-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

/* ============================ header ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.logo__glyph {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  grid-template-rows: repeat(3, 5px);
  gap: 2px;
  padding: 7px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  transition: border-color 0.3s, background-color 0.3s;
}

.logo__glyph i {
  display: block;
  border-radius: 1px;
  background: var(--dim);
  transition: background-color 0.3s;
}

.logo__glyph i:nth-child(1) {
  grid-row: span 2;
  background: var(--accent);
}

.logo__glyph i:nth-child(2) {
  background: color-mix(in srgb, var(--text) 55%, transparent);
}

.logo:hover .logo__glyph {
  border-color: var(--accent-text);
  background: var(--accent-soft);
}

.logo__dot {
  color: var(--accent-text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
  transition: color 0.25s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--text);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s, transform 0.3s var(--ease);
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--line-2);
  transform: rotate(-12deg);
}

.theme-toggle__icon svg {
  width: 18px;
  height: 18px;
}

.theme-toggle__icon--sun,
[data-theme="light"] .theme-toggle__icon--moon {
  display: none;
}

[data-theme="light"] .theme-toggle__icon--sun {
  display: block;
}

.nav-burger {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  place-items: center;
}

.nav-burger svg {
  width: 18px;
  height: 18px;
}

.nav-burger__close {
  display: none;
}

.site-header.is-open .nav-burger__close {
  display: block;
}

.site-header.is-open .nav-burger__open {
  display: none;
}

.mobile-menu {
  display: none;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.mobile-menu__nav {
  display: grid;
  padding: 10px var(--gutter) 22px;
}

.mobile-menu__nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 550;
}

.mobile-menu__nav a:last-child {
  border-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ============================ buttons ============================ */
.btn {
  --btn-pad: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.3s;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 34px -18px color-mix(in srgb, var(--accent) 70%, transparent);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--accent) 80%, transparent);
}

.btn--ghost {
  border-color: var(--line-2);
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.btn--sm {
  --btn-pad: 10px 16px;
  font-size: 13px;
  gap: 8px;
}

.btn--wide {
  width: 100%;
}

.btn--disabled {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--dim);
  cursor: default;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  width: fit-content;
  transition: color 0.25s, border-color 0.25s;
}

.link-arrow svg {
  width: 13px;
  height: 13px;
  transition: transform 0.3s var(--ease);
}

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

.link-arrow:hover svg {
  transform: translate(2px, -2px);
}

/* ============================== hero ============================== */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 64px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

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

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.65; }
  70% { transform: scale(1.9); opacity: 0; }
  100% { opacity: 0; }
}

.hero__title {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero__title em {
  font-style: normal;
  color: var(--accent-text);
  position: relative;
}

.hero__text {
  max-width: 54ch;
  margin-top: 24px;
  font-size: clamp(15px, 1.2vw, 17.5px);
  color: var(--muted);
  line-height: 1.7;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__manifest {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero__manifest dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}

.hero__manifest dd {
  font-size: 14px;
  font-weight: 600;
}

/* hero panel */
.hero__panel {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 86%, transparent), color-mix(in srgb, var(--bg) 70%, transparent));
  box-shadow: var(--shadow);
}

.hero__panel::before,
.hero__panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-2);
  pointer-events: none;
}

.hero__panel::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: var(--radius);
}

.hero__panel::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: var(--radius);
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.panel__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.panel__stat {
  padding: 14px 12px 12px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel__stat--muted {
  background: color-mix(in srgb, var(--surface) 60%, var(--bg));
}

.panel__num {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.panel__stat:first-child .panel__num {
  color: var(--accent-text);
}

.panel__caption {
  font-size: 11.5px;
  color: var(--muted);
}

.panel__rule {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.panel__list {
  display: grid;
  gap: 9px;
}

.panel__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.panel__list .mono {
  font-size: 10px;
  color: var(--text);
}

.panel__note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  line-height: 1.55;
  color: var(--dim);
}

/* ============================ sections ============================ */
.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.section__index {
  color: var(--dim);
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section__note {
  max-width: 34ch;
  font-size: 13.5px;
  color: var(--dim);
  text-align: right;
}

.empty {
  padding: 40px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--dim);
  text-align: center;
}

/* ============================= cards ============================= */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.35s, background-color 0.35s, box-shadow 0.45s;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 180px at 50% -20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.app-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.4s, transform 0.6s var(--ease);
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 24px 60px -40px color-mix(in srgb, var(--accent) 55%, transparent);
}

.app-card:hover::before {
  opacity: 1;
}

.app-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.app-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.app-card__icon {
  width: 68px;
  height: 68px;
  border-radius: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface-2));
  display: grid;
  place-items: center;
  transition: transform 0.45s var(--ease), border-color 0.35s;
}

.app-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card:hover .app-card__icon {
  transform: scale(1.05) rotate(-2deg);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}

.app-card__icon-fallback {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--accent-text);
}

.app-card__index {
  color: var(--dim);
  padding-top: 4px;
}

.app-card__body {
  position: relative;
}

.app-card__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.app-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.app-card__tagline {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.chip--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 500;
}

.app-card__actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.app-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--dim);
  transition: color 0.25s;
}

.app-card__more svg {
  width: 13px;
  height: 13px;
  transition: transform 0.3s var(--ease);
}

.app-card:hover .app-card__more {
  color: var(--text);
}

.app-card:hover .app-card__more svg {
  transform: translateX(3px);
}

/* development cards */
.section--development {
  position: relative;
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.dev-card {
  position: relative;
  padding: 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 40%, transparent);
  transition: border-color 0.35s, background-color 0.35s, transform 0.45s var(--ease);
}

.dev-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line-2));
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  transform: translateY(-3px);
}

.dev-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.dev-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.dev-card__index {
  color: var(--dim);
}

.dev-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  filter: saturate(0.75);
  transition: filter 0.35s;
}

.dev-card:hover .dev-card__icon {
  filter: none;
}

.dev-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dev-card__icon-fallback {
  font-family: var(--font-display);
  color: var(--accent-text);
}

.dev-card__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.dev-card__tagline {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.dev-card__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--dim);
}

.dev-card__line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px);
}

/* ============================== about ============================== */
.section--about {
  border-top: 1px solid var(--line);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
}

.about__head .section__title {
  margin-top: 14px;
}

.about__text {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.75;
  color: var(--muted);
}

.principles {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.principles li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.principles .mono {
  color: var(--dim);
  padding-top: 3px;
}

.principles strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 4px;
}

.principles p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.about__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
}

.about__contact .micro-label {
  margin-bottom: 2px;
}

/* ============================= footer ============================= */
.footer-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(34px, 5vw, 48px);
  padding: clamp(22px, 3.4vw, 34px);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: var(--radius);
  background:
    radial-gradient(520px 200px at 88% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%),
    linear-gradient(120deg, color-mix(in srgb, var(--surface) 88%, transparent), color-mix(in srgb, var(--bg) 60%, transparent));
  overflow: hidden;
}

.footer-cta__copy {
  max-width: 620px;
}

.footer-cta__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.8vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.footer-cta__text {
  margin-top: 10px;
  max-width: 54ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-cta__button {
  flex: none;
  white-space: nowrap;
}

/* ========================= order dialog ========================= */
html.modal-open {
  overflow: hidden;
}

.order-modal {
  width: min(560px, calc(100vw - 32px));
  max-width: 560px;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.order-modal::backdrop {
  background: rgba(5, 6, 4, 0.66);
  backdrop-filter: blur(7px);
}

.order-modal__card {
  position: relative;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.order-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.order-modal__close:hover {
  color: var(--text);
  border-color: var(--line-2);
  background: var(--surface-2);
}

.order-modal__close svg {
  width: 16px;
  height: 16px;
}

.order-modal__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(23px, 3.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.order-modal__lead {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.order-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.order-form .field {
  display: grid;
  gap: 8px;
}

.order-form .field__label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.order-form .req {
  color: var(--accent-text);
  font-style: normal;
}

.order-form .input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s, outline-color 0.2s;
}

.order-form .input::placeholder {
  color: var(--dim);
}

.order-form .input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.order-form .field__hint {
  font-size: 12px;
  color: var(--dim);
}

.order-form__messengers {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.order-form__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-form__chips .chip {
  position: relative;
  padding: 9px 16px;
  border-color: var(--line-2);
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.order-form__chips .chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.order-form__chips .chip:hover {
  color: var(--text);
  border-color: var(--line-2);
  background: var(--surface-2);
}

.order-form__chips .chip:has(input:checked) {
  color: var(--accent-ink);
  border-color: var(--accent);
  background: var(--accent);
}

.order-form__chips .chip:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.order-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.order-form__status {
  min-height: 1.2em;
  font-size: 13px;
  color: var(--danger);
}

.order-form__privacy {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--dim);
}

.order-form__privacy a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.order-form__privacy a:hover {
  color: var(--accent-text);
}

.order-success {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding-top: 18px;
}

.order-success[hidden] {
  display: none;
}

.order-success__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line));
  background: var(--accent-soft);
  color: var(--accent-text);
}

.order-success__icon svg {
  width: 24px;
  height: 24px;
}

.order-success__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}

.order-success__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 64px) 0 28px;
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
}

.site-footer__brand {
  max-width: 320px;
}

.site-footer__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.6;
}

.logo--footer {
  font-size: 22px;
}

.site-footer__cols {
  display: flex;
  gap: clamp(40px, 8vw, 96px);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__col .micro-label {
  margin-bottom: 4px;
}

.site-footer__col a {
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.25s;
}

.site-footer__col a:hover {
  color: var(--accent-text);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--dim);
}

/* ============================ app detail ============================ */
.app-detail {
  padding: clamp(24px, 4vw, 44px) 0 clamp(56px, 8vw, 96px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 36px;
}

.breadcrumb a {
  transition: color 0.25s;
}

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

.app-hero {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
  padding-bottom: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.app-hero__icon {
  width: 128px;
  height: 128px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
  box-shadow: 0 30px 70px -40px color-mix(in srgb, var(--accent) 60%, transparent);
}

.app-hero__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-hero__fallback {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--accent-text);
}

.app-hero__title {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.app-hero__tagline {
  margin-top: 16px;
  max-width: 52ch;
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--muted);
  line-height: 1.65;
}

.app-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.app-hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
}

.app-hero__cta-note {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--dim);
  text-align: center;
}

.app-hero__privacy {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.25s;
}

.app-hero__privacy svg {
  width: 15px;
  height: 15px;
  color: var(--accent-text);
  flex: none;
}

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

.soon-box {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
}

.soon-box .pulse-dot {
  margin-top: 6px;
}

.soon-box strong {
  display: block;
  font-size: 14px;
}

.soon-box p {
  margin-top: 4px;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.5;
}

.app-detail__layout {
  padding: clamp(36px, 5vw, 56px) 0 0;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}

.spec-grid > div {
  padding: 16px 18px;
  background: color-mix(in srgb, var(--surface) 55%, var(--bg));
}

.spec-grid dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}

.spec-grid dd {
  font-size: 14px;
  font-weight: 600;
}

.block-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.prose-block,
.feature-block {
  padding-bottom: 40px;
}

.prose {
  max-width: 68ch;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  font-size: 15.5px;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 16px;
}

.prose h2 {
  margin-top: 34px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.prose h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.prose strong {
  color: var(--text);
  font-weight: 650;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  list-style: none;
}

.prose ul li {
  position: relative;
  padding-left: 4px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.prose ol {
  list-style: decimal;
  padding-left: 22px;
}

.prose a {
  color: var(--accent-text);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.prose blockquote {
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  color: var(--text);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  font-size: 13.5px;
  line-height: 1.5;
}

.feature-list svg {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--accent-text);
  flex: none;
}

/* screenshots */
.shots {
  padding: clamp(30px, 5vw, 48px) 0 clamp(36px, 5vw, 52px);
  border-top: 1px solid var(--line);
}

.shots__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.shots__head .block-title {
  margin: 0;
}

.shots__nav {
  display: flex;
  gap: 8px;
}

.round-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s, transform 0.3s var(--ease);
}

.round-btn svg {
  width: 15px;
  height: 15px;
}

.round-btn:hover {
  border-color: var(--accent-text);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.shots__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.shots__track::-webkit-scrollbar {
  display: none;
}

.shot {
  flex: 0 0 auto;
  width: clamp(190px, 22vw, 250px);
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  scroll-snap-align: start;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.detail-footer__privacy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.next-app {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.next-app__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  transition: color 0.25s;
}

.next-app__name svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

.next-app:hover .next-app__name {
  color: var(--accent-text);
}

.next-app:hover .next-app__name svg {
  transform: translateX(3px);
}

/* ============================== docs ============================== */
.doc-page {
  padding: clamp(30px, 5vw, 56px) 0 clamp(64px, 9vw, 112px);
}

.doc-page__inner {
  max-width: 900px;
}

.doc-page__head {
  padding-bottom: 28px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.doc-page__title {
  margin: 14px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.doc-page__meta {
  color: var(--dim);
}

.prose--doc {
  max-width: none;
  font-size: 14.8px;
}

.prose--doc h2 {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}

.doc-page__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ============================== 404 ============================== */
.not-found {
  padding: clamp(80px, 16vw, 180px) 0;
}

.not-found__code {
  font-size: 13px;
  color: var(--accent-text);
  letter-spacing: 0.3em;
}

.not-found__title {
  margin: 18px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.not-found__text {
  margin-bottom: 28px;
  color: var(--muted);
}

/* ============================ motion ============================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

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

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

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

  .pulse-dot::after {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* theme switch cross-fade */
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease),
    fill 0.4s var(--ease), stroke 0.4s var(--ease) !important;
}

/* ========================== responsive ========================== */
@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__panel {
    max-width: 520px;
  }

  .app-hero {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .app-hero__icon {
    width: 104px;
    height: 104px;
    border-radius: 24px;
  }

  .app-hero__cta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .app-hero__cta .btn {
    width: auto;
    flex: 1 1 220px;
  }

  .app-hero__cta-note {
    text-align: left;
  }

  .app-hero__privacy {
    border-top: 0;
    padding-top: 0;
    padding-left: 12px;
  }

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

@media (max-width: 820px) {
  .nav {
    display: none;
  }

  .nav-burger {
    display: grid;
  }

  .site-header__inner {
    height: 66px;
  }

  .mobile-menu.is-open {
    display: block;
    animation: menuIn 0.3s var(--ease);
  }

  @keyframes menuIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
  }

  .site-footer__top {
    flex-direction: column;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .footer-cta__button {
    width: 100%;
    justify-content: center;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section__note {
    text-align: left;
  }

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

  .next-app {
    text-align: left;
    align-items: flex-start;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 8px;
  }
}

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

  .hero__actions .btn {
    width: 100%;
  }

  .hero__manifest {
    gap: 14px 24px;
  }

  .app-grid,
  .dev-grid {
    grid-template-columns: 1fr;
  }

  .app-hero {
    grid-template-columns: 1fr;
  }

  .app-hero__icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }

  .app-hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .app-hero__privacy {
    padding-left: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

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

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

  .shot {
    width: 76vw;
  }

  .doc-page__foot {
    flex-direction: column;
  }
}
