:root {
  --bg: #0f1114;
  --bg-elev: #171a1f;
  --ink: #f4f1ea;
  --muted: #9aa0a8;
  --accent: #f5c518;
  --accent-ink: #1a1400;
  --line: rgba(244, 241, 234, 0.12);
  --ok: #6bcf8e;
  --warn: #e0a35b;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Sora", "Outfit", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(245, 197, 24, 0.14), transparent 55%),
    radial-gradient(900px 500px at -10% 40%, rgba(255, 255, 255, 0.04), transparent 50%),
    var(--bg);
  line-height: 1.5;
}
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}
.top, main, .foot { position: relative; z-index: 1; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand img {
  border-radius: 10px;
  background: transparent;
  display: block;
}
nav { display: flex; gap: 1rem; align-items: center; }
nav a, .linkish {
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}
nav a:hover, .linkish:hover { color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.95rem; }
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
  min-height: calc(100vh - 140px);
  padding: 3rem 1.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 1rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.6rem 0 1rem; }
.hint, .muted { color: var(--muted); font-size: 0.95rem; }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mark {
  width: min(360px, 80%);
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.band {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  border-top: 1px solid var(--line);
}
.band h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.6rem;
}
.section-lede { color: var(--muted); max-width: 40rem; }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
}
.feature-list li {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.price-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem;
}
.price-card.featured { border-color: rgba(245, 197, 24, 0.45); }
.price { color: var(--accent); font-weight: 600; }
.auth-panel, .dash {
  max-width: 520px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
}
.dash { max-width: 900px; }
.auth-panel form, .inline-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}
label { display: grid; gap: 0.35rem; color: var(--muted); font-size: 0.9rem; }
input {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  font: inherit;
}
.form-error { color: #ff8f8f; }
.tenant-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.tenant-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
}
.status.ok { color: var(--ok); }
.status.warn { color: var(--warn); }
.row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.8rem; }
.banner {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.3);
}
.foot {
  border-top: 1px solid var(--line);
  padding: 1.4rem 1.5rem 2rem;
  color: var(--muted);
  text-align: center;
}
.foot strong { color: var(--accent); }

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #14171c;
  color: #a8b0b8;
  padding: 2.4rem 1.5rem 2rem;
}
.site-footer-inner { max-width: 1100px; margin: 0 auto; }
.site-footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
}
.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #9aa0a8;
  font-size: 0.85rem;
}
.site-footer-brand img {
  border-radius: 7px;
  background: transparent;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-size: 0.85rem;
}
.site-footer-links a {
  color: #c5c9cf;
  text-decoration: none;
}
.site-footer-links a:hover { color: var(--ink); }
.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  font-size: 0.85rem;
  color: #8b919a;
  line-height: 1.55;
}
.site-footer-label {
  color: #d7dbe0;
  font-weight: 600;
  margin: 0 0 0.35rem;
  font-family: var(--display);
}
.site-footer a { color: #c5c9cf; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer-note { margin-top: 0.75rem; color: #6f757e; }

.legal-page {
  max-width: 720px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
}
.legal-back { margin: 0 0 1.2rem; }
.legal-back a { color: var(--muted); text-decoration: none; }
.legal-back a:hover { color: var(--ink); }
.legal-header h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}
.legal-intro { color: var(--muted); margin: 0 0 0.6rem; }
.legal-meta { color: var(--muted); font-size: 0.85rem; }
.legal-company { color: var(--muted); margin: 1rem 0 1.4rem; }
.legal-section { margin: 1.5rem 0; }
.legal-section h2 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin: 0 0 0.45rem;
}
.legal-section p, .legal-section li { color: var(--muted); }
.legal-section ul, .legal-section ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}
.legal-body {
  white-space: pre-wrap;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 1.2rem;
}
.legal-footer-note { margin-top: 2rem; text-align: center; }
.guide-support {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.guide-support a { color: var(--accent); }
.tg-bind {
  margin: 0.9rem 0 0.4rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: rgba(255,255,255,0.02);
}
.tg-bind .mono { word-break: break-all; }
.hint.mono code { font-size: 0.8rem; }

code { font-size: 0.9em; color: var(--accent); }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { order: -1; }
  .hero-mark { width: 200px; }
  .site-footer-grid { grid-template-columns: 1fr; }
}
