:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --bg-soft: #101729;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --accent-strong: #2563eb;
  --accent-contrast: #22c55e;
  --text: #f9fafb;
  --muted: #94a3b8;
  --border-subtle: rgba(148, 163, 184, 0.2);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.55);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 50%, #020617 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom,
    rgba(2, 6, 23, 0.96),
    rgba(2, 6, 23, 0.78),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  cursor: pointer;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 30%;
  background: conic-gradient(from 160deg, #22c55e, #3b82f6, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.6);
}

.logo-mark span {
  font-size: 0.8rem;
  font-weight: 800;
  color: #020617;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted);
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), var(--accent-contrast));
  transition: width 0.2s ease-out;
}

.nav-links a:hover::after {
  width: 16px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.08s ease, box-shadow 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: var(--shadow-subtle);
  color: #e5f0ff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(15, 23, 42, 0.8);
}

.btn-soft {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text);
}

.btn-soft:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 1);
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  display: block;
  margin: 4px 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 0.8rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a,
.nav-mobile button {
  font-size: 0.88rem;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.nav-mobile a:hover,
.nav-mobile button:hover {
  color: var(--text);
}

/* Hero & landing sections */
.hero {
  padding: 3.5rem 0 3.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.25fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.18rem 0.5rem 0.18rem 0.2rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #1d283a, #020617);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-kicker-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #bfdbfe;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.4rem, 3.1vw + 1.2rem, 3.2rem);
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-bottom: 1.1rem;
}

.hero-title span.highlight {
  background: linear-gradient(to right, var(--accent-contrast), var(--accent));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-note-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-contrast);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 0.5rem;
}

.metric {
  min-width: 90px;
}

.metric-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.metric-value {
  font-size: 1.15rem;
  font-weight: 700;
}

.metric-value span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  margin-left: 2px;
}

/* Hero card */
.hero-card {
  background: radial-gradient(circle at top left, #1d283a 0, #020617 60%);
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.3rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-card-tag {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.chip {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.7rem;
  color: var(--muted);
}

.hero-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: flex-start;
}

.card-panel {
  background: rgba(15, 23, 42, 0.85);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.75rem 0.9rem;
}

.panel-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.panel-row strong {
  color: var(--text);
  font-weight: 600;
}

.savings-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.16);
  color: #bbf7d0;
  font-size: 0.72rem;
  margin-top: 0.4rem;
}

.savings-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-contrast);
}

.split-list {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.split-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-right: 0.75rem;
}

.card-badge {
  position: absolute;
  right: 1.3rem;
  top: 1.1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.24);
  border: 1px solid rgba(45, 212, 191, 0.5);
  font-size: 0.72rem;
  color: #a5f3fc;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22d3ee;
}

/* Sections */
section {
  padding: 2.75rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 650;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.section-description {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 28rem;
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  background: linear-gradient(to bottom right, rgba(15,23,42,0.98), #020617);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 0.95rem 0.95rem 1.05rem;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.step-text {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Split section */
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.pill-label-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.benefit-card {
  background: linear-gradient(to bottom, #020617, #020617);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.05rem;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.7);
}

.benefit-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.benefit-bullet {
  margin-top: 0.3rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-soft);
}

.benefit-highlight {
  color: var(--accent-contrast);
  font-weight: 600;
}

/* CTA band */
.cta-band {
  background: radial-gradient(circle at top, #1e293b 0, #020617 55%);
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.4rem 1.4rem 1.3rem;
  display: grid;
  grid-template-columns: 1.4fr 1.1fr;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.cta-title {
  font-size: 1.2rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.cta-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 26rem;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.input {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.55rem 0.8rem;
  font-size: 0.86rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  min-width: 0;
  flex: 1;
}

.input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.cta-footnote {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
}

.faq-list {
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(to bottom, rgba(15,23,42,0.9), #020617);
  padding: 0.8rem 0.9rem;
}

.faq-item {
  border-bottom: 1px solid rgba(30, 41, 59, 0.9);
  padding: 0.55rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  font-size: 0.9rem;
  font-weight: 550;
  margin-bottom: 0.25rem;
}

.faq-a {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.mini-card {
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 0.95rem;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.mini-card strong {
  color: var(--text);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(30, 41, 59, 0.95);
  padding: 1.25rem 0 1.75rem;
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1.1rem;
}

.footer-links a:hover {
  color: var(--text);
}

/* Portal shared */
.portal-header {
  padding: 2.5rem 0 1.5rem;
}

.portal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.portal-title {
  font-size: 1.6rem;
  font-weight: 650;
  margin: 0;
}

.portal-subtitle {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 30rem;
}

.portal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}

.portal-sidebar {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1rem 0.75rem;
}

.portal-sidebar-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.portal-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.portal-nav li {
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.portal-nav li span.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
}

.portal-nav li.active {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
}

.portal-nav li.active span.dot {
  background: var(--accent);
}

.portal-main {
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at top left, #1e293b 0, #020617 55%);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.portal-main-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.portal-main-title {
  font-size: 1.1rem;
  font-weight: 620;
  margin: 0 0 0.25rem;
}

.portal-main-text {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 28rem;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.75rem;
  color: var(--muted);
}

.badge-soft span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-contrast);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.portal-card {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.95);
  padding: 0.85rem 0.9rem 0.95rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.portal-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.portal-card-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 0.45rem;
}

.portal-card p {
  margin: 0;
  line-height: 1.5;
}

.portal-card-cta {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--accent-contrast);
}

.portal-summary-row {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.portal-pill {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* Centered sections & forms (signup) */
.centered-section {
  padding: 3rem 0 3rem;
}

.centered-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.centered-heading {
  font-size: 1.5rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
}

.centered-subtitle {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.account-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.account-card {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.98);
  padding: 0.9rem 0.95rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.08s ease;
}

.account-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-subtle);
  transform: translateY(-1px);
}

.account-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.account-card-text {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.86rem;
}

.form-label {
  color: var(--muted);
}

.form-input,
.form-select,
.form-textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.95);
  padding: 0.55rem 0.7rem;
  font-size: 0.86rem;
  color: var(--text);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.form-textarea {
  min-height: 70px;
  resize: vertical;
}

.form-full {
  grid-column: 1 / -1;
}

.form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.form-checkbox-row input[type="checkbox"] {
  margin-top: 0.1rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.5rem;
}

.form-footnote {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    padding-top: 2.5rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    margin-top: 0.75rem;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .cta-band {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .portal-layout {
    grid-template-columns: 1fr;
  }
  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-type-grid {
    grid-template-columns: 1fr;
  }
  .centered-section {
    padding-top: 2.5rem;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding-top: 2rem;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
