:root {
  color-scheme: light;
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-soft: #f4f4f5;
  --ink: #09090b;
  --muted: #5f6068;
  --line: #dedee3;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --header: rgba(250, 250, 250, 0.88);
  --shadow: 0 24px 70px rgba(9, 9, 11, 0.08);
  --radius: 24px;
  --max: 1160px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0c0e;
  --surface: #151518;
  --surface-soft: #1c1c20;
  --ink: #f6f6f7;
  --muted: #a5a5ad;
  --line: #303036;
  --accent: #5b8cff;
  --accent-strong: #7ba2ff;
  --header: rgba(12, 12, 14, 0.88);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 6%, color-mix(in srgb, var(--accent) 8%, transparent) 0, transparent 24rem),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

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

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: calc(var(--max) + 64px);
  min-height: 76px;
  margin: 0 auto;
  padding: 0 32px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: var(--header);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.site-header nav {
  display: flex;
  gap: 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-header nav a,
footer nav a {
  transition: color 160ms ease;
}

.site-header nav a:hover,
footer nav a:hover {
  color: var(--accent);
}

.theme-toggle {
  display: grid;
  justify-self: end;
  width: 42px;
  height: 42px;
  padding: 10px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

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

main,
footer {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.hero {
  min-height: min(760px, calc(100vh - 76px));
  padding: clamp(90px, 15vh, 156px) 0 68px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px color-mix(in srgb, #22c55e 14%, transparent);
}

.hero h1,
.section h2,
.contact-band h2 {
  margin: 0;
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(3.4rem, 8.8vw, 7.1rem);
}

.hero-copy {
  max-width: 680px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-copy strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

.button svg {
  width: 18px;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.button-secondary {
  background: var(--surface);
}

.signal {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: clamp(90px, 16vh, 160px);
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.signal i {
  height: 1px;
  background: var(--line);
}

.section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 52px;
}

.section h2,
.contact-band h2 {
  font-size: clamp(2.5rem, 5.6vw, 5rem);
}

.section-heading > p:last-child {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.direction-card {
  position: relative;
  min-height: 390px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.direction-card::after {
  position: absolute;
  right: -38%;
  bottom: -38%;
  width: 250px;
  height: 250px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.card-dark {
  border-color: #18181b;
  background: #18181b;
  color: #fff;
}

.card-dark::after {
  border-color: #3f3f46;
}

.card-index {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.card-dark .card-index,
.card-dark p {
  color: #a1a1aa;
}

.card-icon {
  display: block;
  width: 52px;
  height: 52px;
  margin: 64px 0 30px;
}

.direction-card h3 {
  margin: 0 0 14px;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.direction-card p {
  position: relative;
  z-index: 1;
  max-width: 270px;
  margin: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.product-card {
  display: grid;
  min-height: 360px;
  padding: 30px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-blue {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.product-label {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.product-card h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.05em;
}

.product-card p {
  max-width: 360px;
  margin: 12px 0 0;
  color: var(--muted);
}

.product-blue p {
  color: rgba(255, 255, 255, 0.75);
}

.round-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  margin-top: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.product-blue .round-arrow {
  border-color: rgba(255, 255, 255, 0.45);
}

.round-arrow svg {
  width: 22px;
}

.fine-print {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.principle-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 28px 0;
  align-items: start;
  border-top: 1px solid var(--line);
}

.principle-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.principle-list span {
  padding-top: 6px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.principle-list h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.principle-list p {
  margin: 8px 0 0;
  color: var(--muted);
}

.contact-band {
  margin-top: 40px;
  padding: clamp(70px, 10vw, 120px);
  border-radius: 32px;
  background: #18181b;
  color: #fff;
}

.contact-band .eyebrow {
  color: #a1a1aa;
}

.contact-band a {
  display: inline-block;
  margin-top: 48px;
  border-bottom: 1px solid #71717a;
  color: #d4d4d8;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding: 72px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  color: var(--ink);
}

footer p {
  margin: 14px 0 0;
}

footer nav {
  display: flex;
  gap: 24px;
  align-items: start;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.content-page {
  max-width: 760px;
  padding: 96px 0 130px;
}

.content-page h1 {
  margin: 0 0 24px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.content-page h2 {
  margin: 58px 0 16px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.content-page p,
.content-page li {
  color: var(--muted);
}

.content-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-page code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

@media (max-width: 800px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 24px;
  }

  .site-header nav {
    display: none;
  }

  .direction-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .direction-card {
    min-height: 330px;
  }

  .product-card {
    min-height: 310px;
  }

  .contact-band {
    padding: 60px 28px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  main,
  footer {
    width: min(calc(100% - 32px), var(--max));
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
  }

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .signal {
    margin-top: 86px;
  }

  .signal span:nth-of-type(2) {
    display: none;
  }

  .signal {
    grid-template-columns: auto 1fr auto;
  }

  .signal i:nth-of-type(2) {
    display: none;
  }

  .section {
    padding: 84px 0;
  }

  .principle-list li {
    grid-template-columns: 48px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
