:root {
  --bg-primary: #0f1117;
  --bg-secondary: #1a1d27;
  --bg-card: #1e2130;
  --bg-hover: #252840;
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #e8eaf0;
  --text-secondary: #8b92a5;
  --text-muted: #555d72;
  --accent: #6c63ff;
  --accent-hover: #5a52e0;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.28);
  --container: 1180px;
  --font-main: "Space Grotesk", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(108, 99, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 24%),
    linear-gradient(180deg, #0d1018 0%, #111521 100%);
  color: var(--text-primary);
  font-family: var(--font-main);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

code,
pre {
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

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

.hidden {
  display: none !important;
}

.text-success {
  color: var(--success);
}

.text-info {
  color: var(--info);
}

.text-secondary {
  color: var(--text-secondary);
}

.eyebrow,
.section-label,
.copy-box-label {
  color: var(--text-secondary);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8079ff);
  color: white;
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-hover);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
  color: #fecaca;
}

.btn-google {
  background: #ffffff;
  border-color: rgba(15, 17, 23, 0.08);
  color: #111827;
}

.btn-google:hover {
  background: #f6f7fb;
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
}

.btn-block {
  width: 100%;
}

.card {
  background: rgba(30, 33, 48, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.table-wrap {
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.95rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.95rem;
}

.table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.015);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-success {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}

.badge-info {
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
}

.input,
.select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  padding: 0.9rem 1rem;
  outline: none;
  transition: 0.2s ease;
}

.input:focus,
.select:focus,
textarea:focus {
  border-color: rgba(108, 99, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.16);
}

.google-mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.hero-login-note {
  margin: 1rem 0 0;
  max-width: 38rem;
  color: var(--text-secondary);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(4, 6, 12, 0.72);
  padding: 1rem;
  z-index: 40;
}

.modal {
  width: min(100%, 620px);
  max-height: 90vh;
  overflow: auto;
  background: linear-gradient(180deg, rgba(30, 33, 48, 0.98), rgba(20, 23, 34, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  animation: fadeUp 0.24s ease;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  width: 240px;
  padding: 1.25rem;
  background: rgba(12, 15, 23, 0.96);
  border-right: 1px solid var(--border);
}

.stat-card {
  display: grid;
  gap: 0.45rem;
}

.stat-card span {
  color: var(--text-secondary);
}

.stat-card strong {
  font-size: clamp(1.7rem, 2vw, 2.4rem);
}

.copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
}

.alert-box {
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.alert-box.success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.24);
}

.alert-box.error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.24);
}

.alert-box.info {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
}

.brand-mark,
.brand-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #4f8cff);
  color: white;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(108, 99, 255, 0.35);
}

.brand-mark.large {
  width: 54px;
  height: 54px;
  font-size: 1.1rem;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(9, 12, 18, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.nav-cluster {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.menu-group {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  display: none;
  background: rgba(17, 21, 31, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.dropdown-menu.open {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.85rem 1rem;
}

.dropdown-menu a:hover {
  background: var(--bg-hover);
}

.hero {
  padding: 6.5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.98;
  max-width: 820px;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 640px;
}

.hero-kicker {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.12);
  color: #c7c3ff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-lead {
  margin-bottom: 0;
}

.hero-actions,
.button-group,
.hero-metrics,
.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-metrics {
  margin-top: 1.5rem;
}

.hero-proof {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.proof-item {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
}

.proof-item strong,
.stat-tile strong,
.rule-item strong,
.info-banner strong {
  display: block;
  margin-bottom: 0.35rem;
}

.proof-item span,
.stat-tile span,
.rule-item span,
.footer-note,
.plan-copy {
  color: var(--text-secondary);
}

.metric-pill {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.metric-pill span {
  display: block;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.hero-panel {
  min-height: 360px;
}

.signal-card {
  display: grid;
  gap: 1rem;
}

.signal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.terminal-panel {
  display: grid;
  gap: 0.85rem;
  font-size: 1rem;
}

.terminal-line {
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.compact-code {
  margin: 0;
  font-size: 0.92rem;
}

.rule-list {
  display: grid;
  gap: 0.85rem;
}

.rule-item {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.section {
  padding: 4rem 0;
}

.section-highlight {
  padding-top: 0;
}

.section-heading {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-heading-wide {
  max-width: 860px;
}

.section-heading-wide p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-grid,
.steps-grid,
.pricing-grid,
.stats-grid {
  display: grid;
  gap: 1rem;
}

.stat-strip,
.guideline-grid {
  display: grid;
  gap: 1rem;
}

.stat-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.feature-card,
.step-card,
.pricing-card {
  min-height: 100%;
}

.feature-grid-extended {
  margin-top: 1rem;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.16);
  color: #d4d1ff;
  margin-bottom: 1rem;
}

.pricing-card.featured {
  border-color: rgba(108, 99, 255, 0.34);
  transform: translateY(-6px);
}

.single-plan-card {
  width: min(100%, 760px);
  margin: 0 auto;
}

.price-label {
  display: block;
  margin: 1rem 0;
  font-size: 2rem;
}

.price-suffix {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-left: 0.35rem;
}

.simple-list {
  padding-left: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.pricing-single {
  display: grid;
}

.pricing-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.section-contact {
  padding-top: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 1.25rem;
  align-items: start;
}

.contact-copy,
.contact-benefits {
  display: grid;
  gap: 1rem;
}

.contact-card h3 {
  margin-top: 0;
}

.table-message-cell {
  max-width: 320px;
  white-space: normal;
  line-height: 1.6;
}

.info-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.landing-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.25rem;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-secondary);
}

.footer-grid p {
  margin: 0;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 2rem;
}

.auth-shell {
  width: min(100%, 460px);
}

.auth-card {
  padding: 1.8rem;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-copy {
  color: var(--text-secondary);
  line-height: 1.7;
}

.auth-form,
.settings-stack {
  display: grid;
  gap: 1rem;
}

.auth-form label,
.toggle-row {
  display: grid;
  gap: 0.45rem;
  color: var(--text-secondary);
}

.toggle-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.page-header,
.section-row,
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-header h1,
.section-row h2,
.modal-header h2 {
  margin: 0.2rem 0 0;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  cursor: pointer;
}

.filter-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 1rem 0 1.3rem;
}

.pagination-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.activity-feed {
  display: grid;
  gap: 0.85rem;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
}

.code-block {
  white-space: pre-wrap;
  word-break: break-word;
  color: #c7d2fe;
  background: rgba(9, 11, 18, 0.72);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border);
}

.subtle-card {
  background: rgba(255, 255, 255, 0.03);
}

.main-shell,
.tenant-main {
  display: grid;
  gap: 1.25rem;
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
  background: rgba(108, 99, 255, 0.42);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(108, 99, 255, 0.6);
}

@media (max-width: 1024px) {
  .hero-grid,
  .hero-proof,
  .stat-strip,
  .guideline-grid,
  .contact-grid,
  .feature-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .nav-cluster,
  .nav-links,
  .navbar,
  .footer-grid,
  .page-header,
  .section-row,
  .modal-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

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