 html{
      scroll-behavior: smooth;
    }
    :root {
      --bg: #ffffff;
      --ink: #0b1220;
      --muted: #525f7a;
      --ring: #e6e9f2;
      --card: #f8fafd;
      --brand1: #4f46e5;
      --brand2: #22c55e;
      --accent: #0ea5e9;
      --radius: 16px;
      --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    }

    body.dark {
      --bg: #0b1220;
      --ink: #e6eefc;
      --muted: #9fb0c9;
      --ring: #1f2a44;
      --card: #111a2b;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      background: var(--bg);
      color: var(--ink);
      line-height: 1.6;
      transition: background 0.3s, color 0.3s;
    }

    a {
      color: #0f766e;
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
    }

    .container {
      max-width: 1180px;
      margin: 0 auto;
      padding: 0 20px;
    }

    /* Header */
    header {
      position: sticky;
      top: 0;
      background: var(--bg);
      border-bottom: 1px solid var(--ring);
      z-index: 40;
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 0;
      gap: 20px;
    }
    #themeToggle {
  margin-left: auto; /* Pushes buttons to the right */
  padding: 8px 12px;
}

@media (max-width: 400px) {
  .nav .btn.primary {
    display: none; /
  }
}

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .brand .name {
      font-weight: 800;
      font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
      letter-spacing: 0.2px;
      font-size: 18px;
    }

    .navlinks {
      display: flex;
      gap: 18px;
      align-items: center;
      flex-wrap: wrap;
    }

    .navlinks a {
      color: var(--ink);
      font-weight: 500;
    }

    /* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;  
  height: 44px; 
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px; 
  z-index: 110;
  position: relative;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 auto;
    margin-top: 3%; 
}

.hamburger.active span:nth-child(1) {
  /* Move down 8px to the center, then rotate */
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  /* Hide the middle bar */
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
  /* Move up 8px to the center, then rotate */
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Media Query */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
}

    /* Buttons */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 12px 20px;
      border-radius: 12px;
      border: 1px solid var(--ring);
      background: #0b1220;
      color: #fff;
      font-weight: 600;
      transition: all 0.2s ease;
      cursor: pointer;
      font-size: 14px;
    }
    @media (max-width: 528px) {
  #playBtn {
    margin-bottom: 10%;
  }
}
    

    .btn:hover {
      transform: translateY(-1px);
      filter: brightness(1.1);
      text-decoration: none;
    }

    .btn:active {
      transform: translateY(1px);
    }

    .btn.primary {
      background: linear-gradient(135deg, var(--brand1), var(--brand2));
      border: none;
    }

    .btn.ghost {
      background: linear-gradient(135deg, var(--brand1), var(--brand2));
      border: none;
    }

    .btn.outline {
      background: transparent;
      color: var(--ink);
    }

    .btn.light {
      background: #fff;
      color: #0b1220;
    }

    /* Hero */
    .hero {
      padding: 72px 0 36px;
      height: fit-content;
    }

    .hero h1 {
      font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
      font-weight: 800;
      font-size: 48px;
      line-height: 1.1;
      margin: 16px 0 12px;
    }

    .lead {
      color: var(--muted);
      font-size: 18px;
      max-width: 720px;
      margin-bottom: 20px;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      border: 2px solid transparent;
      border-radius: 999px;
      padding: 6px 14px;
      font-weight: 800;
      font-size: 12px;
      letter-spacing: 0.08em;
      color: var(--ink);
      background: linear-gradient(var(--card), var(--card)) padding-box,
                  linear-gradient(135deg, var(--brand1), var(--brand2)) border-box;
      box-shadow: 0 6px 22px rgba(79, 70, 229, 0.18);
      margin-bottom: 12px;
    }

    .pill::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--brand1), var(--brand2));
    }

    /* Grid Layout */
    .grid {
      display: grid;
      gap: 22px;
    }

    .two-col {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      align-items: center;
    }

    .cards {
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    /* Cards */
    .card {
      background: var(--card);
      border: 1px solid var(--ring);
      border-radius: var(--radius);
      padding: 22px;
      box-shadow: var(--shadow);
    }

    .card h3 {
      margin: 6px 0 12px;
      font-size: 20px;
      font-weight: 700;
    }

    /* Sections */
    .section {
      padding: 60px 0;
      border-top: 1px solid var(--ring);
    }

    .kicker {
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 8px;
    }

    .h2 {
      font-size: 36px;
      font-weight: 800;
      font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
      margin: 8px 0 20px;
    }

    /* Badges */
    .badge {
      display: inline-block;
      padding: 6px 12px;
      border-radius: 999px;
      border: 1px solid var(--ring);
      background: var(--card);
      color: var(--ink);
      font-weight: 600;
      font-size: 12px;
      margin: 4px;
    }

    .trust {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
      margin-top: 14px;
    }

    /* Icon Badge */
    .icon-badge {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, var(--brand1), var(--brand2));
      box-shadow: var(--shadow);
    }

    .title-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }

    /* Code Block */
    .mono {
      font-family: ui-monospace, 'Menlo', 'Consolas', monospace;
      font-size: 13px;
      background: #0f172a;
      color: #e6eefc;
      border-radius: 12px;
      padding: 18px;
      overflow-x: auto;
      white-space: pre-wrap;
      line-height: 1.5;
    }

    /* Stats */
    .stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 14px;
      margin-top: 16px;
    }

    .stat {
      background: #fff;
      border: 1px solid var(--ring);
      border-radius: 14px;
      padding: 16px;
      text-align: center;
    }

    body.dark .stat {
      background: var(--bg);
    }

    .stat .num {
      font-weight: 800;
      font-size: 28px;
      color: var(--ink);
    }

    .stat .label {
      color: var(--muted);
      font-size: 14px;
    }

    /* Pricing */
    .pricing-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
      margin: 32px 0;
    }

    .price-card {
      background: var(--card);
      border: 1px solid var(--ring);
      border-radius: var(--radius);
      padding: 28px;
      position: relative;
      box-shadow: var(--shadow);
    }

    .price-card.featured {
      border-color: var(--brand1);
      box-shadow: 0 16px 36px rgba(79, 70, 229, 0.2);
    }

    .price-card .badge-top {
      position: absolute;
      top: -12px;
      right: 16px;
      background: #16a34a;
      color: #fff;
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 700;
      box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4);
    }

    .price-card .tier {
      font-size: 22px;
      font-weight: 700;
      margin-bottom: 8px;
    }

    .price-card .amount {
      font-size: 40px;
      font-weight: 700;
      margin-bottom: 8px;
    }

    .price-card .period {
      font-size: 16px;
      color: var(--muted);
    }

    .price-card .blurb {
      color: var(--muted);
      margin: 12px 0 20px;
    }

    .price-card .features {
      list-style: none;
      margin: 20px 0;
    }

    .price-card .features li {
      padding: 10px 0;
      border-bottom: 1px dashed var(--ring);
      color: var(--muted);
    }

    .price-card .features li:last-child {
      border-bottom: none;
    }

    .feature-card {
  padding: 32px !important; /* Consistent padding */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: auto; /* Pushes list to the bottom */
}

.feature-list li {
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--ring);
}

.feature-list li:last-child {
  border-bottom: none;
}

.icon-badge.blue { background: #0ea5e9; }
.icon-badge.green { background: #22c55e; }
.icon-badge.purple { background: #8b5cf6; }
.icon-badge.orange { background: #f59e0b; }

.text-center { text-align: center; }

    /* Terminal Container */
.terminal-window {
  background: #0d1117;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  margin-bottom: 20px;
}

.terminal-header {
  background: #161b22;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #30363d;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-title { 
  color: #8b949e; 
  font-size: 12px; 
  margin-left: 8px; 
  font-family: 'Inter', sans-serif; 
}

/* Event Stream */
.event-stream {
  height: 320px;
  overflow-y: auto;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scroll-behavior: smooth;
}

/* Individual Event Lines */
.event-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid #30363d;
  animation: slideIn 0.2s ease-out;
}

.status-succeeded { border-left-color: #238636; color: #3fb950; }
.status-failed { border-left-color: #da3633; color: #f85149; }
.status-scheduled { border-left-color: #1f6feb; color: #58a6ff; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-5px); }
  to { opacity: 1; transform: translateX(0); }
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin: 48px 0;
}

.browser-window {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--ring);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.browser-window:hover {
  transform: translateY(-8px);
}

.browser-header {
  background: #f1f5f9;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--ring);
}

.dots { display: flex; gap: 6px; }
.dots span { width: 8px; height: 8px; border-radius: 50%; }
.dots .r { background: #ff5f56; }
.dots .y { background: #ffbd2e; }
.dots .g { background: #27c93f; }

.address-bar {
  background: #fff;
  font-size: 11px;
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 4px;
  flex-grow: 1;
  border: 1px solid var(--ring);
  text-align: center;
}

.browser-content svg {
  width: 100%;
  height: auto;
  display: block;
}

.cap {
  margin-top: 16px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

/* Container Layout */
.demo-container {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--ring);
  margin-top: 32px;
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 24px;
}

/* Terminal Styling */
.terminal-window {
  background: #0d1117;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.terminal-header {
  background: #161b22;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #30363d;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }
.terminal-title { color: #8b949e; font-size: 12px; margin-left: 8px; font-family: monospace; }

.event-stream {
  height: 350px;
  overflow-y: auto;
  padding: 16px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Event Lines - No Overlap */
.event-line {
  padding: 8px 12px;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  border-left: 4px solid #30363d;
  animation: slideIn 0.2s ease-out;
  display: flex;
  justify-content: space-between;
}

.status-succeeded { border-left-color: #238636; color: #3fb950; }
.status-failed { border-left-color: #da3633; color: #f85149; }
.status-scheduled { border-left-color: #1f6feb; color: #58a6ff; }

/* Settings Sidebar */
.setting-group { margin-bottom: 20px; }
.setting-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.filter-list { display: flex; flex-direction: column; gap: 10px; }
.filter-item { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
  .demo-grid { grid-template-columns: 1fr; }
}


/* Status specific colors */
.status-success { border-left-color: #238636; color: #3fb950; }
.status-failed { border-left-color: #da3633; color: #f85149; }
.status-scheduled { border-left-color: #1f6feb; color: #58a6ff; }

    /* Table */
    table.fees {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      margin-top: 24px;
      border-radius: 12px;
      overflow: hidden;
    }

    table.fees th {
      background: var(--card);
      text-align: left;
      padding: 12px 16px;
      font-weight: 600;
      border-bottom: 1px solid var(--ring);
    }

    table.fees td {
      padding: 12px 16px;
      border-bottom: 1px solid var(--ring);
      color: var(--muted);
    }

    table.fees tr:last-child td {
      border-bottom: none;
    }

    table.fees .price {
      font-weight: 700;
      color: var(--ink);
    }

    /* Contact Form */
    .contact-form label {
      display: block;
      margin: 16px 0;
      font-weight: 600;
    }

    .contact-form input,
    .contact-form textarea {
      width: 100%;
      padding: 12px;
      border: 1px solid var(--ring);
      border-radius: 10px;
      background: var(--bg);
      color: var(--ink);
      font: inherit;
      margin-top: 6px;
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
      outline: none;
      border-color: var(--brand1);
      box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }

    .contact-form .actions {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 16px;
    }

    .contact-form .notice {
      font-size: 14px;
      color: var(--muted);
    }

    /* Footer */
    footer {
      border-top: 1px solid var(--ring);
      padding: 24px 0;
      margin-top: 40px;
      color: var(--muted);
    }

    .footer-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    footer a {
      color: var(--muted);
    }

    /* Lists */
    ul.ticks {
      list-style: none;
      padding: 0;
      margin: 16px 0;
    }

    ul.ticks li {
      padding: 8px 0;
      padding-left: 24px;
      position: relative;
      color: var(--muted);
    }

    ul.ticks li::before {
      content: "✓";
      position: absolute;
      left: 0;
      color: #22c55e;
      font-weight: 700;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .hero h1 {
        font-size: 32px;
      }

      .h2 {
        font-size: 28px;
      }

      .hamburger {
        display: flex;
      }

      .navlinks {
        position: fixed;
        top: 65px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 65px);
        background: var(--bg);
        border-left: 1px solid var(--ring);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 24px;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
      }

      .navlinks.active {
        right: 0;
      }

      .navlinks a,
      .navlinks .btn {
        width: 100%;
        justify-content: center;
      }

      .nav {
        flex-wrap: nowrap;
      }

      .two-col {
        grid-template-columns: 1fr;
      }

      .pricing-grid {
        grid-template-columns: 1fr;
      }
    }

    /* Utility */
    .muted {
      color: var(--muted);
    }

    .hp {
      position: absolute;
      left: -5000px;
      opacity: 0;
    }