:root {
  --bg: #0b1118;
  --bg-soft: #111a24;
  --bg-soft-2: #0f1722;
  --text: #e7eaf0;
  --muted: #98a2b3;
  --accent: #c6b089;
  --accent-2: #8ea3c3;
  --line: rgba(198, 176, 137, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% -20%, #142231, var(--bg) 40%);
  min-height: 100%;
  scroll-behavior: smooth;
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  animation: pulse 8s ease-in-out infinite;
}

.bg-glow-a {
  top: -14vw;
  right: -10vw;
  background: #2f4157;
}

.bg-glow-b {
  bottom: -18vw;
  left: -10vw;
  background: #8d6f49;
  animation-delay: 2s;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 80%);
  opacity: 0.18;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(11, 17, 24, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 12;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  color: var(--text);
}

.brand-text strong {
  font-size: 0.95rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 700;
}

nav {
  display: flex;
  gap: 18px;
}

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

nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

nav a:hover::after {
  width: 100%;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: 0.25s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #cab793, #a79372 45%, #8ea3c3);
  color: #111;
  border-color: transparent;
  box-shadow: 0 14px 40px rgba(198, 176, 137, 0.3);
}

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

.btn.ghost:hover,
nav a:hover,
.footer a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  gap: 30px;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  padding: 84px 0 26px;
}

.eyebrow {
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--muted);
}

h1 {
  margin: 12px 0;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(2.2rem, 9vw, 5rem);
  letter-spacing: 0.1em;
  color: transparent;
  background: linear-gradient(135deg, #dbc59f, #9ab0d3);
  -webkit-background-clip: text;
  background-clip: text;
}

.subtitle {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

.hero-points {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span {
  border: 1px solid rgba(198, 176, 137, 0.2);
  background: rgba(15, 22, 31, 0.6);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.85rem;
}

.terminal-card {
  border: 1px solid rgba(198, 176, 137, 0.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 26, 36, 0.95), rgba(10, 14, 20, 0.96));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}

.terminal-head {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-head span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.terminal-body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  padding: 18px;
  color: #d6e0ef;
}

.terminal-body p {
  margin: 10px 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px auto 14px;
}

.metric {
  border: 1px solid rgba(198, 176, 137, 0.16);
  border-radius: 14px;
  background: rgba(15, 22, 31, 0.72);
  padding: 12px;
  text-align: center;
}

.metric span {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}

.metric small {
  color: var(--muted);
}

.section {
  padding: 30px 0;
}

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

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

h2 {
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.9rem;
  margin-bottom: 14px;
}

.grid {
  display: grid;
  gap: 16px;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
  background: linear-gradient(180deg, rgba(17, 26, 36, 0.9), rgba(9, 14, 21, 0.95));
  border: 1px solid rgba(198, 176, 137, 0.14);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.card h3 {
  margin-top: 0;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(198, 176, 137, 0.36);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.45);
}

.image-card img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.screenshot-placeholder img {
  filter: brightness(0.7) saturate(0.7);
}

.image-card figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

ul {
  margin: 0;
  padding-left: 18px;
}

li {
  margin: 8px 0;
  color: var(--muted);
}

.price {
  color: var(--accent);
  font-size: 1.7rem;
  margin: 0 0 4px;
}

.tariff {
  position: relative;
  overflow: hidden;
}

.duration {
  margin-top: 0;
  color: #ced9e8;
  font-weight: 600;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(198, 176, 137, 0.2);
  border: 1px solid rgba(198, 176, 137, 0.4);
}

.tariff.highlight {
  border-color: rgba(198, 176, 137, 0.5);
}

.tariff::after {
  content: "";
  position: absolute;
  inset: auto -20% -70% -20%;
  height: 140px;
  background: radial-gradient(circle, rgba(198, 176, 137, 0.22), transparent 70%);
}

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

.quote p {
  margin-top: 0;
  line-height: 1.6;
}

.quote small {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-item {
  position: relative;
  border: 1px solid rgba(198, 176, 137, 0.16);
  border-radius: 16px;
  background: rgba(15, 22, 31, 0.65);
  padding: 16px;
}

.timeline-item span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  color: #111;
  background: linear-gradient(135deg, #dcc7a3, #9cb0cf);
}

.timeline-item p {
  margin: 10px 0 0;
  color: var(--muted);
}

.faq-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cta {
  text-align: center;
  border: 1px solid rgba(198, 176, 137, 0.2);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 25, 35, 0.95), rgba(10, 14, 21, 0.95));
  margin-top: 28px;
  padding: 30px 20px;
}

.cta p {
  color: var(--muted);
  margin-top: 0;
}

.cta .actions {
  justify-content: center;
  margin-top: 18px;
}

.apps-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  border: 1px solid rgba(198, 176, 137, 0.2);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 25, 35, 0.9), rgba(10, 14, 21, 0.92));
  padding: 12px;
}

.apps-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-tab {
  text-align: left;
  border: 1px solid rgba(198, 176, 137, 0.24);
  border-radius: 10px;
  background: rgba(12, 19, 28, 0.8);
  color: var(--text);
  padding: 10px 12px;
  cursor: pointer;
}

.app-tab.is-active {
  background: linear-gradient(135deg, rgba(198, 176, 137, 0.25), rgba(142, 163, 195, 0.2));
  border-color: rgba(198, 176, 137, 0.5);
}

.apps-view {
  min-height: 280px;
}

.app-panel {
  display: none;
  border: 1px solid rgba(198, 176, 137, 0.2);
  border-radius: 12px;
  padding: 14px;
  background: rgba(10, 16, 23, 0.8);
}

.app-panel.is-active {
  display: block;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.card.compact {
  padding: 12px;
}

.card.compact strong {
  display: block;
  margin-bottom: 4px;
}

.card.compact small {
  color: var(--muted);
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-item {
  border: 1px solid rgba(198, 176, 137, 0.2);
  border-radius: 10px;
  padding: 10px;
  background: rgba(15, 22, 31, 0.75);
}

.app-item h4 {
  margin: 0 0 8px;
}

.admin-balance-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.admin-balance-form input {
  border: 1px solid rgba(198, 176, 137, 0.24);
  border-radius: 10px;
  background: rgba(12, 19, 28, 0.85);
  color: var(--text);
  padding: 10px;
}

.tariff-buy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0 34px;
  color: var(--muted);
}

.footer div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.reveal {
  animation: revealUp 0.7s ease both;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.24s;
}

.delay-3 {
  animation-delay: 0.36s;
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

@media (max-width: 860px) {
  nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .metrics,
  .apps-shell,
  .app-grid,
  .tariff-buy-grid,
  .admin-balance-form,
  .timeline,
  .faq-grid,
  .cards-3,
  .cards-2,
  .cards-5 {
    grid-template-columns: 1fr;
  }
  .topbar .btn {
    display: none;
  }
  .brand-text {
    display: none;
  }
}
