/* Hufbdo — one stylesheet, no framework, no build step. */

:root {
  --bg: #08080f;
  --bg-2: #101024;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f5ff;
  --dim: #9a9dc2;
  --dim-2: #6f7296;
  --accent: #6c63ff;
  --accent-2: #17bebb;
  --warn: #facc15;
  --radius: 20px;
  --maxw: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 15% -5%, rgba(108, 99, 255, 0.22), transparent 60%),
    radial-gradient(700px 500px at 90% 0%, rgba(23, 190, 187, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  background: rgba(8, 8, 15, 0.72);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.06);
}
.brand-mark i { border-radius: 3px; display: block; }
.brand-mark i:nth-child(1) { background: #3b3ddb; }
.brand-mark i:nth-child(2) { background: #17bebb; }
.brand-mark i:nth-child(3) { background: #facc15; }
.brand-mark i:nth-child(4) { background: #f43f5e; }

nav.main { margin-left: auto; display: flex; gap: 22px; align-items: center; }
nav.main a { color: var(--dim); font-size: 0.95rem; font-weight: 500; }
nav.main a:hover { color: var(--text); text-decoration: none; }

/* ---------- typography ---------- */

h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 18px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.025em; margin: 0 0 14px; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; margin: 0 0 8px; }
p { margin: 0 0 16px; color: var(--dim); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--dim); max-width: 62ch; }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

section { padding: 84px 0; }
section.tight { padding: 56px 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 650;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #7d75ff; }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn small { display: block; font-size: 0.72rem; font-weight: 500; color: rgba(255, 255, 255, 0.72); line-height: 1.2; }
.btn-ghost small { color: var(--dim-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- cards ---------- */

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { color: var(--text); }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(108, 99, 255, 0.16);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 20px;
}

/* ---------- app row ---------- */

.app {
  display: flex;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 30px;
}
.app img.icon { width: 108px; height: 108px; border-radius: 24px; flex: none; box-shadow: 0 12px 40px rgba(108, 99, 255, 0.25); }
.app .body { flex: 1; min-width: 0; }
.app h3 { font-size: 1.5rem; letter-spacing: -0.02em; }

.tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag-live { background: rgba(23, 190, 187, 0.16); color: #4bd6d3; }
.tag-soon { background: rgba(250, 204, 21, 0.14); color: var(--warn); }
.tag-dev { background: rgba(255, 255, 255, 0.07); color: var(--dim); }

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

.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 24px 26px;
  scroll-snap-type: x mandatory;
  margin: 0 -24px;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 999px; }
.shots figure { margin: 0; flex: none; width: 218px; scroll-snap-align: center; }
.shots img {
  width: 100%;
  border-radius: 26px;
  border: 1px solid var(--border);
  display: block;
  background: #000;
}
.shots figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--dim-2); text-align: center; }

/* ---------- spec table ---------- */

table.spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.spec td { padding: 13px 0; border-top: 1px solid var(--border); vertical-align: top; }
table.spec tr:first-child td { border-top: none; }
table.spec td:first-child { color: var(--dim-2); width: 40%; }
table.spec code { font-size: 0.85rem; word-break: break-all; }

code {
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

/* ---------- legal ---------- */

.legal { max-width: 760px; }
.legal h2 { margin-top: 44px; font-size: 1.3rem; }
.legal h2:first-of-type { margin-top: 20px; }
.legal ul { color: var(--dim); padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .updated { color: var(--dim-2); font-size: 0.9rem; }
.callout {
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.28);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--text); }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--border);
  padding: 52px 0 64px;
  margin-top: 40px;
}
footer.site .cols { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
footer.site h4 { font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--dim-2); margin: 0 0 14px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 9px; }
footer.site a { color: var(--dim); font-size: 0.94rem; }
footer.site a:hover { color: var(--text); text-decoration: none; }
.copyright { margin-top: 44px; color: var(--dim-2); font-size: 0.87rem; }

/* ---------- hero tiles ---------- */

.hero { position: relative; padding-top: 96px; }
.hero-tiles { display: flex; gap: 12px; margin-bottom: 30px; }
.hero-tiles span {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  animation: bob 3.4s ease-in-out infinite;
}
.hero-tiles span:nth-child(1) { background: #24243c; color: #9a9dc6; }
.hero-tiles span:nth-child(2) { background: #2e2e54; color: #b7bae6; animation-delay: 0.35s; }
.hero-tiles span:nth-child(3) { background: #3b3ddb; color: #fff; animation-delay: 0.7s; }
.hero-tiles span:nth-child(4) { background: #17bebb; color: #04231f; animation-delay: 1.05s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-tiles span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .hero { padding-top: 64px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .app { flex-direction: column; align-items: flex-start; gap: 20px; }
  .app img.icon { width: 84px; height: 84px; border-radius: 19px; }
  nav.main { gap: 16px; }
  nav.main a.hide-sm { display: none; }
  header.site .wrap { height: 60px; }
}
