:root {
  --bg: #07131d;
  --surface: rgba(10, 24, 38, 0.78);
  --surface-strong: rgba(12, 29, 45, 0.96);
  --line: rgba(130, 191, 219, 0.18);
  --text: #ecf7ff;
  --muted: #92aabc;
  --accent: #4dd3c9;
  --accent-strong: #ffb84a;
  --danger: #ff7f73;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(77, 211, 201, 0.14), transparent 35%),
    radial-gradient(circle at bottom right, rgba(255, 184, 74, 0.12), transparent 28%),
    linear-gradient(180deg, #07131d 0%, #0b1b28 100%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  padding: 24px;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.ambient-a {
  width: 240px;
  height: 240px;
  top: 120px;
  right: 10%;
  background: rgba(77, 211, 201, 0.12);
}

.ambient-b {
  width: 220px;
  height: 220px;
  bottom: 80px;
  left: 8%;
  background: rgba(255, 184, 74, 0.1);
}

.topbar,
.page-shell,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(8, 19, 31, 0.7);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #1f7c8e);
  color: #04131d;
}

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

.nav-link {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
}

.nav-link.is-active,
.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.language-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.language-chip:hover,
.language-chip.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.language-flag {
  font-size: 1rem;
  line-height: 1;
}

.primary-button,
.ghost-button,
.access-card,
.pricing-card button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent-strong), #ff9a3c);
  color: #0b1822;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(255, 184, 74, 0.24);
}

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

.primary-button:hover,
.ghost-button:hover,
.access-card:hover,
.pricing-card button:hover {
  transform: translateY(-1px);
}

.button-block {
  width: 100%;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.hero,
.section,
.login-shell {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(7, 20, 31, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.35fr 0.85fr;
  padding: 42px;
}

.hero-copy h1,
.section-heading h1,
.section-heading h2,
.login-card h1,
.dashboard-card h2 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  line-height: 1.02;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  margin-bottom: 18px;
}

.hero-copy p,
.section-heading p,
.pricing-copy,
.faq-card p,
.dashboard-card p,
.login-card p,
.empty-state,
.login-status,
.history-meta {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow,
.panel-label,
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-actions,
.support-strip,
.hero-points {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-points span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  color: var(--muted);
}

.hero-panel,
.panel-card,
.dashboard-card,
.feature-card,
.pricing-card,
.faq-card,
.login-card,
.history-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.panel-card,
.dashboard-card,
.feature-card,
.pricing-card,
.faq-card,
.login-card {
  padding: 26px;
}

.section,
.login-shell {
  padding: 32px;
}

.section.compact {
  padding-top: 28px;
}

.section-heading {
  margin-bottom: 22px;
}

.feature-grid,
.pricing-grid,
.faq-grid,
.dashboard-grid,
.access-grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

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

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

.pricing-card.is-featured,
.accent-card {
  background: linear-gradient(180deg, rgba(16, 40, 53, 0.98), rgba(9, 23, 35, 0.92));
}

.pricing-top,
.stat-line,
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pricing-title {
  font-size: 1.35rem;
  font-weight: 800;
}

.pricing-period,
.pricing-note,
.history-status {
  color: var(--muted);
}

.pricing-price {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 22px 0 12px;
}

.status-pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: #0b1b28;
  background: var(--accent);
  font-weight: 800;
  margin: 14px 0 22px;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-row {
  padding: 18px 20px;
}

.history-title {
  font-weight: 700;
}

.access-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 92px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text);
}

.access-card strong {
  color: var(--accent-strong);
}

.bullet-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.login-shell {
  max-width: 620px;
  margin: 0 auto;
}

.login-card {
  display: grid;
  gap: 18px;
}

.login-status,
.command-box,
.empty-state {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--line);
}

.command-box {
  overflow-x: auto;
  white-space: pre-wrap;
}

.hidden {
  display: none !important;
}

.footer {
  max-width: 1180px;
  margin: 22px auto 0;
  padding: 18px 6px 8px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.reveal {
  animation: rise-in 0.7s ease both;
}

.stagger-1 {
  animation-delay: 0.08s;
}

.stagger-2 {
  animation-delay: 0.16s;
}

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

@media (max-width: 980px) {
  body {
    padding: 16px;
  }

  .topbar,
  .hero,
  .section,
  .login-shell {
    border-radius: 26px;
  }

  .hero,
  .feature-grid,
  .pricing-grid,
  .compact-grid,
  .faq-grid,
  .dashboard-grid,
  .access-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav,
  .topbar-actions {
    justify-content: center;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero,
  .section,
  .login-shell {
    padding: 22px;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .language-switcher {
    width: 100%;
    justify-content: center;
  }

  .language-chip {
    flex: 1 1 0;
    justify-content: center;
  }

  .hero-actions,
  .support-strip {
    flex-direction: column;
  }
}
