/* ts.vo1dee.com portal — blue-toned theme, token-level light/dark */

:root {
  color-scheme: dark;
  --bg: #0a1424;
  --glow-1: rgba(38, 96, 182, 0.28);
  --glow-2: rgba(20, 52, 100, 0.38);
  --surface: #101f36;
  --surface-2: #152742;
  --border: #24395c;
  --text: #e6eefb;
  --muted: #9fb4d2;
  --accent: #5ea8ff;
  --accent-strong: #8ec6ff;
  --accent-ink: #06182e;
  --chip-bg: #0c1a2e;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #edf3fb;
    --glow-1: rgba(112, 164, 230, 0.30);
    --glow-2: rgba(160, 196, 240, 0.38);
    --surface: #ffffff;
    --surface-2: #f2f7fd;
    --border: #c9daee;
    --text: #14283f;
    --muted: #4c6580;
    --accent: #1a66c4;
    --accent-strong: #0e4e9e;
    --accent-ink: #ffffff;
    --chip-bg: #e3edf9;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1424;
  --glow-1: rgba(38, 96, 182, 0.28);
  --glow-2: rgba(20, 52, 100, 0.38);
  --surface: #101f36;
  --surface-2: #152742;
  --border: #24395c;
  --text: #e6eefb;
  --muted: #9fb4d2;
  --accent: #5ea8ff;
  --accent-strong: #8ec6ff;
  --accent-ink: #06182e;
  --chip-bg: #0c1a2e;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #edf3fb;
  --glow-1: rgba(112, 164, 230, 0.30);
  --glow-2: rgba(160, 196, 240, 0.38);
  --surface: #ffffff;
  --surface-2: #f2f7fd;
  --border: #c9daee;
  --text: #14283f;
  --muted: #4c6580;
  --accent: #1a66c4;
  --accent-strong: #0e4e9e;
  --accent-ink: #ffffff;
  --chip-bg: #e3edf9;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(900px 520px at 12% -8%, var(--glow-1), transparent 65%),
    radial-gradient(720px 440px at 92% 4%, var(--glow-2), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

::selection { background: var(--accent); color: var(--accent-ink); }

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

.site-header,
main,
.site-footer {
  max-width: 920px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--accent), #2f66b8);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Hero */

.hero { padding-block: 56px 8px; }

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5.5vw, 3.3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-sub {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.06rem;
}

/* Sections */

main section { margin-block: 56px; }

main h2 {
  margin: 0 0 20px;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

/* Service cards */

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.card h3 { margin: 0; font-size: 1.15rem; }

.kind {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.card > p {
  margin: 0;
  flex-grow: 1;
  color: var(--muted);
  font-size: 0.95rem;
}

.address-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.address-row code {
  flex: 1;
  padding: 9px 12px;
  font-family: var(--mono);
  font-size: 0.95rem;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow-x: auto;
  white-space: nowrap;
}

.copy-btn {
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.copy-btn:hover { border-color: var(--accent); }

.copy-btn.copied {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-actions .jump { margin-left: auto; }

.connect-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.connect-btn:hover { background: var(--accent-strong); }

.jump {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.jump:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

/* Guides */

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.tabs button {
  border: 0;
  padding: 7px 16px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.tabs button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 68ch;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 58px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.steps code,
.note code {
  padding: 1px 7px;
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  white-space: nowrap;
}

.steps a,
.note a {
  color: var(--accent);
  font-weight: 600;
}

.steps a:hover,
.note a:hover { color: var(--accent-strong); }

.note {
  max-width: 68ch;
  margin: 16px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.93rem;
}

/* Footer */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p { margin: 0; }

.site-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }

.site-footer a:hover { color: var(--accent-strong); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .copy-btn { transition: none; }
  .card:hover { transform: none; }
}
