:root {
      --discord-blurple: #5865f2;
      --discord-blurple-dark: #4752c4;
      --discord-green: #57f287;
      --discord-yellow: #fee75c;
      --discord-red: #ed4245;
      --background: #0f1117;
      --background-soft: #151823;
      --card: #1e1f2b;
      --card-light: #2b2d3a;
      --text: #f2f3f5;
      --muted: #b5bac1;
      --muted-dark: #80848e;
      --border: rgba(255, 255, 255, 0.10);
      --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
      --radius-lg: 28px;
      --radius-md: 18px;
      --radius-sm: 12px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      font-family: Inter, Arial, Helvetica, sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at 10% 10%, rgba(88, 101, 242, 0.30), transparent 32%),
        radial-gradient(circle at 90% 20%, rgba(87, 242, 135, 0.12), transparent 28%),
        radial-gradient(circle at 50% 90%, rgba(254, 231, 92, 0.08), transparent 30%),
        var(--background);
      line-height: 1.6;
      min-height: 100vh;
    }

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

    .container {
      width: min(1120px, calc(100% - 40px));
      margin: 0 auto;
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 28px 0;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 800;
      letter-spacing: -0.03em;
    }

    .brand-mark {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 14px;
      background: linear-gradient(135deg, var(--discord-blurple), #7f8cff);
      box-shadow: 0 16px 30px rgba(88, 101, 242, 0.30);
      font-size: 22px;
      font-weight: 900;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--muted);
      font-size: 14px;
    }

    .nav-links a {
      padding: 10px 12px;
      border-radius: 999px;
      transition: background 0.2s ease, color 0.2s ease;
    }

    .nav-links a:hover {
      background: rgba(255, 255, 255, 0.08);
      color: var(--text);
    }

    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
      gap: 42px;
      align-items: center;
      padding: 72px 0 56px;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border: 1px solid rgba(88, 101, 242, 0.35);
      border-radius: 999px;
      background: rgba(88, 101, 242, 0.12);
      color: #dfe3ff;
      font-size: 14px;
      font-weight: 700;
    }

    .badge-dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--discord-green);
      box-shadow: 0 0 18px rgba(87, 242, 135, 0.7);
    }

    h1 {
      margin: 22px 0 18px;
      font-size: clamp(44px, 7vw, 78px);
      line-height: 0.95;
      letter-spacing: -0.075em;
    }

    .gradient-text {
      background: linear-gradient(135deg, #ffffff, #cad0ff 48%, #8d97ff);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero-copy {
      max-width: 680px;
      margin: 0 0 28px;
      color: var(--muted);
      font-size: 18px;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding: 13px 18px;
      border-radius: 14px;
      font-weight: 800;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .button:hover {
      transform: translateY(-2px);
    }

    .button-primary {
      background: var(--discord-blurple);
      color: white;
      box-shadow: 0 18px 40px rgba(88, 101, 242, 0.35);
    }

    .button-primary:hover {
      background: var(--discord-blurple-dark);
    }

    .button-secondary {
      background: rgba(255, 255, 255, 0.08);
      color: var(--text);
      border: 1px solid var(--border);
    }

    .hero-note {
      margin-top: 18px;
      color: var(--muted-dark);
      font-size: 14px;
    }

    .bot-card {
      position: relative;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(30, 31, 43, 0.88);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .bot-card::before {
      content: "";
      position: absolute;
      inset: -80px -80px auto auto;
      width: 220px;
      height: 220px;
      background: rgba(88, 101, 242, 0.28);
      filter: blur(45px);
      border-radius: 999px;
    }

    .bot-card-header {
      position: relative;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 20px;
      border-bottom: 1px solid var(--border);
      background: rgba(0, 0, 0, 0.12);
    }

    .bot-avatar {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 16px;
      background: linear-gradient(135deg, var(--discord-blurple), #9aa3ff);
      color: white;
      font-size: 24px;
      font-weight: 900;
    }

    .bot-title {
      line-height: 1.2;
    }

    .bot-title strong {
      display: block;
      font-size: 16px;
    }

    .bot-title span {
      color: var(--muted);
      font-size: 13px;
    }

    .status-pill {
      margin-left: auto;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: var(--discord-green);
      font-size: 13px;
      font-weight: 800;
    }

    .mock-message {
      position: relative;
      padding: 22px;
    }

    .embed {
      border-left: 4px solid var(--discord-blurple);
      border-radius: 0 var(--radius-md) var(--radius-md) 0;
      background: rgba(15, 17, 23, 0.66);
      padding: 18px;
    }

    .embed h2 {
      margin: 0 0 8px;
      font-size: 20px;
      letter-spacing: -0.03em;
    }

    .embed p {
      margin: 0 0 16px;
      color: var(--muted);
      font-size: 14px;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin: 16px 0;
    }

    .stat {
      padding: 12px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--border);
    }

    .stat span {
      display: block;
      color: var(--muted-dark);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .stat strong {
      display: block;
      margin-top: 4px;
      font-size: 16px;
    }

    .tag-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 16px;
    }

    .tag {
      padding: 7px 10px;
      border-radius: 999px;
      background: rgba(88, 101, 242, 0.15);
      color: #dfe3ff;
      border: 1px solid rgba(88, 101, 242, 0.26);
      font-size: 12px;
      font-weight: 800;
    }

    .section {
      padding: 58px 0;
    }

    .section-heading {
      max-width: 740px;
      margin-bottom: 26px;
    }

    .section-kicker {
      margin: 0 0 8px;
      color: var(--discord-green);
      font-size: 13px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.14em;
    }

    .section h2 {
      margin: 0;
      font-size: clamp(30px, 4vw, 48px);
      line-height: 1.05;
      letter-spacing: -0.055em;
    }

    .section-description {
      margin: 14px 0 0;
      color: var(--muted);
      font-size: 17px;
    }

    .features {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }

    .feature-card {
      min-height: 220px;
      padding: 22px;
      border-radius: var(--radius-md);
      background: rgba(30, 31, 43, 0.76);
      border: 1px solid var(--border);
      box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    }

    .feature-icon {
      width: 46px;
      height: 46px;
      display: grid;
      place-items: center;
      margin-bottom: 18px;
      border-radius: 16px;
      background: rgba(88, 101, 242, 0.17);
      color: #dfe3ff;
      font-size: 23px;
      font-weight: 900;
    }

    .feature-card h3 {
      margin: 0 0 8px;
      font-size: 18px;
      letter-spacing: -0.03em;
    }

    .feature-card p {
      margin: 0;
      color: var(--muted);
      font-size: 15px;
    }

    .workflow {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }

    .step {
      position: relative;
      padding: 20px;
      border-radius: var(--radius-md);
      background: linear-gradient(180deg, rgba(88, 101, 242, 0.14), rgba(255, 255, 255, 0.04));
      border: 1px solid rgba(88, 101, 242, 0.22);
    }

    .step-number {
      display: inline-grid;
      place-items: center;
      width: 34px;
      height: 34px;
      margin-bottom: 14px;
      border-radius: 12px;
      background: var(--discord-blurple);
      color: white;
      font-weight: 900;
    }

    .step h3 {
      margin: 0 0 8px;
      font-size: 17px;
    }

    .step p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

    .cta-panel {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 24px;
      align-items: center;
      padding: 30px;
      border-radius: var(--radius-lg);
      background:
        linear-gradient(135deg, rgba(88, 101, 242, 0.94), rgba(71, 82, 196, 0.95)),
        var(--discord-blurple);
      box-shadow: 0 26px 90px rgba(88, 101, 242, 0.30);
    }

    .cta-panel h2 {
      margin: 0 0 8px;
      letter-spacing: -0.04em;
    }

    .cta-panel p {
      margin: 0;
      color: rgba(255, 255, 255, 0.82);
    }

    .cta-panel .button {
      background: white;
      color: var(--discord-blurple-dark);
      white-space: nowrap;
    }

    .legal-strip {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      justify-content: center;
      padding: 24px;
      margin-top: 18px;
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border);
      color: var(--muted);
      text-align: center;
    }

    .legal-strip a {
      color: #dfe3ff;
      font-weight: 800;
    }

    .footer {
      padding: 42px 0 34px;
      color: var(--muted-dark);
      font-size: 14px;
      text-align: center;
    }

    .footer a {
      color: var(--muted);
      font-weight: 700;
    }

    @media (max-width: 900px) {
      .hero {
        grid-template-columns: 1fr;
        padding-top: 42px;
      }

      .features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .workflow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .cta-panel {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 640px) {
      .container {
        width: min(100% - 28px, 1120px);
      }

      .nav {
        align-items: flex-start;
        flex-direction: column;
      }

      .nav-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
      }

      .hero {
        gap: 30px;
      }

      .hero-actions {
        align-items: stretch;
        flex-direction: column;
      }

      .button {
        width: 100%;
      }

      .features,
      .workflow,
      .stats-grid {
        grid-template-columns: 1fr;
      }

      .bot-card-header {
        align-items: flex-start;
      }

      .status-pill {
        display: none;
      }
    }

/* Legal pages */
:root {
  color-scheme: dark;
  --link: #8ea0ff;
}

body.legal-page {
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(88, 101, 242, 0.18), transparent 32rem),
    var(--background);
}

body.legal-page main {
  width: min(920px, calc(100% - 32px));
  margin: 48px auto;
  padding: 40px;
  background: rgba(23, 26, 35, 0.88);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

body.legal-page h1,
body.legal-page h2,
body.legal-page h3 {
  line-height: 1.2;
}

body.legal-page h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
}

body.legal-page h2 {
  margin-top: 2.2rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

body.legal-page p,
body.legal-page li {
  color: var(--muted);
}

body.legal-page strong {
  color: var(--text);
}

body.legal-page a {
  color: var(--link);
  text-decoration: none;
}

body.legal-page a:hover {
  text-decoration: underline;
}

body.legal-page .meta {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

body.legal-page .meta .badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

body.legal-page .legal-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 28px;
}

body.legal-page .legal-nav a {
  display: inline-block;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

body.legal-page ul {
  padding-left: 1.3rem;
}

body.legal-page footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  body.legal-page main {
    margin: 16px auto;
    padding: 24px;
  }
}


/* Codex refresh overrides */
h1,
.brand,
.embed h2,
.feature-card h3,
.section h2,
.cta-panel h2,
body.legal-page h1 {
  letter-spacing: 0;
}

.brand-mark,
.bot-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark img,
.bot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.screenshot-preview {
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(15, 17, 23, 0.22), rgba(15, 17, 23, 0.65)),
    rgba(0, 0, 0, 0.16);
}

.bot-preview-image {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #232428;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.cta-panel .button-cta-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

body.legal-page main {
  width: auto;
  margin: 0;
  padding: 36px 0 20px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.legal-page .legal-hero {
  padding: 54px 0 22px;
}

body.legal-page .legal-hero h1 {
  max-width: 860px;
  margin-bottom: 16px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: 0;
}

body.legal-page .legal-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 24px 0 58px;
}

body.legal-page .legal-nav {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 10px;
  flex-wrap: initial;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(30, 31, 43, 0.66);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

body.legal-page .legal-nav a {
  display: block;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

body.legal-page .legal-nav a:hover,
body.legal-page .legal-nav a[aria-current="page"] {
  background: rgba(88, 101, 242, 0.15);
  color: #dfe3ff;
  text-decoration: none;
}

.legal-document {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(30, 31, 43, 0.78);
  box-shadow: var(--shadow);
}

body.legal-page .legal-document h2 {
  margin: 2rem 0 0.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  letter-spacing: 0;
}

body.legal-page .legal-document h2:first-of-type {
  margin-top: 1rem;
}

body.legal-page .legal-document p:first-child {
  margin-top: 0;
}

body.legal-page .legal-document a {
  color: var(--link);
  font-weight: 800;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  body.legal-page .legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-actions,
  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  body.legal-page main {
    padding-top: 8px;
  }

  body.legal-page .legal-hero {
    padding-top: 30px;
  }

  body.legal-page .legal-hero h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  body.legal-page .legal-nav {
    grid-template-columns: 1fr;
  }

  .legal-document {
    padding: 22px;
  }

  .mock-message {
    padding: 12px;
  }

  .bot-preview-image {
    max-height: none;
    border-radius: 12px;
  }
}


.legal-page .nav-links a:hover {
  text-decoration: none;
}
