/* ═══════════════════════════════════════
   Liminari — Design System
   ═══════════════════════════════════════ */

:root {
  --bg:         #0c0f0e;
  --bg-raised:  #141a18;
  --bg-card:    #1a2220;
  --line:       rgba(244, 242, 235, 0.08);
  --text:       #f4f2eb;
  --text-muted: #8a9490;
  --accent:     #d5ff79;
  --accent-ink: #0f1211;
  --accent-soft: rgba(213, 255, 121, 0.08);
  --blue:       #82b7ff;
  --blue-soft:  rgba(130, 183, 255, 0.1);
  --clay:       #eda36b;
  --shadow:     0 24px 64px rgba(0, 0, 0, 0.35);
  --radius:     12px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(175deg, #0c0f0e 0%, #101714 40%, #0e1210 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  margin: 0 0 1.2rem;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.eyebrow {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ══════════════════════════════════════
   HEADER
   ══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(12, 15, 14, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 0.6rem;
  height: 0.6rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(213, 255, 121, 0.25);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-header nav a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  color: var(--text-muted);
  transition: color 180ms ease, background 180ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--text);
  background: rgba(244, 242, 235, 0.04);
}

.nav-cta {
  color: var(--accent) !important;
  border: 1px solid rgba(213, 255, 121, 0.25) !important;
  margin-left: 0.5rem;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: rgba(213, 255, 121, 0.08) !important;
  border-color: rgba(213, 255, 121, 0.5) !important;
  color: var(--accent) !important;
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary-button {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(213, 255, 121, 0.15), 0 12px 32px rgba(213, 255, 121, 0.12);
}

.primary-button:hover,
.primary-button:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(213, 255, 121, 0.3), 0 16px 40px rgba(213, 255, 121, 0.18);
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3rem);
}

#about,
#demo,
#faq,
#waitlist {
  scroll-margin-top: 5.5rem;
}

.hero-subhead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.hero-audience {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 2rem;
  opacity: 0.65;
  line-height: 1.6;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius);
  opacity: 0.95;
  -webkit-mask-image: radial-gradient(circle at center, black 45%, transparent 75%);
  mask-image: radial-gradient(circle at center, black 45%, transparent 75%);
  filter: contrast(1.15) brightness(1.1);
}

/* ══════════════════════════════════════
   ABOUT / DIFFERENCE
   ══════════════════════════════════════ */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.about-image img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius);
  opacity: 0.95;
  -webkit-mask-image: radial-gradient(circle at center, black 45%, transparent 75%);
  mask-image: radial-gradient(circle at center, black 45%, transparent 75%);
  filter: contrast(1.15) brightness(1.1);
}

.about-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 1rem;
  max-width: 540px;
}

.governed-consistency {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}

.governed-consistency em {
  color: var(--accent);
  font-style: italic;
}

.about-copy > h2 {
  color: var(--text);
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(213, 255, 121, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(213, 255, 121, 0.04);
  transition: background 180ms ease, border-color 180ms ease;
}

.pill:hover {
  background: rgba(213, 255, 121, 0.1);
  border-color: rgba(213, 255, 121, 0.4);
}

/* ══════════════════════════════════════
   BRIDGE
   ══════════════════════════════════════ */
.bridge-section {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  border-top: 1px solid var(--line);
}

.bridge-section h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.bridge-section > p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 2rem;
}

.bridge-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--accent);
  font-style: italic;
  line-height: 1.65;
  margin: 0;
}

/* ══════════════════════════════════════
   BUILT WITH BOUNDARIES
   ══════════════════════════════════════ */
.boundaries-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.boundaries-header {
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.boundaries-header p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

.boundaries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.boundary-card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  transition: border-color 280ms ease, background 280ms ease;
}

.boundary-card:hover {
  border-color: rgba(213, 255, 121, 0.2);
  background: var(--bg-card);
}

.boundary-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

.boundary-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.optional-label {
  font-weight: 400;
  opacity: 0.55;
}

/* ══════════════════════════════════════
   DEMO
   ══════════════════════════════════════ */
.demo-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.demo-header {
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.demo-header p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

.demo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.demo-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.column-header h3 {
  margin: 0;
  color: var(--text-muted);
}

.liminari-header {
  color: var(--accent) !important;
}

.model-tabs {
  display: flex;
  background: var(--bg-card);
  border-radius: 6px;
  padding: 0.25rem;
  border: 1px solid var(--line);
}

.model-tab {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 150ms ease;
}

.model-tab:hover {
  color: var(--text);
}

.model-tab.active {
  background: var(--bg-raised);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.prompt-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.prompt-button {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-raised);
  color: var(--text-muted);
  text-align: left;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 150ms ease;
}

.prompt-button:hover,
.prompt-button:focus-visible {
  border-color: rgba(130, 183, 255, 0.4);
  background: var(--bg-card);
  color: var(--text);
}

.prompt-button.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(130, 183, 255, 0.1);
}

/* Chat panels */
.chat-demo {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  overflow: hidden;
  height: 100%;
  min-height: 400px;
}

.liminari-chat {
  border-color: rgba(213, 255, 121, 0.3);
  background: linear-gradient(145deg, rgba(213, 255, 121, 0.04), var(--bg-raised));
}

.chat-window {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.message {
  max-width: 90%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-line;
}

.user-message {
  align-self: flex-end;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--line);
}

.ai-message {
  align-self: flex-start;
  background: transparent;
  padding: 0;
}

.typing-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 0.5rem;
  margin-bottom: 0.8rem;
  vertical-align: middle;
  animation: dot-pulse 1.8s ease-in-out infinite;
}

.standard-dot { background: var(--text-muted); }
.liminari-dot { background: var(--accent); }

.sample-response {
  margin: 0;
  color: var(--text);
}

.demo-image {
  display: flex;
  justify-content: center;
}

.demo-image img {
  width: 100%;
  max-width: 860px;
  border-radius: var(--radius);
  opacity: 0.75;
}

/* ══════════════════════════════════════
   WAITLIST
   ══════════════════════════════════════ */
.waitlist-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.waitlist-copy h2 {
  margin-bottom: 0.75rem;
}

.waitlist-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 420px;
  margin: 0 0 0.5rem;
}

.waitlist-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.waitlist-form label {
  display: grid;
  gap: 0.35rem;
}

.waitlist-form label span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.waitlist-form input,
.waitlist-form select,
.waitlist-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.waitlist-form input:focus,
.waitlist-form select:focus,
.waitlist-form textarea:focus {
  outline: none;
  border-color: rgba(213, 255, 121, 0.5);
  box-shadow: 0 0 0 3px rgba(213, 255, 121, 0.08);
}

.waitlist-form fieldset.form-group {
  border: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.waitlist-form legend {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0;
  margin-bottom: 0.25rem;
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
  background: var(--bg);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.radio-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.radio-label input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  cursor: pointer;
  accent-color: var(--accent);
}

.radio-label span {
  font-size: 0.92rem !important;
  color: var(--text) !important;
}

.required-asterisk {
  color: var(--accent) !important;
  margin-left: 0.15rem;
}


.waitlist-form button:disabled {
  cursor: wait;
  filter: saturate(0.75);
  opacity: 0.75;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-status.success {
  color: var(--accent);
}

.form-status.error {
  color: var(--clay);
}

/* ══════════════════════════════════════
   FAQ
   ══════════════════════════════════════ */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.faq-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.5rem 0 2.5rem;
}

.faq-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.faq-item {
  background: var(--bg-raised);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 0.75rem;
}

.faq-item dt {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.faq-item dd {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item dd code {
  background: var(--accent-soft);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.tm-sup {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
}

/* ══════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .hero-subhead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    align-items: center;
  }

  .hero-image {
    order: -1;
    margin-bottom: 1rem;
  }

  .hero-image img {
    max-width: 360px;
  }

  .about-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .about-image img {
    max-width: 360px;
  }

  .about-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-audience {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-pills {
    justify-content: center;
  }

  .bridge-section {
    padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
  }

  .boundaries-grid {
    grid-template-columns: 1fr;
  }

  .demo-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nav-cta {
    display: none;
  }

  .column-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .column-header h3 {
    font-size: 1.35rem;
  }

  .model-tabs {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .model-tabs::-webkit-scrollbar {
    display: none;
  }

  .model-tab {
    flex: 1 0 auto;
    min-width: 4.4rem;
    padding: 0.5rem 0.65rem;
    white-space: nowrap;
    text-align: center;
  }

  .waitlist-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    width: 100%;
    padding: 0.65rem 0.9rem;
    gap: 0.75rem;
  }

  #about,
  #demo,
  #faq,
  #waitlist {
    scroll-margin-top: 4.25rem;
  }

  .brand {
    flex: 0 0 auto;
    font-size: 1.2rem;
  }

  .site-header nav {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .site-header nav a {
    flex: 0 0 auto;
    padding: 0.42rem 0.5rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .hero-section,
  .about-section,
  .bridge-section,
  .boundaries-section,
  .demo-section,
  .waitlist-section,
  .faq-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.65rem, 9vw, 2.35rem);
  }

  .demo-header {
    margin-bottom: 1.5rem;
  }

  .prompt-selector {
    gap: 0.65rem;
    margin-bottom: 1.4rem;
  }

  .prompt-button {
    padding: 0.8rem 0.9rem;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .chat-demo {
    min-height: 0;
  }

  .chat-window {
    padding: 1rem;
    gap: 1rem;
  }

  .message {
    max-width: 100%;
    padding: 0.85rem 0.95rem;
    font-size: 0.92rem;
  }

  .user-message {
    align-self: stretch;
  }

  .sample-response {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .waitlist-form {
    padding: 1rem;
  }

  .persona-list {
    flex-direction: column;
  }
}

/* ══════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ══════════════════════════════════════
   ACCESSIBILITY
   ══════════════════════════════════════ */

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 150ms ease;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* Visible focus outlines for keyboard users */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.model-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.prompt-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.primary-button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --bg: #000000;
    --bg-raised: #111111;
    --bg-card: #1a1a1a;
    --line: rgba(255, 255, 255, 0.25);
    --text: #ffffff;
    --text-muted: #cccccc;
    --accent: #d5ff79;
  }

  .message, .boundary-card, .chat-demo, .prompt-button {
    border-width: 2px;
  }

  .model-tab.active {
    border: 2px solid var(--accent);
  }
}
