* {
  box-sizing: border-box;
}

:root {
  --hero-surface: #ffffff;
  --hero-surface-dark: #091724;
  --hero-text: #0a1826;
  --hero-text-muted: rgba(10, 24, 38, 0.72);
  --hero-halo: radial-gradient(circle at 62% 42%, rgba(79, 192, 255, 0.18) 0%, rgba(36, 211, 198, 0.12) 18%, rgba(9, 23, 36, 0) 44%);
  --hero-button-bg: rgba(255, 255, 255, 0.08);
  --hero-button-border: rgba(255, 255, 255, 0.2);
  --hero-button-shadow: 0 16px 32px rgba(3, 12, 24, 0.24);
  --hero-button-primary: linear-gradient(135deg, #1ad3c6, #0b5fff);
}

html,
body {
  margin: 0;
  min-height: 0;
  height: auto;
  background: transparent;
  color: var(--hero-text);
  font-family: Inter, Arial, sans-serif;
}

body {
  display: block;
  padding: 0;
  overflow: hidden;
}

.sygn-hero-frame-section {
  padding-block: clamp(0.5rem, 1.4vw, 1rem) clamp(1.2rem, 3vw, 2.4rem);
  background: transparent !important;
}

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  contain: layout paint style;
  background: var(--hero-surface);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html[data-sygn-theme="dark"] .hero-visual,
body[data-sygn-theme="dark"] .hero-visual {
  background: var(--hero-surface-dark);
  --hero-text: #eff7ff;
  --hero-text-muted: rgba(220, 236, 255, 0.82);
  --hero-button-bg: rgba(7, 24, 39, 0.34);
  --hero-button-border: rgba(110, 198, 255, 0.22);
  --hero-button-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
}

.header-copy {
  position: absolute;
  top: 7%;
  left: 6%;
  z-index: 6;
  max-width: 34%;
}

.header-copy h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.96;
}

.header-copy p {
  margin: 0;
  color: var(--hero-text-muted);
  line-height: 1.55;
}

.header-copy h1,
.header-copy p {
  color: var(--hero-text);
}

.header-copy p {
  color: var(--hero-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.hero-actions__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--hero-button-border);
  background: var(--hero-button-bg);
  color: var(--hero-text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--hero-button-shadow);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.hero-actions__button:hover,
.hero-actions__button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}

.hero-actions__button--primary {
  border-color: transparent;
  background: var(--hero-button-primary);
  color: #ffffff;
}

.scene-stage {
  position: absolute;
  right: 3%;
  top: 18%;
  width: min(70%, 860px);
  height: 76%;
}

.hero-3d-shell {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: transparent;
}

.hero-3d-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

.hero-3d-halo,
.hero-3d-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-3d-halo {
  z-index: 1;
  background: var(--hero-halo);
}

.hero-3d-vignette {
  z-index: 3;
  background: none;
}

.hero-mobile-actions {
  display: none;
}

.hero-mobile-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.hero-mobile-action--ghost {
  border: 1px solid rgba(130, 255, 241, 0.34);
  background: rgba(6, 18, 26, 0.58);
  color: rgba(235, 255, 252, 0.92);
  backdrop-filter: blur(10px);
}

.hero-mobile-action--primary {
  border: 1px solid rgba(96, 255, 236, 0.42);
  background: linear-gradient(135deg, rgba(36, 222, 210, 0.96), rgba(55, 175, 255, 0.92));
  color: #041217;
  box-shadow: 0 12px 34px rgba(43, 183, 214, 0.24);
}

.hero-3d-loading,
.hero-3d-error {
  position: absolute;
  left: 50%;
  z-index: 4;
}

.hero-3d-loading {
  bottom: 18px;
  transform: translateX(-50%);
  color: rgba(235, 255, 252, 0.88);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  opacity: 1;
  transition: opacity 0.35s ease;
  user-select: none;
}

.hero-3d-loading small {
  display: block;
  margin-top: 8px;
  color: rgba(210, 255, 250, 0.55);
  letter-spacing: 0;
  text-transform: none;
}

.hero-3d-loading.is-hidden {
  opacity: 0;
}

.hero-3d-error {
  top: 50%;
  max-width: min(540px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  padding: 18px 20px;
  border: 1px solid rgba(62, 247, 232, 0.22);
  border-radius: 18px;
  background: rgba(3, 10, 14, 0.84);
  box-shadow: 0 0 32px rgba(62, 247, 232, 0.12);
  color: rgba(235, 255, 252, 0.88);
  backdrop-filter: blur(16px);
  line-height: 1.45;
  display: none;
}

.hero-3d-error strong {
  display: block;
  margin-bottom: 8px;
}

.hero-3d-error code {
  color: #82fff1;
}

@media (max-width: 900px) {
  .hero-visual {
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
  }

  .hero-actions {
    display: none;
  }

  .header-copy {
    position: relative;
    top: auto;
    left: auto;
    max-width: none;
    padding: 24px 24px 0;
  }

  .scene-stage {
    position: relative;
    inset: auto;
    width: min(100%, 620px);
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 8px auto 10px;
  }

  .hero-mobile-actions {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 5;
    display: flex;
    gap: 12px;
    width: min(88%, 320px);
    transform: translateX(-50%);
    justify-content: center;
  }

  .hero-mobile-action {
    flex: 1 1 0;
  }

  .hero-mobile-action--ghost {
    backdrop-filter: none;
  }
}

@media (max-width: 480px) {
  .sygn-hero-frame-section {
    padding-inline: 0 !important;
    padding-block: 0 !important;
  }

  .header-copy {
    padding: 20px 18px 0;
  }

  .header-copy h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .scene-stage {
    width: 100%;
    margin-top: 4px;
    margin-bottom: 4px;
  }

  .hero-mobile-actions {
    bottom: 10px;
    width: min(92%, 320px);
    gap: 10px;
  }

  .hero-mobile-action {
    min-width: 0;
    min-height: 44px;
    padding: 0 14px;
    font-size: 13px;
  }

  .hero-3d-loading {
    bottom: 12px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mobile-action,
  .hero-3d-loading {
    transition: none;
  }
}
