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

:root {
  --bg: #07080b;
  --bg-elev: #101216;
  --bg-card: rgba(18, 21, 26, 0.72);
  --line: rgba(200, 170, 110, 0.16);
  --line-strong: rgba(232, 168, 74, 0.42);
  --gold: #e8a84a;
  --gold-deep: #c47a20;
  --gold-soft: #f0c674;
  --steel: #9aa3ad;
  --text: #eef1f4;
  --muted: #b4b8bf;
  --faint: #7a808a;
  --add: #6ee7a8;
  --del: #fca5b0;
  --radius: 28px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(232, 168, 74, 0.16), transparent 55%),
    radial-gradient(700px 420px at 96% 6%, rgba(90, 110, 130, 0.24), transparent 50%),
    radial-gradient(800px 500px at 80% 100%, rgba(232, 168, 74, 0.07), transparent 50%),
    var(--bg);
}

.skip {
  position: absolute;
  left: 12px;
  top: 0;
  z-index: 40;
  background: var(--gold-deep);
  color: #14110c;
  padding: 8px 14px;
  border-radius: 8px;
  transform: translateY(-200%);
}
.skip:focus,
.skip:focus-visible {
  transform: translateY(12px);
  color: #14110c;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  background: rgba(7, 8, 11, 0.58);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  min-width: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #050506;
}
.brand:hover { color: var(--text); }

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 2px;
}
.brand-title {
  font-family: Outfit, Inter, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-sub {
  font-family: Outfit, Inter, sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px 26px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.hero {
  text-align: center;
  padding: 88px 0 96px;
}

.hero-mark {
  position: relative;
  width: min(440px, 88vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(232, 168, 74, 0.42), transparent 58%),
    radial-gradient(circle at 70% 65%, rgba(122, 150, 180, 0.28), transparent 55%);
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
  animation: glow-shift 10s ease-in-out infinite alternate;
}
@keyframes glow-shift {
  0% { transform: scale(0.96) translate(-4%, -2%); opacity: 0.75; }
  100% { transform: scale(1.12) translate(5%, 4%); opacity: 1; }
}

.logo-cycle {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  pointer-events: none;
}
.logo-cycle .logo-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  animation: logo-crossfade 16s linear infinite;
  animation-fill-mode: both;
}
.logo-cycle .logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 18px;
}
.logo-cycle .frame-0,
.logo-cycle .logo-frame:nth-child(1) { animation-delay: 0s; }
.logo-cycle .frame-1,
.logo-cycle .logo-frame:nth-child(2) { animation-delay: -12s; }
.logo-cycle .frame-2,
.logo-cycle .logo-frame:nth-child(3) { animation-delay: -8s; }
.logo-cycle .frame-3,
.logo-cycle .logo-frame:nth-child(4) { animation-delay: -4s; }

/* 16s loop: 3s hold, 1s fade, repeated across 4 frames. */
@keyframes logo-crossfade {
  0%, 18.75% { opacity: 1; }
  25%, 93.75% { opacity: 0; }
  100% { opacity: 1; }
}

.logo-cycle.brand-cycle,
.brand .logo-cycle {
  width: 44px;
  height: 44px;
  margin: 0;
  filter: none;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #050506;
  aspect-ratio: 1;
}

.kicker {
  margin: 0 0 10px;
  font-family: Outfit, Inter, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
h1, h2, h3 {
  font-family: Outfit, Inter, sans-serif;
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(2.25rem, 6.4vw, 4.6rem);
  max-width: 16ch;
  margin: 0 auto 18px;
  font-weight: 560;
  text-wrap: balance;
}
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 8px; }

.lede {
  margin: 0 auto 36px;
  max-width: 28rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.hero-actions, .product-copy .btn { display: flex; }
.hero-actions {
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: Outfit, Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #f0c674, var(--gold-deep));
  color: #14110c;
  box-shadow: 0 10px 28px rgba(196, 122, 32, 0.28);
}
.btn-primary:hover {
  color: #14110c;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(196, 122, 32, 0.38);
  filter: brightness(1.04);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(232, 168, 74, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

.section { padding: 24px 0 72px; }
.section-head { margin-bottom: 28px; }

.bento,
.bento-end {
  display: grid;
  gap: 20px;
}
.bento { grid-template-columns: 1fr; }
.bento-end { grid-template-columns: 1.15fr 0.85fr; }

.bento-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5);
}
.bento-game,
.bento-tool {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
}
.bento-tool { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.bento-wide { padding: 36px 40px; }

.product-tag {
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 14px;
}
.product-copy p { margin: 0 0 16px; color: var(--muted); }
.product-copy .product-tag { color: var(--text); }
.product-copy .btn { margin-top: 8px; width: fit-content; }

.fine { font-size: 0.92rem; color: var(--faint); }

.mock {
  background: #0b0b10;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  font-size: 0.82rem;
  color: #d7c9d5;
}
.mock-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #12121a;
  border-bottom: 1px solid rgba(232, 168, 74, 0.12);
  color: var(--faint);
  letter-spacing: 0.04em;
}
.mock-chrome i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3340;
  display: block;
}
.mock-chrome i:nth-child(1) { background: #7a4258; }
.mock-chrome i:nth-child(2) { background: #6a5a40; }
.mock-chrome i:nth-child(3) { background: #3d5a48; }
.mock-chrome span { margin-left: 8px; }
.mock-body { padding: 14px 14px 12px; }
.mock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}
.mock-top strong { font-weight: 600; color: var(--text); }
.badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1208;
  background: var(--gold);
  border-radius: 999px;
  padding: 3px 8px;
}
.device-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.device-row .changed { color: var(--gold-soft); }
.diff-head {
  margin: 12px 0 6px;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.diff-line {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.diff-line.del { background: rgba(252, 165, 176, 0.1); color: var(--del); }
.diff-line.add { background: rgba(110, 231, 168, 0.1); color: var(--add); }
.diff-line.ctx { color: var(--faint); }
.mock-foot {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 0.75rem;
}

.game-figure {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  background: #0b0b10;
}
.game-shot {
  width: 100%;
  aspect-ratio: 16 / 7.3;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.6s ease;
}
.bento-card:hover .game-shot { transform: scale(1.03); }
.game-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(7, 7, 10, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  font-family: Outfit, Inter, sans-serif;
  font-size: 0.85rem;
  font-weight: 560;
  letter-spacing: 0.04em;
}
.game-caption img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.about-copy {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact .section-head { margin-bottom: 16px; }
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.email-link {
  display: inline-block;
  overflow-wrap: anywhere;
  max-width: 100%;
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.email-link:hover { color: var(--gold-soft); border-color: var(--gold); }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  margin-top: 24px;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand-foot img { width: 28px; height: 28px; }
.brand-foot span {
  font-family: Outfit, Inter, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.foot p {
  margin: 0;
  color: var(--faint);
  font-size: 0.88rem;
}
.foot-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
}
.foot-contact a {
  color: var(--muted);
  font-size: 0.88rem;
}
.foot-contact a:hover { color: var(--text); }
.foot-contact p { margin: 0; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}


.product-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
}
.product-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  background: #0b0b10;
}
.product-brand h3 { margin: 0; }
.bento-app .product-copy .btn { margin-top: 4px; }

@media (max-width: 860px) {
  .bento-game,
  .bento-tool,
  .bento-end {
    grid-template-columns: 1fr;
  }
  .hero { padding: 56px 0 72px; }
  .hero-mark { width: min(400px, 88vw); }
  .bento-card { padding: 24px; }
  .bento-wide { padding: 24px; }
  .mock { order: -1; }
  .contact-links { align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: min(1160px, calc(100% - 28px)); }
  .nav { min-height: 64px; }
  .brand img { width: 36px; height: 36px; }
  .logo-cycle.brand-cycle,
  .brand .logo-cycle { width: 36px; height: 36px; }
  .brand-title { font-size: 0.82rem; white-space: nowrap; }
  .nav-links { gap: 10px 14px; }
  .nav-links a { font-size: 0.85rem; }
  .hero { padding: 40px 0 56px; }
  .hero-mark { width: min(320px, 92vw); margin-bottom: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .product-copy .btn { width: 100%; }
  .device-row { grid-template-columns: 1fr auto; }
  .device-row span:nth-child(2) { display: none; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot-contact { justify-content: flex-start; }
  .section { padding: 12px 0 48px; }
}

@media (max-width: 400px) {
  .brand-title { font-size: 0.68rem; letter-spacing: 0.04em; }
  .brand-sub { font-size: 0.58rem; letter-spacing: 0.16em; }
  .nav-links { gap: 8px 10px; }
  .nav-links a { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .bento-card,
  .nav-links a,
  .nav-links a::after,
  .game-shot,
  .email-link,
  .reveal.is-in {
    transition: none;
  }
  .btn-primary:hover,
  .btn-ghost:hover,
  .bento-card:hover {
    transform: none;
  }
  .bento-card:hover .game-shot { transform: none; }
  .hero-glow { animation: none; }
  .logo-cycle .logo-frame {
    animation: none !important;
    animation-fill-mode: none !important;
    opacity: 0 !important;
    visibility: hidden;
  }
  .logo-cycle .frame-0,
  .logo-cycle .logo-frame:nth-child(1) {
    opacity: 1 !important;
    visibility: visible;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
