/* Full-width homepage scaling with restrained, responsive interaction motion. */

.shell {
  width: calc(100% - clamp(32px, 5vw, 96px));
  max-width: none;
  margin-inline: auto;
}

.site-header {
  width: 100%;
  max-width: none;
  padding-inline: clamp(20px, 4vw, 72px);
}

.desktop-nav {
  gap: clamp(12px, 1.7vw, 30px);
}

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 42px;
  border: 1px solid rgba(217, 202, 255, 0.18);
  border-radius: 999px;
  clip-path: none;
  text-transform: none;
  letter-spacing: 0;
  transition:
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.18) 48%, transparent 72%);
  transform: translateX(-125%);
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover::after {
  transform: translateX(125%);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-primary {
  background: #7345d6;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  filter: none;
}

.button-primary:hover {
  background: #8051df;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  filter: none;
}

.button-secondary,
.button-ghost {
  background: rgba(255, 255, 255, 0.045);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: rgba(196, 168, 255, 0.38);
  background: rgba(148, 96, 255, 0.13);
}

.hero {
  width: calc(100% - clamp(32px, 5vw, 96px));
  max-width: none;
  grid-template-columns: minmax(380px, 0.78fr) minmax(620px, 1.22fr);
  gap: clamp(42px, 5vw, 96px);
  min-height: clamp(680px, 78vh, 920px);
  padding-top: clamp(82px, 8vw, 130px);
  padding-bottom: clamp(86px, 8vw, 132px);
}

.hero-copy {
  align-self: center;
  margin-top: 0;
}

.hero-rollway {
  position: relative;
  z-index: 1;
  width: calc(100% + clamp(110px, 10vw, 190px));
  height: 78px;
  margin: 0 0 18px;
  overflow: hidden;
  pointer-events: none;
}

.hero-roll-line {
  position: absolute;
  left: 0;
  top: 68px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(196, 168, 255, 0.28), rgba(148, 96, 255, 0.9) 68%, rgba(90, 124, 255, 0.4));
  box-shadow: 0 0 12px rgba(148, 96, 255, 0.42);
}

.hero-roller {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 40px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: linear-gradient(135deg, #eadfff 0 20%, #c4a8ff 20% 43%, #9460ff 43% 68%, #7345d6 68% 84%, #5a7cff 84% 100%);
  filter: drop-shadow(0 0 8px rgba(148, 96, 255, 0.68));
  opacity: 0;
  will-change: transform;
}

.hero-roller::after {
  content: "";
  position: absolute;
  inset: 7px 8px;
  clip-path: inherit;
  background: #171021;
}

.app-showcase {
  position: relative;
  z-index: 3;
}

.hero h1 {
  max-width: 760px;
  margin-top: 0;
  font-size: clamp(48px, 5.4vw, 86px);
}

.hero-lead {
  max-width: 660px;
  font-size: clamp(17px, 1.3vw, 20px);
}

.hero-actions {
  gap: 12px;
}

.app-showcase {
  width: 100%;
  align-self: center;
}

.carousel-stage {
  width: 100%;
}

.carousel-frame {
  width: 100%;
  border-radius: 0;
}

.carousel-slide {
  transition:
    opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.signal-switcher {
  width: calc(100% - clamp(32px, 5vw, 96px));
  max-width: none;
  padding-top: clamp(50px, 7vw, 110px);
  padding-bottom: clamp(110px, 11vw, 180px);
}

.signal-tabs {
  width: 100%;
}

.signal-tab {
  transition:
    color 220ms ease,
    background 220ms ease,
    filter 220ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.signal-tab:hover {
  transform: translateY(-3px);
}

.signal-tab:active {
  transform: translateY(0) scale(0.985);
}

.signal-stage {
  width: 100%;
}

.signal-content {
  padding-inline: clamp(42px, 6vw, 110px);
}

.final-cta {
  width: calc(100% - clamp(32px, 5vw, 96px));
  max-width: none;
  min-height: clamp(340px, 35vw, 540px);
  margin-inline: auto;
  padding: clamp(52px, 7vw, 110px);
}

.site-footer {
  width: calc(100% - clamp(32px, 5vw, 96px));
  max-width: none;
}

.reveal {
  animation: fullWidthReveal 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-one {
  animation-delay: 100ms;
}

@keyframes fullWidthReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.992);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@media (min-width: 1800px) {
  .hero {
    grid-template-columns: minmax(480px, 0.72fr) minmax(820px, 1.28fr);
  }

  .hero h1 {
    font-size: clamp(70px, 4.6vw, 104px);
  }

  .signal-intro h2 {
    font-size: clamp(58px, 4.2vw, 78px);
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(340px, 0.88fr) minmax(520px, 1.12fr);
    gap: 38px;
  }

  .desktop-nav {
    gap: 10px;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
    min-height: 0;
  }

  .hero-copy {
    width: min(760px, 100%);
    text-align: center;
    margin-inline: auto;
  }

  .hero h1,
  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-notes {
    justify-content: center;
  }

  .app-showcase {
    width: min(900px, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  .shell,
  .hero,
  .signal-switcher,
  .final-cta,
  .site-footer {
    width: calc(100% - 28px);
  }

  .site-header {
    padding-inline: 14px;
  }

  .hero {
    gap: 42px;
    padding-top: 76px;
    padding-bottom: 92px;
  }

  .hero h1 {
    font-size: clamp(38px, 12.5vw, 54px);
  }

  .signal-content {
    padding-inline: 22px;
  }

  .final-cta {
    padding: 42px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
  }

  .button,
  .button::after,
  .signal-tab {
    transition: none;
  }
}

/* HexaQuill geometry: no rounded homepage surfaces. */
.button {
  --button-cut: 16px;
  border-radius: 0;
  clip-path: polygon(
    var(--button-cut) 0,
    calc(100% - var(--button-cut)) 0,
    100% 50%,
    calc(100% - var(--button-cut)) 100%,
    var(--button-cut) 100%,
    0 50%
  );
}

.carousel-stage,
.signal-tabs,
.signal-stage,
.final-cta {
  border-radius: 0;
}

.carousel-frame {
  border-radius: 0;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.floating-card {
  --card-cut: 13px;
  border-radius: 0;
  clip-path: polygon(
    var(--card-cut) 0,
    calc(100% - var(--card-cut)) 0,
    100% 50%,
    calc(100% - var(--card-cut)) 100%,
    var(--card-cut) 100%,
    0 50%
  );
}

.signal-tabs {
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.signal-tab {
  --tab-cut: 16px;
  border-radius: 0;
  clip-path: polygon(
    var(--tab-cut) 0,
    calc(100% - var(--tab-cut)) 0,
    100% 50%,
    calc(100% - var(--tab-cut)) 100%,
    var(--tab-cut) 100%,
    0 50%
  );
}

.signal-tab::after {
  border-radius: 0;
  clip-path: inherit;
}

.signal-stage,
.final-cta {
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.signal-feature-lead,
.signal-provider-grid article,
.signal-process article {
  border-radius: 0;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.carousel-stage::before,
.signal-stage::before {
  border-radius: 0;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

@media (max-width: 620px) {
  .button {
    --button-cut: 14px;
  }

  .carousel-frame,
  .signal-tabs,
  .signal-stage,
  .final-cta {
    border-radius: 0;
  }
}

/* Refined density and shared product-window language. */
.shell,
.hero,
.signal-switcher,
.final-cta,
.site-footer {
  width: min(1560px, calc(100% - clamp(40px, 4vw, 72px)));
}

.hero {
  position: relative;
  grid-template-columns: minmax(360px, 0.82fr) minmax(560px, 1.18fr);
  gap: clamp(34px, 4vw, 68px);
  min-height: 0;
  padding-top: clamp(62px, 6vw, 94px);
  padding-bottom: clamp(72px, 7vw, 108px);
  overflow: clip;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 150px;
  aspect-ratio: 1;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  border: 1px solid rgba(148, 96, 255, 0.16);
  opacity: 0.7;
  pointer-events: none;
  animation: heroHexDrift 9s ease-in-out infinite alternate;
}

.hero::before {
  top: 42px;
  left: 28%;
}

.hero::after {
  right: -42px;
  bottom: 60px;
  width: 210px;
  opacity: 0.38;
  animation-delay: -4s;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(44px, 4.5vw, 72px);
  line-height: 1.08;
}

.hero h1 em {
  display: block;
  max-width: 100%;
  font-size: 1.12em;
  line-height: 1.02;
  white-space: normal;
  overflow-wrap: normal;
}

.hero-lead {
  max-width: 590px;
  font-size: clamp(16px, 1.15vw, 18px);
}

.hero-actions {
  margin-top: 28px;
}

.hero-notes {
  margin-top: 18px;
}

.app-showcase {
  min-width: 0;
}

.carousel-stage {
  position: relative;
  padding: 34px 10px 10px;
  border: 1px solid rgba(217, 202, 255, 0.14);
  border-radius: 20px;
  background: #100d16;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.carousel-stage::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7655b6;
  box-shadow: 13px 0 #4d3a68, 26px 0 #303b59;
}

.carousel-stage::after {
  content: "HexaQuill workspace";
  position: absolute;
  top: 8px;
  right: 16px;
  color: #776f80;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.carousel-frame {
  border-radius: 12px;
}

.floating-card {
  border: 1px solid rgba(217, 202, 255, 0.13);
  border-radius: 12px;
  clip-path: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.floating-private {
  top: 48px;
  right: -14px;
}

.floating-codex {
  left: -12px;
  bottom: 28px;
}

.signal-switcher {
  padding-top: clamp(36px, 4vw, 68px);
  padding-bottom: clamp(90px, 9vw, 140px);
}

.signal-tabs {
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(217, 202, 255, 0.11);
  border-radius: 16px;
  background: #0f0c14;
}

.signal-tab {
  min-height: 68px;
  clip-path: none;
  border-radius: 11px;
}

.signal-tab::after {
  inset: 0;
  clip-path: none;
  border-radius: inherit;
}

.signal-tab.is-active {
  background: #21182e;
  box-shadow: inset 0 0 0 1px rgba(196, 168, 255, 0.18);
  filter: none;
}

.signal-tab.is-active::after {
  background: transparent;
}

.signal-stage {
  margin-top: 14px;
  border: 1px solid rgba(217, 202, 255, 0.1);
  border-radius: 20px;
  background: #0f0c14;
}

.signal-stage::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 18px;
  z-index: 4;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7655b6;
  box-shadow: 12px 0 #4d3a68, 24px 0 #303b59;
  pointer-events: none;
}

.signal-content {
  padding-top: clamp(50px, 5vw, 76px);
  padding-bottom: clamp(44px, 5vw, 72px);
}

.signal-feature-lead,
.signal-provider-grid article,
.signal-process article {
  border-radius: 14px;
}

.final-cta {
  min-height: 380px;
  margin-bottom: 72px;
  border-radius: 20px;
  clip-path: none;
  background: #0f0c14;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.final-cta h2 {
  max-width: 760px;
  font-size: clamp(42px, 4.5vw, 66px);
  line-height: 1.02;
}

@keyframes heroHexDrift {
  from {
    transform: translate3d(0, -8px, 0) rotate(-4deg);
  }
  to {
    transform: translate3d(16px, 12px, 0) rotate(5deg);
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(330px, 0.86fr) minmax(500px, 1.14fr);
  }

  .hero h1 {
    font-size: clamp(42px, 4.8vw, 62px);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero h1 {
    max-width: 740px;
  }
}

@media (max-width: 620px) {
  .shell,
  .hero,
  .signal-switcher,
  .final-cta,
  .site-footer {
    width: calc(100% - 28px);
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 78px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 50px);
  }

  .hero::before {
    left: -70px;
  }

  .hero::after {
    right: -120px;
  }

  .carousel-stage {
    padding: 28px 6px 6px;
    border-radius: 14px;
  }

  .carousel-stage::before {
    top: 10px;
    left: 12px;
  }

  .carousel-stage::after {
    top: 6px;
    right: 10px;
    font-size: 8px;
  }

  .signal-stage {
    border-radius: 14px;
  }

  .final-cta {
    min-height: 330px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after {
    animation: none;
  }
}

/* Final geometry lock: HexaQuill surfaces never use rounded corners. */
.carousel-stage,
.carousel-frame,
.floating-card,
.signal-tabs,
.signal-tab,
.signal-tab::after,
.signal-stage,
.signal-feature-lead,
.signal-provider-grid article,
.signal-process article,
.final-cta {
  border-radius: 0;
}


