/* ============================================================
   SHARENTIS — home.css
   Home page styles: hero, panels, cards, dividers
   Colours defined in rgb()/rgba() notation.
   ============================================================ */

/* ── Base helpers ── */
html {
  scroll-behavior: smooth;
}

/* ── Background ── first panel home, login page */
#background {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.fi {
  vertical-align: middle;
  position: relative;
  top: -2px;
}
.flag-tip-wrapper {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.flag-tip {
  position: absolute;
  top: calc(100% + 6px);
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  background: rgb(40, 40, 40);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  white-space: normal;
  width: 360px;
  text-align: justify;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

.flag-tip-wrapper:hover .flag-tip,
.flag-tip-wrapper.active .flag-tip {
  opacity: 1;
}
#globe-canvas {
  position: absolute;
  top: 50%;
  /* shift right so ~33% bleeds off the right edge */
  left: calc(50% + 33vw);
  transform: translate(-50%, -50%);
  /* let it overflow — parent must not clip */
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  will-change: transform;
}

.panel {
  visibility: visible !important;
}

.button {
  text-decoration: none;
}

.hero,
.hero-section,
#home-hero {
  overflow: visible; /* or remove overflow:hidden if set */
}

.hero-shell {
  position: relative;
  z-index: 4;
  width: 100%;
  margin: 0;
  padding: 72px 0 110px 80px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 56px;
  align-items: center;
}

@media (max-width: 1200px) {
  .hero-shell {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 800px) {
  .hero-shell {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Arrow for hero-feature-card */
.hero-feature-chevron {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  opacity: 0;
  color: rgba(105, 105, 105, 0.82);
  font-size: 32px;
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(.4,0,.2,1), transform 220ms cubic-bezier(.4,0,.2,1);
}

.hero-feature-card {
  position: relative;
  transition:
    background 200ms,
    box-shadow 200ms,
    border-color 200ms,
    width 220ms cubic-bezier(.4,0,.2,1),
    margin-left 220ms cubic-bezier(.4,0,.2,1);
  width: 100%;
  max-width: 420px;
  margin-left: 0;
  
}

.hero-feature-card:hover {
  background: rgba(40, 40, 40, 0.9);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.16);
  width: 108%;
  margin-left: -4%;
}

.hero-feature-card:hover .hero-feature-chevron {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* ── Hero text panel ── */
#headerPanel {
  position: relative;
  z-index: 10;
  max-width: 820px;
  padding: 0;
  visibility: visible !important;
  justify-self: start;
  text-align: left;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3) !important;
  margin-bottom: 28px;
}

.hero-kicker::before {
  content: '';
  width: 34px;
  height: 2px;
  background: rgb(0, 123, 255);
  border-radius: 999px;
}

#headerPanel h1 {
  margin: 0 0 30px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(36px, 3.9vw, 48px);
  font-weight: 600;
  color: rgb(255, 255, 255);
  line-height: 1.10;
  letter-spacing: -0.04em;
}

#headerPanel h1 span {
  display: inline;
}

#headerPanel h1 .accent-word {
  color: rgb(140, 200, 140);
}

/* ── Rotating hero word ── */
.rotating-word-wrapper {
  display: inline;
  position: relative;
}

#headerPanel h1 .rotating-word {
  display: none;
  color: rgb(0, 123, 255);
  white-space: nowrap;
}

#headerPanel h1 .rotating-word--active {
  display: inline;
}

#headerPanel h1 .rotating-word--collapsing {
  display: inline-block;
  transform-origin: 50% 60%;
  animation: word-collapse 0.5s cubic-bezier(0.55, 0, 0.67, 0.02) forwards;
}

#headerPanel h1 .rotating-word--expanding {
  display: inline-block;
  transform-origin: 50% 60%;
  animation: word-expand 0.5s cubic-bezier(0.33, 1, 0.45, 1) forwards;
}

.rotating-word {
  background: linear-gradient(
    320deg,
    rgb(200, 200, 0) 0%,
    rgb(140, 200, 140) 40%,
    rgb(0, 155, 255) 80%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.rotating-word--active {
  background: linear-gradient(
    320deg,
    rgb(200, 200, 0) 0%,
    rgb(140, 200, 140) 40%,
    rgb(0, 155, 255) 80%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

#headerPanel h1 .rotating-word.model-word {
  background: linear-gradient(
    320deg,
    rgb(200, 200, 0) 0%,
    rgb(140, 200, 140) 40%,
    rgb(0, 155, 255) 80%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.rotating-word--collapsing {
  display: inline-block;
  transform-origin: 50% 60%;
  animation: word-collapse 0.5s cubic-bezier(0.55, 0, 0.67, 0.02) forwards;
}

.rotating-word--expanding {
  display: inline-block;
  transform-origin: 50% 60%;
  animation: word-expand 0.5s cubic-bezier(0.33, 1, 0.45, 1) forwards;
}

@keyframes word-collapse {
  0%   { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 1; }
}

@keyframes word-expand {
  0%   { transform: scaleY(0); opacity: 1; }
  100% { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .rotating-word--collapsing,
  .rotating-word--expanding {
    animation: none !important;
  }
}

#headerPanel p {
  max-width: 560px;
  margin: 0 0 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.46);
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
}

#headerPanel .hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  transform: translateX(0px);
}

#headerPanel .button,
#requestDemoButton,
#learnMoreButton {
  appearance: none;
  background: rgba(18, 20, 26, 0.78);
  color: rgb(255, 255, 255);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 16px 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  letter-spacing: 0;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  transition: background 200ms ease, box-shadow 200ms ease, transform 150ms ease, border-color 200ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 170px;
}

#requestDemoButton:hover,
#learnMoreButton:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
  transform: translateY(-2px);
}

.secondary-button {
  background: rgba(11, 12, 16, 0.66);
}

/* ── Hero feature cards (bleeding off right edge) ── */
.hero-feature-column {
  position: relative;
  z-index: 10;
  justify-self: end;
  width: min(100%, 470px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 21px;
  transform: translateX(140px);
}

.hero-feature-card {
  width: 100%;
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-right: none;
  border-radius: 22px 0 0 22px;
  padding: 20px 20px;
  padding-right: 160px;
  backdrop-filter: blur(8px);
  box-shadow: 0 13px 35px rgba(0, 0, 0, 0.24);
  animation: hero-card-in 420ms ease both;
}

.hero-feature-card:nth-child(1) { animation-delay: 0ms; }
.hero-feature-card:nth-child(2) { margin-right: 0; animation-delay: 70ms; }
.hero-feature-card:nth-child(3) { animation-delay: 140ms; }

.hero-feature-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 14px;
  row-gap: 6px;
  flex-wrap: wrap;
}

.hero-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.hero-feature-icon-blue   { background: rgba(0, 123, 255, 0.12);  color: rgb(0, 123, 255); }
.hero-feature-icon-green  { background: rgba(140, 200, 140, 0.10); color: rgb(140, 200, 140); }
.hero-feature-icon-yellow { background: rgba(255, 200, 0, 0.10);   color: rgb(255, 200, 0); }

.hero-feature-copy {
  flex: 1 1 0%;
  min-width: 0;
}

.hero-feature-eyebrow {
  display: block;
  margin-bottom: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.hero-feature-card h3 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.22;
  color: rgb(255, 255, 255);
  white-space: nowrap;
}

.hero-feature-card p {
  width: 100%;
  flex-basis: 100%;
  margin: 2px 0 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}
@keyframes hero-card-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgb(255, 255, 255);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(6px);
  transition: transform 150ms ease, background 200ms ease, border-color 200ms ease;
}

.scroll-indicator:hover {
  transform: translateX(-50%) translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.scroll-indicator-chevron {
  display: block;
  width: 28px;
  height: 28px;
  color: rgb(255, 255, 255);
  flex: 0 0 auto;
}

/* ── Shared section helpers ── */
.section-kicker {
  display: inline-block;
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(0, 123, 255) !important;
}

.section-kicker-light {
  color: rgba(255, 255, 255, 0.68);
}

.section-header {
  max-width: 960px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-header h2 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: rgb(255, 255, 255);
}

/* ── Body Panel 1 — Nutshell ── */
#bodyPanel1 {
  padding: 112px 24px 96px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  visibility: visible !important;
}

.nutshell-card {
  width: min(920px, 100%);
  border-radius: 30px;
  padding: 48px 56px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
}

#bodyPanel1 p:not(.nutshell-subcopy) {
  color: rgba(255, 255, 255, 0.92);
}

#bodyPanel1 .nutshell-subcopy {
  color: rgba(255, 255, 255, 0.68) !important;
}

#bodyPanel1 p {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.48;
  letter-spacing: -0.03em;
}

#bodyPanel1 .nutshell-subcopy {
  margin-top: 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.75;
  letter-spacing: 0;
  color: rgb(75, 85, 99);
}

/* ── Body Panel 2 — Cards ── */
#bodyPanel2 {
  background: transparent;
  padding: 12px 24px 112px;
  visibility: visible !important;
  overflow: hidden;
}

.panel-box-viewport {
  width: 100%;
  overflow: hidden;
}

#bodyPanel2 .panel-box-track {
  --panel-box-width: 372px;
  --panel-box-gap: 24px;
  --panel-set-width: calc((var(--panel-box-width) * 4) + (var(--panel-box-gap) * 4));
  display: flex;
  align-items: stretch;
  gap: var(--panel-box-gap);
  width: max-content;
  margin: 0 auto;
  justify-content: center;
}

.panel-box-viewport.pause-carousel .panel-box-track {
  animation-play-state: paused !important;
}

.panel-box {
  width: var(--panel-box-width);
  flex: 0 0 var(--panel-box-width);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
  border-radius: 28px;
  padding: 36px 30px;
  transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
  position: relative;
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.panel-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 1;
}

.panel-box:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

.panel-box-blue-yellow::before  { background: linear-gradient(90deg, rgb(0, 123, 255), rgb(255, 200, 0)); }
.panel-box-yellow-green::before { background: linear-gradient(90deg, rgb(255, 200, 0), rgb(140, 200, 140)); }
.panel-box-green-blue::before   { background: linear-gradient(90deg, rgb(140, 200, 140), rgb(0, 123, 255)); }
.panel-box-blue-green::before   { background: linear-gradient(90deg, rgb(0, 123, 255), rgb(140, 200, 140)); }

.panel-box-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgb(0, 123, 255);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

.panel-box h3 {
  margin: 0 0 18px;
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: rgb(255, 255, 255);
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.panel-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-box ul li {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  padding-left: 18px;
  position: relative;
}

.panel-box ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(0, 123, 255);
  opacity: 0.55;
}

.panel-box.is-duplicate {
  display: none;
}

@media (max-width: 1660px) {
  .panel-box.is-duplicate {
    display: flex;
  }

  #bodyPanel2 .panel-box-track {
    margin: 0;
    animation: panel-box-carousel 38s linear infinite;
    will-change: transform;
  }

  .panel-box-viewport:hover .panel-box-track {
    animation-play-state: paused !important;
  }
}

@keyframes panel-box-carousel {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--panel-set-width))); }
}

/* ── Body Panel 3 — Closing statement ── */
#bodyPanel3 {
  position: relative;
  background: transparent;
  padding: 112px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: visible !important;
  overflow: hidden;
}

#bodyPanel1::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 123, 255, 0.15) 0%, rgba(0, 123, 255, 0) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

#innerPanel3 {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  padding: 56px 52px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

#innerPanel3 p {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 1180px) {
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 36px;
    width: min(100%, calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 24px 110px 24px;
  }

  #headerPanel {
    max-width: 100%;
  }

  .hero-feature-column {
    justify-self: stretch;
    width: 100%;
    transform: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
  }

  .hero-feature-card,
  .hero-feature-card:nth-child(2) {
    width: 100%;
    margin-right: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    padding-right: 24px;
  }

  .hero-feature-card h3 {
    white-space: normal;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 820px) {
  .hero-feature-column {
    grid-template-columns: 1fr;
  }

  #headerPanel h1 {
    font-size: clamp(32px, 7vw, 46px);
  }

  #bodyPanel1,
  #bodyPanel2,
  #bodyPanel3 {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nutshell-card,
  #innerPanel3 {
    padding: 40px 28px;
  }
}

@media (max-width: 600px) {
  .hero-shell {
    width: calc(100% - 32px);
    padding: 40px 16px 56px 16px;
  }

  .hero-kicker {
    margin-bottom: 20px;
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  #headerPanel h1 {
    font-size: clamp(28px, 8.5vw, 38px);
    margin-bottom: 22px;
  }

  #headerPanel p {
    font-size: 16px;
    margin-bottom: 28px;
  }

  #headerPanel .hero-actions {
    transform: none;
    flex-direction: column;
    align-items: stretch;
  }

  #headerPanel .button,
  #requestDemoButton,
  #learnMoreButton {
    width: 100%;
    min-width: 0;
  }

  .hero-feature-card {
    padding: 19px;
    padding-right: 19px;
    border-radius: 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
  }

  .hero-feature-card h3 {
    font-size: 14px;
  }

  #bodyPanel1 { padding-top: 80px; padding-bottom: 72px; }
  #bodyPanel2 { padding-top: 0;    padding-bottom: 80px; }
  #bodyPanel3 { padding-top: 80px; padding-bottom: 80px; }

  #bodyPanel1 p {
    font-size: 22px;
  }

  #bodyPanel1 .nutshell-subcopy,
  #innerPanel3 p,
  .panel-box ul li {
    font-size: 15px;
  }

  .section-header h2 {
    font-size: 26px;
  }

  .panel-box {
    padding: 28px 22px;
  }

  .panel-box h3 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #bodyPanel2 .panel-box-track {
    animation: none !important;
  }

  .hero-feature-card {
    animation: none;
  }
}