:root {
  --rg-primary: #5d87ff;
  --rg-primary-strong: #4169f5;
  --rg-secondary: #13deb9;
  --rg-ink: #1f2a44;
  --rg-muted: #64748b;
  --rg-soft: #edf3ff;
  --rg-line: #e7edf7;
  --rg-panel: #ffffff;
  --rg-page: #f5f8ff;
  --rg-shadow: 0 28px 90px rgba(31, 42, 68, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: "DM Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--rg-ink);
  background:
    radial-gradient(circle at top left, rgba(93, 135, 255, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(19, 222, 185, 0.14), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--rg-page) 100%);
}

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

button,
input {
  font: inherit;
}

.rg-container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.rg-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
}

.rg-brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rg-primary), var(--rg-secondary));
  box-shadow: 0 14px 32px rgba(93, 135, 255, 0.28);
}

.rg-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

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

.rg-button-primary {
  color: #fff;
  background: var(--rg-primary);
  box-shadow: 0 16px 32px rgba(93, 135, 255, 0.26);
}

.rg-button-primary:hover {
  background: var(--rg-primary-strong);
}

.rg-button-mint {
  color: #073b35;
  background: var(--rg-secondary);
  box-shadow: 0 16px 34px rgba(19, 222, 185, 0.26);
}

.rg-button-soft {
  color: var(--rg-primary);
  background: #ffffff;
  border: 1px solid var(--rg-line);
}

.rg-button-outline {
  color: var(--rg-primary);
  background: transparent;
  border: 1px solid rgba(93, 135, 255, .36);
}

.rg-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(93, 135, 255, .18);
  background: rgba(93, 135, 255, .10);
  color: var(--rg-primary);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.rg-nav {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rg-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #2f3b52;
  font-size: 15px;
  font-weight: 800;
}

.rg-nav-links a {
  padding: 10px 0;
}

.rg-nav-links a:hover,
.rg-nav-links a.active {
  color: var(--rg-primary);
}

.rg-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rg-hero {
  min-height: calc(100svh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 58px;
  padding: 34px 0 76px;
}

.rg-hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: .98;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.rg-hero-copy p {
  max-width: 590px;
  margin: 0;
  color: var(--rg-muted);
  font-size: 18px;
  line-height: 1.7;
}

.rg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.rg-product-plane {
  position: relative;
  min-height: 600px;
  border-radius: 34px;
  border: 1px solid rgba(226, 232, 240, .9);
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.7)),
    linear-gradient(145deg, #eef4ff, #ffffff 62%, #ecfffb);
  box-shadow: var(--rg-shadow);
  overflow: hidden;
}

.rg-product-plane::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(226, 232, 240, .8) 48% 48.25%, transparent 48.25%),
    radial-gradient(circle at 78% 18%, rgba(93, 135, 255, .14), transparent 18rem);
  pointer-events: none;
}

.rg-floating-panel {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 13%;
  display: grid;
  gap: 14px;
}

.rg-feature-line,
.rg-status-tile {
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, .9);
  background: rgba(255,255,255,.78);
  padding: 18px 26px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.rg-flow-line {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, .9);
  background: rgba(255,255,255,.78);
  padding: 14px 22px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.rg-flow-line span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--rg-primary);
  color: #fff;
  font-size: 15px;
}

.rg-flow-line strong {
  overflow-wrap: anywhere;
}

.rg-status-row {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(226,232,240,.9);
}

.rg-status-tile {
  border-radius: 20px;
  text-align: center;
  padding: 18px 14px;
}

.rg-status-tile span {
  display: block;
  color: var(--rg-primary);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.rg-status-tile strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.rg-section {
  padding: 86px 0;
}

.rg-section-head {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.rg-section-head h1,
.rg-section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.rg-section-head p {
  margin: 16px auto 0;
  max-width: 620px;
  color: var(--rg-muted);
  font-size: 17px;
  line-height: 1.7;
}

.rg-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.rg-step {
  border: 1px solid var(--rg-line);
  border-radius: 28px;
  padding: 28px;
  background: rgba(255,255,255,.8);
  box-shadow: 0 16px 50px rgba(31, 42, 68, .06);
}

.rg-step b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: var(--rg-primary);
}

.rg-step h3 {
  margin: 24px 0 8px;
  font-size: 22px;
}

.rg-step p {
  margin: 0;
  color: var(--rg-muted);
  line-height: 1.65;
}

.rg-cookie {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: min(460px, calc(100% - 44px));
  display: none;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--rg-line);
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 70px rgba(31,42,68,.16);
  backdrop-filter: blur(18px);
}

.rg-cookie.show {
  display: grid;
}

.rg-cookie strong {
  display: block;
  font-size: 16px;
}

.rg-cookie p {
  margin: 6px 0 0;
  color: var(--rg-muted);
  font-size: 13px;
  line-height: 1.55;
}

.rg-cookie-actions {
  display: flex;
  gap: 10px;
}

.rg-auth-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.rg-auth-shell {
  width: min(1500px, 100%);
  min-height: min(900px, calc(100svh - 64px));
  display: grid;
  grid-template-columns: minmax(420px, .82fr) minmax(500px, 1.18fr);
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(226,232,240,.92);
  background: rgba(255,255,255,.95);
  box-shadow: var(--rg-shadow);
}

.rg-auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 52px;
  background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
  border-right: 1px solid var(--rg-line);
}

.rg-auth-story h1 {
  margin: 26px 0 28px;
  font-size: clamp(38px, 3.6vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.rg-auth-feature-list {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.rg-auth-feature-list div {
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--rg-line);
  padding: 18px 28px;
  font-size: 18px;
  font-weight: 800;
}

.rg-auth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,.84);
  border: 1px solid var(--rg-line);
}

.rg-auth-stats div {
  border-radius: 20px;
  padding: 20px 14px;
  text-align: center;
  background: #f8fbff;
}

.rg-auth-stats span {
  display: block;
  color: var(--rg-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.rg-auth-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.rg-auth-form-area {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 56px;
  background: #fff;
}

.rg-auth-form-wrap {
  width: min(620px, 100%);
}

.rg-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: #2f3b52;
  font-size: 16px;
  font-weight: 800;
}

.rg-form-card {
  padding: 42px;
  border-radius: 32px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 80px rgba(31, 42, 68, .10);
  border: 1px solid rgba(226,232,240,.7);
}

.rg-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.rg-form-head h2 {
  margin: 14px 0 8px;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.1;
}

.rg-form-head p {
  margin: 0;
  color: var(--rg-muted);
  font-size: 16px;
}

.rg-form-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: var(--rg-primary);
  font-size: 30px;
  font-weight: 800;
  background: var(--rg-soft);
}

.rg-field {
  margin-bottom: 18px;
}

.rg-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rg-label {
  display: block;
  margin-bottom: 9px;
  color: var(--rg-ink);
  font-size: 15px;
  font-weight: 800;
}

.rg-input {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid var(--rg-line);
  background: #ffffff;
  padding: 0 16px;
  color: var(--rg-ink);
  font-size: 16px;
  outline: none;
  transition: border .18s ease, box-shadow .18s ease, background .18s ease;
}

.rg-input:focus {
  border-color: rgba(93,135,255,.76);
  box-shadow: 0 0 0 4px rgba(93,135,255,.12);
}

.rg-helper {
  margin-top: 8px;
  color: var(--rg-muted);
  font-size: 13px;
  line-height: 1.45;
}

.rg-message {
  display: none;
  margin-bottom: 18px;
  border-radius: 14px;
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.55;
}

.rg-message.error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.rg-message.success {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.rg-form-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  color: #2f3b52;
  font-weight: 800;
}

.rg-form-footer a {
  color: var(--rg-primary);
}

.rg-avatar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.rg-avatar-option {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 3px solid #edf2f7;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: border .18s ease, transform .18s ease, box-shadow .18s ease;
}

.rg-avatar-option:hover {
  transform: translateY(-1px);
}

.rg-avatar-option.active {
  border-color: var(--rg-primary);
  box-shadow: 0 0 0 4px rgba(93, 135, 255, .16);
}

.rg-avatar-preview {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
}

.rg-pricing-page {
  background: #fff;
}

.rg-pricing-hero {
  background: var(--rg-soft);
  border-bottom: 1px solid var(--rg-line);
  padding: 54px 0 64px;
}

.rg-pricing-hero .rg-section-head {
  max-width: 1120px;
}

@media (min-width: 1080px) {
  .rg-pricing-hero .rg-section-head h1 {
    white-space: nowrap;
  }
}

.rg-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.rg-plan-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rg-line);
  border-radius: 24px;
  padding: 30px;
  background: #fff;
  min-height: 100%;
}

.rg-plan-card.featured {
  border-color: rgba(93,135,255,.42);
  box-shadow: 0 24px 70px rgba(93, 135, 255, .12);
}

.rg-plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rg-plan-top h3 {
  margin: 0;
  font-size: 25px;
}

.rg-plan-badge {
  border-radius: 12px;
  background: var(--rg-soft);
  color: var(--rg-primary);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.rg-plan-desc {
  min-height: 56px;
  color: var(--rg-muted);
  line-height: 1.6;
  margin: 20px 0 0;
}

.rg-plan-price {
  display: flex;
  align-items: end;
  gap: 9px;
  padding: 28px 0;
  margin: 28px 0 22px;
  border-top: 1px solid var(--rg-line);
  border-bottom: 1px solid var(--rg-line);
}

.rg-plan-price strong {
  font-size: 52px;
  line-height: 1;
}

.rg-plan-price span {
  color: var(--rg-muted);
  padding-bottom: 7px;
  font-weight: 700;
}

.rg-plan-list {
  display: grid;
  gap: 14px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.rg-plan-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2f3b52;
  font-weight: 800;
}

.rg-check,
.rg-muted-check {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  font-size: 13px;
}

.rg-check {
  color: #03665b;
  border: 2px solid #38d9c2;
}

.rg-muted-check {
  color: #94a3b8;
  border: 2px solid #cbd5e1;
}

.rg-plan-card .rg-button {
  width: 100%;
  margin-top: auto;
}

@media (max-width: 1080px) {
  .rg-hero,
  .rg-auth-shell {
    grid-template-columns: 1fr;
  }

  .rg-auth-shell {
    min-height: auto;
  }

  .rg-auth-story {
    border-right: 0;
    border-bottom: 1px solid var(--rg-line);
  }

  .rg-pricing-grid,
  .rg-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .rg-container {
    width: min(100% - 28px, 1240px);
  }

  .rg-nav {
    height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .rg-nav-links {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .rg-nav-actions {
    width: 100%;
  }

  .rg-nav-actions .rg-button {
    flex: 1;
  }

  .rg-hero {
    min-height: auto;
    padding: 28px 0 56px;
  }

  .rg-hero-copy h1 {
    font-size: 34px;
    line-height: 1.06;
  }

  .rg-product-plane {
    min-height: 440px;
    border-radius: 26px;
  }

  .rg-status-row {
    grid-template-columns: 1fr;
  }

  .rg-cookie {
    grid-template-columns: 1fr;
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }

  .rg-auth-page {
    padding: 14px;
  }

  .rg-auth-shell {
    border-radius: 28px;
  }

  .rg-auth-story,
  .rg-auth-form-area {
    padding: 28px 18px;
  }

  .rg-auth-story h1 {
    font-size: 36px;
  }

  .rg-auth-feature-list div {
    border-radius: 18px;
  }

  .rg-auth-stats,
  .rg-field-grid {
    grid-template-columns: 1fr;
  }

  .rg-form-card {
    padding: 26px 18px;
    border-radius: 26px;
  }

  .rg-form-head {
    display: block;
  }

  .rg-form-icon {
    margin-top: 18px;
  }
}
