:root {
  --bg-main: #020617;
  --bg-elevated: #020617;
  --bg-panel: #020617;
  --bg-card: #020617;
  --bg-chip: #020617;
  --bg-input: #020617;

  --border-subtle: #111827;
  --border-strong: #1f2937;

  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.15);
  --accent-strong: #3b82f6;

  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-softer: #6b7280;
  --danger: #f87171;

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 999px;

  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.9);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.8);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: radial-gradient(circle at top left, #020617, #000000 65%);
}

body {
  line-height: 1.5;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(31, 41, 55, 0.8);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  height: 24px;   /* icon size */
  width: auto;
  display: block;
}

.logo img {
  display: block;
  height: 50px;
}

.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, #38bdf8, #1d4ed8),
    radial-gradient(circle at 80% 80%, #22c55e, transparent);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.7);
}

.logo-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #e5e7eb;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

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

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

/* Hero */

.hero {
  padding: 40px 0 30px;
}

.hero-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 840px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
  }
}

.hero-left h1 {
  font-size: 26px;
  line-height: 1.25;
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  .hero-left h1 {
    font-size: 32px;
  }
}

@media (min-width: 840px) {
  .hero-left h1 {
    font-size: 40px;
  }
}

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

.hero-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-actions {
  margin: 18px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  font-size: 12px;
  color: var(--text-softer);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.05s ease,
    box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: #1d4ed8;
  color: #f9fafb;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(37, 99, 235, 0.9);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(55, 65, 81, 0.9);
  color: var(--text-main);
}

.btn-ghost:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.full-width {
  width: 100%;
}

/* Hero card */

.hero-card {
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.2), #020617);
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(37, 99, 235, 0.6);
  box-shadow: var(--shadow-soft);
}

.hero-card h2 {
  margin: 0;
  font-size: 15px;
}

.hero-card-caption {
  margin: 4px 0 14px;
  font-size: 12px;
  color: var(--text-softer);
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.hero-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-stat-row span:first-child {
  color: var(--text-muted);
}

.hero-stat-value {
  color: #e5e7eb;
}

.hero-stat-row.highlight .hero-stat-value {
  color: #bbf7d0;
}

/* Sections */

.section {
  padding: 30px 0;
}

.section-grid .panel + .panel {
  margin-top: 24px;
}

@media (min-width: 840px) {
  .try-how-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: stretch;
  }

  .section-grid .panel + .panel {
    margin-top: 0;
  }
}
/* Panels */

.panel {
  background: radial-gradient(circle at top left, #020617, #020617 60%);
  border-radius: 20px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: var(--shadow-subtle);
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.panel-subtitle {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Try box */

.try-box textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  font-family: inherit;
  font-size: 13px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at top left, #020617, #020617 70%);
  color: var(--text-main);
}

.try-box textarea::placeholder {
  color: var(--text-softer);
}

.try-box textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.7);
}

.try-box .btn {
  margin-top: 10px;
}

.try-error {
  margin-top: 8px;
  font-size: 12px;
  color: var(--danger);
}

.try-result {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
}

.try-result-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.try-result-row span:first-child {
  color: var(--text-softer);
}

.try-output-label {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.try-result pre {
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #020617;
  border: 1px solid #1e293b;
  font-size: 12px;
  color: #e5e7eb;
  max-height: 190px;
  overflow: auto;
}

/* How it works cards */

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

@media (min-width: 900px) {
  .how-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


.how-card {
  position: relative;
  border-radius: 22px;
  padding: 16px 18px 18px 18px;
  background: radial-gradient(
      circle at top,
      rgba(37, 99, 235, 0.22),
      #020617 70%
    );
  border: 1px solid rgba(37, 99, 235, 0.6);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* title + badge row */
.how-card h3 {
  margin: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.how-card p {
  margin: 0;
  color: var(--text-muted);
}

/* step badge */
.how-step {
  flex-shrink: 0;
  margin-left: 10px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 0 12px rgba(15, 23, 42, 0.9);
}

/* VERY small screens: cards full width, extra padding */
@media (max-width: 520px) {
  .how-card {
    border-radius: 20px;
    padding: 16px 16px 14px 16px;
  }
}

/* Chips */

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.7);
  color: #dbeafe;
}

.chip-outline {
  background: transparent;
  border-color: rgba(55, 65, 81, 0.9);
  color: var(--text-muted);
}

/* Pricing strip */

.pricing-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: var(--shadow-subtle);
  background: radial-gradient(circle at right, rgba(37, 99, 235, 0.2), #020617);
}

.pricing-strip h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.pricing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
}

@media (min-width: 840px) {
  .pricing-strip {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Footer */

.footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  margin-top: 28px;
  background: #020617;
}

.footer-inner {
  height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-softer);
}

.footer-right {
  text-align: right;
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 8px 0;
    gap: 6px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 4px;
    padding: 8px 0;
  }
}

/* Utility */

.hidden {
  display: none;
}
