:root {
      --bg: #050712;
      --bg-alt: #0c0f1c;
      --accent: #4c7fff;
      --accent-soft: rgba(76,127,255,0.16);
      --text: #f9fafb;
      --muted: #9ca3af;
      --border: #1f2933;
      --card: #0b1020;
      --radius-lg: 16px;
      --radius-xl: 22px;
      --shadow-soft: 0 18px 40px rgba(0,0,0,0.45);
      --shadow-glow: 0 0 40px rgba(76,127,255,0.35);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
      background: radial-gradient(circle at top, #141b33 0, var(--bg) 50%, #000 100%);
      color: var(--text);
      min-height: 100vh;
    }

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

    .page {
      max-width: 1120px;
      margin: 0 auto;
      padding: 20px 20px 60px;
    }

    /* NAVBAR */
    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 8px 4px;
    }

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

    .logo {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 0 0 1px rgba(148,163,184,0.3);
    }

    .logo img {
      width: 100%;
      height: 100%;
      display: block;
    }

    .brand-text {
      display: flex;
      flex-direction: column;
      font-size: 14px;
    }

    .brand-text strong {
      font-size: 16px;
    }

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

    .nav-links a {
      position: relative;
    }
    .nav-links a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -4px;
      width: 0;
      height: 2px;
      background: var(--accent);
      border-radius: 999px;
      transition: width 0.18s ease-out;
    }
    .nav-links a:hover::after {
      width: 100%;
    }

    /* HERO */
    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
      gap: 32px;
      padding: 50px 8px 32px;
      align-items: center;
    }

    @media (max-width: 840px) {
      .hero {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 32px;
      }
      .nav-links {
        display: none;
      }
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(15,23,42,0.8);
      border: 1px solid rgba(148,163,184,0.4);
      font-size: 11px;
      color: var(--muted);
      margin-bottom: 14px;
    }

    .badge-dot {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: #22c55e;
      box-shadow: 0 0 8px rgba(34,197,94,0.9);
    }

    .hero-title {
      font-size: clamp(32px, 4vw, 44px);
      line-height: 1.1;
      margin-bottom: 16px;
    }

    .hero-title span.accent {
      background: linear-gradient(120deg, #7dd3fc, #a855f7, #4c7fff);
      -webkit-background-clip: text;
      color: transparent;
    }

    .hero-subtitle {
      font-size: 15px;
      line-height: 1.6;
      color: var(--muted);
      margin-bottom: 22px;
      max-width: 470px;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 22px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 18px;
      font-size: 14px;
      border-radius: 999px;
      border: 1px solid transparent;
      cursor: pointer;
      transition: all 0.15s ease-out;
      white-space: nowrap;
    }

    .btn-primary {
      background: radial-gradient(circle at 0 0, #8b5cf6 0, #4c7fff 40%, #2563eb 100%);
      border-color: rgba(191, 219, 254, 0.3);
      color: #f9fafb;
      box-shadow: var(--shadow-glow);
    }
    .btn-primary:hover {
      filter: brightness(1.05);
      transform: translateY(-1px);
    }

    .btn-ghost {
      background: rgba(15,23,42,0.9);
      border-color: rgba(148,163,184,0.5);
      color: var(--muted);
    }
    .btn-ghost:hover {
      border-color: var(--accent);
      color: var(--text);
      background: rgba(15,23,42,1);
    }

    .hero-note {
      font-size: 12px;
      color: var(--muted);
    }

    /* HERO RIGHT: card & “diagram” */
    .hero-right {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .hero-card {
      width: 100%;
      /* max-width: 420px; */
      background: radial-gradient(circle at top left, #111827, #020617);
      border-radius: var(--radius-xl);
      border: 1px solid rgba(148,163,184,0.4);
      box-shadow: var(--shadow-soft);
      padding: 18px 18px 16px;
      position: relative;
      overflow: hidden;
    }

    .hero-card::before {
      content: "";
      position: absolute;
      inset: -40%;
      background: radial-gradient(circle at 10% 0, rgba(56,189,248,0.18), transparent 55%),
                  radial-gradient(circle at 90% 10%, rgba(139,92,246,0.18), transparent 55%);
      opacity: 0.8;
      pointer-events: none;
    }

    .hero-card-inner {
      position: relative;
      z-index: 1;
    }

    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      font-size: 12px;
      color: var(--muted);
    }

    .card-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 8px;
      border-radius: 999px;
      background: rgba(15,23,42,0.9);
      border: 1px solid rgba(148,163,184,0.4);
    }

    .pill-dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: #4ade80;
    }

    .diagram {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 14px;
      font-size: 11px;
    }

    .diagram-node {
      background: radial-gradient(circle at top, rgba(15,23,42,0.9), rgba(15,23,42,0.7));
      border-radius: 14px;
      padding: 10px 9px;
      border: 1px solid rgba(148,163,184,0.4);
      position: relative;
      overflow: hidden;
    }

    .diagram-node-title {
      font-size: 11px;
      margin-bottom: 4px;
    }

    .diagram-node-label {
      font-size: 10px;
      color: var(--muted);
    }

    .diagram-node-badge {
      position: absolute;
      top: 8px;
      right: 8px;
      font-size: 9px;
      padding: 2px 6px;
      border-radius: 999px;
      background: rgba(15,23,42,0.9);
      border: 1px solid rgba(148,163,184,0.5);
      color: var(--muted);
    }

    .card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 11px;
      color: var(--muted);
      margin-top: 6px;
    }

    .card-footer span strong {
      color: #e5e7eb;
    }

    .pill-mini {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 7px;
      border-radius: 999px;
      background: rgba(15,23,42,0.9);
      border: 1px solid rgba(148,163,184,0.4);
      font-size: 10px;
    }

    .tiny-dot {
      width: 4px;
      height: 4px;
      border-radius: 999px;
      background: var(--accent);
    }

    /* SECTIONS */
    section.section {
      margin-top: 40px;
      padding: 26px 18px 22px;
      border-radius: var(--radius-lg);
      background: rgba(15,23,42,0.8);
      border: 1px solid var(--border);
    }

    .section-title {
      font-size: 18px;
      margin-bottom: 14px;
    }

    .section-subtitle {
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 16px;
    }

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

    @media (max-width: 840px) {
      .features-grid {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    .feature-card {
      background: var(--bg-alt);
      border-radius: 14px;
      padding: 12px 11px 11px;
      border: 1px solid var(--border);
      font-size: 13px;
    }

    .feature-title {
      font-size: 13px;
      margin-bottom: 6px;
    }

    .feature-body {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.5;
    }

    .feature-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      margin-bottom: 6px;
      color: var(--muted);
    }

    .feature-tag span.dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: var(--accent);
    }

    .code-block {
      margin-top: 10px;
      background: #020617;
      border-radius: 10px;
      border: 1px solid var(--border);
      padding: 10px 12px;
      font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
      font-size: 12px;
      overflow-x: auto;
      color: #e5e7eb;
    }

    .code-comment {
      color: #6b7280;
    }

    /* FOOTER */
    footer {
      margin-top: 26px;
      padding: 18px 8px 0;
      font-size: 11px;
      color: var(--muted);
      text-align: center;
      border-top: 1px solid rgba(31,41,55,0.9);
    }

    footer a {
      color: #9ca3ff;
    }

    /* EXAMPLE PAGE: Tic-Tac-Toe */
    .ttt-body {
      background: radial-gradient(circle at top, #0f172a, #060915 55%, #020617 100%);
    }

    .ttt-page {
      width: 80%;
      max-width: 1200px;
      padding-top: 28px;
    }

    .ttt-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 18px;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      font-size: 12px;
      border-radius: 999px;
      border: 1px solid rgba(148,163,184,0.4);
      background: rgba(15,23,42,0.9);
      color: #cbd5e1;
    }

    .pill .dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: linear-gradient(120deg, #22c55e, #4c7fff);
      box-shadow: 0 0 10px rgba(76,127,255,0.6);
    }

    .link-row {
      display: flex;
      gap: 12px;
      margin-top: 10px;
      flex-wrap: wrap;
    }

    .btn-inline {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 12px;
      border-radius: 999px;
      border: 1px solid rgba(148,163,184,0.5);
      background: rgba(15,23,42,0.9);
      color: var(--text);
      font-size: 13px;
      transition: all 0.12s ease-out;
    }

    .btn-inline:hover {
      border-color: var(--accent);
      color: #e5e7eb;
    }

    .example-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
    }

    .ttt-media {
      position: relative;
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: linear-gradient(150deg, rgba(76,127,255,0.12), rgba(139,92,246,0.12));
      min-height: 260px;
      display: grid;
      place-items: center;
      color: #e5e7eb;
      text-align: center;
    }

    .ttt-media::after {
      content: "Screenshot placeholder";
      font-size: 13px;
      color: var(--muted);
      letter-spacing: 0.4px;
    }

    .back-link {
      color: var(--muted);
      font-size: 12px;
    }

    .back-link:hover {
      color: var(--text);
      text-decoration: underline;
    }

    /* EXAMPLE PAGE: DynaSphere Audio Visualizator */
    .dyn-body {
      background: radial-gradient(circle at 20% 0, #13223d, #070b1d 55%, #030510 100%);
    }

    .dyn-page {
      width: 80%;
      max-width: 1200px;
      padding-top: 28px;
    }

    .dyn-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 18px;
    }

    .dyn-media {
      position: relative;
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: radial-gradient(circle at 30% 30%, rgba(76,127,255,0.18), transparent 55%),
                  radial-gradient(circle at 80% 10%, rgba(16,185,129,0.16), transparent 60%),
                  #0a0f1f;
      min-height: 260px;
      display: grid;
      place-items: center;
      color: #e5e7eb;
      text-align: center;
    }

    .dyn-media::after {
      content: "Screenshot";
      font-size: 13px;
      color: var(--muted);
      letter-spacing: 0.4px;
    }
