/* Hono Labs — honolabs.io
   Single stylesheet, self-contained (no external requests). */

:root {
  --bg: #0b1020;
  --bg-soft: #0f1630;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-faint: #64748b;
  --line: #e5e8f0;
  --brand: #4f46e5;
  --brand-2: #6366f1;
  --accent: #10b981;
  --accent-2: #34d399;
  --radius: 16px;
  --maxw: 1080px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.25);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-size: 18px;
}
.brand:hover {
  text-decoration: none;
}
.brand .mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover {
  color: var(--ink);
  text-decoration: none;
}
.nav .btn {
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  line-height: 1;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -8px rgba(79, 70, 229, 0.7);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--line);
}
.btn.ghost:hover {
  background: var(--surface-2);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #e7ebff;
  background: radial-gradient(
      1200px 600px at 80% -10%,
      rgba(99, 102, 241, 0.35),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 0% 10%,
      rgba(16, 185, 129, 0.18),
      transparent 55%
    ),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  overflow: hidden;
}
.hero .wrap {
  padding-top: 88px;
  padding-bottom: 96px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 22px 0 0;
  color: #fff;
  max-width: 18ch;
}
.hero .lede {
  margin: 20px 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #c7cdf0;
  max-width: 60ch;
}
.hero .cta-row {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero .btn.ghost {
  color: #e7ebff;
  border-color: rgba(231, 235, 255, 0.25);
}
.hero .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Sections ---------- */
section {
  padding: 84px 0;
}
.section-head {
  max-width: 62ch;
}
.section-head .kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 10px 0 0;
}
.section-head p {
  color: var(--ink-soft);
  margin: 14px 0 0;
  font-size: 1.08rem;
}

.alt {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  margin-bottom: 16px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Product (HonoFit) ---------- */
.product {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.product .body h2 {
  margin-top: 10px;
}
.product ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.product li {
  position: relative;
  padding-left: 30px;
  margin: 12px 0;
  color: var(--ink-soft);
}
.product li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
}

/* Level visual */
.level-card {
  background: linear-gradient(160deg, var(--bg), var(--bg-soft));
  border-radius: 22px;
  padding: 40px 32px;
  color: #fff;
  text-align: center;
  box-shadow: 0 30px 60px -25px rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.level-card .ring {
  width: 180px;
  height: 180px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(
    var(--accent-2) 0turn 0.72turn,
    rgba(255, 255, 255, 0.12) 0.72turn 1turn
  );
}
.level-card .ring .inner {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  flex-direction: column;
}
.level-card .lvl-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #93c5fd;
}
.level-card .lvl-num {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.level-card .lvl-caption {
  color: #c7cdf0;
  font-size: 0.95rem;
  margin-top: 6px;
}
.level-card .sublevels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.level-card .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #dbe0f7;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 11px;
  border-radius: 999px;
}
.level-card .chip b {
  color: var(--accent-2);
  font-weight: 700;
}

/* ---------- Contact ---------- */
.contact-box {
  margin-top: 34px;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}
.contact-box .email {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

/* Toast confirmation */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(18px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  color: #aeb6d6;
  padding: 54px 0 40px;
}
.site-footer .cols {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.site-footer .brand {
  color: #fff;
}
.site-footer .tag {
  margin: 12px 0 0;
  max-width: 42ch;
  font-size: 0.95rem;
  color: #8b94ba;
}
.site-footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.site-footer nav a {
  color: #c3c9e6;
  font-size: 0.95rem;
}
.site-footer .rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 34px 0 22px;
}
.site-footer .legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: #8b94ba;
}

/* ---------- Legal (privacy/terms) pages ---------- */
.legal-page {
  padding: 56px 0 80px;
}
.legal-page .doc {
  max-width: 760px;
  margin: 0 auto;
}
.legal-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.legal-page .updated {
  color: var(--ink-faint);
  font-size: 0.95rem;
  margin: 0 0 34px;
}
.legal-page h2 {
  font-size: 1.3rem;
  margin: 38px 0 8px;
}
.legal-page p,
.legal-page li {
  color: var(--ink-soft);
}
.legal-page ul {
  padding-left: 22px;
}
.legal-page li {
  margin: 8px 0;
}
.legal-page a {
  font-weight: 500;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.notfound .code {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .product {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product .visual {
    order: -1;
  }
  .nav a:not(.btn) {
    display: none;
  }
  section {
    padding: 64px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn:hover {
    transform: none;
  }
}
