:root {
  --bg: #050505;
  --bg-2: #0b0b0b;
  --panel: rgba(14, 14, 14, 0.9);
  --line: rgba(214, 177, 77, 0.2);
  --text: #f5efdf;
  --muted: rgba(245, 239, 223, 0.72);
  --gold: #d2a74d;
  --gold-soft: rgba(210, 167, 77, 0.18);
  --shadow: 0 36px 90px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(210, 167, 77, 0.08), transparent 24%),
    radial-gradient(circle at 80% 22%, rgba(210, 167, 77, 0.08), transparent 20%),
    linear-gradient(180deg, #020202 0%, #070707 48%, #050505 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.018) 50%, transparent 100%),
    linear-gradient(transparent 0%, rgba(210, 167, 77, 0.03) 100%);
  mix-blend-mode: screen;
}

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

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  padding: 0 clamp(22px, 4vw, 54px) 40px;
}

.section,
.hero,
.ticker-band,
.site-footer {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 28px 0 0;
}

.nav-pill {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(1240px, calc(100vw - 40px));
  min-height: 66px;
  padding: 0 44px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(74, 77, 87, 0.88), rgba(52, 54, 61, 0.84));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.topnav-right {
  justify-content: flex-end;
}

.topnav a {
  color: rgba(244, 241, 233, 0.92);
  font-size: 0.96rem;
  font-weight: 500;
  transition: opacity 180ms ease, transform 180ms ease;
}

.topnav a:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

.brand-mark {
  justify-self: center;
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
}

.brand-mark img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.36));
  transition: opacity 220ms ease, transform 220ms ease;
}

.brand-mark-front {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-9deg);
}

.brand-mark-back {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(9deg) scaleX(-1);
}

.brand-mark:hover .brand-mark-front {
  opacity: 0;
}

.brand-mark:hover .brand-mark-back {
  opacity: 1;
}

.brand-mark-text {
  width: auto;
  min-width: 88px;
  height: 64px;
  padding-inline: 8px;
}

.brand-mark-text span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(214, 177, 77, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(245, 239, 223, 0.96);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(214, 177, 77, 0.12);
  transition: color 180ms ease, opacity 180ms ease;
}

.brand-mark-text:hover span {
  color: rgba(214, 177, 77, 0.92);
}

.hero {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 8px 0 54px;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 16px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1,
.section-heading h2,
.showcase-copy h2,
.cta-panel h2,
.legal-main h1 {
  margin: 0;
  font-size: clamp(3.6rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.hero-display {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4.8rem, 11vw, 8.8rem) !important;
  line-height: 0.82 !important;
  letter-spacing: -0.045em !important;
  font-weight: 600 !important;
}

.melt-text {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.melt-text::after {
  content: attr(data-melt);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: rgba(245, 239, 223, 0.36);
  filter: blur(5px);
  transform-origin: top center;
  transform: translateY(12px) scaleY(1.08);
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 52%,
    rgba(0, 0, 0, 0.72) 76%,
    rgba(0, 0, 0, 1) 100%
  );
  opacity: 0.82;
  animation: meltDrip 5.4s ease-in-out infinite;
}

.hero-text,
.workflow-card p,
.showcase-copy p,
.legal-main p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 34ch;
  margin: 22px 0 0;
  font-size: 1.02rem;
}

.hero-copy-centered {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
  margin-top: -34px;
}

.hero-subtitle {
  margin: 14px 0 0;
  color: rgba(245, 239, 223, 0.78);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
}

.hero-actions-centered {
  justify-content: center;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.button-gold {
  color: #160f03;
  background: linear-gradient(135deg, #8b6617 0%, #d2a74d 50%, #f7dfa0 100%);
  box-shadow: 0 14px 36px rgba(210, 167, 77, 0.22);
}

.cta-button-wide {
  min-width: 168px;
  white-space: nowrap;
}

.button-blue {
  color: #f7fbff;
  background: linear-gradient(180deg, #84b7ff 0%, #74abfb 48%, #6397ef 100%);
  box-shadow:
    0 16px 32px rgba(88, 141, 230, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.button-ghost {
  border-color: rgba(214, 177, 77, 0.28);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.hero-stage {
  position: relative;
  width: min(1280px, 100%);
  min-height: 620px;
  margin-top: -74px;
  overflow: hidden;
}

.hero-cta {
  min-width: 154px;
}

.hero-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(560px, 52vw);
  height: min(560px, 52vw);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(118, 149, 205, 0.12), transparent 64%);
  filter: blur(20px);
}

.hero-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 38px;
  width: min(680px, 64vw);
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 66%);
  filter: blur(34px);
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
}

.hero-carousel {
  position: absolute;
  left: 50%;
  right: 0;
  bottom: 8px;
  width: min(1520px, 120vw);
  transform: translateX(-50%);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 1) 12%, rgba(0, 0, 0, 1) 88%, transparent 100%);
}

.hero-carousel-track {
  display: flex;
  align-items: end;
  gap: 24px;
  width: max-content;
  animation: heroCarousel 36s linear infinite;
}

.carousel-card {
  overflow: hidden;
  flex: 0 0 auto;
  width: clamp(240px, 19vw, 300px);
  height: clamp(300px, 24vw, 380px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 21, 26, 0.92), rgba(9, 9, 11, 0.96));
  box-shadow:
    0 26px 50px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 1;
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) brightness(0.46);
}

.stage-card-stack {
  position: absolute;
  left: 50%;
  top: 52%;
  width: clamp(300px, 28vw, 450px);
  aspect-ratio: 0.74;
  transform: translate(-50%, -46%);
  z-index: 2;
}

.stage-card-back,
.stage-card-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 46px rgba(0, 0, 0, 0.5));
}

.stage-card-back {
  transform: translate(-10%, 7%) rotate(-11deg) scale(0.93);
  opacity: 0.78;
}

.stage-card-front {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(13%, 7%) rotate(11deg) scale(1.22);
  opacity: 1;
  z-index: 3;
  filter: drop-shadow(0 26px 56px rgba(0, 0, 0, 0.56));
}

.ticker-band {
  overflow: hidden;
  margin-top: -48px;
  margin-bottom: 64px;
  border-block: 1px solid var(--line);
}

.ticker-track {
  display: flex;
  gap: 28px;
  padding: 16px 0;
  white-space: nowrap;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  animation: ticker 30s linear infinite;
}

.workflow,
.showcase {
  display: grid;
  gap: 22px;
  padding-bottom: 72px;
}

.workflow {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.workflow-grid,
.showcase-grid {
  display: grid;
  gap: 18px;
}

.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-card,
.showcase-copy,
.showcase-image,
.cta-panel,
.legal-main {
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 34%),
    var(--panel);
  box-shadow: var(--shadow);
}

.workflow-card {
  padding: 24px;
}

.step-number {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.workflow-card h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.showcase {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.showcase-copy {
  padding: 28px;
}

.showcase-copy h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.showcase-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.showcase-image {
  overflow: hidden;
  min-height: 420px;
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-image-wide {
  grid-column: 1 / -1;
  min-height: 320px;
}

.showcase-image-wide img {
  width: min(72%, 520px);
  height: auto;
  margin: auto;
  object-fit: contain;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  margin-bottom: 34px;
}

.cta-panel h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 8px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin: 0;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

.footer-links a {
  color: var(--muted);
}

.footer-credit {
  color: rgba(210, 167, 77, 0.72) !important;
}

.language-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(214, 177, 77, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(32, 33, 39, 0.94), rgba(16, 16, 18, 0.94));
  backdrop-filter: blur(14px);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.language-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(214, 177, 77, 0.22);
  border-radius: 50%;
  background: rgba(7, 7, 8, 0.9);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  outline: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.language-flag:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 177, 77, 0.38);
}

.language-flag.is-active,
.language-flag:focus-visible {
  border-color: rgba(214, 177, 77, 0.46);
  background: rgba(26, 21, 11, 0.96);
  box-shadow: 0 0 0 4px rgba(214, 177, 77, 0.08);
}

.legal-main {
  margin-top: 40px;
  padding: 40px;
}

.legal-main h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.2, 0.65, 0.2, 1);
}

.reveal-delay {
  transition-delay: 120ms;
}

.reveal-delay-2 {
  transition-delay: 220ms;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes heroCarousel {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 12px));
  }
}

@keyframes meltDrip {
  0%,
  100% {
    transform: translateY(10px) scaleY(1.04) skewX(0deg);
    filter: blur(4px);
    opacity: 0.68;
  }
  35% {
    transform: translateY(14px) scaleY(1.12) skewX(-1deg);
    filter: blur(6px);
    opacity: 0.9;
  }
  65% {
    transform: translateY(18px) scaleY(1.18) skewX(1deg);
    filter: blur(7px);
    opacity: 0.82;
  }
}

@media (max-width: 1024px) {
  .workflow,
  .showcase {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding-top: 18px;
  }

  .nav-pill {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    width: min(460px, calc(100vw - 28px));
    min-height: auto;
    padding: 16px 22px;
    border-radius: 30px;
  }

  .topnav,
  .topnav-right,
  .topnav-left {
    justify-content: center;
  }

  .hero-copy-centered {
    margin-top: 0;
  }

  .hero-stage {
    min-height: 660px;
    margin-top: -30px;
  }

  .stage-card-stack {
    top: 42%;
    width: min(380px, 52vw);
    transform: translate(-50%, -40%);
  }

  .hero-carousel {
    bottom: 0;
    width: 132vw;
  }

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

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

  .showcase-image-wide {
    grid-column: auto;
  }

  .cta-panel,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-inline: 14px;
  }

  .topbar {
    padding-top: 14px;
  }

  .topnav {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .nav-dot {
    display: none;
  }

  .hero h1,
  .section-heading h2,
  .showcase-copy h2,
  .cta-panel h2,
  .legal-main h1 {
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .hero-stage {
    min-height: 560px;
    margin-top: -10px;
  }

  .stage-card-stack {
    top: 40%;
    width: min(300px, 72vw);
  }

  .hero-carousel {
    bottom: 0;
    width: 155vw;
  }

  .hero-carousel-track {
    gap: 16px;
  }

  .carousel-card {
    border-radius: 18px;
  }

  .showcase-copy,
  .workflow-card,
  .showcase-image,
  .cta-panel,
  .legal-main {
    border-radius: 24px;
  }
}
