/* =============================================================================
   AgentAuth — landing page stylesheet
   -----------------------------------------------------------------------------
   One file, plain CSS. No framework, no build-time magic.
   Sections:
     1. Design tokens (light + dark)
     2. Base resets and typography
     3. Layout helpers
     4. Reveal-on-scroll + hero entrance animations
     5. Components
        5.1 Nav + theme toggle
        5.2 Hero, beta pill, newsletter
        5.3 Sections, primary feature cards, subtle features
        5.4 Step cards (How it works) + code blocks
        5.5 Footer
        5.6 Floating "Report a bug" button
     6. Reduced-motion overrides
   ========================================================================== */


/* -----------------------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------------------- */

:root {
  /* Colours are stored as raw HSL components ("H S% L%") so that opacity can be
     applied at the use site via hsl(var(--token) / 0.5). */
  --background: 0 0% 98%;
  --foreground: 0 0% 7%;

  --border: 0 0% 88%;
  --card: 0 0% 100%;
  --card-soft-border: 0 0% 92%;

  --primary: 158 100% 41%;
  --primary-foreground: 0 0% 100%;

  --muted: 0 0% 95%;
  --muted-foreground: 0 0% 40%;

  --warning: 38 92% 50%; /* amber for "consent_required" token */

  /* Brand accent for the "OpenClaw" word in the hero. Fixed across themes. */
  --openclaw-red: #FF4D4D;

  /* Type system */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);
  --font-claw: "Clash Display", var(--font-display);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Geometry */
  --radius: 0.625rem;        /* 10px */
  --radius-card: 1rem;       /* 16px */
  --radius-card-lg: 1.25rem; /* 20px */
  --radius-pill: 9999px;

  /* Layout */
  --max-width: 72rem;        /* container */

  /* Easing */
  --ease-out-quint: cubic-bezier(0.16, 1, 0.3, 1);

  /* Card hover shadow tuned for light mode */
  --shadow-card-hover: 0 12px 32px -12px rgba(0, 0, 0, 0.12),
                       0 4px 12px -4px rgba(0, 0, 0, 0.06);
}

.dark {
  --background: 0 0% 5%;
  --foreground: 0 0% 95%;

  --border: 0 0% 15%;
  --card: 0 0% 8%;
  --card-soft-border: 0 0% 13%;

  --primary: 158 100% 41%;
  --primary-foreground: 0 0% 10%;

  --muted: 0 0% 11%;
  --muted-foreground: 0 0% 65%;

  --shadow-card-hover: 0 12px 32px -12px rgba(0, 0, 0, 0.6),
                       0 4px 12px -4px rgba(0, 0, 0, 0.4);
}


/* -----------------------------------------------------------------------------
   2. Base resets and typography
   --------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

iframe { border: 0; display: block; }

::selection {
  background: hsl(var(--primary) / 0.2);
  color: hsl(var(--foreground));
}

.site {
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow-x: hidden;
}


/* -----------------------------------------------------------------------------
   3. Layout helpers
   --------------------------------------------------------------------------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.main {
  padding: 8rem 1.5rem 6rem; /* top room for fixed nav */
}


/* -----------------------------------------------------------------------------
   4. Reveal-on-scroll + hero entrance animations
   --------------------------------------------------------------------------- */

/* Cards/rows that fade up the first time they enter the viewport. */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms var(--ease-out-quint) var(--reveal-delay, 0s),
    transform 600ms var(--ease-out-quint) var(--reveal-delay, 0s);
}
.reveal--visible {
  opacity: 1;
  transform: none;
}

/* Hero elements animate in on initial mount (no JS, no observer). */
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.hero-enter {
  opacity: 0;
  animation: hero-enter 600ms var(--ease-out-quint) var(--enter-delay, 0s) both;
}


/* -----------------------------------------------------------------------------
   5.1 Nav + theme toggle
   --------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: hsl(var(--background) / 0.6);
  border-bottom: 1px solid transparent;
  transition: background-color 500ms var(--ease-out-quint),
              border-color 500ms var(--ease-out-quint),
              box-shadow 500ms var(--ease-out-quint);
}
.nav--scrolled {
  background: hsl(var(--background) / 0.85);
  border-bottom-color: hsl(var(--border));
  box-shadow:
    0 1px 0 0 rgba(0, 0, 0, 0.04),
    0 8px 24px -12px rgba(0, 0, 0, 0.08);
}
.dark .nav--scrolled {
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.04),
    0 8px 24px -12px rgba(0, 0, 0, 0.5);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 4rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.nav__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  background: hsl(var(--primary));
  color: #fff;
}
.nav__brand-mark svg { width: 0.875rem; height: 0.875rem; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 200ms ease;
}
.nav__link:hover { color: hsl(var(--foreground)); }
.nav__link-icon { width: 1.25rem; height: 1.25rem; }
.nav__link--text,
.nav__link-label {
  display: none;
}
@media (min-width: 640px) {
  .nav__link--text,
  .nav__link-label { display: inline; }
}

.theme-toggle {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms ease, border-color 200ms ease;
}
.theme-toggle:hover {
  color: hsl(var(--foreground));
  border-color: hsl(var(--primary) / 0.4);
}
.theme-toggle__icon {
  position: absolute;
  width: 1rem;
  height: 1rem;
  transition: transform 300ms ease, opacity 300ms ease;
}
.theme-toggle__icon--sun { transform: rotate(0) scale(1); opacity: 1; }
.theme-toggle__icon--moon { transform: rotate(90deg) scale(0); opacity: 0; }
.dark .theme-toggle__icon--sun { transform: rotate(-90deg) scale(0); opacity: 0; }
.dark .theme-toggle__icon--moon { transform: rotate(0) scale(1); opacity: 1; }


/* -----------------------------------------------------------------------------
   5.2 Hero, beta pill, newsletter
   --------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 64rem;
  margin: 0 auto 8rem;
}

.hero__glow {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 520px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(40% 50% at 30% 40%, hsl(var(--primary) / 0.18) 0%, transparent 70%),
    radial-gradient(35% 45% at 72% 55%, rgba(255, 77, 77, 0.12) 0%, transparent 70%);
  filter: blur(40px);
  animation: hero-glow-drift 14s ease-in-out infinite;
  will-change: transform;
}
.dark .hero__glow {
  background:
    radial-gradient(40% 50% at 30% 40%, hsl(var(--primary) / 0.22) 0%, transparent 70%),
    radial-gradient(35% 45% at 72% 55%, rgba(255, 77, 77, 0.16) 0%, transparent 70%);
}
@keyframes hero-glow-drift {
  0%, 100% { transform: translate3d(-4%, -2%, 0) scale(1); }
  50%      { transform: translate3d( 4%,  3%, 0) scale(1.06); }
}

.beta-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .beta-pill { margin-bottom: 2rem; } }
.beta-pill__dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--primary));
  animation: beta-breathe 3.2s ease-in-out infinite;
}
.beta-pill__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground));
}
@keyframes beta-breathe {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.92);
    box-shadow: 0 0 0 0 hsl(var(--primary) / 0.45);
  }
  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 4px hsl(var(--primary) / 0);
  }
}

.hero__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}
@media (min-width: 640px) {
  .hero__title {
    font-size: 3rem;
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
  }
}
@media (min-width: 768px) {
  .hero__title {
    font-size: 3.75rem;
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: 2.5rem;
  }
}
.hero__title-line { display: block; }
@media (min-width: 1024px) { .hero__title-line { white-space: nowrap; } }
.hero__title-line--muted { color: hsl(var(--muted-foreground)); }
.hero__title-openclaw {
  font-family: var(--font-claw);
  font-weight: 600;
  color: var(--openclaw-red);
}

.hero__copy {
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  text-wrap: balance;
  margin: 0 0 2.5rem;
}
@media (min-width: 640px) { .hero__copy { font-size: 1.125rem; margin-bottom: 3rem; } }
@media (min-width: 768px) { .hero__copy { font-size: 1.25rem; } }

.hero__cta {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Terminal-styled install card. Stays dark in both themes — it should always
   read like a real terminal. */
.terminal-install {
  width: 100%;
  max-width: 32rem;
}
.terminal-install__window {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.35),
              0 4px 10px -4px rgba(0, 0, 0, 0.2);
}
.terminal-install__topbar {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.terminal-install__dots {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.terminal-install__dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  display: inline-block;
}
.terminal-install__dot--red    { background: var(--openclaw-red); }
.terminal-install__dot--yellow { background: hsl(var(--warning)); }
.terminal-install__dot--green  { background: hsl(var(--primary)); }
.terminal-install__tab {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}
.terminal-install__body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1;
}
.terminal-install__prompt {
  color: hsl(var(--primary));
  user-select: none;
}
.terminal-install__cmd {
  flex: 1;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow-x: auto;
  font-family: var(--font-mono);
}
.terminal-install__copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  font-family: var(--font-sans);
}
.terminal-install__copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.terminal-install__copy-icon {
  width: 0.875rem;
  height: 0.875rem;
}
.terminal-install__copy-icon--check { display: none; color: hsl(var(--primary)); }
.terminal-install__copy--copied .terminal-install__copy-icon--copy { display: none; }
.terminal-install__copy--copied .terminal-install__copy-icon--check { display: inline-block; }
.terminal-install__caption {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}


/* -----------------------------------------------------------------------------
   5.3 Sections, primary feature cards, subtle features
   --------------------------------------------------------------------------- */

.section {
  margin-bottom: 8rem;
}
.section--last {
  margin-bottom: 6rem;
}
.section__head {
  text-align: center;
  margin-bottom: 3rem;
}
.section--last .section__head {
  margin-bottom: 4rem;
}
.section__title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.section__copy {
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  position: relative;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-card-lg);
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition:
    transform 400ms var(--ease-out-quint),
    box-shadow 400ms var(--ease-out-quint),
    border-color 400ms var(--ease-out-quint);
  will-change: transform;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.feature-card__halo {
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 10rem;
  height: 10rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  filter: blur(48px);
  pointer-events: none;
}
.feature-card__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: hsl(var(--primary) / 0.1);
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.2);
  color: hsl(var(--primary));
  margin-bottom: 1.5rem;
}
.feature-card__icon svg { width: 1.5rem; height: 1.5rem; }

.feature-card__title {
  position: relative;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.feature-card__desc {
  position: relative;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.subtle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .subtle-grid { grid-template-columns: repeat(2, 1fr); }
}

.subtle-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border) / 0.4);
  background: transparent;
  transition: border-color 200ms ease;
}
.subtle-feature:hover { border-color: hsl(var(--border)); }

.subtle-feature__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.125rem;
  border-radius: 0.375rem;
  background: hsl(var(--muted) / 0.6);
  color: hsl(var(--muted-foreground));
}
.subtle-feature__icon svg { width: 1rem; height: 1rem; }
.subtle-feature__body { min-width: 0; }
.subtle-feature__title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
  color: hsl(var(--foreground));
  font-family: var(--font-display);
}
.subtle-feature__desc {
  font-size: 0.75rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}


/* -----------------------------------------------------------------------------
   5.4 Step cards (How it works) + code blocks
   --------------------------------------------------------------------------- */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

.step-card {
  position: relative;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-card-lg);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    transform 400ms var(--ease-out-quint),
    box-shadow 400ms var(--ease-out-quint),
    border-color 400ms var(--ease-out-quint);
}
.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.step-card__num {
  position: absolute;
  top: -0.75rem;
  left: -0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.step-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0.5rem 0 1rem;
}

.code-block {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: hsl(var(--muted) / 0.5);
  border: 1px solid hsl(var(--border) / 0.5);
  color: hsl(var(--muted-foreground));
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.code-block--accent {
  background: hsl(var(--primary) / 0.05);
  border-color: hsl(var(--primary) / 0.2);
  color: hsl(var(--primary));
}
.code-token {
  color: hsl(var(--foreground));
  font-weight: 600;
}
.code-block--accent .code-token { color: hsl(var(--primary)); }
.code-token--warn {
  color: hsl(var(--warning));
  font-weight: 600;
}


/* -----------------------------------------------------------------------------
   5.5 Footer
   --------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card));
  padding: 3rem 1.5rem;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}
@media (min-width: 768px) {
  .footer__inner { flex-direction: row; justify-content: space-between; }
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer__brand-icon { width: 1rem; height: 1rem; }

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  .footer__links { flex-direction: row; gap: 1.5rem; }
}
.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 200ms ease;
}
.footer__link:hover { color: hsl(var(--foreground)); }
.footer__link-icon { width: 1rem; height: 1rem; }
.footer__link-strong { font-weight: 600; }


/* -----------------------------------------------------------------------------
   5.6 Floating "Report a bug" button
   --------------------------------------------------------------------------- */

.report-bug {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-pill);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.report-bug:hover {
  background: hsl(var(--muted));
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
              0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.report-bug__icon { width: 1rem; height: 1rem; color: hsl(var(--primary)); }
.report-bug__label { display: none; }
@media (min-width: 640px) { .report-bug__label { display: inline; } }


/* -----------------------------------------------------------------------------
   6. Reduced-motion overrides
   --------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-enter {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .hero__glow,
  .beta-pill__dot {
    animation: none;
  }
  .feature-card,
  .step-card,
  .report-bug {
    transition: none;
  }
}


/* -----------------------------------------------------------------------------
   5.7 SKILL.md snippet window
   --------------------------------------------------------------------------- */

/* Stack two body paragraphs in primary feature cards with normal body spacing. */
.feature-card__desc + .feature-card__desc { margin-top: 1rem; }

.skill-snippet {
  max-width: 44rem;
  margin: 0 auto 8rem;
  text-align: center;
}

.skill-snippet__window {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.skill-snippet__topbar {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
}
.skill-snippet__dots {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.skill-snippet__dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  display: inline-block;
}
.skill-snippet__dot--red    { background: var(--openclaw-red); }
.skill-snippet__dot--yellow { background: hsl(var(--warning)); }
.skill-snippet__dot--green  { background: hsl(var(--primary)); }
.skill-snippet__tab {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.skill-snippet__body {
  margin: 0;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  background: hsl(var(--muted) / 0.5);
  color: hsl(var(--muted-foreground));
  white-space: pre-wrap;
  word-break: break-word;
}
.skill-snippet__delim   { color: hsl(var(--muted-foreground) / 0.6); }
.skill-snippet__key     { color: hsl(var(--primary)); }
.skill-snippet__heading { color: hsl(var(--foreground)); font-weight: 600; }

.skill-snippet__caption {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
