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

    :root {
      --bg:        #0a0b11;
      --surface:   #141520;
      --surface2:  #1a1b26;
      --border:    #252636;
      --accent:    #8b5cf6;
      --text:      #e8e8ed;
      --muted:     #5a5a6e;
      --label:     #8a8a9e;
      --radius:    12px;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      font-size: 16px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    .container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--bg);
      border-bottom: 1px solid rgba(37, 38, 54, 0.4);
    }
    .nav-inner {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      height: 56px;
      padding: 0 16px;
    }
    .nav-logo {
      display: flex;
      align-items: center;
      text-decoration: none;
    }
    .nav-logo img {
      height: 44px;
      width: auto;
      border-radius: 50%;
    }
    .nav-links {
      display: flex;
      align-items: center;
      justify-self: center;
      gap: 20px;
    }
    .nav-link {
      font-size: 14px;
      color: var(--label);
      text-decoration: none;
      font-weight: 500;
      padding: 6px 12px;
      border-radius: 6px;
      transition: color 0.15s;
    }
    .nav-link:hover,
    .nav-link.active { color: var(--text); }
    .nav-right {
      justify-self: end;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 14px;
      font-weight: 600;
      padding: 8px 18px;
      border-radius: 7px;
      text-decoration: none;
      cursor: pointer;
      transition: opacity 0.15s, background 0.15s;
      border: none;
      font-family: inherit;
    }
    .btn-primary {
      background: var(--accent);
      color: #fff;
    }
    .btn-primary:hover { opacity: 0.9; }
    .btn-ghost {
      background: transparent;
      color: var(--label);
      border: 1px solid var(--border);
    }
    .btn-ghost:hover { color: var(--text); border-color: #4a4a5a; }

    /* ── RESOURCES DROPDOWN ── */
    .nav-dropdown-wrap { position: relative; display: flex; }
    .nav-dropdown-trigger {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      font-family: inherit;
    }
    .nav-dropdown-trigger svg { width: 11px; height: 11px; transition: transform 0.15s; }
    .nav-dropdown-wrap:hover .nav-dropdown-trigger svg,
    .nav-dropdown-wrap:focus-within .nav-dropdown-trigger svg { transform: rotate(180deg); }
    .nav-dropdown {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      padding-top: 10px;
      display: none;
      z-index: 110;
    }
    .nav-dropdown-wrap:hover .nav-dropdown,
    .nav-dropdown-wrap:focus-within .nav-dropdown { display: block; }
    .nav-dropdown-panel {
      display: flex;
      flex-direction: column;
      min-width: 176px;
      padding: 8px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
    }
    .nav-dropdown-link {
      padding: 9px 12px;
      border-radius: 7px;
      color: var(--label);
      font-size: 14px;
      font-weight: 500;
      text-decoration: none;
      transition: color 0.15s, background 0.15s;
    }
    .nav-dropdown-link:hover {
      color: var(--text);
      background: rgba(255, 255, 255, 0.04);
    }
    .nav-dropdown-link.active { color: var(--text); }

    /* ── BLOG INDEX ── */
    .blog-page {
      max-width: 960px;
      margin: 0 auto;
      padding: 96px 0 120px;
    }
    .blog-header { margin-bottom: 64px; }
    .blog-header h1 {
      font-size: clamp(36px, 5vw, 52px);
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.05;
      margin-bottom: 14px;
    }
    .blog-sub {
      font-size: 16px;
      color: var(--label);
    }
    .post-row {
      display: grid;
      grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
      gap: 48px;
      align-items: center;
      padding: 56px 0;
      border-top: 1px solid var(--border);
      text-decoration: none;
    }
    .post-row:last-child { border-bottom: 1px solid var(--border); }
    .post-row-image {
      width: 100%;
      height: auto;
      border-radius: var(--radius);
    }
    .post-row-date {
      display: block;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 14px;
    }
    .post-row-body h2 {
      font-size: clamp(24px, 3vw, 32px);
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.15;
      color: var(--text);
      margin-bottom: 16px;
    }
    .post-row-body p {
      font-size: 15px;
      color: var(--label);
      line-height: 1.7;
      margin-bottom: 22px;
    }
    .post-row-footer {
      display: flex;
      align-items: center;
      gap: 18px;
      font-size: 14px;
      font-weight: 500;
      color: var(--label);
    }
    .post-row-read { transition: color 0.15s; }
    .post-row:hover .post-row-read { color: var(--text); }

    /* ── BLOG POST ── */
    .post-page { padding: 72px 0 110px; }
    .post-page article {
      max-width: 760px;
      margin: 0 auto;
    }
    .post-back {
      display: inline-block;
      font-size: 14px;
      color: var(--muted);
      text-decoration: none;
      margin-bottom: 48px;
      transition: color 0.15s;
    }
    .post-back:hover { color: var(--text); }
    .post-meta {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 14px;
      color: var(--label);
      margin-bottom: 18px;
    }
    .post-meta-sep { color: var(--muted); }
    .post-page h1 {
      font-size: clamp(32px, 5.4vw, 48px);
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.1;
      margin-bottom: 40px;
      text-wrap: balance;
    }
    .post-hero {
      display: block;
      width: 100%;
      height: auto;
      border-radius: var(--radius);
      margin-bottom: 48px;
    }

    .post-body p {
      font-size: 16px;
      color: #c5c5d2;
      line-height: 1.8;
      margin-bottom: 20px;
    }
    .post-body > p:first-child {
      font-size: 18px;
      color: var(--text);
    }
    .post-body h2 {
      font-size: 24px;
      font-weight: 700;
      letter-spacing: -0.015em;
      line-height: 1.3;
      color: var(--text);
      margin: 42px 0 14px;
    }
    .post-body h3 {
      font-size: 19px;
      font-weight: 650;
      color: var(--text);
      margin: 30px 0 10px;
    }
    .post-body a {
      color: var(--accent);
      text-decoration: none;
    }
    .post-body a:hover { text-decoration: underline; }
    .post-body strong { color: var(--text); font-weight: 650; }
    .post-body em { color: var(--text); }
    .post-body ul,
    .post-body ol {
      margin: 0 0 20px;
      padding-left: 26px;
    }
    .post-body li {
      font-size: 16px;
      color: #c5c5d2;
      line-height: 1.75;
      margin: 7px 0;
    }
    .post-body blockquote {
      margin: 24px 0;
      padding: 4px 0 4px 22px;
      border-left: 2px solid var(--accent);
    }
    .post-body blockquote p { margin-bottom: 0; }
    .post-body img {
      display: block;
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      margin: 28px 0;
    }
    .post-body hr {
      border: none;
      border-top: 1px solid var(--border);
      margin: 36px 0;
    }
    .post-body code {
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 14px;
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 2px 6px;
      color: #d6d6e0;
    }

    footer {
      border-top: 1px solid var(--border);
      padding: 28px 0;
    }
    .footer-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
    }
    .footer-logo { font-size: 15px; font-weight: 700; color: var(--text); text-decoration: none; }
    .footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
    .footer-link { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.15s; }
    .footer-link:hover { color: var(--label); }
    .footer-copy { font-size: 12px; color: var(--muted); }

    @media (max-width: 768px) {
      .blog-page { padding: 56px 0 80px; }
      .post-page { padding: 44px 0 72px; }
      .nav-inner { display: flex; justify-content: space-between; }
      .nav-links { display: none; }
      .nav-right { gap: 8px; }
      .nav-right .btn-ghost { display: none; }
      .blog-header { margin-bottom: 40px; }
      .post-row {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 0;
      }
      .post-back { margin-bottom: 32px; }
      .post-page h1 { margin-bottom: 28px; }
      .post-hero { margin-bottom: 32px; }
      .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    }

    .footer-social {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .footer-social a {
      display: inline-flex;
      color: var(--muted);
      transition: color 0.15s;
    }
    .footer-social a:hover { color: var(--text); }
    .footer-social svg { width: 16px; height: 16px; }
