/* ===== Home page ===== */
.vd { color: var(--text); }
.vd__hero { padding: 56px 0 80px; }

.vd__intro { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.vd__h1 {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 16px 0 0;
}
.vd__cycle {
  display: inline-block;
  animation: vd__cycle-in 0.6s var(--ease) both;
}
@keyframes vd__cycle-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .vd__cycle { animation: none; }
}
.vd__sub {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.vd__ide {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  font-family: var(--font-mono);
}

/* window chrome */
.vd__chrome {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.vd__dots { display: flex; gap: 8px; }
.vd__dot { width: 12px; height: 12px; border-radius: 50%; }
.vd__dot--r { background: #ff5f57; }
.vd__dot--y { background: #febc2e; }
.vd__dot--g { background: #28c840; }
.vd__chrome-title {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}
.vd__chrome-actions {
  display: flex; gap: 8px; justify-content: flex-end;
  font-size: 11px; color: var(--text-3);
}

/* inner layout: sidebar + editor */
.vd__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 540px;
}

.vd__sidebar {
  background: var(--bg);
  border-right: 1px solid var(--line-soft);
  padding: 14px 0;
  font-size: 12.5px;
}
.vd__sidebar-head {
  padding: 0 16px 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-size: 10.5px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 10px;
}
.vd__sidebar-folder {
  padding: 4px 16px;
  color: var(--text-2);
  font-weight: 500;
}
.vd__file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px 5px 28px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  border-left: 2px solid transparent;
}
.vd__file:hover { background: var(--bg-2); color: var(--text); }
.vd__file--active {
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  color: var(--text);
  border-left-color: var(--accent);
}
.vd__file-icon {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  font-size: 9px;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.vd__file-icon--ts { background: #3178c6; color: white; }
.vd__file-icon--cs { background: #68217a; color: white; }
.vd__file-icon--md { background: var(--text-3); color: var(--bg); }

/* editor */
.vd__editor { display: flex; flex-direction: column; min-width: 0; }

.vd__tabbar {
  display: flex;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  overflow-x: auto;
}
.vd__tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 12.5px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line-soft);
  border-top: 2px solid transparent;
  color: var(--text-3);
  cursor: pointer;
  white-space: nowrap;
}
.vd__tab:hover { color: var(--text-2); }
.vd__tab--active {
  background: var(--bg-2);
  color: var(--text);
  border-top-color: var(--accent);
}
.vd__tab-x { color: var(--text-3); font-size: 14px; margin-left: 4px; }
.vd__tab--active .vd__tab-x:hover { color: var(--text); }

.vd__breadcrumb {
  display: flex; gap: 6px; align-items: center;
  padding: 8px 16px;
  font-size: 11px;
  color: var(--text-3);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.vd__crumb-sep { color: var(--text-3); }

.vd__file-body {
  padding: 14px 0;
  font-size: 13px;
  line-height: 1.7;
  background: var(--bg-2);
  flex: 1;
  overflow-x: auto;
  animation: vd-fade 0.18s ease;
}
@keyframes vd-fade {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: none; }
}

.vd__line {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0;
  white-space: pre;
}
.vd__line:hover { background: color-mix(in oklab, var(--accent) 5%, transparent); }
.vd__line-num {
  text-align: right;
  padding-right: 16px;
  color: var(--text-3);
  font-size: 11.5px;
  user-select: none;
  opacity: 0.65;
}
.vd__line-content { color: var(--text-2); padding-right: 16px; }

/* markdown rendering inside contact.md */
.vd__md .vd__line-content { white-space: normal; }
.md-h1 { color: var(--text); font-weight: 700; font-size: 16px; }
.md-h2 { color: var(--text); font-weight: 600; font-size: 14px; }
.md-bold { color: var(--text); font-weight: 600; }
.md-link { color: var(--accent); text-decoration: none; }
.md-link:hover { text-decoration: underline; }
.md-paren { color: var(--text-3); }
.md-cta { font-weight: 600; }

/* status bar */
.vd__statusbar {
  display: flex;
  gap: 16px;
  padding: 6px 14px;
  background: var(--brand-navy);
  color: rgba(255,255,255,0.8);
  font-size: 11px;
  letter-spacing: 0.02em;
  align-items: center;
}
.vd__statusbar > span { display: inline-flex; align-items: center; gap: 6px; }
.vd__status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.vd__statusbar .accent { color: var(--accent); }

[data-theme="light"] .vd__statusbar {
  background: var(--brand-navy);
  color: rgba(255,255,255,0.85);
}

.vd__cta {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* tok-fn for function names */
.tok-fn { color: #60a5fa; }
[data-theme="light"] .tok-fn { color: #1d4ed8; }

/* clickable inline link inside code (e.g. in services.cs comment) */
.tok-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-style: normal;
  cursor: pointer;
}
.tok-link:hover { text-decoration-thickness: 2px; }

@media (max-width: 880px) {
  .vd__inner { grid-template-columns: 1fr; min-height: auto; }
  .vd__sidebar { display: none; }
  .vd__chrome { grid-template-columns: 60px 1fr; }
  .vd__chrome-actions { display: none; }
  .vd__line-num { padding-right: 8px; }
  .vd__line { grid-template-columns: 36px 1fr; }
  .vd__file-body { font-size: 12px; }
}

/* ===== Services list + about + CTA (rendered by home.jsx alongside the IDE block) ===== */
.vc { color: var(--text); position: relative; font-family: var(--font-sans); }

.vc__services { display: flex; flex-direction: column; }
.vc__row {
  display: grid;
  grid-template-columns: 32px 200px 1fr 24px;
  gap: 24px;
  padding: 14px 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--text);
  align-items: baseline;
  transition: background 0.15s var(--ease);
}
.vc__row:last-child { border-bottom: 1px solid var(--line-soft); }
.vc__row:hover { background: var(--bg-2); color: var(--accent); }
.vc__row-num { color: var(--text-3); }
.vc__row-name { color: var(--accent); font-weight: 500; }
.vc__row-blurb { color: var(--text-2); }
.vc__row-arrow { color: var(--text-3); text-align: right; }
.vc__row:hover .vc__row-arrow { color: var(--accent); }

.vc__about {
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.vc__cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  font-size: 14px;
  flex-wrap: wrap;
}

@media (max-width: 880px) {
  .vc__row { grid-template-columns: 24px 1fr 24px; }
  .vc__row-blurb { display: none; }
}
