:root {
  --bg: #061019;
  --bg-deep: #02070d;
  --bg-soft: #0e1d2a;
  --panel: rgba(9, 22, 35, 0.76);
  --panel-strong: rgba(8, 20, 32, 0.92);
  --stroke: rgba(157, 201, 230, 0.16);
  --stroke-strong: rgba(157, 201, 230, 0.26);
  --text: #f4f8fd;
  --muted: #94a9bb;
  --aqua: #69f0d1;
  --aqua-strong: #36c9ab;
  --sky: #71c8ff;
  --sun: #ffd77a;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(113, 200, 255, 0.2), transparent 26%),
    radial-gradient(circle at 90% 10%, rgba(105, 240, 209, 0.18), transparent 24%),
    radial-gradient(circle at 50% 120%, rgba(255, 215, 122, 0.08), transparent 34%),
    linear-gradient(180deg, #07111b 0%, #061019 38%, #081621 70%, #03070c 100%);
}

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

button {
  font: inherit;
}

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

.page-bg,
.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 118px 118px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 92%);
  opacity: 0.42;
}

.page-noise {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0, transparent 22%),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.05) 0, transparent 20%);
  mix-blend-mode: soft-light;
  opacity: 0.18;
}

.site-header,
.section {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(157, 201, 230, 0.12);
  border-radius: 999px;
  background: rgba(4, 11, 18, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f6fbff, #cfdae6);
}

.brand-mark img {
  width: 124%;
  height: 124%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong,
h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.04em;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.header-cta,
.button-primary {
  color: #04130f;
  background: linear-gradient(135deg, var(--sun), var(--aqua));
  box-shadow: 0 14px 34px rgba(105, 240, 209, 0.24);
}

.button-secondary {
  border-color: rgba(157, 201, 230, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.section {
  position: relative;
  padding-block: 58px;
}

.eyebrow,
.pill,
.showcase-tag,
.stage-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(157, 201, 230, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #bff7ee;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.glass-card,
.metric-card,
.manifesto-card,
.module-card,
.feature-strip-shell,
.showcase-card,
.step-card,
.operation-card,
.admin-gallery-card,
.cta-shell,
.floating-note {
  background:
    linear-gradient(180deg, rgba(12, 25, 39, 0.94), rgba(6, 15, 25, 0.9)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 58%);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(480px, 0.98fr);
  gap: 46px;
  align-items: center;
  min-height: calc(100vh - 140px);
  padding-top: 54px;
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.94;
}

.hero h1 span {
  color: #b8ffee;
}

.hero-text,
.section-heading p,
.manifesto-card p,
.module-copy p,
.showcase-copy p,
.step-card p,
.operation-card p,
.cta-copy p,
.feature-chip span,
.hero-stage-header p,
.floating-card-copy p {
  color: var(--muted);
  line-height: 1.74;
  font-size: 1.03rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.metric-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
}

.metric-card strong {
  display: block;
  margin-bottom: 12px;
  color: #d9ffe1;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
}

.hero-stage {
  position: relative;
  min-height: 700px;
  isolation: isolate;
  transform-style: preserve-3d;
}

.stage-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.7;
}

.stage-glow-one {
  top: 4%;
  right: 12%;
  width: 180px;
  height: 180px;
  background: rgba(113, 200, 255, 0.32);
}

.stage-glow-two {
  left: 8%;
  bottom: 14%;
  width: 220px;
  height: 220px;
  background: rgba(105, 240, 209, 0.2);
}

.hero-stage-shell {
  position: absolute;
  inset: 10% 4% 14% 8%;
  padding: 22px;
  border-radius: var(--radius-xl);
  transform:
    perspective(1200px)
    rotateY(calc(var(--mouse-x, 0) * 1deg))
    rotateX(calc(var(--mouse-y, 0) * -1deg));
}

.hero-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.hero-stage-header p {
  max-width: 320px;
  margin: 0;
  text-align: right;
}

.stage-card-main {
  height: calc(100% - 72px);
}

.stage-card-main,
.floating-card {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 2px);
}

.stage-card-main img,
.floating-card img,
.module-card img,
.showcase-card img,
.admin-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid rgba(157, 201, 230, 0.12);
}

.image-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: inherit;
  cursor: zoom-in;
  overflow: hidden;
}

.image-trigger img {
  transition: transform 240ms ease, filter 240ms ease;
}

.image-trigger:hover img,
.image-trigger:focus-visible img {
  transform: scale(1.02);
  filter: saturate(1.04);
}

.floating-card {
  position: absolute;
  width: 280px;
  padding: 14px;
  animation: float 8s ease-in-out infinite;
}

.floating-card-left {
  left: 0;
  bottom: 16%;
}

.floating-card-right {
  right: 0;
  top: 18%;
  animation-delay: -2s;
}

.floating-card-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.floating-card-copy p,
.floating-note span {
  margin: 0;
}

.floating-note {
  position: absolute;
  right: 8%;
  bottom: 4%;
  max-width: 300px;
  padding: 18px 20px;
  border-radius: 22px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading.narrow {
  max-width: 860px;
}

.section-heading.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: end;
}

.section-heading h2,
.cta-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.section-heading p {
  margin: 0;
}

.manifesto-grid,
.operations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.manifesto-card,
.operation-card {
  padding: 28px;
  border-radius: 28px;
}

.manifesto-card.accent,
.module-card-wide,
.cta-shell {
  background:
    radial-gradient(circle at top right, rgba(105, 240, 209, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(12, 25, 39, 0.96), rgba(6, 15, 25, 0.92));
}

.manifesto-card h3,
.module-copy h3,
.showcase-copy h3,
.step-card h3,
.operation-card h3 {
  margin: 18px 0 12px;
  font-size: 1.38rem;
}

.card-index,
.step-number {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 215, 122, 0.2), rgba(105, 240, 209, 0.24));
  color: #ddfff7;
  font-family: "Sora", sans-serif;
  font-weight: 700;
}

.modules-grid,
.showcase-grid,
.admin-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.module-card,
.showcase-card,
.admin-gallery-card {
  padding: 18px;
  border-radius: 28px;
}

.module-card {
  grid-column: span 4;
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr);
  gap: 18px;
}

.module-card-wide {
  grid-column: span 8;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  grid-template-rows: 1fr;
  align-items: stretch;
}

.module-copy,
.showcase-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 8px 0;
}

.module-copy h3,
.showcase-copy h3 {
  margin: 0;
}

.feature-strip {
  padding-top: 12px;
}

.feature-strip-shell {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
  border-radius: 30px;
}

.feature-chip {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(157, 201, 230, 0.08);
}

.feature-chip strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.showcase-card {
  grid-column: span 4;
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr);
  gap: 18px;
}

.showcase-card.wide {
  grid-column: span 8;
  grid-template-columns: minmax(260px, 0.84fr) minmax(0, 1.16fr);
  grid-template-rows: 1fr;
}

.image-trigger-panel,
.admin-gallery-trigger {
  min-height: 100%;
}

.admin-gallery-card {
  grid-column: span 4;
}

.admin-gallery-trigger {
  aspect-ratio: 16 / 10;
}

.workflow {
  display: grid;
  gap: 28px;
}

.workflow-line {
  height: 1px;
  background:
    linear-gradient(90deg, transparent, rgba(113, 200, 255, 0.8), rgba(105, 240, 209, 0.9), transparent);
  position: relative;
  overflow: hidden;
}

.workflow-line::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -20%;
  width: 20%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: beam 3.8s linear infinite;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  min-height: 240px;
  padding: 28px;
  border-radius: 28px;
}

.step-card p {
  margin-bottom: 0;
}

.cta-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  border-radius: 34px;
}

.cta-copy {
  max-width: 760px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(2, 8, 19, 0.92);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-image {
  max-width: min(92vw, 1600px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 24px;
  border: 1px solid rgba(157, 201, 230, 0.2);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(157, 201, 230, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
  transition-delay: var(--delay, 0s);
}

[data-reveal="scale"] {
  transform: scale(0.92);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.delay-08 {
  --delay: 0.08s;
}

.delay-10 {
  --delay: 0.1s;
}

.delay-16 {
  --delay: 0.16s;
}

.delay-20 {
  --delay: 0.2s;
}

.delay-24 {
  --delay: 0.24s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes beam {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(620%);
  }
}

@media (max-width: 1140px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-stage {
    min-height: 620px;
  }

  .hero-metrics,
  .manifesto-grid,
  .operations-grid,
  .feature-strip-shell,
  .workflow-steps {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading.split {
    grid-template-columns: 1fr;
  }

  .module-card,
  .showcase-card {
    grid-column: span 6;
  }

  .module-card-wide,
  .showcase-card.wide {
    grid-column: span 12;
  }

  .admin-gallery-card {
    grid-column: span 4;
  }

  .cta-shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  :root {
    --container: min(100vw - 28px, 1000px);
  }

  .site-header {
    padding: 14px;
    border-radius: 28px;
  }

  .site-nav {
    display: none;
  }

  .brand-copy small {
    display: none;
  }

  .header-cta {
    padding-inline: 16px;
  }

  .section {
    padding-block: 42px;
  }

  .hero {
    gap: 32px;
    padding-top: 30px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 4.2rem);
  }

  .hero-metrics,
  .manifesto-grid,
  .operations-grid,
  .feature-strip-shell,
  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 540px;
  }

  .hero-stage-shell {
    inset: 12% 0 18% 0;
  }

  .hero-stage-header {
    display: grid;
    gap: 12px;
  }

  .hero-stage-header p {
    max-width: none;
    text-align: left;
  }

  .floating-card-right {
    top: auto;
    right: 0;
    bottom: 2%;
    width: min(52%, 260px);
  }

  .floating-card-left {
    width: min(52%, 260px);
    bottom: 16%;
  }

  .floating-note {
    left: 8%;
    right: auto;
    bottom: 0;
    max-width: 260px;
  }

  .module-card,
  .module-card-wide,
  .showcase-card,
  .showcase-card.wide,
  .admin-gallery-card {
    grid-column: span 12;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(250px, 1fr);
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox-image {
    max-width: 96vw;
    max-height: 82vh;
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .brand-copy strong {
    font-size: 0.9rem;
  }

  .hero-text,
  .section-heading p,
  .manifesto-card p,
  .module-copy p,
  .showcase-copy p,
  .step-card p,
  .operation-card p,
  .cta-copy p,
  .feature-chip span,
  .hero-stage-header p,
  .floating-card-copy p {
    font-size: 0.97rem;
  }

  .hero-stage {
    min-height: 460px;
  }

  .hero-stage-shell {
    padding: 16px;
  }

  .stage-card-main {
    height: calc(100% - 96px);
  }

  .floating-card-left,
  .floating-card-right {
    width: 48%;
    padding: 10px;
  }

  .floating-card-copy {
    gap: 8px;
    margin-bottom: 10px;
  }

  .floating-card-copy p {
    display: none;
  }

  .floating-note {
    display: none;
  }

  .manifesto-card,
  .module-card,
  .showcase-card,
  .step-card,
  .operation-card,
  .admin-gallery-card,
  .cta-shell {
    border-radius: 24px;
  }

  .metric-card {
    min-height: auto;
  }

  .feature-chip {
    padding: 16px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }
}
