/* ── Reset & Base ─────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:        #0a0a0a;
      --bg2:       #111;
      --surface:   #161616;
      --surface2:  #1e1e1e;
      --border:    #252525;
      --border2:   #333;
      --text:      #efefef;
      --text2:     #aaa;
      --muted:     #666;
      --accent:    #c8ff00;
      --accent-dim:#8aac00;
      --radius:    10px;
      --max:       980px;
      --nav-h:     56px;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
    }

    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }

    /* ── Utility ──────────────────────────────────── */
    .container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

    .label {
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .tag {
      display: inline-flex;
      align-items: center;
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      padding: 3px 9px;
      border-radius: 4px;
      border: 1px solid var(--border2);
      color: var(--text2);
      background: var(--surface);
      white-space: nowrap;
    }

    .tag.product  { color: #79e2b0; border-color: #79e2b040; background: #79e2b010; }
    .tag.xr       { color: #7eb8ff; border-color: #7eb8ff40; background: #7eb8ff10; }
    .tag.oss      { color: #c8ff00; border-color: #c8ff0040; background: #c8ff0010; }
    .tag.tool     { color: #e2a97e; border-color: #e2a97e40; background: #e2a97e10; }
    .tag.prototype{ color: #c87eff; border-color: #c87eff40; background: #c87eff10; }

    .ext-link {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 0.78rem;
      color: var(--text2);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 5px 11px;
      transition: color 0.18s, border-color 0.18s;
      white-space: nowrap;
    }
    .ext-link:hover { color: var(--accent); border-color: var(--accent); }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 11px 20px;
      border-radius: 8px;
      font-size: 0.88rem;
      font-weight: 600;
      transition: opacity 0.18s, transform 0.18s;
      cursor: pointer;
    }
    .btn:hover { opacity: 0.85; transform: translateY(-1px); }
    .btn-primary { background: var(--accent); color: #000; }
    .btn-ghost   { border: 1px solid var(--border2); color: var(--text2); }
    .btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

    /* ── Navigation ───────────────────────────────── */
    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      height: var(--nav-h);
      border-bottom: 1px solid var(--border);
      background: rgba(10,10,10,0.92);
      backdrop-filter: blur(12px);
    }

    .nav-inner {
      max-width: var(--max);
      margin: 0 auto;
      padding: 0 24px;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .nav-logo {
      font-size: 1.1rem;
      font-weight: 700;
      letter-spacing: -0.03em;
    }
    .nav-logo span { color: var(--accent); }

    .nav-links {
      display: flex;
      gap: 24px;
      list-style: none;
    }
    .nav-links a {
      font-size: 0.82rem;
      color: var(--text2);
      transition: color 0.15s;
    }
    .nav-links a:hover { color: var(--text); }

    .nav-right { display: flex; align-items: center; gap: 12px; }

    .lang-toggle {
      display: flex;
      gap: 2px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 3px;
    }
    .lang-toggle button {
      background: none;
      border: none;
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 700;
      padding: 3px 9px;
      border-radius: 999px;
      cursor: pointer;
      letter-spacing: 0.06em;
      transition: background 0.15s, color 0.15s;
    }
    .lang-toggle button.active { background: var(--accent); color: #000; }

    @media (max-width: 620px) {
      .nav-links { display: none; }
    }

    /* ── Hero ─────────────────────────────────────── */
    #hero {
      min-height: calc(100svh - var(--nav-h));
      display: flex;
      align-items: center;
      padding: 80px 24px 80px;
      position: relative;
      overflow: hidden;
    }

    .hero-grid {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
      background-size: 40px 40px;
      opacity: 0.25;
      mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    }

    .hero-inner {
      max-width: var(--max);
      margin: 0 auto;
      width: 100%;
      position: relative;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 0.78rem;
      color: var(--text2);
      border: 1px solid var(--border2);
      border-radius: 999px;
      padding: 5px 12px;
      margin-bottom: 28px;
    }
    .hero-badge-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 8px var(--accent);
    }

    .hero-h1 {
      font-size: clamp(2.4rem, 6vw, 4.2rem);
      font-weight: 800;
      letter-spacing: -0.04em;
      line-height: 1.1;
      margin-bottom: 20px;
    }
    .hero-h1 em { font-style: normal; color: var(--accent); }

    .hero-desc {
      font-size: clamp(0.95rem, 2vw, 1.1rem);
      color: var(--text2);
      max-width: 540px;
      margin-bottom: 36px;
      line-height: 1.75;
    }

    .hero-ctas {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 52px;
    }

    .hero-platforms {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }
    .hero-platforms-label {
      font-size: 0.72rem;
      color: var(--muted);
      margin-right: 4px;
    }

    /* ── Section common ───────────────────────────── */
    section { padding: 80px 24px; }
    section:nth-child(even) { background: var(--bg2); }

    .section-header {
      margin-bottom: 40px;
    }
    .section-header h2 {
      font-size: clamp(1.4rem, 3vw, 1.9rem);
      font-weight: 700;
      letter-spacing: -0.025em;
      margin-top: 6px;
    }

    /* ── About ────────────────────────────────────── */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      align-items: start;
    }
    .about-text p {
      color: var(--text2);
      margin-bottom: 16px;
      font-size: 0.97rem;
    }
    .about-text p:last-child { margin-bottom: 0; }
    .about-text strong { color: var(--text); font-weight: 600; }

    .about-areas {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .area-item {
      display: flex;
      gap: 14px;
      align-items: flex-start;
    }
    .area-icon {
      width: 36px; height: 36px;
      border-radius: 8px;
      background: var(--surface2);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      flex-shrink: 0;
    }
    .area-text h4 {
      font-size: 0.88rem;
      font-weight: 600;
      margin-bottom: 2px;
    }
    .area-text p {
      font-size: 0.78rem;
      color: var(--text2);
    }

    @media (max-width: 700px) {
      .about-grid { grid-template-columns: 1fr; gap: 36px; }
    }

    /* ── Works ────────────────────────────────────── */
    .works-filter {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 28px;
    }
    .filter-btn {
      font-size: 0.78rem;
      padding: 5px 12px;
      border-radius: 6px;
      border: 1px solid var(--border);
      color: var(--text2);
      background: none;
      cursor: pointer;
      transition: all 0.15s;
    }
    .filter-btn:hover, .filter-btn.active {
      background: var(--surface2);
      color: var(--text);
      border-color: var(--border2);
    }

    .works-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 16px;
    }

    .work-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 22px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      transition: border-color 0.18s, transform 0.18s;
    }
    .work-card:hover {
      border-color: var(--border2);
      transform: translateY(-2px);
    }

    .work-card-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
    }

    .work-card h3 {
      font-size: 0.95rem;
      font-weight: 600;
      line-height: 1.3;
      margin-top: 6px;
    }

    .work-card p {
      font-size: 0.8rem;
      color: var(--text2);
      flex-grow: 1;
      line-height: 1.6;
    }

    .work-stat {
      font-size: 0.75rem;
      color: var(--accent-dim);
      font-weight: 600;
    }

    .work-links {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      margin-top: 4px;
    }

    /* ── Skills ───────────────────────────────────── */
    .skills-groups {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 24px;
    }

    .skill-group {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px;
    }

    .skill-group h3 {
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 14px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
    }

    .skill-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .skill-chip {
      font-size: 0.8rem;
      padding: 4px 10px;
      border-radius: 6px;
      background: var(--surface2);
      border: 1px solid var(--border);
      color: var(--text2);
    }

    /* ── Press ────────────────────────────────────── */
    .press-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .press-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 18px 22px;
      transition: border-color 0.18s;
    }
    .press-item:hover { border-color: var(--border2); }

    .press-source {
      font-size: 0.72rem;
      font-weight: 700;
      color: var(--muted);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 4px;
    }

    .press-title {
      font-size: 0.9rem;
      font-weight: 500;
      line-height: 1.4;
    }

    @media (max-width: 600px) {
      .press-item { flex-direction: column; align-items: flex-start; }
    }

    /* ── Links ────────────────────────────────────── */
    .links-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 12px;
    }

    .link-card {
      display: flex;
      flex-direction: column;
      gap: 4px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 18px 20px;
      transition: background 0.18s, border-color 0.18s;
    }
    .link-card:hover {
      background: var(--surface2);
      border-color: var(--border2);
    }

    .link-card-name {
      font-size: 0.92rem;
      font-weight: 600;
    }
    .link-card-handle {
      font-size: 0.75rem;
      color: var(--muted);
    }
    .link-card-desc {
      font-size: 0.75rem;
      color: var(--text2);
      margin-top: 6px;
    }

    /* ── Posts ────────────────────────────────────── */
    .posts-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 16px;
      margin-bottom: 28px;
      align-items: start;
    }

    .posts-grid .twitter-tweet {
      margin: 0 !important;
    }

    .posts-more {
      text-align: center;
    }

    /* ── Contact ──────────────────────────────────── */
    #contact {
      text-align: center;
    }

    .contact-inner {
      max-width: 560px;
      margin: 0 auto;
    }

    .contact-inner h2 {
      font-size: clamp(1.5rem, 3.5vw, 2.2rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      margin-bottom: 16px;
    }

    .contact-inner p {
      color: var(--text2);
      font-size: 0.95rem;
      margin-bottom: 28px;
      line-height: 1.75;
    }

    .contact-btns {
      display: flex;
      gap: 10px;
      justify-content: center;
      flex-wrap: wrap;
    }

    /* ── Stats ────────────────────────────────────── */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      margin-top: 32px;
    }
    @media (max-width: 600px) {
      .stats-grid { grid-template-columns: repeat(2, 1fr); }
    }
    .stat-card {
      background: var(--surface);
      padding: 28px 24px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .stat-value {
      font-size: 2rem;
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--text);
      font-variant-numeric: tabular-nums;
    }
    .stat-label {
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .stat-sub {
      font-size: 0.7rem;
      color: var(--muted);
      margin-top: 2px;
    }

    /* ── Footer ───────────────────────────────────── */
    footer {
      border-top: 1px solid var(--border);
      padding: 28px 24px;
      text-align: center;
      font-size: 0.75rem;
      color: var(--muted);
    }
