/* XBill minimal UI */
:root {
  --bg: #0b1020;
  --card: #121830;
  --soft: #1a2242;
  --text: #e6ecff;
  --muted: #9fb0ff;
  --brand: #6aa5ff;
  --brand-2: #7af0ff;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg), #0e1530 40%, #0a0f22);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(10, 15, 34, .6);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  z-index: 10
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0
}

.brand {
  display: flex;
  gap: .6rem;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 700
}

.menu a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem
}

.menu a.active,
.menu a:hover {
  color: var(--text)
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  padding: 3.2rem 0
}

.hero-text h1 {
  font-size: clamp(1.9rem, 1.2rem + 2.5vw, 3rem);
  margin: .2rem 0 1rem
}

.gradient {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.hero p {
  color: var(--muted)
}

.cta {
  display: flex;
  gap: .8rem;
  margin: 1.2rem 0
}

.btn {
  padding: .7rem 1rem;
  border-radius: .7rem;
  background: var(--soft);
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .08)
}

.btn.primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #0b1020;
  font-weight: 700
}

.mini {
  font-size: .9rem
}

.muted {
  color: var(--muted)
}

.hero-card .glass {
  background: radial-gradient(1200px 400px at -10% -10%, rgba(122, 240, 255, .15), transparent 40%), linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1.2rem;
  padding: 1.2rem
}

.stats {
  list-style: none;
  padding: 0;
  margin: .8rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem
}

.stats span {
  display: block;
  font-size: .85rem;
  color: var(--muted)
}

.stats strong {
  font-size: 1.4rem
}

.features {
  padding: 2.5rem 0
}

.features h2 {
  margin: 0 0 1rem
}

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

.card {
  background: var(--card);
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 1rem
}

.card h3 {
  margin-top: 0
}

.link {
  color: var(--brand-2);
  text-decoration: none
}

.link:hover {
  text-decoration: underline
}

.integrations {
  padding: 2.2rem 0
}

.flex {
  display: flex;
  gap: 2rem;
  align-items: flex-start
}

.ticks {
  margin: 0;
  padding-left: 1.2rem
}

.ticks li {
  margin: .4rem 0
}

.note {
  background: rgba(106, 165, 255, .12);
  border: 1px solid rgba(106, 165, 255, .25);
  padding: 1rem;
  border-radius: 1rem
}

.doc {
  padding: 2rem 0 3rem
}

.doc h1 {
  margin-top: 1rem
}

.doc h2 {
  margin: 1.4rem 0 .5rem
}

.doc p,
.doc li {
  color: var(--text)
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .06);
  margin-top: 2rem
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0
}

.foot a {
  color: var(--muted);
  text-decoration: none
}

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

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr
  }

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

  .flex {
    flex-direction: column
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats strong {
  display: inline-block;
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.stats strong.animated {
  transform: scale(1.2);
}

.intro {
  padding: 2.5rem 0;
}

.intro .lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1rem;
}

.intro ul.ticks {
  margin-top: 1rem;
}

.intro ul.ticks li {
  margin: .4rem 0;
}

.about-header {
  text-align: center;
  padding: 2rem 1rem;
}

.about-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.about-header p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 700px;
  margin: auto;
}

.about-section {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.about-section h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.about-section p {
  margin-bottom: 1rem;
}

.about-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.about-card {
  background: var(--soft);
  border-radius: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-card strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--brand-2);
}

.ps-header {
  text-align: center;
  padding: 2rem 1rem;
}

.ps-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.ps-header p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 750px;
  margin: auto;
}

.ps-section {
  margin-bottom: 2.5rem;
}

.ps-section h2 {
  margin-bottom: 1rem;
  color: var(--brand-2);
}

.ps-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ps-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  padding: 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ps-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.ps-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--brand);
}

.ps-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.ps-note {
  background: rgba(106, 165, 255, 0.12);
  border: 1px solid rgba(106, 165, 255, 0.25);
  border-radius: 0.8rem;
  padding: 1.2rem;
  font-size: 1rem;
  margin-top: 1.5rem;
}