:root {
  color-scheme: light;
  font-family: Inter, "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --background: #f7f7f5;
  --surface: rgba(255, 255, 255, 0.68);
  --text: #19191b;
  --text-secondary: #69696e;
  --text-tertiary: #96969b;
  --line: rgba(25, 25, 27, 0.1);
  --line-strong: rgba(25, 25, 27, 0.18);
  --accent: #19191b;
  --inverted: #ffffff;
  --success: #178342;
  --success-soft: rgba(23, 131, 66, 0.12);
  --glow: rgba(197, 154, 66, 0.17);
  --shadow: 0 28px 90px rgba(25, 25, 27, 0.1);
  background: var(--background);
  color: var(--text);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0c0c0d;
  --surface: rgba(26, 26, 28, 0.72);
  --text: #f5f5f7;
  --text-secondary: #a2a2a8;
  --text-tertiary: #74747b;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #f5f5f7;
  --inverted: #121214;
  --success: #55c77c;
  --success-soft: rgba(85, 199, 124, 0.13);
  --glow: rgba(212, 175, 90, 0.13);
  --shadow: 0 32px 100px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 44%, var(--glow), transparent 28rem),
    var(--background);
  color: var(--text);
  line-height: 1.5;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

h1,
p {
  margin-top: 0;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--text) 24%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--accent);
  color: var(--inverted);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  display: flex;
  min-height: 98px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 10px;
}

.theme-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, background 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface) 72%, var(--text) 4%);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.sun-icon,
:root[data-theme="dark"] .moon-icon {
  display: none;
}

:root[data-theme="dark"] .sun-icon {
  display: block;
}

.hero {
  display: grid;
  padding: 76px 0;
  align-items: center;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  gap: 96px;
}

.hero-copy {
  animation: copy-in 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  display: flex;
  margin-bottom: 26px;
  align-items: center;
  gap: 10px;
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px var(--success-soft);
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: clamp(56px, 6.9vw, 92px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1.01;
}

.lead {
  max-width: 590px;
  margin-bottom: 38px;
  color: var(--text-secondary);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
}

.signature {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--text-tertiary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.signature i {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--line-strong);
}

.visual {
  position: relative;
  display: grid;
  width: min(470px, 100%);
  aspect-ratio: 1;
  justify-self: end;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  animation: visual-in 720ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.visual::after {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--glow);
  content: "";
  filter: blur(42px);
}

.visual-grid {
  position: absolute;
  inset: -15%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle, #000, transparent 67%);
  opacity: 0.65;
}

.orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.orbit--outer {
  width: 64%;
  height: 64%;
  animation: orbit-turn 18s linear infinite;
}

.orbit--inner {
  width: 39%;
  height: 39%;
  border-color: var(--line);
}

.node {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 3px solid var(--background);
  border-radius: 50%;
  background: var(--accent);
}

.node--one {
  top: 10%;
  right: 16%;
}

.node--two {
  bottom: 6%;
  left: 23%;
}

.core {
  position: relative;
  z-index: 3;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background: color-mix(in srgb, var(--surface) 82%, var(--background));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.09);
  backdrop-filter: blur(18px);
}

.core span {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.visual-status {
  position: absolute;
  z-index: 4;
  right: 22px;
  bottom: 22px;
  display: flex;
  min-height: 34px;
  padding: 0 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  backdrop-filter: blur(14px);
}

.visual-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
}

.site-footer {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--text-tertiary);
  font-size: 11px;
}

.footer-note {
  letter-spacing: 0.02em;
}

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

@keyframes visual-in {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(1deg);
  }
}

@keyframes orbit-turn {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 68px 0 86px;
    grid-template-columns: 1fr;
    gap: 62px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .visual {
    width: min(510px, 100%);
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100% - 28px);
  }

  .site-header {
    min-height: 80px;
  }

  .brand span {
    font-size: 14px;
  }

  .hero {
    padding: 64px 0 72px;
    gap: 54px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .lead {
    font-size: 15px;
  }

  .signature {
    gap: 10px;
    font-size: 8px;
  }

  .signature i {
    width: 22px;
  }

  .visual {
    border-radius: 27px;
  }

  .core {
    width: 82px;
    height: 82px;
    border-radius: 25px;
  }

  .core span {
    font-size: 28px;
  }

  .visual-status {
    right: 15px;
    bottom: 15px;
  }

  .site-footer {
    min-height: 94px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
}

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