:root {
  --ink: #17181b;
  --muted: #6f737a;
  --soft-muted: #999da4;
  --line: #dedfe2;
  --paper: #f3f3f1;
  --card: #ffffff;
  --secondary-card: #e9e9e6;
  --accent: #5368ee;
  --dark: #181a20;
  --button-bg: #17181b;
  --button-text: #ffffff;
  --brand-bg: #17181b;
  --brand-text: #ffffff;
  --card-line: rgba(23,24,27,.08);
  color-scheme: light;
}

html[data-theme='dark'] {
  --ink: #f2f2ef;
  --muted: #a2a5ac;
  --soft-muted: #727680;
  --line: #303238;
  --paper: #121315;
  --card: #1d1f23;
  --secondary-card: #24262a;
  --accent: #91a0ff;
  --dark: #202228;
  --button-bg: #f2f2ef;
  --button-text: #17181b;
  --brand-bg: #f2f2ef;
  --brand-text: #17181b;
  --card-line: rgba(255,255,255,.07);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background 200ms ease, color 200ms ease;
}
a { color: inherit; text-decoration: none; }
.site-shell { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }

.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 82px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 640; letter-spacing: -.01em; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: var(--brand-bg); color: var(--brand-text); font: 600 10px/1 ui-monospace, monospace; }
nav { display: flex; gap: 28px; color: var(--muted); font-size: 13px; }
nav a, .brand { transition: color 160ms ease; }
nav a:hover, .brand:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.theme-toggle { display: inline-flex; min-width: 76px; height: 34px; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--muted); font: 550 11px/1 inherit; cursor: pointer; transition: border-color 160ms ease, color 160ms ease, background 200ms ease; }
.theme-toggle:hover, .theme-toggle:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.theme-toggle:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 78%); }
.theme-icon { font-size: 15px; line-height: 1; }
.sun-icon, .dark-label { display: none; }
html[data-theme='dark'] .moon-icon, html[data-theme='dark'] .light-label { display: none; }
html[data-theme='dark'] .sun-icon, html[data-theme='dark'] .dark-label { display: inline; }

.hero { max-width: 900px; padding: 112px 0 126px; }
.eyebrow { margin: 0 0 22px; color: var(--accent); font: 600 10px/1.4 ui-monospace, monospace; letter-spacing: .14em; }
h1 { max-width: 900px; margin: 0; font-size: clamp(48px, 7.2vw, 82px); font-weight: 590; line-height: 1.07; letter-spacing: -.062em; }
h1 span { display: block; color: var(--soft-muted); }
.hero-intro { max-width: 570px; margin: 32px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 42px; }
.primary-action { display: inline-flex; align-items: center; gap: 18px; padding: 13px 17px; border-radius: 12px; background: var(--button-bg); color: var(--button-text); font-size: 13px; font-weight: 560; transition: background 180ms ease, transform 180ms ease; }
.primary-action:hover { background: var(--accent); transform: translateY(-2px); }
.service-count { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.service-count i { width: 7px; height: 7px; border-radius: 50%; background: #35a268; box-shadow: 0 0 0 4px rgba(53,162,104,.1); }

.spaces { padding: 86px 0 100px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 30px; }
.section-heading .eyebrow { margin-bottom: 11px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); font-weight: 590; letter-spacing: -.045em; }
.section-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.spaces-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 18px; }
.space-card { position: relative; display: flex; overflow: hidden; flex-direction: column; justify-content: space-between; border: 1px solid var(--card-line); border-radius: 22px; transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease; }
.space-card:hover, .space-card:focus-visible { outline: none; transform: translateY(-4px); box-shadow: 0 18px 42px rgba(25,28,34,.09); }
.space-card:focus-visible { box-shadow: 0 0 0 3px rgba(83,104,238,.22), 0 18px 42px rgba(25,28,34,.09); }
.featured-card { min-height: 486px; padding: 32px; background: var(--dark); color: white; }
.card-topline { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.card-label { color: #8f939d; font: 600 9px/1.4 ui-monospace, monospace; letter-spacing: .13em; }
.featured-card .card-label { display: inline-flex; align-items: center; gap: 9px; color: #b8bdc8; }
.featured-card .card-label i { width: 6px; height: 6px; border-radius: 50%; background: #63da8f; box-shadow: 0 0 0 4px rgba(99,218,143,.11); }
.card-arrow { color: #858a94; font: 400 19px/1 ui-monospace, monospace; transition: color 180ms ease, transform 180ms ease; }
.space-card:hover .card-arrow { color: var(--accent); transform: translate(2px,-2px); }
.featured-card:hover .card-arrow { color: white; }
.card-copy { position: relative; z-index: 2; }
.card-copy h3 { margin: 0; font-size: 29px; font-weight: 590; letter-spacing: -.04em; }
.featured-card .card-copy h3 { font-size: clamp(38px,5vw,54px); }
.card-copy p { max-width: 410px; margin: 13px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.featured-card .card-copy p { color: #a9aeb8; font-size: 15px; }
.card-action { display: inline-flex; align-items: center; gap: 10px; margin-top: 25px; color: var(--accent); font-size: 12px; font-weight: 600; }
.card-action b { font-size: 14px; font-weight: 500; transition: transform 180ms ease; }
.space-card:hover .card-action b { transform: translateX(3px); }
.featured-card .card-action { color: #c6ceff; }
.monitor-motif { position: absolute; inset: 0; pointer-events: none; }
.monitor-motif::before { position: absolute; top: -110px; right: -80px; width: 390px; height: 390px; border-radius: 50%; background: radial-gradient(circle, rgba(83,104,238,.28), rgba(83,104,238,0) 67%); content: ''; }
.motif-line { position: absolute; right: -12%; left: 34%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); transform-origin: right; }
.line-one { top: 35%; transform: rotate(-11deg); }
.line-two { top: 43%; transform: rotate(8deg); }
.motif-dot { position: absolute; top: 29%; right: 19%; width: 9px; height: 9px; border: 2px solid #aeb9ff; border-radius: 50%; box-shadow: 0 0 0 7px rgba(174,185,255,.08); }
.secondary-spaces { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.secondary-card { min-height: 234px; padding: 26px; background: var(--card); }
.secondary-card.card-2 { background: var(--secondary-card); }
footer { display: flex; justify-content: space-between; padding: 28px 0 36px; border-top: 1px solid var(--line); color: #898d94; font: 500 10px/1.5 ui-monospace, monospace; letter-spacing: .07em; }

@media (max-width: 780px) {
  .hero { padding: 88px 0 96px; }
  .spaces-grid { grid-template-columns: 1fr; }
  .featured-card { min-height: 420px; }
  .secondary-spaces { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
}
@media (max-width: 560px) {
  .site-shell { width: min(100% - 28px, 1080px); }
  .site-header { min-height: 72px; }
  .header-actions { gap: 12px; }
  nav { gap: 18px; }
  nav a:first-child { display: none; }
  .hero { padding: 72px 0 80px; }
  h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-intro { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .spaces { padding: 70px 0 76px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; }
  .featured-card { min-height: 390px; padding: 25px; border-radius: 18px; }
  .secondary-spaces { grid-template-columns: 1fr; }
  .secondary-card { min-height: 230px; border-radius: 18px; }
  footer { display: block; }
  footer p + p { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
