:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface-alt: #f1f4f8;
  --surface-hover: #eef2f7;
  --text: #0d1117;
  --muted: #4b5563;
  --border: #d7dce3;
  --accent: #1e6bd6;
  --accent-strong: #0f4bab;
  --dark: #0f172a;
  --dark-2: #111827;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.1);
}

:root[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #0f172a;
  --surface-alt: #111a2f;
  --surface-hover: #1b263b;
  --text: #e5e7eb;
  --muted: #9ba5b5;
  --border: #1f2937;
  --accent: #4f8bff;
  --accent-strong: #3b7bf0;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background 180ms ease, color 180ms ease;
}

section {
  scroll-margin-top: 96px;
}

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

 [data-site-header] {
  position: sticky;
  top: 0;
  z-index: 11;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 34px;
}

.brand {
  font-weight: 700;
}

.topbar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-weight: 600;
}

.topbar__nav a {
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 120ms ease, background 120ms ease;
}

.topbar__nav a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  width: auto;
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 107, 214, 0.2);
}

.primary:hover {
  transform: translateY(-1px);
}

.ghost {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}

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

main {
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding: 32px clamp(18px, 5vw, 46px) 64px;
}


.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  padding: 44px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  min-height: 420px;
}

.hero__content {
  position: relative;
  max-width: 512px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.hero__content h1 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 10px 0 12px;
  color: #fff;
}

.subhead {
  margin: 0 0 22px;
  color: #c5cde0;
  line-height: 1.55;
}

.hero__logo {
  height: 48px;
}

.eyebrow {
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #9ca3af;
  font-weight: 700;
  font-size: 12px;
  margin: 0;
}


.hero__stream {
  position: absolute;
  inset: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0.35;
  padding: 24px 32px 12px 32px;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  overflow: hidden;
  height: 100%;
}

.hero__stream::before,
.hero__stream::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  pointer-events: none;
}

.hero__stream::before {
  top: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 1), transparent);
}

.hero__stream::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 1), transparent);
}

#stream {
  display: block;
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.6;
  width: 60%;
  margin-left: auto;
  text-align: right;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 22px;
  align-items: center;
}

.split__text h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 36px);
}

.split__text h3 {
  margin: 4px 0 12px;
  color: var(--muted);
}

.split__text p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.split__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.mock-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 12px 14px;
  background: #f3f5f9;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.mock-menu__items {
  display: flex;
  gap: 14px;
}

.mock-editor {
  padding: 18px;
  min-height: 320px;
  flex: 1;
}

.mock-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted);
  margin-bottom: 8px;
}

.mock-lines code {
  display: block;
  color: #111827;
  margin-bottom: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mock-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: #f3f5f9;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pricing {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.04);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.price-card--accent {
  border-color: var(--accent);
  box-shadow: 0 14px 36px rgba(30, 107, 214, 0.16);
}

.price-card__tier {
  font-weight: 700;
}

.price-card__price {
  font-size: 26px;
  font-weight: 800;
}

.footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: center;
  padding: 24px clamp(18px, 5vw, 46px) 40px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer__links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
}

.footer__copyright {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  width: auto;
  text-align: center;
  color: var(--muted);
}

.footer a:hover {
  color: var(--text);
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }

  .topbar__nav {
    flex-wrap: wrap;
  }
}

/* Terms of Service Page Styling */
.terms-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  line-height: 1.6;
}

.terms-container h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
}

.terms-container h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
}

.terms-container h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--muted);
}

.terms-container p {
  margin-bottom: 1rem;
  color: var(--text);
}

.terms-container ul {
  margin-bottom: 1rem;
  padding-left: 2rem;
  color: var(--text);
}

.terms-container li {
  margin-bottom: 0.5rem;
}

.terms-container strong {
  color: var(--text);
  font-weight: 600;
}

.terms-container em {
  color: var(--muted);
  font-style: italic;
}

.terms-container a {
  color: var(--accent);
  text-decoration: none;
  transition: color 180ms ease;
}

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

.last-updated {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Light mode overrides for TOS page */
body[data-theme="dark"] .terms-container {
  background: var(--surface);
  border-radius: 8px;
  margin: 1rem auto;
  padding: 2rem;
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .terms-container {
    padding: 1rem;
  }
  
  .terms-container h1 {
    font-size: 2rem;
  }
  
  .terms-container h2 {
    font-size: 1.5rem;
  }
  
  .terms-container h3 {
    font-size: 1.125rem;
  }
}
