:root {
  --bg: #0b0f19;
  --bg2: #0f1629;
  --card: #111a2e;
  --text: #e9eefc;
  --muted: #b7c3e1;
  --line: rgba(255, 255, 255, .10);
  --accent: #7aa2ff;
  --accent2: #9ef0d0;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --radius: 18px;
  --radius2: 12px;
  --max: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% 10%, rgba(122, 162, 255, .20), transparent 55%), radial-gradient(900px 700px at 85% 20%, rgba(158, 240, 208, .14), transparent 60%), var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 25, .65);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand__name {
  letter-spacing: .2px;
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
}

.topnav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.topnav__link {
  color: var(--muted);
  font-size: 15px;
}

.topnav__link:hover {
  color: var(--text);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 650;
  font-size: 14px;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .05s ease, background .2s ease, border-color .2s ease;
}

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

.btn--ghost {
  background: rgba(255, 255, 255, .05);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .08);
}

.btn--primary {
  background: linear-gradient(135deg, rgba(122, 162, 255, .95), rgba(158, 240, 208, .75));
  border-color: rgba(255, 255, 255, .18);
  color: #081021;
  box-shadow: 0 4px 18px rgba(122, 162, 255, 0.35);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 8px 25px rgba(122, 162, 255, 0.35);
}

.hero {
  padding: 80px 0 32px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
}

.badge {
  display: inline-block;
  padding: 7px 10px;
  font-size: 12px;
  letter-spacing: .35px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(34px, 4.8vw, 52px);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.8px;
  max-width: none;
}

.br-desktop {
  display: block;
}

@media (max-width: 1150px) {
  .br-desktop {
    display: none;
  }
}

.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subhead {
  color: var(--muted);
  font-size: 22px;
  line-height: 1.55;
  max-width: 64ch;
  margin: 0 0 24px;
}

.cta {
  margin-top: 18px;
}

.cta__form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

input[type="email"] {
  width: min(440px, 100%);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  outline: none;
}

input[type="email"]::placeholder {
  color: rgba(183, 195, 225, .75);
}

input[type="email"]:focus {
  border-color: rgba(122, 162, 255, .55);
  box-shadow: 0 0 0 4px rgba(122, 162, 255, .14);
}

.fineprint {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.cta {
  margin-top: 36px;
}

.cta__wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__trust {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(183, 195, 225, 0.7);
  font-size: 15px;
}

.trust__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
}

.hero__panel .panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 26, 46, .90), rgba(17, 26, 46, .70));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.panel__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .18);
}

.panel__title {
  color: rgba(233, 238, 252, .92);
  font-weight: 650;
  font-size: 14px;
}

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 20px 8px;
}

.panel__subtitle {
  font-size: 13px;
  color: rgba(183, 195, 225, 0.6);
  margin-top: 4px;
}

.badge-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(183, 195, 225, 0.8);
}

.panel__body {
  padding: 12px 20px;
}

.panel__matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.panel__stat-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease;
}

.stat-card__label {
  font-size: 13px;
  color: rgba(183, 195, 225, 0.65);
  margin-bottom: 8px;
}

.stat-card__value {
  font-size: 26px;
  font-weight: 750;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.stat-card__meta {
  font-size: 12px;
  color: rgba(183, 195, 225, 0.5);
}

.panel__feed {
  display: flex;
  flex-direction: column;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--green {
  background: #56e39f;
  box-shadow: 0 0 10px rgba(86, 227, 159, 0.3);
}

.status-dot--yellow {
  background: #f9c80e;
  box-shadow: 0 0 10px rgba(249, 200, 14, 0.3);
}

.status-dot--red {
  background: #ff5e5e;
  box-shadow: 0 0 10px rgba(255, 94, 94, 0.3);
}

.feed-content {
  flex-grow: 1;
}

.feed-title {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 2px;
}

.feed-quote {
  font-size: 13px;
  color: rgba(183, 195, 225, 0.6);
  font-style: italic;
}

.feed-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  color: rgba(183, 195, 225, 0.45);
}

.panel__footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-meta {
  font-size: 12px;
  color: rgba(183, 195, 225, 0.4);
}

.section {
  padding: 72px 0;
}

.section--alt {
  background: rgba(255, 255, 255, .03);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  margin-bottom: 24px;
}

h2 {
  font-size: 26px;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}

.section__sub {
  margin: 0;
  color: rgba(183, 195, 225, .92);
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, .04);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: rgba(183, 195, 225, .95);
  font-size: 16px;
  line-height: 1.6;
}

.sample {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  padding: 18px;
}

.sample__row {
  display: grid;
  grid-template-columns: 180px 1fr 70px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sample__row:last-of-type {
  border-bottom: none;
}

.sample__label {
  color: rgba(233, 238, 252, .92);
  font-size: 15px;
}

.sample__value {
  text-align: right;
  color: rgba(233, 238, 252, .95);
  font-weight: 700;
  font-size: 14px;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .10);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: 50%;
  background: linear-gradient(135deg, rgba(122, 162, 255, .9), rgba(158, 240, 208, .75));
}

.bar--muted span {
  background: linear-gradient(135deg, rgba(255, 255, 255, .40), rgba(255, 255, 255, .18));
}

.sample__note {
  margin-top: 10px;
  color: rgba(183, 195, 225, .85);
  font-size: 12px;
}

.center {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.faq details:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .15);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  font-size: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin: 14px 0 0;
  color: rgba(183, 195, 225, .95);
  line-height: 1.6;
  font-size: 16px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  background: rgba(11, 15, 25, .4);
}

.footer__inner {
  display: flex;
  justify-content: center;
}

.footer__content {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(183, 195, 225, 0.65);
  font-size: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
}

.footer__content a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .topnav {
    display: none;
  }
}

@media (max-width: 560px) {
  .br-desktop {
    display: none;
  }

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

  .section {
    padding: 48px 0;
  }

  .hero__grid {
    gap: 48px;
  }

  .hero__copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  h1 {
    font-size: clamp(32px, 10vw, 42px);
    margin-bottom: 20px;
    letter-spacing: -1px;
  }

  .subhead {
    font-size: 20px;
    margin-bottom: 24px;
    line-height: 1.5;
  }

  .panel {
    text-align: left;
  }

  .cta {
    width: 100%;
    margin-top: 0;
  }

  .cta__wrapper {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }

  .btn--lg {
    width: 100%;
    padding: 18px;
    font-size: 18px;
  }

  .fineprint {
    text-align: center;
    max-width: 100%;
    opacity: 0.8;
  }

  .hero__trust {
    margin-top: 48px;
    flex-direction: column;
    gap: 12px;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 20px;
    width: 100%;
    color: rgba(233, 238, 252, 0.8);
  }

  .trust__sep {
    display: none;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .sample__row {
    grid-template-columns: 1fr;
  }

  .sample__value {
    text-align: left;
  }

  .panel__matrix {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section__head {
    margin-bottom: 32px;
  }
}

/* Tablet & Small Desktop Optimizations (Titration) */
@media (max-width: 1150px) {
  .hero {
    padding: 64px 0;
  }

  .hero__grid {
    gap: 56px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cta__wrapper {
    justify-content: center;
  }

  .hero__trust {
    justify-content: center;
    text-align: center;
    margin-top: 32px;
  }

  .panel {
    text-align: left;
  }

  h1 {
    max-width: none;
    margin-bottom: 18px;
  }

  .subhead {
    font-size: 21px;
    margin-bottom: 32px;
    max-width: 68ch;
  }

  .panel__matrix {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

/* Modal Styling */
.modal {
  padding: 0;
  background: transparent;
  border: none;
  max-width: 440px;
  width: 90%;
  color: var(--text);
  overflow: visible;
  animation: fadeIn 0.3s ease;
}

.modal::backdrop {
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(8px);
  animation: fadeInBackdrop 0.3s ease;
}

.modal__content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient border effect via pseudo element */
.modal__content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s;
  z-index: 10;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.modal__header {
  text-align: center;
  margin-bottom: 24px;
}

.modal__header h3 {
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.5px;
}

.modal__header p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group input:focus {
  border-color: rgba(122, 162, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(122, 162, 255, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group input.error {
  border-color: rgba(255, 100, 100, 0.5);
  animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

.modal-success-view {
  animation: fadeUp 0.5s ease-out;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn--full {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 16px;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 17px;
}

.modal__fineprint {
  text-align: center;
  font-size: 12px;
  color: rgba(183, 195, 225, 0.6);
  margin: 0;
}

/* Success View */
#modal-success-view {
  text-align: center;
  padding: 10px 0;
}

.modal__success-icon {
  width: 64px;
  height: 64px;
  background: rgba(158, 240, 208, 0.15);
  color: var(--accent2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  box-shadow: 0 0 20px rgba(158, 240, 208, 0.1);
  border: 1px solid rgba(158, 240, 208, 0.2);
}

#modal-success-view h3 {
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--text);
}

#modal-success-view p {
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInBackdrop {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .modal {
    width: 95%;
  }
}