:root {
  --bg: #080a0d;
  --bg-2: #121923;
  --surface: rgba(18, 24, 33, 0.76);
  --surface-strong: rgba(22, 30, 42, 0.9);
  --text: #f4f8ff;
  --muted: #9fb1c8;
  --line: rgba(157, 188, 222, 0.18);
  --accent: #15f5ba;
  --accent-2: #44b7ff;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(62, 189, 255, 0.2), transparent 28%),
    radial-gradient(circle at 80% 25%, rgba(21, 245, 186, 0.14), transparent 26%),
    linear-gradient(180deg, #05070a 0%, #090f16 48%, #06090f 100%);
  position: relative;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

.glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
}

.glow-a {
  width: 320px;
  height: 320px;
  background: rgba(68, 183, 255, 0.24);
  top: -80px;
  right: -40px;
}

.glow-b {
  width: 320px;
  height: 320px;
  background: rgba(21, 245, 186, 0.2);
  left: -70px;
  bottom: -130px;
}

.container {
  width: min(1160px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: "Syne", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  padding: 2.8rem 0 1.6rem;
}

.tagline {
  margin: 0;
  font-family: "Syne", sans-serif;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 7vw, 6.1rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
}

.tagline span {
  display: block;
  animation: reveal 650ms ease both;
}

.tagline span:nth-child(2) { animation-delay: 70ms; }
.tagline span:nth-child(3) { animation-delay: 140ms; }
.tagline span:nth-child(4) { animation-delay: 210ms; }
.tagline span:nth-child(5) { animation-delay: 280ms; }
.tagline span:nth-child(6) { animation-delay: 350ms; }

.subheading {
  margin: 1.1rem 0 0;
  max-width: 700px;
  color: var(--muted);
}

.hero-cta {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.1rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #02131e;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(68, 183, 255, 0.18);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(8px);
  padding: 1rem;
}

.metric h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.95rem);
}

.metric p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.apps-section {
  margin-top: 2.1rem;
}

.section-head h2,
.about-section h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
}

.section-head p,
.about-section p {
  color: var(--muted);
  max-width: 760px;
}

.apps-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.app-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  padding: 1rem;
}

.app-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.app-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.status-pill {
  background: rgba(21, 245, 186, 0.12);
  border: 1px solid rgba(21, 245, 186, 0.4);
  color: #8bf7dd;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.74rem;
}

.app-card p {
  color: var(--muted);
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.app-links a {
  color: #8ed5ff;
  text-decoration: none;
  font-size: 0.92rem;
}

.about-section {
  margin-top: 2.1rem;
  padding-bottom: 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 1.2rem 0 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

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

.legal-page {
  padding: 2rem 0 3rem;
}

.legal-page h1 {
  margin: 0 0 0.4rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.legal-meta {
  margin-top: 0;
  color: var(--muted);
}

.legal-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: var(--surface-strong);
}

.legal-content h2 {
  margin-top: 1.2rem;
  margin-bottom: 0.35rem;
  font-family: "Syne", sans-serif;
}

.legal-content p,
.legal-content li,
.legal-content a {
  color: #d2e1f3;
}

.cms-main {
  padding: 2rem 0 3rem;
}

.cms-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  padding: 1rem;
}

.cms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.cms-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cms-field label {
  color: var(--muted);
  font-size: 0.86rem;
}

.cms-field input,
.cms-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0b121b;
  color: var(--text);
  border-radius: 10px;
  padding: 0.55rem 0.62rem;
  font-family: "Sora", sans-serif;
}

.cms-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.cms-actions button,
.cms-actions label {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  font: inherit;
  cursor: pointer;
}

.cms-actions input {
  display: none;
}

.cms-note {
  color: var(--muted);
  font-size: 0.92rem;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .metrics-grid,
  .apps-grid,
  .cms-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(1160px, calc(100% - 1.4rem));
  }

  .nav-links {
    gap: 0.7rem;
    flex-wrap: wrap;
  }
}
