:root {
  --bg: #f4f0e8;
  --bg-raise: #fffdf8;
  --line: #e4ddd2;
  --line-soft: #ebe4da;
  --text: #1c1917;
  --muted: #5f584f;
  --accent: #7d36ec;
  --accent-2: #6d28d9;
  --accent-deep: #5b21b6;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
}

body { text-rendering: optimizeLegibility; }

::selection { background: rgba(125, 54, 236, 0.22); color: #1c1917; }

img, svg { display: block; max-width: 100%; }

button, input, textarea { font-family: inherit; }

a { color: inherit; }

.va-skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: #fff;
  color: #111;
  padding: 8px 12px;
  border-radius: 4px;
}

.va-skip:focus { top: 12px; }

.va-wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.va-arrow {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.va-arrow:hover { background: var(--accent-deep); }

.va-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  height: 68px;
  padding: 0 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.va-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.va-mark { width: 28px; height: 28px; flex: none; }

.va-drawer { display: none; }

.va-burger {
  display: inline-flex;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  list-style: none;
}

.va-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.15s ease;
}

.va-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.va-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
}

.va-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }

.va-btn {
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;
}

.va-btn:hover { background: var(--accent-deep); }

.va-header-contact {
  margin-left: auto;
  margin-right: 0;
}

.va-links .va-btn { margin-left: 8px; }

.va-hero {
  padding: 0;
  text-align: center;
}

.va-hero-stage {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.va-hero-copy {
  position: relative;
  z-index: 1;
  padding: 56px 20px 0;
}

.va-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 0 28px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raise);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.va-kicker b {
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
}

.va-hero h1 {
  margin: 0 auto;
  max-width: 12.6em;
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.va-lead {
  max-width: 40rem;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.va-town {
  position: relative;
  width: 100%;
  height: auto;
  margin: 8px auto 0;
}

.va-marks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 40px;
  margin: 64px calc(50% - 50vw) 0;
  padding: 26px 20px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  list-style: none;
  color: #3f3a34;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.va-marks li { display: flex; align-items: center; gap: 10px; }

.va-marks li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.va-section { padding: 88px 0; }

.va-section h2 {
  margin: 0 0 28px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.va-section .va-intro {
  max-width: 40rem;
  margin: -12px 0 28px;
  color: var(--muted);
  font-size: 16px;
}

.va-bento {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 12px;
}

.va-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-raise);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
  padding: 28px;
}

.va-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.va-card p, .va-tool p, .va-panel p, .va-place p { margin: 0; color: var(--muted); }

.va-stack { display: grid; gap: 12px; }

.va-index {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.va-diagram { width: 100%; height: auto; margin-top: 28px; }

.va-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
  color: #6b645c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.va-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-raise);
}

.va-tool { padding: 28px; }

.va-tool + .va-tool { border-left: 1px solid var(--line); }

.va-tool h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.va-tabs { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-raise); }

.va-tabs { position: relative; }

.va-tabs input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.va-tablist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.va-tablist label {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}

.va-tablist label:hover { color: var(--text); }

#va-study:focus-visible ~ .va-tablist label[for="va-study"],
#va-shape:focus-visible ~ .va-tablist label[for="va-shape"],
#va-stay:focus-visible ~ .va-tablist label[for="va-stay"] {
  outline: 2px solid var(--accent-2);
  outline-offset: -2px;
}

#va-study:checked ~ .va-tablist label[for="va-study"],
#va-shape:checked ~ .va-tablist label[for="va-shape"],
#va-stay:checked ~ .va-tablist label[for="va-stay"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.va-panel { display: none; padding: 32px 28px 36px; }

.va-panel h3 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

#va-study:checked ~ .va-panel-study,
#va-shape:checked ~ .va-panel-shape,
#va-stay:checked ~ .va-panel-stay { display: block; }

.va-places {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.va-place h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
}

.va-cta {
  padding: 28px 0 100px;
  text-align: center;
}

.va-cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.va-cta p {
  max-width: 36rem;
  margin: 14px auto 22px;
  color: var(--muted);
  font-size: 18px;
}

.va-footer {
  border-top: 1px solid var(--line-soft);
  padding: 22px 20px;
  text-align: center;
}

.va-footer p {
  margin: 0;
  color: #6b645c;
  font-size: 13px;
}

#va-loading { display: none !important; }

.va-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  padding: 20px;
}

.va-modal.is-open { display: grid; }

.va-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(92, 74, 50, 0.12);
  cursor: pointer;
}

.va-modal-card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 28px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raise);
  color: var(--text);
  box-shadow: 0 18px 40px rgba(28, 25, 23, 0.12);
}

.va-modal-card h2 {
  margin: 0 40px 18px 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.va-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.va-close:hover { background: rgba(28, 25, 23, 0.06); }

.va-form label {
  display: block;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
}

.va-form input,
.va-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  color-scheme: light;
  font-size: 16px;
}

.va-form textarea { resize: vertical; min-height: 110px; }

.va-form input:focus,
.va-form textarea:focus {
  outline: 2px solid rgba(125, 54, 236, 0.28);
  border-color: var(--accent);
}

.va-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.va-send {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  color: #fff;
  font-size: 15px;
}

.va-send:disabled { opacity: 0.6; cursor: wait; }

.va-form-error,
.va-form-success {
  margin: 0 0 12px;
  font-size: 14px;
}

.va-form-error { color: #9f1239; }

.va-form-success { color: #3f6212; font-size: 16px; }

html.va-modal-open, html.va-modal-open body { overflow: hidden; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .va-header { padding: 0 16px; }
  .va-links { display: none; }
  .va-drawer { display: block; margin-left: auto; position: static; }
  .va-drawer summary::-webkit-details-marker { display: none; }
  .va-drawer[open] .va-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .va-drawer[open] .va-burger span:nth-child(2) { opacity: 0; }
  .va-drawer[open] .va-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .va-drawer[open] nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    padding: 8px 12px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .va-drawer nav a, .va-drawer nav .va-btn {
    padding: 12px;
    color: rgba(255, 255, 255, 0.88);
    text-align: left;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
  }
  .va-drawer nav .va-btn { justify-self: start; color: #fff; }
  .va-kicker span { white-space: normal; }
  .va-bento, .va-tools, .va-places, .va-tablist { grid-template-columns: 1fr; }
  .va-tool + .va-tool { border-left: 0; border-top: 1px solid var(--line); }
  .va-hero-copy { padding-top: 48px; }
  .va-section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .va-burger span { transition: none; }
}
