/* Critical first-viewport styles for Divine Creators. */
:root {
  --bg-primary: #000000;
  --bg-secondary: #1a1a18;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.45);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  color: #ffffff;
  font-family: var(--font-heading);
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.bi {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

[data-aos] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1030;
  padding: 0.75rem 0;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.brand-logo {
  --brand-logo-size: 40px;
  --brand-wordmark-size: clamp(1.58rem, 1.75vw, 1.76rem);
  --brand-wordmark-spacing: 0.01em;
  --brand-wordmark-weight: 800;
  --brand-wordmark-offset-y: 1px;
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  min-width: 0;
  min-height: var(--brand-logo-size);
  color: var(--text-primary);
}

.brand-logo img,
.site-nav__logo img {
  width: var(--brand-logo-size);
  height: var(--brand-logo-size);
  object-fit: contain;
  flex-shrink: 0;
}

.brand-logo span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: var(--brand-logo-size);
  color: inherit;
  font-family: var(--font-heading);
  font-size: var(--brand-wordmark-size);
  font-weight: var(--brand-wordmark-weight);
  line-height: 1;
  letter-spacing: var(--brand-wordmark-spacing);
  white-space: nowrap;
  transform: translateY(var(--brand-wordmark-offset-y));
}

.site-nav__menu {
  display: none;
  align-items: center;
  gap: 2.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  padding: 0.3rem 0;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.25;
}

.btn-glow,
.btn-outline-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-glow {
  border: 0;
  color: #000000;
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.btn-outline-glow {
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.site-nav__cta {
  min-height: 42px;
  padding: 0.62rem 1.15rem;
  font-size: 0.84rem;
  white-space: nowrap;
}

.site-nav__toggle {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.site-nav__toggle-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 16px;
  color: currentColor;
}

.site-nav__toggle-icon--menu {
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-nav__toggle-icon--close::before,
.site-nav__toggle-icon--close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-nav__toggle-icon--close::before { transform: rotate(45deg); }
.site-nav__toggle-icon--close::after { transform: rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1040;
  visibility: hidden;
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: var(--bg-primary);
}

.hero--galaxy { background: var(--bg-primary); }

.hero__readability {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 55%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: calc(100svh - var(--nav-height));
  display: flex;
}

.hero__row {
  width: 100%;
  flex: 1;
  align-items: center;
  padding: clamp(2rem, 4.8vh, 3.4rem) 0 clamp(2rem, 4.4vh, 3.2rem);
  transform: translateY(clamp(-1.5rem, -2.4vh, -0.8rem));
}

.hero__copy {
  position: relative;
  min-width: 0;
  padding-top: 0;
}

.hero__eyebrow,
.hero__title,
.hero__subtitle,
.hero__actions {
  opacity: 1 !important;
  visibility: visible !important;
}

.hero__eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.68);
}

.hero__eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.16));
}

.hero__title {
  max-width: 840px;
  margin-bottom: 1.2rem;
  font-size: clamp(2.48rem, 4.2vw, 4.12rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}

.hero__title-part { display: block; }

.hero__title-highlight {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding-bottom: 0.16em;
}

.hero__subtitle {
  max-width: 590px;
  margin-bottom: 1.8rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.18vw, 1.14rem);
  line-height: 1.76;
  text-align: left;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0;
}

.hero--galaxy .hero__visual-col,
.hero__visual-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: clamp(1.25rem, 4vw, 4rem);
}

.hero-motion-graphic,
.hero .hero-motion-graphic {
  position: relative;
  width: clamp(340px, 36vw, 600px);
  height: clamp(340px, 36vw, 600px);
  margin-inline: auto;
}

.section-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

@media (min-width: 992px) {
  .site-nav__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: clamp(2rem, 4vw, 4.5rem);
  }

  .site-nav__menu {
    display: flex;
    justify-self: center;
  }

  .site-nav__toggle { display: none; }
}

@media (max-width: 991px) {
  .hero__content {
    min-height: auto;
    display: block;
  }

  .hero__row {
    padding: clamp(3rem, 8vh, 4rem) 0 4rem;
    transform: none;
  }

  .hero__visual-col {
    justify-content: center;
    margin-top: 2rem;
    padding-left: 0;
  }

  .hero .hero-motion-graphic,
  .hero-motion-graphic {
    width: clamp(210px, 64vw, 290px);
    height: clamp(210px, 64vw, 290px);
  }

  .hero--galaxy .hero__readability,
  .hero__readability {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.75) 100%);
  }
}

@media (max-width: 575px) {
  .site-nav__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 0.75rem;
    padding-right: 0.75rem;
  }

  .site-nav__inner > .d-flex {
    display: flex !important;
    justify-content: flex-end;
    min-width: 44px;
    margin-left: 0;
  }

  .site-nav__toggle {
    flex: 0 0 44px;
    display: flex !important;
    background: rgba(18, 18, 18, 0.86);
    border-color: rgba(255, 255, 255, 0.18);
  }

  .site-nav__logo.brand-logo {
    --brand-logo-size: 36px;
    --brand-wordmark-size: clamp(1.48rem, 6.1vw, 1.58rem);
    --brand-wordmark-weight: 700;
    --brand-wordmark-offset-y: -1px;
    max-width: 100%;
  }

  .hero__row { padding: 2rem 0; }

  .hero__title {
    max-width: 100%;
    font-size: clamp(1.9rem, 9vw, 2.32rem);
    line-height: 1.06;
  }

  .hero__subtitle {
    width: min(34ch, calc(100vw - 2rem));
    max-width: min(34ch, calc(100vw - 2rem));
    margin-bottom: 1.35rem;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    width: 100%;
  }

  .hero__actions .btn-glow,
  .hero__actions .btn-outline-glow {
    justify-content: center;
    width: 100% !important;
    min-height: 52px;
    padding-inline: 1.1rem;
    white-space: nowrap;
  }

  .hero__visual-col { margin-top: 1.25rem; }

  .hero .hero-motion-graphic,
  .hero-motion-graphic {
    width: clamp(175px, 56vw, 215px);
    height: clamp(175px, 56vw, 215px);
  }
}
