:root {
  --bg: #07090d;
  --ink: #f4f6fa;
  --muted: #9aa4b5;
  --line: rgba(255, 255, 255, 0.1);
  --panel: rgba(16, 20, 28, 0.72);
  --orange: #ff6a00;
  --red: #c8102e;
  --blue: #0170fc;
  --radius: 20px;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; }

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(255, 106, 0, 0.22), transparent 58%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(200, 16, 46, 0.16), transparent 55%),
    radial-gradient(ellipse 45% 35% at 0% 70%, rgba(1, 112, 252, 0.14), transparent 50%),
    linear-gradient(180deg, #0e1219 0%, var(--bg) 48%, #050608 100%);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
}

.site {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* Top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.logo span { color: var(--orange); }

.top-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.top-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.top-links a:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

/* Hero — one composition */
.hero {
  min-height: min(72vh, 640px);
  display: grid;
  align-content: end;
  padding: 48px 0 56px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% -8% auto auto;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.18), transparent 68%);
  filter: blur(8px);
  z-index: -1;
  animation: pulse 7s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12vw, 7.2rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 18px;
  animation: rise 0.8s ease both;
}

.brand-mark em {
  font-style: normal;
  color: var(--orange);
}

.hero p {
  max-width: 34rem;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
  animation: rise 0.9s ease 0.08s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: rise 1s ease 0.14s both;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

/* Apps */
.section {
  padding: 8px 0 64px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.apps {
  display: grid;
  gap: 14px;
}

.app {
  --accent: var(--orange);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%),
    var(--panel);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease;
  animation: rise 0.7s ease both;
}

.app:nth-child(1) { animation-delay: 0.05s; }
.app:nth-child(2) { animation-delay: 0.12s; }
.app:nth-child(3) { animation-delay: 0.19s; }

.app:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}

.app.orange { --accent: var(--orange); }
.app.red { --accent: var(--red); }
.app.blue { --accent: var(--blue); }

.app-meta h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 999px;
  padding: 4px 9px;
  margin-bottom: 10px;
}

.app-meta p {
  margin: 0 0 8px;
  color: #d0d6e0;
  max-width: 40rem;
}

.pkg {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.app-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
}

.app-actions .btn {
  background: var(--accent);
  color: #fff;
  width: 100%;
}

.app-actions .btn.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

/* Support strip */
.support {
  margin: 8px 0 40px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.support strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.support span { color: var(--muted); font-size: 0.92rem; }

.support a.mail {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}

footer.site-foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
}

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

footer.site-foot a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .app {
    grid-template-columns: 1fr;
  }
  .app-actions {
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .app-actions .btn { width: auto; flex: 1; }
  .hero { min-height: auto; padding-top: 36px; }
}
