:root {
      --bg: #05060c;
      --bg-2: #090b14;
      --panel: rgba(19, 22, 36, .67);
      --panel-solid: #111420;
      --panel-hover: rgba(31, 35, 54, .83);
      --line: rgba(158, 170, 219, .16);
      --line-strong: rgba(158, 170, 219, .32);
      --text: #eef1fb;
      --muted: #98a2c6;
      --muted-2: #697394;
      --blue: #22d3ee;
      --blue-2: #2387ff;
      --purple: #a855f7;
      --pink: #ec4899;
      --orange: #ff9418;
      --green: #34e2a0;
      --yellow: #fbbf24;
      --red: #ff5d7a;
      --blue-soft: rgba(34, 211, 238, .13);
      --orange-soft: rgba(255, 148, 24, .13);
      --green-soft: rgba(52, 226, 160, .13);
      --red-soft: rgba(255, 93, 122, .13);
      --shadow: 0 26px 80px rgba(0, 0, 0, .42);
      --radius-xl: 28px;
      --radius-lg: 20px;
      --radius-md: 14px;
      --radius-sm: 10px;
      --max: 1180px;
    }

    * { box-sizing: border-box; }

    html {
      background: var(--bg);
      color: var(--text);
      scroll-behavior: smooth;
      scroll-padding-top: 92px;
    }

    body {
      margin: 0;
      min-height: 100vh;
      overflow-x: hidden;
      background:
        radial-gradient(820px circle at 8% -8%, rgba(139, 92, 246, .25), transparent 62%),
        radial-gradient(720px circle at 96% 4%, rgba(34, 211, 238, .22), transparent 58%),
        radial-gradient(900px circle at 50% 105%, rgba(236, 72, 153, .13), transparent 62%),
        var(--bg);
      color: var(--text);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.65;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
    }

    body.effects-off .orb,
    body.effects-off #network,
    body.effects-off .grid-overlay { display: none; }

    body.modal-open { overflow: hidden; }

    ::selection { background: rgba(34, 211, 238, .38); color: #fff; }
    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb {
      border-radius: 999px;
      background: linear-gradient(180deg, var(--blue), var(--purple));
    }

    a { color: inherit; }
    button, input, textarea, select { font: inherit; }
    button { color: inherit; }
    img { max-width: 100%; }

    .skip-link {
      position: fixed;
      top: 10px;
      left: 10px;
      z-index: 9999;
      transform: translateY(-180%);
      padding: 10px 14px;
      border-radius: 10px;
      background: #fff;
      color: #000;
      font-weight: 800;
      text-decoration: none;
    }
    .skip-link:focus { transform: translateY(0); }

    #network {
      position: fixed;
      inset: 0;
      z-index: -4;
      pointer-events: none;
      opacity: .46;
    }

    .grid-overlay {
      position: fixed;
      inset: 0;
      z-index: -3;
      pointer-events: none;
      opacity: .20;
      background-image:
        linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
      background-size: 42px 42px;
      mask-image: linear-gradient(to bottom, #000, transparent 88%);
    }

    .orb {
      position: fixed;
      z-index: -2;
      border-radius: 50%;
      filter: blur(80px);
      pointer-events: none;
      opacity: .2;
      animation: orbFloat 18s ease-in-out infinite alternate;
    }
    .orb-a { width: 340px; height: 340px; left: -150px; top: 28%; background: var(--purple); }
    .orb-b { width: 280px; height: 280px; right: -120px; top: 44%; background: var(--blue); animation-delay: -7s; }
    .orb-c { width: 260px; height: 260px; left: 42%; bottom: -170px; background: var(--orange); animation-delay: -12s; }

    @keyframes orbFloat {
      to { transform: translate3d(40px, -35px, 0) scale(1.12); }
    }

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

    @keyframes pulse {
      0%, 100% { opacity: .45; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.05); }
    }

    @keyframes shimmer {
      from { transform: translateX(-130%); }
      to { transform: translateX(230%); }
    }

    @keyframes packet {
      0% { left: 8%; opacity: 0; transform: scale(.55); }
      10% { opacity: 1; }
      90% { opacity: 1; }
      100% { left: 90%; opacity: 0; transform: scale(1.2); }
    }

    @keyframes floaty {
      0%, 100% { transform: translateY(0) rotate(-1deg); }
      50% { transform: translateY(-10px) rotate(1deg); }
    }

    @keyframes spin {
      to { transform: rotate(1turn); }
    }

    .reveal {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity .7s ease, transform .7s ease;
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    .container {
      width: min(calc(100% - 40px), var(--max));
      margin-inline: auto;
    }

    .glass {
      background: var(--panel);
      border: 1px solid var(--line);
      box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.035);
      backdrop-filter: blur(22px);
      -webkit-backdrop-filter: blur(22px);
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 100;
      border-bottom: 1px solid var(--line);
      background: rgba(6, 7, 13, .72);
      backdrop-filter: blur(22px);
      -webkit-backdrop-filter: blur(22px);
    }

    .topbar-inner {
      min-height: 76px;
      display: flex;
      align-items: center;
      gap: 24px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
      text-decoration: none;
      font-weight: 900;
      letter-spacing: -.05em;
      font-size: 25px;
    }

    .brand-icon {
      position: relative;
      width: 43px;
      height: 43px;
      overflow: hidden;
      border: 1px solid rgba(34, 211, 238, .28);
      border-radius: 13px;
      background:
        radial-gradient(circle at 35% 25%, rgba(255,255,255,.23), transparent 34%),
        linear-gradient(145deg, rgba(34, 211, 238, .15), rgba(168, 85, 247, .13));
      box-shadow: 0 0 28px rgba(34, 211, 238, .12);
    }
    .brand-icon img {
      width: 54px;
      max-width: none;
      position: absolute;
      left: -5px;
      top: -2px;
      filter: saturate(1.05) contrast(1.03);
    }

    .word-pri { color: #3da8ff; }
    .word-dge { color: var(--orange); }
    .brand-mini {
      margin-left: -4px;
      color: var(--muted-2);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .18em;
      text-transform: uppercase;
      transform: translateY(1px);
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 3px;
      flex: 1;
    }

    .nav a,
    .nav button {
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      font-size: 14px;
      font-weight: 720;
      padding: 9px 13px;
      text-decoration: none;
      transition: .18s ease;
    }

    .nav a:hover,
    .nav a.active,
    .nav button:hover {
      color: var(--text);
      background: rgba(255,255,255,.05);
      box-shadow: inset 0 0 0 1px var(--line);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .icon-button {
      width: 40px;
      height: 40px;
      display: inline-grid;
      place-items: center;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(255,255,255,.035);
      color: var(--muted);
      cursor: pointer;
      transition: .18s ease;
    }
    .icon-button:hover {
      color: var(--text);
      border-color: var(--line-strong);
      background: var(--panel-hover);
      transform: translateY(-1px);
    }

    .menu-button { display: none; }

    .button {
      position: relative;
      overflow: hidden;
      min-height: 43px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      padding: 10px 17px;
      border: 0;
      border-radius: 11px;
      background: linear-gradient(120deg, var(--blue), var(--purple));
      color: #061018;
      cursor: pointer;
      font-weight: 850;
      text-decoration: none;
      transition: transform .14s ease, filter .2s ease, box-shadow .2s ease;
    }
    .button::after {
      content: "";
      position: absolute;
      inset: -30%;
      width: 40%;
      transform: translateX(-130%);
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
      rotate: 15deg;
    }
    .button:hover {
      transform: translateY(-2px);
      filter: brightness(1.07);
      box-shadow: 0 12px 34px -10px rgba(34, 211, 238, .65);
    }
    .button:hover::after { animation: shimmer .75s ease; }
    .button:active { transform: translateY(0); }
    .button:focus-visible,
    .icon-button:focus-visible,
    .tab:focus-visible,
    .endpoint-item:focus-visible {
      outline: 2px solid var(--blue);
      outline-offset: 3px;
    }

    .button-secondary {
      background: rgba(255,255,255,.045);
      box-shadow: inset 0 0 0 1px var(--line-strong);
      color: var(--text);
    }
    .button-secondary:hover {
      box-shadow: inset 0 0 0 1px var(--line-strong), 0 12px 30px -14px rgba(34,211,238,.5);
    }

    .button-orange {
      background: linear-gradient(120deg, #ffbf3c, var(--orange));
      color: #1b0d00;
    }

    .button-small {
      min-height: 36px;
      padding: 8px 12px;
      border-radius: 9px;
      font-size: 13px;
    }

    .kbd {
      padding: 2px 7px;
      border: 1px solid var(--line-strong);
      border-bottom-width: 2px;
      border-radius: 6px;
      color: var(--muted);
      background: rgba(255,255,255,.04);
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 11px;
    }

    .hero {
      position: relative;
      min-height: calc(100vh - 76px);
      display: grid;
      align-items: center;
      padding: 76px 0 84px;
    }

    .hero-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr);
      align-items: center;
      gap: 52px;
    }

    .eyebrow {
      width: fit-content;
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 19px;
      padding: 7px 11px;
      border: 1px solid rgba(52, 226, 160, .28);
      border-radius: 999px;
      background: rgba(52, 226, 160, .07);
      color: #baf9df;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .eyebrow-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--green);
      box-shadow: 0 0 14px var(--green);
      animation: pulse 1.8s ease-in-out infinite;
    }

    h1, h2, h3, p { margin-top: 0; }
    h1 {
      max-width: 760px;
      margin-bottom: 22px;
      font-size: clamp(48px, 7vw, 88px);
      line-height: .98;
      letter-spacing: -.065em;
    }
    .gradient-title {
      display: inline-block;
      color: transparent;
      background: linear-gradient(100deg, #ffffff 0%, #8ddcff 32%, #65a7ff 52%, #ffb33b 81%, #ff7b17 100%);
      -webkit-background-clip: text;
      background-clip: text;
    }

    .hero-copy {
      max-width: 660px;
      margin-bottom: 29px;
      color: var(--muted);
      font-size: clamp(17px, 2vw, 21px);
      line-height: 1.65;
    }

    .hero-actions {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 11px;
      margin-bottom: 30px;
    }

    .trust-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 9px 16px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 650;
    }
    .trust-item { display: inline-flex; align-items: center; gap: 7px; }
    .trust-check {
      width: 19px;
      height: 19px;
      display: inline-grid;
      place-items: center;
      border-radius: 50%;
      color: var(--green);
      background: var(--green-soft);
      font-size: 11px;
      font-weight: 900;
    }

    .hero-visual {
      position: relative;
      min-height: 500px;
      transform-style: preserve-3d;
      perspective: 1000px;
    }

    .hero-frame {
      position: absolute;
      inset: 26px 0 45px;
      overflow: hidden;
      border: 1px solid rgba(92, 146, 255, .26);
      border-radius: var(--radius-xl);
      background:
        linear-gradient(180deg, rgba(5,6,12,.02), rgba(5,6,12,.66)),
        url("../images/HeroServer.png") center / cover no-repeat;
      box-shadow:
        0 36px 100px rgba(0,0,0,.5),
        0 0 80px rgba(31, 112, 255, .12),
        inset 0 1px 0 rgba(255,255,255,.06);
      animation: floaty 7s ease-in-out infinite;
      transition: transform .22s ease;
    }
    .hero-frame::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(34,211,238,.06), transparent 30%, transparent 70%, rgba(255,148,24,.06)),
        radial-gradient(circle at 50% 54%, transparent 20%, rgba(5,6,12,.52) 88%);
      pointer-events: none;
    }
    .hero-frame::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
      pointer-events: none;
    }

    .floating-card {
      position: absolute;
      z-index: 3;
      min-width: 176px;
      padding: 13px 14px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: rgba(12, 15, 26, .82);
      box-shadow: 0 20px 45px rgba(0,0,0,.34);
      backdrop-filter: blur(16px);
    }
    .floating-card strong {
      display: block;
      margin-bottom: 2px;
      font-size: 13px;
    }
    .floating-card span { color: var(--muted); font-size: 11px; }
    .floating-card .signal {
      width: 8px; height: 8px; display: inline-block; margin-right: 7px;
      border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green);
    }

    .float-a { left: -18px; top: 74px; animation: floaty 6s ease-in-out infinite -1s; }
    .float-b { right: -17px; bottom: 84px; animation: floaty 7.5s ease-in-out infinite -3s; }
    .float-c { left: 66px; bottom: 12px; animation: floaty 8s ease-in-out infinite -5s; }

    .packet-line {
      position: absolute;
      left: 7%;
      right: 7%;
      bottom: 42px;
      z-index: 2;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(34,211,238,.6), rgba(168,85,247,.7), rgba(255,148,24,.7), transparent);
    }
    .packet-line i {
      position: absolute;
      top: -4px;
      left: 8%;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: #fff;
      box-shadow: 0 0 15px 4px rgba(34,211,238,.65);
      animation: packet 4.2s linear infinite;
    }
    .packet-line i:nth-child(2) { animation-delay: -1.4s; }
    .packet-line i:nth-child(3) { animation-delay: -2.8s; }

    .scroll-cue {
      position: absolute;
      left: 50%;
      bottom: 22px;
      transform: translateX(-50%);
      display: grid;
      place-items: center;
      gap: 6px;
      color: var(--muted-2);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
    }
    .mouse {
      width: 24px;
      height: 36px;
      border: 1px solid var(--line-strong);
      border-radius: 999px;
      position: relative;
    }
    .mouse::after {
      content: "";
      position: absolute;
      width: 3px;
      height: 7px;
      top: 7px;
      left: 50%;
      translate: -50% 0;
      border-radius: 99px;
      background: var(--blue);
      animation: pulse 1.7s ease-in-out infinite;
    }

    .section {
      position: relative;
      padding: 96px 0;
    }

    .section-muted {
      border-block: 1px solid rgba(158,170,219,.08);
      background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.006));
    }

    .section-heading {
      display: grid;
      grid-template-columns: minmax(0, .8fr) minmax(280px, .5fr);
      align-items: end;
      gap: 40px;
      margin-bottom: 38px;
    }
    .kicker {
      margin-bottom: 10px;
      color: var(--blue);
      font-size: 12px;
      font-weight: 850;
      letter-spacing: .12em;
      text-transform: uppercase;
    }
    h2 {
      margin-bottom: 0;
      font-size: clamp(34px, 4.7vw, 58px);
      line-height: 1.08;
      letter-spacing: -.045em;
    }
    .section-lead {
      margin-bottom: 3px;
      color: var(--muted);
      font-size: 17px;
    }

    .architecture {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
    }
    .arch-card {
      position: relative;
      overflow: hidden;
      min-height: 250px;
      padding: 23px;
      border-radius: var(--radius-lg);
      transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    }
    .arch-card:hover {
      transform: translateY(-5px);
      border-color: var(--line-strong);
      box-shadow: 0 26px 65px rgba(0,0,0,.36), 0 0 36px -18px rgba(34,211,238,.6);
    }
    .arch-number {
      display: inline-grid;
      place-items: center;
      width: 37px;
      height: 37px;
      margin-bottom: 42px;
      border: 1px solid var(--line-strong);
      border-radius: 11px;
      background: rgba(255,255,255,.04);
      color: var(--blue);
      font-weight: 900;
    }
    .arch-card h3 { margin-bottom: 8px; font-size: 19px; }
    .arch-card p { margin: 0; color: var(--muted); font-size: 14px; }
    .arch-card::after {
      content: "→";
      position: absolute;
      right: -14px;
      top: 26px;
      z-index: 4;
      color: rgba(255,255,255,.34);
      font-size: 26px;
      font-weight: 300;
    }
    .arch-card:last-child::after { display: none; }
    .arch-glow {
      position: absolute;
      width: 110px;
      height: 110px;
      right: -48px;
      bottom: -48px;
      border-radius: 50%;
      background: var(--blue);
      filter: blur(52px);
      opacity: .12;
    }
    .arch-card:nth-child(2) .arch-glow { background: var(--purple); }
    .arch-card:nth-child(3) .arch-glow { background: var(--orange); }
    .arch-card:nth-child(4) .arch-glow { background: var(--green); }

    .repo-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 18px;
    }

    .repo-card {
      position: relative;
      overflow: hidden;
      min-height: 430px;
      padding: 29px;
      border-radius: var(--radius-xl);
      transition: .25s ease;
    }
    .repo-card:hover {
      transform: translateY(-5px);
      border-color: var(--line-strong);
    }
    .repo-card::before {
      content: "";
      position: absolute;
      width: 260px;
      height: 260px;
      right: -120px;
      top: -120px;
      border-radius: 50%;
      background: var(--blue);
      filter: blur(80px);
      opacity: .13;
    }
    .repo-card.client::before { background: var(--green); }
    .repo-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 25px;
    }
    .repo-icon {
      width: 54px;
      height: 54px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(34,211,238,.25);
      border-radius: 15px;
      background: var(--blue-soft);
      color: var(--blue);
      font-size: 24px;
    }
    .client .repo-icon {
      border-color: rgba(52,226,160,.25);
      background: var(--green-soft);
      color: var(--green);
    }
    .repo-chip {
      padding: 6px 9px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,.03);
      color: var(--muted);
      font-size: 11px;
      font-weight: 750;
    }
    .repo-card h3 {
      margin-bottom: 11px;
      font-size: 28px;
      letter-spacing: -.035em;
    }
    .repo-card > p { color: var(--muted); }
    .feature-list {
      display: grid;
      gap: 10px;
      margin: 24px 0 27px;
      padding: 0;
      list-style: none;
    }
    .feature-list li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      color: #d6dcef;
      font-size: 14px;
    }
    .feature-list li::before {
      content: "✓";
      width: 20px;
      height: 20px;
      display: inline-grid;
      place-items: center;
      flex: 0 0 20px;
      margin-top: 1px;
      border-radius: 6px;
      background: var(--blue-soft);
      color: var(--blue);
      font-size: 11px;
      font-weight: 900;
    }
    .client .feature-list li::before { background: var(--green-soft); color: var(--green); }
    .repo-actions { display: flex; flex-wrap: wrap; gap: 9px; }

    .stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 13px;
      margin-top: 18px;
    }
    .stat {
      padding: 20px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: rgba(255,255,255,.025);
    }
    .stat strong {
      display: block;
      margin-bottom: 4px;
      color: transparent;
      background: linear-gradient(110deg, #fff, var(--blue));
      -webkit-background-clip: text;
      background-clip: text;
      font-size: 30px;
      line-height: 1;
      letter-spacing: -.04em;
    }
    .stat span { color: var(--muted); font-size: 12px; font-weight: 700; }

    .api-shell {
      overflow: hidden;
      border-radius: var(--radius-xl);
    }

    .api-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 18px 20px;
      border-bottom: 1px solid var(--line);
      background: rgba(255,255,255,.018);
    }

    .tabs { display: flex; gap: 5px; flex-wrap: wrap; }
    .tab {
      border: 1px solid transparent;
      border-radius: 10px;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      padding: 8px 11px;
      font-size: 13px;
      font-weight: 780;
      transition: .16s ease;
    }
    .tab:hover { color: var(--text); background: rgba(255,255,255,.035); }
    .tab.active {
      border-color: var(--line-strong);
      background: rgba(34,211,238,.1);
      color: var(--blue);
    }

    .api-search {
      width: min(280px, 100%);
      position: relative;
    }
    .api-search input,
    .doc-search input,
    .contact-form input,
    .contact-form textarea,
    .try-form input,
    .try-form select {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: rgba(255,255,255,.035);
      color: var(--text);
      padding: 10px 12px;
      outline: none;
      transition: .16s ease;
    }
    .api-search input:focus,
    .doc-search input:focus,
    .contact-form input:focus,
    .contact-form textarea:focus,
    .try-form input:focus,
    .try-form select:focus {
      border-color: var(--blue);
      box-shadow: 0 0 0 3px var(--blue-soft);
      background: rgba(34,211,238,.045);
    }
    input::placeholder, textarea::placeholder { color: #5d6685; }
    select option { background: var(--panel-solid); }

    .api-grid {
      min-height: 560px;
      display: grid;
      grid-template-columns: 330px minmax(0, 1fr);
    }

    .endpoint-list {
      max-height: 650px;
      overflow: auto;
      padding: 12px;
      border-right: 1px solid var(--line);
      background: rgba(4,6,12,.26);
    }

    .endpoint-item {
      width: 100%;
      display: grid;
      grid-template-columns: 56px 1fr;
      align-items: center;
      gap: 9px;
      margin-bottom: 5px;
      padding: 10px;
      border: 1px solid transparent;
      border-radius: 11px;
      background: transparent;
      text-align: left;
      cursor: pointer;
      transition: .16s ease;
    }
    .endpoint-item:hover { background: rgba(255,255,255,.035); border-color: var(--line); }
    .endpoint-item.active {
      background: rgba(34,211,238,.075);
      border-color: rgba(34,211,238,.26);
      box-shadow: inset 3px 0 0 var(--blue);
    }
    .endpoint-item.hidden { display: none; }
    .method {
      display: inline-grid;
      place-items: center;
      min-width: 50px;
      padding: 4px 6px;
      border: 1px solid;
      border-radius: 7px;
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 10px;
      font-weight: 900;
    }
    .method.post { color: var(--green); background: var(--green-soft); border-color: rgba(52,226,160,.25); }
    .method.get { color: var(--blue); background: var(--blue-soft); border-color: rgba(34,211,238,.25); }
    .method.put { color: var(--orange); background: var(--orange-soft); border-color: rgba(255,148,24,.25); }
    .endpoint-path {
      overflow: hidden;
      color: #dce2f5;
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 12px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .endpoint-detail {
      min-width: 0;
      padding: 28px;
    }
    .endpoint-heading {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 20px;
      margin-bottom: 20px;
    }
    .endpoint-heading h3 {
      margin-bottom: 7px;
      font-size: clamp(23px, 3vw, 32px);
      letter-spacing: -.035em;
    }
    .endpoint-heading p { color: var(--muted); margin-bottom: 0; }
    .endpoint-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
    .meta-chip {
      padding: 6px 9px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(255,255,255,.025);
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }
    .code-panel {
      overflow: hidden;
      margin-top: 13px;
      border: 1px solid rgba(34,211,238,.18);
      border-radius: 13px;
      background: #060810;
      box-shadow: inset 0 0 34px rgba(34,211,238,.035);
    }
    .code-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 10px 12px;
      border-bottom: 1px solid rgba(255,255,255,.06);
      color: var(--muted);
      font-size: 11px;
      font-weight: 750;
    }
    pre {
      margin: 0;
      padding: 17px;
      overflow: auto;
      color: #c7f7ff;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 12px;
      line-height: 1.65;
      white-space: pre;
    }
    .copy-code {
      border: 0;
      border-radius: 7px;
      background: rgba(255,255,255,.06);
      color: var(--muted);
      cursor: pointer;
      padding: 5px 8px;
      font-size: 11px;
      font-weight: 800;
    }
    .copy-code:hover { color: var(--text); background: rgba(255,255,255,.1); }

    .lifecycle {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: rgba(255,255,255,.022);
    }
    .life {
      padding: 8px 11px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,.03);
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }
    .life.pending { color: var(--yellow); border-color: rgba(251,191,36,.28); background: rgba(251,191,36,.08); }
    .life.reserved, .life.printing { color: var(--blue); border-color: rgba(34,211,238,.28); background: var(--blue-soft); }
    .life.printed { color: var(--green); border-color: rgba(52,226,160,.28); background: var(--green-soft); }
    .life.failed { color: var(--red); border-color: rgba(255,93,122,.28); background: var(--red-soft); }
    .life-arrow { color: var(--muted-2); }

    .docs-shell {
      display: grid;
      grid-template-columns: 270px minmax(0, 1fr);
      min-height: 650px;
      overflow: hidden;
      border-radius: var(--radius-xl);
    }

    .docs-side {
      padding: 17px;
      border-right: 1px solid var(--line);
      background: rgba(4,6,12,.3);
    }
    .doc-search { margin-bottom: 13px; }
    .docs-nav {
      display: grid;
      gap: 4px;
    }
    .doc-link {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 11px;
      border: 1px solid transparent;
      border-radius: 10px;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      text-align: left;
      font-size: 13px;
      font-weight: 740;
      transition: .16s ease;
    }
    .doc-link:hover { background: rgba(255,255,255,.035); color: var(--text); }
    .doc-link.active {
      border-color: rgba(34,211,238,.24);
      background: var(--blue-soft);
      color: var(--blue);
    }
    .doc-link.filtered-out { display: none; }
    .doc-link span:last-child { color: var(--muted-2); font-size: 11px; }

    .docs-content {
      padding: 38px;
      min-width: 0;
    }
    .doc-panel { display: none; animation: fadeUp .34s ease; }
    .doc-panel.active { display: block; }
    .doc-panel h3 {
      margin-bottom: 8px;
      font-size: clamp(26px, 3vw, 38px);
      letter-spacing: -.04em;
    }
    .doc-panel h4 {
      margin: 27px 0 9px;
      font-size: 17px;
    }
    .doc-panel p, .doc-panel li { color: var(--muted); }
    .doc-panel ul, .doc-panel ol { padding-left: 20px; }
    .doc-callout {
      margin: 18px 0;
      padding: 14px 16px;
      border: 1px solid rgba(34,211,238,.21);
      border-left: 3px solid var(--blue);
      border-radius: 10px;
      background: rgba(34,211,238,.055);
      color: #cfeef6;
      font-size: 13px;
    }
    .step-list {
      display: grid;
      gap: 11px;
      margin: 22px 0;
    }
    .step {
      display: grid;
      grid-template-columns: 34px 1fr;
      gap: 12px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(255,255,255,.022);
    }
    .step-number {
      width: 32px; height: 32px; display: grid; place-items: center;
      border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-weight: 900;
    }
    .step strong { display: block; margin-bottom: 3px; }
    .step p { margin: 0; font-size: 13px; }

    .try-grid {
      display: grid;
      grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
      gap: 17px;
    }
    .try-card {
      padding: 25px;
      border-radius: var(--radius-lg);
    }
    .try-card h3 { margin-bottom: 8px; font-size: 22px; }
    .try-card > p { color: var(--muted); }
    .try-form { display: grid; gap: 12px; }
    .try-form label {
      display: grid;
      gap: 6px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .06em;
      text-transform: uppercase;
    }
    .try-output { min-height: 100%; }

    .faq-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 11px;
    }
    details {
      border: 1px solid var(--line);
      border-radius: 14px;
      background: rgba(255,255,255,.024);
      padding: 0 17px;
      transition: .18s ease;
    }
    details:hover { border-color: var(--line-strong); }
    details[open] { background: rgba(34,211,238,.04); border-color: rgba(34,211,238,.22); }
    summary {
      position: relative;
      cursor: pointer;
      list-style: none;
      padding: 17px 34px 17px 0;
      font-weight: 800;
    }
    summary::-webkit-details-marker { display: none; }
    summary::after {
      content: "+";
      position: absolute;
      right: 0;
      top: 13px;
      color: var(--blue);
      font-size: 24px;
      font-weight: 400;
      transition: transform .2s ease;
    }
    details[open] summary::after { transform: rotate(45deg); }
    details p { margin: -3px 0 17px; color: var(--muted); font-size: 14px; }

    .cta-card {
      position: relative;
      overflow: hidden;
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 30px;
      padding: 44px;
      border-radius: var(--radius-xl);
      background:
        radial-gradient(440px circle at 6% 20%, rgba(34,211,238,.15), transparent 62%),
        radial-gradient(440px circle at 96% 90%, rgba(255,148,24,.14), transparent 62%),
        var(--panel);
    }
    .cta-card::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.035), transparent 65%);
    }
    .cta-card h2 { font-size: clamp(32px, 4vw, 52px); }
    .cta-card p { max-width: 690px; margin: 10px 0 0; color: var(--muted); }
    .cta-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }

    footer {
      padding: 34px 0 44px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 13px;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 30px;
    }
    .footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
    .footer-links a, .footer-links button {
      border: 0;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      padding: 0;
      text-decoration: none;
    }
    .footer-links a:hover, .footer-links button:hover { color: var(--text); }

    dialog {
      width: min(760px, calc(100% - 28px));
      max-height: min(86vh, 850px);
      overflow: auto;
      padding: 0;
      border: 1px solid var(--line-strong);
      border-radius: 22px;
      background: var(--panel-solid);
      color: var(--text);
      box-shadow: 0 38px 120px rgba(0,0,0,.72);
    }
    dialog::backdrop {
      background: rgba(3,4,10,.74);
      backdrop-filter: blur(9px);
      -webkit-backdrop-filter: blur(9px);
    }
    dialog[open] { animation: fadeUp .24s ease; }
    .modal-head {
      position: sticky;
      top: 0;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 17px 20px;
      border-bottom: 1px solid var(--line);
      background: rgba(17,20,32,.91);
      backdrop-filter: blur(15px);
    }
    .modal-head strong { font-size: 17px; }
    .modal-close {
      width: 34px; height: 34px; display: grid; place-items: center;
      border: 1px solid var(--line); border-radius: 10px;
      background: rgba(255,255,255,.04); color: var(--muted); cursor: pointer;
      font-size: 19px;
    }
    .modal-close:hover { color: var(--text); background: var(--panel-hover); }
    .modal-body { padding: 24px; }
    .modal-body > p { color: var(--muted); }

    .about-hero {
      min-height: 200px;
      display: grid;
      place-items: center;
      position: relative;
      overflow: hidden;
      background:
        linear-gradient(180deg, transparent, var(--panel-solid)),
        url("../images/HeroServer.png") center / cover no-repeat;
    }
    .about-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 48px;
      font-weight: 950;
      letter-spacing: -.06em;
      text-shadow: 0 8px 28px rgba(0,0,0,.6);
    }
    .about-logo img { width: 82px; filter: drop-shadow(0 12px 20px rgba(0,0,0,.45)); }

    .contact-form {
      display: grid;
      gap: 13px;
    }
    .contact-form label {
      display: grid;
      gap: 6px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 750;
    }
    .contact-form textarea { min-height: 140px; resize: vertical; }
    .contact-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
    .contact-link {
      display: flex; align-items: center; gap: 10px;
      padding: 13px; border: 1px solid var(--line); border-radius: 12px;
      background: rgba(255,255,255,.025); text-decoration: none;
    }
    .contact-link:hover { border-color: var(--line-strong); background: rgba(255,255,255,.04); }
    .contact-link span { color: var(--muted); font-size: 12px; }

    .command-dialog { width: min(650px, calc(100% - 24px)); margin-top: 10vh; }
    .command-input {
      width: 100%;
      border: 0;
      border-bottom: 1px solid var(--line);
      background: transparent;
      color: var(--text);
      padding: 20px;
      outline: none;
      font-size: 18px;
    }
    .command-results { max-height: 420px; overflow: auto; padding: 9px; }
    .command-item {
      width: 100%;
      display: grid;
      grid-template-columns: 35px 1fr auto;
      align-items: center;
      gap: 10px;
      padding: 11px;
      border: 1px solid transparent;
      border-radius: 10px;
      background: transparent;
      color: var(--text);
      cursor: pointer;
      text-align: left;
    }
    .command-item:hover, .command-item.selected { background: rgba(34,211,238,.07); border-color: rgba(34,211,238,.18); }
    .command-item small { color: var(--muted); }
    .command-symbol { color: var(--blue); text-align: center; font-weight: 900; }

    .toast-stack {
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 999;
      display: grid;
      gap: 9px;
      pointer-events: none;
    }
    .toast {
      min-width: 240px;
      max-width: 370px;
      padding: 12px 14px;
      border: 1px solid var(--line-strong);
      border-radius: 12px;
      background: rgba(17,20,32,.92);
      box-shadow: 0 20px 55px rgba(0,0,0,.45);
      color: var(--text);
      animation: fadeUp .25s ease;
      backdrop-filter: blur(15px);
      font-size: 13px;
      font-weight: 700;
    }

    .no-results {
      display: none;
      padding: 24px 12px;
      color: var(--muted);
      text-align: center;
      font-size: 13px;
    }
    .no-results.visible { display: block; }

    @media (max-width: 1040px) {
      .hero-layout { grid-template-columns: 1fr; }
      .hero-copy { max-width: 760px; }
      .hero-visual { min-height: 460px; }
      .architecture { grid-template-columns: repeat(2, 1fr); }
      .arch-card:nth-child(2)::after { display: none; }
      .section-heading { grid-template-columns: 1fr; gap: 15px; }
      .api-grid { grid-template-columns: 285px minmax(0,1fr); }
    }

    @media (max-width: 820px) {
      .topbar-inner { min-height: 68px; }
      .nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: calc(100% + 8px);
        display: none;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: rgba(12,14,24,.95);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
      }
      .nav.open { display: flex; animation: fadeUp .2s ease; }
      .nav a, .nav button { text-align: left; }
      .menu-button { display: inline-grid; }
      .desktop-cta { display: none; }
      .hero { min-height: auto; padding-top: 62px; }
      .hero-layout { gap: 20px; }
      .hero-visual { min-height: 400px; }
      .float-a { left: 8px; }
      .float-b { right: 8px; }
      .repo-grid, .faq-grid, .try-grid { grid-template-columns: minmax(0, 1fr); }
      .stats { grid-template-columns: repeat(2, 1fr); }
      .api-grid { grid-template-columns: minmax(0, 1fr); }
      .endpoint-list {
        display: flex;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }
      .endpoint-item {
        min-width: 245px;
        margin: 0 5px 0 0;
      }
      .docs-shell { grid-template-columns: minmax(0, 1fr); }
      .docs-side { border-right: 0; border-bottom: 1px solid var(--line); }
      .docs-nav { grid-template-columns: repeat(2, minmax(0,1fr)); }
      .cta-card { grid-template-columns: 1fr; padding: 32px; }
      .cta-actions { justify-content: flex-start; }
    }

    @media (max-width: 590px) {
      .container { width: min(calc(100% - 26px), var(--max)); }
      .brand-mini { display: none; }
      .nav-actions .search-button { display: none; }
      h1 { font-size: clamp(45px, 16vw, 67px); }
      .hero { padding: 51px 0 72px; }
      .hero-actions .button { width: 100%; }
      .hero-visual { min-height: 345px; }
      .hero-frame { inset: 20px 0 45px; border-radius: 20px; }
      .floating-card { min-width: 150px; padding: 10px 11px; }
      .float-a { top: 45px; }
      .float-b { bottom: 58px; }
      .float-c { left: 20px; bottom: 4px; }
      .scroll-cue { display: none; }
      .section { padding: 72px 0; }
      .architecture { grid-template-columns: 1fr; }
      .arch-card::after { display: none; }
      .repo-card { min-height: 0; padding: 23px; }
      .stats { grid-template-columns: 1fr 1fr; }
      .api-top { flex-direction: column; align-items: stretch; }
      .api-search { width: 100%; }
      .endpoint-detail { padding: 20px 16px; }
      .endpoint-heading { flex-direction: column; }
      .docs-nav { grid-template-columns: 1fr; }
      .docs-content { padding: 25px 17px; }
      .contact-links { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr; }
      .cta-card { padding: 26px 21px; }
      .modal-body { padding: 18px; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
      }
      #network { display: none; }
      .reveal { opacity: 1; transform: none; }
    }
