/* Hāvin public website v0.5.2 — Halo/Text and RC5 portal alignment */

:root {
  --rc5-purple: #4B2A72;
  --rc5-navy: #0D1426;
  --rc5-blue: #1E3A8A;
  --rc5-sky: #3FA7E1;
  --rc5-gold: #D4AF37;
  --rc5-white: #FFFFFF;
}

.nav-links {
  gap: 19px;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(560px, 1.12fr);
}

.portal-showcase-rc5 {
  max-width: 720px;
}

.rc5-desktop-demo {
  grid-template-columns: 136px minmax(0, 1fr);
  aspect-ratio: 1.58 / 1;
  border-color: rgba(63, 167, 225, 0.26);
  background:
    radial-gradient(circle at 80% 0%, rgba(63, 167, 225, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(75, 42, 114, 0.18), rgba(13, 20, 38, 0.98) 42%);
}

.rc5-sidebar {
  background:
    radial-gradient(circle at 18% 4%, rgba(63, 167, 225, 0.14), transparent 34%),
    radial-gradient(circle at 8% 38%, rgba(75, 42, 114, 0.50), transparent 45%),
    var(--rc5-navy);
}

.rc5-nav span.halo {
  color: #f7fbff;
  border-color: rgba(212, 175, 55, 0.32);
  background: linear-gradient(90deg, rgba(75, 42, 114, 0.58), rgba(30, 58, 138, 0.32));
}

.rc5-nav span.halo b,
.rc5-pulse small,
.rc5-halo-card small,
.rc5-world-card small,
.rc5-today-card small,
.rc5-asset-row small,
.halo-chat-top small {
  color: var(--rc5-gold);
}

.rc5-pulse {
  border-color: rgba(212, 175, 55, 0.28);
  background: linear-gradient(145deg, rgba(75, 42, 114, 0.34), rgba(30, 58, 138, 0.18));
}

.rc5-workspace {
  background:
    radial-gradient(circle at 78% 18%, rgba(63, 167, 225, 0.10), transparent 33%),
    #10192c;
}

.rc5-main {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 32%),
    #10192c;
}

.rc5-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 12px;
}

.rc5-heading h4 {
  font-size: 17px;
}

.rc5-heading p {
  max-width: 330px;
}

.rc5-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(132px, 0.88fr);
  gap: 10px;
}

.rc5-halo-card,
.rc5-today-card,
.rc5-world-card,
.rc5-asset-row > div,
.halo-chat-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(13, 20, 38, 0.72);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.20);
}

.rc5-halo-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  grid-row: span 2;
  min-height: 160px;
  padding: 14px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 18%, rgba(63, 167, 225, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(75, 42, 114, 0.54), rgba(13, 20, 38, 0.82));
}

.rc5-halo-mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 999px;
  color: var(--rc5-gold);
  background:
    radial-gradient(circle, rgba(63, 167, 225, 0.26), transparent 54%),
    rgba(13, 20, 38, 0.72);
  box-shadow: 0 0 26px rgba(63, 167, 225, 0.18);
  font-size: 16px;
  font-weight: 800;
}

.rc5-halo-card strong,
.rc5-today-card strong,
.rc5-world-card b,
.halo-chat-card strong {
  color: #f6f9ff;
}

.rc5-halo-card small,
.rc5-today-card small,
.rc5-world-card small,
.rc5-asset-row small,
.halo-chat-top small {
  display: block;
  font-size: 5px;
  font-weight: 850;
  letter-spacing: 0.10em;
}

.rc5-halo-card strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.2;
}

.rc5-halo-card p {
  margin: 7px 0 10px;
  color: #aab7ca;
  font-size: 6.4px;
  line-height: 1.55;
}

.rc5-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rc5-chip-row span {
  padding: 4px 6px;
  border: 1px solid rgba(63, 167, 225, 0.22);
  border-radius: 999px;
  color: #d7e9fb;
  background: rgba(30, 58, 138, 0.20);
  font-size: 5px;
  font-weight: 750;
}

.rc5-today-card,
.rc5-world-card {
  padding: 10px;
  border-radius: 13px;
}

.rc5-today-card > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  margin-top: 8px;
}

.rc5-today-card strong,
.rc5-today-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rc5-today-card strong {
  font-size: 7px;
}

.rc5-today-card span {
  color: #8293ad;
  font-size: 5.4px;
}

.rc5-today-card b {
  grid-row: span 2;
  align-self: center;
  padding: 4px 6px;
  border-radius: 7px;
  color: var(--rc5-white);
  background: rgba(30, 58, 138, 0.72);
  font-size: 5px;
}

.rc5-world-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 8px;
}

.rc5-world-metrics span {
  display: grid;
  gap: 2px;
  padding: 7px 5px;
  border-radius: 9px;
  color: #91a1ba;
  background: rgba(255, 255, 255, 0.045);
  font-size: 4.6px;
  text-align: center;
}

.rc5-world-metrics b {
  font-size: 10px;
}

.rc5-world-card p {
  margin: 8px 0 0;
  color: #8090a9;
  font-size: 5.3px;
  line-height: 1.45;
}

.rc5-asset-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.rc5-asset-row > div {
  padding: 10px;
  border-radius: 12px;
}

.rc5-asset-row strong,
.rc5-asset-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rc5-asset-row strong {
  margin-top: 5px;
  color: #eff5ff;
  font-size: 7px;
}

.rc5-asset-row span {
  margin-top: 3px;
  color: #8392aa;
  font-size: 5.4px;
}

.rc5-mobile-screen {
  background:
    radial-gradient(circle at 70% 0%, rgba(63, 167, 225, 0.15), transparent 34%),
    #10192c;
}

.rc5-mobile-content {
  padding-bottom: 72px;
}

.rc5-mobile-halo {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 10px;
  margin: 14px 0 12px;
  padding: 13px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(75, 42, 114, 0.56), rgba(30, 58, 138, 0.24));
}

.rc5-mobile-halo strong,
.rc5-mobile-halo span {
  display: block;
}

.rc5-mobile-halo strong {
  color: var(--rc5-white);
  font-size: 14px;
}

.rc5-mobile-halo span {
  margin-top: 3px;
  color: #b5c1d3;
  font-size: 10px;
  line-height: 1.35;
}

.rc5-mobile-bottom > span.halo {
  transform: translateY(-7px);
  color: var(--rc5-gold);
}

.rc5-mobile-bottom > span.halo::first-letter {
  font-size: 18px;
}

.story-rail {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.story-card-text {
  border-color: rgba(30, 58, 138, 0.16);
  background: linear-gradient(180deg, #ffffff, #f4f7fc);
}

.story-card-text .story-icon {
  color: var(--rc5-blue);
  background: rgba(63, 167, 225, 0.13);
}

.halo-text-section {
  overflow: hidden;
}

.halo-text-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  gap: 56px;
  align-items: center;
}

.halo-copy .lead {
  max-width: 620px;
}

.halo-product-stage {
  position: relative;
  min-height: 440px;
}

.halo-chat-card {
  width: min(100%, 470px);
  padding: 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 16% 8%, rgba(63, 167, 225, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(75, 42, 114, 0.38), rgba(13, 20, 38, 0.94));
}

.halo-chat-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.halo-chat-top strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

.halo-question,
.halo-answer,
.halo-composer {
  border-radius: 18px;
}

.halo-question {
  width: fit-content;
  max-width: 78%;
  margin-left: auto;
  padding: 13px 15px;
  color: var(--rc5-white);
  background: linear-gradient(135deg, var(--rc5-blue), var(--rc5-purple));
  font-size: 14px;
  line-height: 1.35;
}

.halo-answer {
  margin-top: 14px;
  padding: 17px;
  color: #dce7f7;
  background: rgba(255, 255, 255, 0.055);
}

.halo-answer p {
  margin: 9px 0 12px;
  color: #aebbd0;
  font-size: 13px;
  line-height: 1.55;
}

.halo-composer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 13px 14px;
  color: #8796ad;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
}

.sms-phone-demo {
  position: absolute;
  right: 0;
  top: 68px;
  width: 255px;
}

.sms-device-shell {
  position: relative;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 38px;
  background: #050a14;
  box-shadow: 0 30px 68px rgba(0, 0, 0, 0.36);
}

.sms-island {
  position: absolute;
  top: 17px;
  left: 50%;
  width: 70px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #05070d;
  z-index: 2;
}

.sms-screen {
  min-height: 500px;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(180deg, #f7f8fb, #e9eef8);
}

.sms-header {
  height: 76px;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: end;
  gap: 4px;
  padding: 0 14px 12px;
  border-bottom: 1px solid rgba(13, 20, 38, 0.08);
  color: var(--rc5-navy);
}

.sms-header > span {
  font-size: 18px;
  font-weight: 700;
}

.sms-header div {
  text-align: center;
}

.sms-header strong,
.sms-header small {
  display: block;
}

.sms-header strong {
  font-size: 13px;
}

.sms-header small {
  color: #66748a;
  font-size: 9px;
}

.sms-thread {
  display: grid;
  gap: 9px;
  padding: 18px 12px 12px;
}

.sms-bubble {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 17px;
  font-size: 11px;
  line-height: 1.35;
}

.sms-in {
  justify-self: start;
  color: #19243a;
  background: var(--rc5-white);
  border-bottom-left-radius: 6px;
}

.sms-out {
  justify-self: end;
  color: var(--rc5-white);
  background: linear-gradient(135deg, var(--rc5-blue), var(--rc5-purple));
  border-bottom-right-radius: 6px;
}

.sms-compose {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 13px 12px 0;
  padding: 8px 8px 8px 13px;
  border: 1px solid rgba(13, 20, 38, 0.10);
  border-radius: 999px;
  color: #7a8799;
  background: var(--rc5-white);
  font-size: 11px;
}

.sms-compose b {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rc5-white);
  background: var(--rc5-blue);
}

.sms-phone-demo > small {
  display: block;
  margin-top: 10px;
  color: #8d9bb0;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.platform-card-live + .platform-card .platform-icon {
  color: var(--rc5-gold);
}

@media (max-width: 1120px) {
  .hero-grid,
  .halo-text-grid {
    grid-template-columns: 1fr;
  }

  .portal-showcase-rc5 {
    max-width: 760px;
  }

  .halo-product-stage {
    min-height: 420px;
  }

  .sms-phone-demo {
    right: 18px;
  }
}

@media (max-width: 860px) {
  .nav-links {
    gap: 0;
  }

  .story-rail {
    grid-template-columns: 1fr;
  }

  .story-card,
  .story-card-dark,
  .story-card-text {
    min-height: 0;
  }

  .halo-text-grid {
    gap: 36px;
  }

  .halo-product-stage {
    display: grid;
    gap: 18px;
    min-height: 0;
  }

  .halo-chat-card,
  .sms-phone-demo {
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .sms-phone-demo {
    position: static;
  }
}

@media (max-width: 620px) {
  .hero-copy .hero-actions {
    align-items: stretch;
  }

  .portal-showcase-rc5 .portal-product-caption {
    max-width: 280px;
    margin-inline: auto;
  }

  .rc5-mobile-halo {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .halo-chat-card {
    padding: 18px;
    border-radius: 22px;
  }

  .halo-question {
    max-width: 92%;
  }

  .sms-device-shell {
    border-radius: 34px;
  }

  .sms-screen {
    min-height: 470px;
    border-radius: 27px;
  }
}

@media (max-width: 390px) {
  .sms-bubble {
    font-size: 10px;
  }
}
