:root {
  --bg-page: #f6faff;
  --bg-panel: rgba(255, 255, 255, 0.84);
  --bg-panel-strong: rgba(227, 239, 255, 0.78);
  --text-main: #0f2b4a;
  --text-soft: rgba(15, 43, 74, 0.72);
  --accent: #1664d9;
  --accent-deep: #0d3f97;
  --line-soft: rgba(22, 100, 217, 0.14);
  --border-soft: rgba(22, 100, 217, 0.16);
  --shadow-soft: 0 24px 60px rgba(17, 55, 110, 0.16);
  --toggle-bg: rgba(255, 255, 255, 0.84);
  --toggle-text: #0f2b4a;
  --toggle-border: rgba(22, 100, 217, 0.14);
  --surface-emphasis: rgba(255, 255, 255, 0.72);
  --backdrop-top: rgba(22, 100, 217, 0.14);
  --backdrop-bottom: rgba(104, 188, 255, 0.22);
  --page-tone-start: #fafdff;
  --page-tone-mid: #eef5ff;
  --page-tone-end: #f9fbff;
  --orb-top: rgba(115, 194, 255, 0.25);
  --orb-bottom: rgba(22, 100, 217, 0.18);
}

:root[data-theme="dark"] {
  --bg-page: #061221;
  --bg-panel: rgba(10, 28, 52, 0.82);
  --bg-panel-strong: rgba(15, 40, 72, 0.92);
  --text-main: #f2f8ff;
  --text-soft: rgba(216, 232, 252, 0.76);
  --accent: #67b1ff;
  --accent-deep: #a9d1ff;
  --line-soft: rgba(103, 177, 255, 0.2);
  --border-soft: rgba(103, 177, 255, 0.18);
  --shadow-soft: 0 24px 64px rgba(0, 0, 0, 0.36);
  --toggle-bg: rgba(8, 26, 47, 0.86);
  --toggle-text: #f2f8ff;
  --toggle-border: rgba(103, 177, 255, 0.18);
  --surface-emphasis: rgba(9, 24, 44, 0.74);
  --backdrop-top: rgba(103, 177, 255, 0.12);
  --backdrop-bottom: rgba(9, 47, 102, 0.26);
  --page-tone-start: #061221;
  --page-tone-mid: #0b1a2f;
  --page-tone-end: #081423;
  --orb-top: rgba(80, 145, 224, 0.18);
  --orb-bottom: rgba(12, 70, 150, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(circle at top left, var(--backdrop-top), transparent 28%),
    radial-gradient(circle at bottom right, var(--backdrop-bottom), transparent 26%),
    linear-gradient(180deg, var(--page-tone-start) 0%, var(--page-tone-mid) 46%, var(--page-tone-end) 100%);
  color: var(--text-main);
}

body {
  min-height: 100vh;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.9;
}

.page-shell::before {
  top: -160px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--orb-top), transparent 70%);
}

.page-shell::after {
  right: -80px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--orb-bottom), transparent 68%);
}

.brand-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  width: min(1200px, calc(100% - clamp(1rem, 4vw, 3rem)));
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.5rem) 0 0.4rem;
}

.brand-bar__logo {
  display: block;
  width: 100%;
  height: auto;
}

.brand-bar__logo-frame {
  width: min(100%, clamp(360px, 56vw, 690px));
  justify-self: center;
  border-radius: 26px;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

:root[data-theme="dark"] .brand-bar__logo-frame {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(103, 177, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(9, 27, 50, 0.88) 0%, rgba(16, 46, 82, 0.82) 52%, rgba(9, 23, 43, 0.9) 100%);
  box-shadow:
    inset 0 1px 0 rgba(180, 219, 255, 0.06),
    0 18px 44px rgba(0, 0, 0, 0.22);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--toggle-border);
  border-radius: 999px;
  background: var(--toggle-bg);
  color: var(--toggle-text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(17, 55, 110, 0.12);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(103, 177, 255, 0.35);
  outline-offset: 3px;
}

.theme-toggle__icon {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd36e 0%, #ffb347 100%);
  box-shadow: inset -4px -4px 0 rgba(255, 255, 255, 0.3);
}

.theme-toggle__icon::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  transform: scale(0);
  background: linear-gradient(135deg, #8fc5ff 0%, #cfe8ff 100%);
  transition: transform 180ms ease;
}

:root[data-theme="dark"] .theme-toggle__icon {
  background: linear-gradient(135deg, #8fc5ff 0%, #cfe8ff 100%);
}

:root[data-theme="dark"] .theme-toggle__icon::after {
  transform: scale(1);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.6rem);
  width: min(1200px, calc(100% - clamp(1rem, 4vw, 3rem)));
  min-height: calc(100vh - 140px);
  margin: 0 auto;
  padding: clamp(0.8rem, 2vw, 1rem) 0 clamp(1.8rem, 4vw, 3rem);
}

.hero__content {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-page) 75%, white 25%) 0%, var(--bg-panel-strong) 100%);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  animation: rise-in 0.8s ease-out both;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.7rem, 6vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero__description {
  margin: 1.4rem 0 0;
  max-width: 54ch;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.hero__rotator {
  margin-top: 1.8rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--bg-panel-strong) 0%, var(--bg-panel) 100%);
}

.hero__rotator-label {
  margin: 0 0 0.75rem;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__rotator h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.2;
}

.hero__rotator p:last-child {
  margin: 0.75rem 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

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

.button--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #59a7ff 100%);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(22, 100, 217, 0.24);
}

.button--primary:hover {
  background: linear-gradient(135deg, #0d4ec3 0%, #4e9df8 100%);
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}

.hero__meta[hidden] {
  display: none;
}

.hero__meta div {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--surface-emphasis);
}

.hero__meta dt {
  margin: 0 0 0.4rem;
  color: var(--text-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__meta dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}

.hero__visual {
  display: grid;
  place-items: center;
  min-height: clamp(360px, 48vw, 580px);
}

.orbit-scene {
  position: relative;
  width: min(100%, clamp(300px, 40vw, 520px));
  aspect-ratio: 1;
}

.orbit-scene__halo {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  animation: orbit-spin 22s linear infinite;
}

.orbit-scene__halo::before,
.orbit-scene__halo::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.orbit-scene__halo::before {
  inset: -7%;
  border: 1px dashed rgba(13, 63, 151, 0.14);
}

.orbit-scene__halo::after {
  width: 16px;
  height: 16px;
  top: calc(50% - 8px);
  left: -8px;
  background: linear-gradient(135deg, #ffffff 0%, #7cb8ff 100%);
  box-shadow: 0 0 0 8px rgba(124, 184, 255, 0.16);
}

.orbit-scene__halo--two {
  inset: 21%;
  animation-duration: 16s;
  animation-direction: reverse;
}

.orbit-scene__core {
  position: absolute;
  inset: 30%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.98), rgba(211, 228, 255, 0.9) 55%, rgba(156, 199, 255, 0.7) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 24px 60px rgba(40, 99, 180, 0.2);
}

.orbit-scene__core img {
  width: 74%;
  height: auto;
  filter: drop-shadow(0 14px 26px rgba(29, 88, 168, 0.18));
}

.orbit-card {
  position: absolute;
  width: clamp(148px, 16vw, 190px);
  padding: 1rem 1rem 0.95rem;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: color-mix(in srgb, var(--bg-panel) 88%, white 12%);
  box-shadow: 0 16px 34px rgba(29, 88, 168, 0.12);
  backdrop-filter: blur(10px);
}

.orbit-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent-deep);
  font-size: 0.95rem;
}

.orbit-card span {
  display: block;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.orbit-card--top {
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-card--right {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.orbit-card--bottom {
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-card--left {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

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

  .hero__content {
    order: 2;
  }

  .hero__visual {
    order: 1;
    min-height: clamp(340px, 56vw, 480px);
  }
}

@media (max-width: 640px) {
  .brand-bar {
    width: min(100% - 1rem, 1200px);
    align-items: flex-start;
    grid-template-columns: 1fr;
    padding-top: 1rem;
  }

  .brand-bar__logo-frame {
    width: min(100%, 560px);
    justify-self: stretch;
  }

  :root[data-theme="dark"] .brand-bar__logo-frame {
    padding: 0.65rem 0.75rem;
    border-radius: 22px;
  }

  .theme-toggle {
    justify-self: start;
    min-height: 48px;
    padding: 0.8rem 1rem;
  }

  .hero {
    width: min(100% - 1rem, 1200px);
    gap: 1.25rem;
    padding-bottom: 1.5rem;
  }

  .hero__content {
    width: 100%;
    padding: 1.4rem;
    border-radius: 24px;
  }

  h1 {
    max-width: none;
  }

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

  .hero__visual {
    min-height: 400px;
  }

  .orbit-scene {
    width: 100%;
  }

  .orbit-card {
    width: clamp(132px, 42vw, 150px);
    padding: 0.8rem;
  }

  .orbit-card span {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - clamp(1rem, 4vw, 3rem)));
  margin: 0 auto;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-soft);
  color: var(--text-soft);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.site-footer__email {
  display: inline-block;
  margin-left: 0.3rem;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  background: var(--surface-emphasis);
  border: 1px solid var(--border-soft);
  transition: all 180ms ease;
  white-space: nowrap;
}

.site-footer__email:hover {
  background: var(--accent);
  color: var(--bg-page);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--line-soft);
}
