:root {
  --bg: #fbfbfd;
  --but: #3BA2BF;
  --text: #14141a;
  --muted: #5d5d6b;
  --line: #e8e8f0;
  --tint: #f7f7ff;
  --accent: #4a35ff;
  --max: 980px;
}

[data-theme="dark"] {
  --bg: #0b0c10;
  --but: #3BA2BF;
  --text: #ececf4;
  --muted: #a9a9bd;
  --line: rgba(236,236,244,.14);
  --tint: #0f1220;
  --accent: #7c5cff;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font: 16px/1.6 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  letter-spacing: .1px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Canvas background */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Fixed header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  z-index: 10;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0px;
  font-weight: 200;
  letter-spacing: 0px;
  font-size: 30px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;     /* left aligned */
  line-height: 1.1;            /* slightly tighter than normal */
  gap: 0;                      /* or small value like 2px if you want separation */
}

.brand-line-top {
  display: block;
  /* Optional: different styling per line */
  /* font-weight: 700; */
  /* font-size: 1.35rem; */
}

.brand-line-bottom {
  display: block;
  /* Optional: different styling per line */
  /* font-weight: 700; */
  font-size: 20px;
}

.logo {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: contain;     /* keeps proportions without distortion */
  display: block;          /* removes any unwanted inline spacing */
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  min-height: 40px;
  white-space: nowrap;
}

.btn.primary {
  background: var(--but);
  color: var(--bg);
  border-color: transparent;
}

.btn:hover {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover {
    transform: none;
  }
}

/* Theme toggle */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px;
  background: color-mix(in oklab, var(--bg) 70%, var(--tint));
}

.toggle-label {
  font-size: 13px;
  color: var(--muted);
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.06);
  cursor: pointer;
}

[data-theme="dark"] .switch {
  background: rgba(255,255,255,.08);
}

.knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg) 82%, var(--tint));
  border: 1px solid var(--line);
  transition: transform .18s ease;
}

[data-theme="dark"] .knob {
  transform: translateX(20px);
}

.switch:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent) 70%, transparent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .knob {
    transition: none;
  }
}

/* Center content */
.center {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 96px 18px 40px;
}

.frame {
  width: min(var(--max), 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in oklab, var(--bg) 72%, var(--tint));
  padding: clamp(18px, 2.5vw, 34px);
  backdrop-filter: blur(8px);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.label::before {
  content: "[";
}

.label::after {
  content: "]";
}

h1 {
  font-size: clamp(40px, 5.2vw, 74px);
  line-height: 1.02;
  margin: 0 0 12px;
  letter-spacing: -0.9px;
  font-weight: 700;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 64ch;
}

.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  align-items: center;
}

.micro {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.chiprow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: color-mix(in oklab, #B2D57C 30%, var(--tint));
  font-size: 13px;
  white-space: nowrap;
}