    :root {
      --bg: #0b0f1a;
      --panel: #121826;
      --panel-soft: #1b2336;
      --text: #e6edf7;
      --muted: #94a3b8;
      --accent: #6366f1;
      --accent2: #22d3ee;
    }

    /* Light theme */
    body.light {
      --bg: #f8fafc;
      --panel: #ffffff;
      --panel-soft: #eef2ff;
      --text: #0f172a;
      --muted: #475569;
      --accent: #4f46e5;
      --accent2: #06b6d4;

      background-color: var(--bg);
      background-image: none;
    }

    body.light .hero h1 {
      background: linear-gradient(90deg,
          #0f172a,
          #4f46e5,
          #06b6d4,
          #0f172a);
      background-size: 200% auto;

      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;

      animation: text-gradient 8s linear infinite;
    }

    * {
      box-sizing: border-box
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      font-family: Inter, system-ui;
      background-color: var(--bg);
      background-image: radial-gradient(circle at 20% 10%, #111827, #05070f 70%),
        radial-gradient(circle at 80% 30%, rgba(34, 211, 238, 0.1), transparent 30%),
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1), transparent 30%);
      color: var(--text);
    }

    .container {
      max-width: 1150px;
      margin: auto;
      padding: 24px;
    }

    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 40px;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 700;
      font-size: 22px;
      letter-spacing: .5px;
    }

    nav a {
      color: var(--muted);
      margin-left: 22px;
      text-decoration: none;
      font-size: 14px;
    }

    nav a:hover {
      color: white
    }

    .hero {
      text-align: center;
      padding: 70px 0 30px;
    }

    .hero h1 {
      font-size: 48px;
      margin-bottom: 16px;
      line-height: 1.2;
      background: linear-gradient(90deg, var(--accent2), var(--accent), #fff, var(--accent2));
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: text-gradient 10s linear infinite;
    }

    .hero p {
      color: var(--muted);
      font-size: 18px;
      max-width: 650px;
      margin: 0 auto;
      margin-bottom: 10px;
    }

    @keyframes text-gradient {
      to {
        background-position: 200% center
      }
    }

    .buttons {
      margin-top: 28px;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 16px;
    }

    .btn {
      display: inline-block;
      padding: 12px 24px;
      border-radius: 10px;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      color: white;
      font-weight: 600;
      text-decoration: none;
      transition: transform .2s ease;
    }

    .btn.secondary {
      background: var(--panel-soft);
    }

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

    .hero-visual {
      margin-top: 60px;
      display: flex;
      justify-content: center;
    }

    .flow {
      display: flex;
      align-items: center;
      gap: 20px;
      font-size: 14px;
    }

    .node {
      background: var(--panel);
      padding: 16px 20px;
      border-radius: 10px;
      border: 1px solid #1f2937;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
      transition: transform .3s ease, box-shadow .3s ease;
    }

    .node:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }

    .node.active {
      animation: pulse 2.5s infinite ease-in-out
    }

    .arrow {
      width: 40px;
      height: 2px;
      background: linear-gradient(90deg, var(--accent), var(--accent2));
      animation: flow 2s infinite linear;
    }

    @keyframes flow {
      0% {
        opacity: .2
      }

      50% {
        opacity: 1
      }

      100% {
        opacity: .2
      }
    }

    @keyframes pulse {
      0% {
        transform: scale(1)
      }

      50% {
        transform: scale(1.05)
      }

      100% {
        transform: scale(1)
      }
    }

    .section {
      padding: 70px 0;
    }

    .section h2 {
      font-size: 28px;
      margin-bottom: 30px;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 24px;
    }

    .card {
      background: var(--panel);
      border-radius: 14px;
      padding: 26px;
      border: 1px solid #1f2937;
      transition: transform .2s ease, border-color .2s ease;
    }

    .card svg {
      width: 32px;
      height: 32px;
      margin-bottom: 16px;
      color: var(--accent2);
      opacity: .9;
    }

    .card:hover {
      transform: translateY(-4px);
      border-color: var(--accent)
    }

    .card h3 {
      margin-top: 0;
      font-size: 18px;
    }

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

    .example-grid,
    .install-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }

    .code-editor {
      background: var(--panel);
      border-radius: 14px;
      border: 1px solid #1f293b;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .code-editor-header {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--panel-soft);
      padding: 12px 26px;
      font-size: 14px;
      font-weight: 500;
      color: var(--muted);
      border-bottom: 1px solid #1f293b;
    }

    .copy-btn {
      margin-left: auto;
      background: var(--panel);
      border: 1px solid #1f293b;
      color: var(--muted);
      padding: 4px 12px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 12px;
    }

    .copy-btn:hover {
      background: #1f293b;
      color: var(--text)
    }

    .code-editor-body {
      padding: 26px;
      overflow: auto;
      font-size: 14px;
      font-family: "JetBrains Mono", monospace;
      background: #020617;
      flex-grow: 1;
    }

    .code-editor-body pre {
      margin: 0;
    }

    .code-editor-body pre code {
      background-color: #000;
      color: #fff;
      padding: 0.5rem 1rem;
      display: block;
      border-radius: 0.375rem;
      overflow-x: auto;
      font-family: 'Fira Code', monospace;
    }

    /* The syntax highlighting was scoped to .code-block, let's scope it to the body */
    .code-editor-body .token.keyword {
      color: #c792ea
    }

    .code-editor-body .token.string {
      color: #c3e88d
    }

    .code-editor-body .token.function {
      color: #82aaff
    }

    .code-editor-body .token.property {
      color: #f07178
    }

    .code-editor-body .token.punctuation {
      color: #89ddff
    }

    .code-editor-body .token.operator {
      color: #89ddff
    }

    .code-editor-body .token.number {
      color: #f78c6c
    }

    .code-editor-body .token.comment {
      color: #546e7a
    }

    @media (max-width: 768px) {
      header {
        flex-direction: column;
        gap: 20px;
      }

      nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
      }

      nav a {
        margin-left: 0;
      }

      .hero {
        padding: 60px 0 40px;
      }

      .hero h1 {
        font-size: 38px;
      }

      .hero p {
        font-size: 16px;
      }

      .example-grid,
      .install-grid {
        grid-template-columns: 1fr;
      }

      .flow {
        flex-direction: column;
      }

      .arrow {
        width: 2px;
        height: 40px;
        background: linear-gradient(180deg, var(--accent), var(--accent2));
      }
    }

    .scroller {
      max-width: 100%;
      overflow: hidden;
      -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
      mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    }

    .scroller-inner {
      display: flex;
      gap: 40px;
      width: max-content;
      flex-wrap: nowrap;
    }

    .scroller[data-animated="true"] .scroller-inner {
      animation: scroll 40s linear infinite;
    }

    .logo-item {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 500;
    }

    .logo-item svg {
      width: 24px;
      height: 24px;
      opacity: .8;
    }

    @keyframes scroll {
      to {
        transform: translate(calc(-50% - 20px));
      }
    }

    footer {
      margin-top: 80px;
      padding: 40px 0;
      text-align: center;
      color: #64748b;
      font-size: 14px;
    }

    .actra-col {
      background: rgba(99, 102, 241, 0.08);
      color: var(--accent);
      font-weight: 500;
    }


    .code-editor {
      border-radius: 14px;
      border: 1px solid #1f2937;
      overflow: hidden;
    }

    .code-editor-header {
      background: #0f172a;
      padding: 10px 14px;
      font-size: 13px;
      color: var(--muted);
      border-bottom: 1px solid #1f2937;
    }

    .CodeMirror {
      height: auto;
      min-height: 220px;
      font-size: 13px;
      font-family: "JetBrains Mono", monospace;
    }

    table td,
    table th {
      text-align: left !important;
      vertical-align: top;
    }

    .CodeMirror {
      text-align: left !important;
    }

    pre {
      text-align: left;
    }

    .code-editor-header {
      text-align: left;
    }

    .section h2,
    .section p {
      text-align: center;
    }

    .card:hover {
      transform: translateY(-3px);
      transition: 0.2s ease;
    }

    .section {
      padding: 60px 0;
    }

    /* tighter spacing between consecutive sections */
    .section+.section {
      padding-top: 30px;
    }

    .section h2 {
      margin-bottom: 20px;
    }

    .editor-controls {
      display: flex;
      gap: 6px;
    }

    .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }

    .dot.red {
      background: #ef4444;
    }

    .dot.yellow {
      background: #eab308;
    }

    .dot.green {
      background: #22c55e;
    }

    table td {
      padding: 14px 12px;
    }

    /*Hero Animation*/
    .hero h1 {
      animation:
        fadeUp 0.6s ease forwards,
        text-gradient 10s linear infinite;
    }

    .hero p {
      animation: fadeUp 0.6s ease forwards;
      animation-delay: 0.15s;
    }

    .hero .buttons {
      animation: fadeUp 0.6s ease forwards;
      animation-delay: 0.3s;
    }


    .hero p {
      animation-delay: 0.1s;
    }

    .buttons {
      animation-delay: 0.2s;
    }

    @keyframes fadeUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /*CTA Glow*/
    .btn {
      position: relative;
    }

    .btn::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 10px;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      opacity: 0;
      filter: blur(10px);
      z-index: -1;
      transition: 0.3s;
    }

    .btn:hover::after {
      opacity: 0.6;
    }

    /*Code Editor Animation*/
    .code-editor {
      opacity: 0;
      transform: translateY(10px);
      animation: fadeUp 0.6s ease forwards;
    }

    /* Old styles for tabs and code-blocks are removed below */
    .tabs,
    .tab-list,
    .tab-item,
    .tab-panel,
    .code-block,
    .install-grid h4 {
      /* These styles are no longer needed and have been replaced. */
    }