  :root {
    --bg: #191127;
    --surface: #2a1647;
    --surface2: #1f1232;
    --border: #3a1c63;
    --accent: #883CF0;
    --accent2: #a78bfa;
    --accent3: #7c3aed;
    --text: #e8eaf6;
    --muted: #d6d6d6;
    --card-bg: #23133a;
    --tag-bg: #291a3e;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
  }

  /* NOISE OVERLAY */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
    opacity: 0.4;
  }

  /* NAV */
  nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 64px;
    background: #180f26;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }
  .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.5px;
  }
  .nav-logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 8px;
    display: grid;
    place-items: center;
  }
  .nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
  }
  .nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s;
  }
  .nav-links a:hover, .nav-links a.active { color: var(--text); }
  .nav-cta {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
  }
  .nav-cta:hover { background: #883cf0e0; transform: translateY(-1px); }

  /* HERO */
  .hero {
    position: relative;
    padding: 120px 48px 100px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
  }
  .hero-glow {
    position: absolute;
    top: -100px; left: -100px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(183, 91, 245, 0.15) 0%, transparent 70%);
    pointer-events: none;
  }
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tag-bg);
    border: 1px solid #3a1c63;
    color: var(--accent2);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
  }
  .hero-badge::before { content: '●'; font-size: 8px; color: var(--accent3); animation: pulse 2s infinite; }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

  h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(42px, 6vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
  }
  h1 span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, var(--accent3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero-sub {
    font-size: 18px;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 48px;
    font-weight: 300;
  }
  .hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  .btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(178, 91, 245, 0.4); }
  .btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .btn-secondary:hover { border-color: #5e309d; background: #23133a8f; }

  /* STATS */
  .stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin: 0 48px 80px;
    max-width: 1104px;
    margin-left: auto;
    margin-right: auto;
  }
  .stat {
    background: var(--surface);
    padding: 32px;
    text-align: center;
  }
  .stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
  }
  .stat-label { font-size: 13px; color: var(--muted); font-weight: 400; }

  /* SECTION */
  section { max-width: 1200px; margin: 0 auto; padding: 80px 48px; }
  .section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
  }
  .section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
  }
  .section-sub { color: var(--muted); max-width: 500px; margin-bottom: 48px; }

  /* CARD PREVIEW / BUILDER */
  .builder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
  }
  .builder-left {
    padding: 32px;
    border-right: 1px solid var(--border);
  }
  .builder-right { padding: 32px; background: var(--surface2); }
  .builder-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .builder-label::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 2px;
    background: var(--accent);
  }
  .editor-area {
    background: #0f0818;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #c9d1d9;
    resize: none;
    width: 100%;
    height: 320px;
    outline: none;
    transition: border-color 0.2s;
    line-height: 1.6;
  }
  .editor-area:focus { border-color: var(--accent); }
  .render-btn {
    margin-top: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
    width: 100%;
  }
  .render-btn:hover { background: #883cf0e0; }

  /* ADAPTIVE CARD RENDER */
  .ac-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    color: #1a1a2e;
    font-family: 'DM Sans', sans-serif;
    min-height: 160px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }
  .ac-title { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 8px; }
  .ac-body { font-size: 14px; color: #444; line-height: 1.5; margin-bottom: 16px; }
  .ac-actions { display: flex; gap: 8px; flex-wrap: wrap; }
  .ac-btn {
    background: #883CF0;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
  }
  .ac-btn:hover { background: #883cf0e0; transform: translateY(-1px); }
  .ac-btn.destructive { background: #ef4444; }
  .ac-btn.secondary { background: transparent; border: 1px solid #ddd; color: #333; }
  .ac-fact-set { border-top: 1px solid #eee; margin-top: 12px; padding-top: 12px; }
  .ac-fact { display: flex; gap: 12px; font-size: 13px; margin-bottom: 4px; }
  .ac-fact-title { font-weight: 600; color: #333; min-width: 100px; }
  .ac-fact-value { color: #666; }
  .ac-image { width: 100%; border-radius: 8px; margin-bottom: 12px; background: linear-gradient(135deg, #f0f4ff, #e8eaf6); height: 120px; display: flex; align-items: center; justify-content: center; font-size: 32px; }

  /* CARD TYPE TABS */
  .tab-bar {
    display: flex;
    gap: 4px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .tab {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
  }
  .tab.active { background: var(--accent); color: #fff; }
  .tab:hover:not(.active) { background: var(--border); color: var(--text); }

  /* FEATURES GRID */
  .features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
  }
  .feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.25s;
    cursor: default;
  }
  .feature-card:hover {
    border-color: #5e309d;
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  }
  .feature-icon {
    width: 48px; height: 48px;
    background: var(--tag-bg);
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 22px;
    margin-bottom: 16px;
  }
  .feature-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 17px; margin-bottom: 8px; }
  .feature-text { color: var(--muted); font-size: 14px; line-height: 1.6; }

  /* PLATFORMS */
  .platforms {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
  }
  .platform-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: default;
  }
  .platform-chip:hover { border-color: #5e309d; background: var(--tag-bg); }
  .platform-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent3); }

  /* SCHEMA EXPLORER */
  .schema-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    margin-top: 32px;
  }
  .schema-list {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
  }
  .schema-item {
    padding: 12px 20px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s;
    font-family: 'IBM Plex Mono', monospace;
  }
  .schema-item:last-child { border-bottom: none; }
  .schema-item:hover, .schema-item.active {
    background: var(--tag-bg);
    color: var(--accent2);
  }
  .schema-type {
    font-size: 10px;
    background: #1f1232;
    color: var(--accent3);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
  }
  .schema-detail {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
  }
  .schema-detail h3 {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
  }
  .schema-desc { color: var(--muted); margin-bottom: 24px; font-size: 14px; }
  .prop-table { width: 100%; border-collapse: collapse; }
  .prop-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
  }
  .prop-table td {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid #3a1c63;
    vertical-align: top;
  }
  .prop-name { font-family: 'IBM Plex Mono', monospace; color: var(--accent2); }
  .prop-type { font-family: 'IBM Plex Mono', monospace; color: var(--accent3); font-size: 12px; }
  .prop-req { color: #ef4444; font-size: 11px; font-weight: 700; }

  /* USE CASE CARDS */
  .use-cases {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
  }
  .use-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s;
  }
  .use-card:hover {
    border-color: #5e309d;
    transform: translateY(-2px);
  }
  .use-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
  }
  .use-emoji { font-size: 24px; }
  .use-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 17px; }
  .use-platform { font-size: 12px; color: var(--muted); }
  .use-body { padding: 20px 24px; }
  .use-mini-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    color: #111;
    font-size: 13px;
  }
  .use-mini-title { font-weight: 700; margin-bottom: 6px; color: #111; font-size: 15px; }
  .use-mini-text { color: #666; margin-bottom: 12px; font-size: 13px; }
  .use-mini-row { display: flex; gap: 8px; }
  .use-mini-btn { background: #883CF0; color: #fff; border: none; padding: 6px 12px; border-radius: 5px; font-size: 12px; font-weight: 600; cursor: pointer; }
  .use-mini-btn.ghost { background: transparent; border: 1px solid #ddd; color: #333; }

  /* CODE SNIPPET */
  .code-block {
    background: #0f0818;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
  }
  .code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted);
    font-family: 'IBM Plex Mono', monospace;
  }
  .code-dots { display: flex; gap: 6px; }
  .code-dot { width: 10px; height: 10px; border-radius: 50%; }
  .code-body {
    padding: 20px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    line-height: 1.7;
    overflow-x: auto;
    color: #c9d1d9;
  }
  .k { color: #ff7b72; } /* keyword */
  .s { color: #a5d6ff; } /* string */
  .n { color: #d2a8ff; } /* property name */
  .v { color: #79c0ff; } /* value */
  .c { color: #8b949e; } /* comment */
  .b { color: #ffa657; } /* boolean */

  /* DIVIDER */
  .divider {
    height: 1px;
    background: var(--border);
    margin: 0 48px;
  }

  /* FOOTER */
  footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
  }

  /* NOTIFICATION */
  .toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--surface);
    border: 1px solid var(--accent);
    color: var(--text);
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    z-index: 1000;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
  }
  .toast.show { transform: translateY(0); opacity: 1; }

  /* SCROLL ANIMATIONS */
  .reveal { opacity: 0; transform: translateY(24px); transition: all 0.6s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  @media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-links { display: none; }
    section { padding: 48px 20px; }
    .hero { padding: 80px 20px 60px; }
    .stats { grid-template-columns: repeat(2, 1fr); margin: 0 20px 48px; }
    .builder { grid-template-columns: 1fr; }
    .builder-left { border-right: none; border-bottom: 1px solid var(--border); }
    .features { grid-template-columns: 1fr; }
    .schema-grid { grid-template-columns: 1fr; }
    .use-cases { grid-template-columns: 1fr; }
    h1 { font-size: 36px; }
    .divider { margin: 0 20px; }
    footer { padding: 32px 20px; flex-direction: column; gap: 12px; text-align: center; }
  }