:root {
    --navy: #0d1117;
    --navy2: #161b22;
    --navy3: #1f2937;
    --pixel-yellow: #ffd700;
    --pixel-green: #39d353;
    --pixel-red: #ff4757;
    --pixel-blue: #58a6ff;
    --pixel-purple: #a78bfa;
    --pixel-orange: #ff7043;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.18);
    --card-bg: #161b22;
    --card-hover: #1c2330;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { background: var(--navy); color: var(--text); font-family: 'DM Sans', sans-serif; line-height: 1.6; overflow-x: hidden; }

  /* -- HEADER -- */
  header { position: sticky; top: 0; z-index: 200; background: rgba(13,17,23,0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
  .header-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; height: 64px; display: flex; align-items: center; gap: 2rem; }
  .logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; }
  .logo-icon { width: 36px; height: 36px; background: var(--pixel-yellow); display: flex; align-items: center; justify-content: center; font-family: 'Press Start 2P', monospace; font-size: 0.55rem; color: var(--navy); border-radius: 4px; flex-shrink: 0; box-shadow: 3px 3px 0 rgba(255,215,0,0.3); }
  .logo-wordmark { font-family: 'Press Start 2P', monospace; font-size: 0.72rem; color: var(--text); line-height: 1.5; }
  .logo-wordmark .y { color: var(--pixel-yellow); }
  nav { display: flex; align-items: center; gap: 0.2rem; margin-left: auto; }
  nav a { font-size: 0.84rem; font-weight: 500; color: var(--text-muted); text-decoration: none; padding: 0.4rem 0.85rem; border-radius: 6px; transition: all 0.15s; }
  nav a:hover { color: var(--text); background: rgba(255,255,255,0.07); }
  nav a.active { color: var(--text); background: rgba(255,255,255,0.07); }
  .nav-cta { background: var(--pixel-yellow) !important; color: var(--navy) !important; font-weight: 600 !important; margin-left: 0.4rem; }
  .nav-cta:hover { background: #ffe333 !important; transform: translateY(-1px); }
  .hdr-search { position: relative; display: flex; align-items: center; margin-left: 1rem; }
  .hdr-search input { background: var(--navy2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.85rem; padding: 0.45rem 2.4rem 0.45rem 0.9rem; width: 200px; outline: none; transition: border-color 0.2s, width 0.3s; }
  .hdr-search input:focus { border-color: var(--pixel-yellow); width: 260px; }
  .hdr-search input::placeholder { color: var(--text-muted); }
  .hdr-search .s-ico { position: absolute; right: 0.7rem; width: 15px; height: 15px; color: var(--text-muted); pointer-events: none; }

  /* -- HAMBURGER -- */
  .hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 38px; height: 38px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 7px; cursor: pointer; padding: 0 10px; margin-left: auto; flex-shrink: 0; transition: border-color 0.15s; }
  .hamburger:hover { border-color: var(--pixel-yellow); }
  .hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.25s; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* -- MOBILE DRAWER -- */
  .mobile-drawer { display: none; position: fixed; top: 64px; left: 0; right: 0; background: rgba(13,17,23,0.98); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); z-index: 199; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
  .mobile-drawer.open { opacity: 1; transform: translateY(0); pointer-events: all; }
  .mobile-drawer-inner { max-width: 1280px; margin: 0 auto; padding: 1rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.3rem; }
  .mobile-drawer a { display: flex; align-items: center; font-size: 1rem; font-weight: 500; color: var(--text-muted); text-decoration: none; padding: 0.75rem 0.85rem; border-radius: 8px; transition: all 0.12s; border: 1px solid transparent; }
  .mobile-drawer a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
  .mobile-drawer .mob-cta { background: var(--pixel-yellow); color: var(--navy) !important; font-weight: 700; margin-top: 0.4rem; border-color: var(--pixel-yellow) !important; font-family: 'Press Start 2P', monospace; font-size: 0.6rem; letter-spacing: 0.05em; justify-content: center; }
  .mobile-drawer .mob-cta:hover { background: #ffe333; }
  .mobile-drawer-search { display: flex; gap: 0.5rem; padding: 0 0.85rem; margin-bottom: 0.5rem; }
  .mobile-drawer-search input { flex: 1; background: var(--navy2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; padding: 0.55rem 0.9rem; outline: none; transition: border-color 0.2s; }
  .mobile-drawer-search input:focus { border-color: var(--pixel-yellow); }
  .mobile-drawer-divider { height: 1px; background: var(--border); margin: 0.5rem 0.85rem; }

  /* -- BREADCRUMB -- */
  .breadcrumb-bar { background: var(--navy2); border-bottom: 1px solid var(--border); padding: 0.6rem 2rem; }
  .breadcrumb { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-muted); }
  .breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.12s; }
  .breadcrumb a:hover { color: var(--pixel-yellow); }
  .breadcrumb .sep { color: rgba(255,255,255,0.2); }
  .breadcrumb .current { color: var(--text); font-weight: 500; }

  /* -- PAGE LAYOUT -- */
  .page { max-width: 1280px; margin: 0 auto; padding: 2.5rem 2rem 5rem; display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
  .main { min-width: 0; }

  /* -- PAGE HEADING -- */
  .page-heading { margin-bottom: 2rem; animation: fadeUp 0.4s ease both; }
  .page-tag { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(88,166,255,0.08); border: 1px solid rgba(88,166,255,0.2); color: var(--pixel-blue); font-family: 'Press Start 2P', monospace; font-size: 0.44rem; letter-spacing: 0.12em; padding: 0.4rem 0.8rem; border-radius: 4px; margin-bottom: 1rem; }
  .page-h1 { font-family: 'Press Start 2P', monospace; font-size: clamp(0.9rem, 2.2vw, 1.4rem); color: var(--text); line-height: 1.5; margin-bottom: 0.75rem; }
  .page-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; }

  /* -- NOTICE -- */
  .notice {
    display: flex; align-items: flex-start; gap: 0.75rem;
    background: rgba(255,215,0,0.05); border: 1px solid rgba(255,215,0,0.18);
    border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 2rem;
    font-size: 0.85rem; color: var(--text-muted); line-height: 1.65;
    animation: fadeUp 0.4s 0.05s ease both;
  }
  .notice-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
  .notice a { color: var(--pixel-yellow); text-decoration: none; font-weight: 500; }
  .notice a:hover { text-decoration: underline; }

  /* -- CONTACT FORM -- */
  .contact-form-wrap {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 14px; padding: 2rem;
    animation: fadeUp 0.4s 0.1s ease both;
  }
  .form-title { font-family: 'Press Start 2P', monospace; font-size: 0.58rem; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 1.75rem; display: flex; align-items: center; gap: 0.5rem; }
  .form-title::before { content:''; display:block; width:8px; height:8px; background:var(--pixel-blue); flex-shrink:0; }

  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
  .form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
  .form-field label { font-size: 0.78rem; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
  .form-field .field-hint { font-size: 0.72rem; color: var(--text-muted); }
  .form-field input,
  .form-field textarea,
  .form-field select {
    background: var(--navy); border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
    padding: 0.65rem 0.9rem; outline: none; width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .form-field input:focus,
  .form-field textarea:focus,
  .form-field select:focus {
    border-color: var(--pixel-blue);
    box-shadow: 0 0 0 3px rgba(88,166,255,0.1);
  }
  .form-field input::placeholder,
  .form-field textarea::placeholder { color: rgba(255,255,255,0.2); }
  .form-field textarea { resize: vertical; min-height: 160px; line-height: 1.65; }
  .form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; cursor: pointer; }
  .form-field select option { background: var(--navy2); }

  /* Captcha row */
  .captcha-row { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
  .captcha-box { background: var(--navy3); border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; flex-shrink: 0; }
  .captcha-box img { display: block; border-radius: 4px; }
  .captcha-refresh { font-size: 0.72rem; color: var(--pixel-blue); cursor: pointer; text-decoration: none; transition: color 0.12s; }
  .captcha-refresh:hover { color: var(--pixel-yellow); }
  .captcha-input-wrap { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
  .captcha-input-wrap label { font-size: 0.78rem; font-weight: 600; color: var(--text); }
  .captcha-input-wrap input { background: var(--navy); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: 'DM Mono', monospace; font-size: 1rem; padding: 0.65rem 0.9rem; outline: none; width: 100%; max-width: 180px; transition: border-color 0.15s, box-shadow 0.15s; letter-spacing: 0.12em; }
  .captcha-input-wrap input:focus { border-color: var(--pixel-blue); box-shadow: 0 0 0 3px rgba(88,166,255,0.1); }

  /* Honeypot — hidden from real users */
  .hp { display: none !important; }

  /* Submit row */
  .form-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
  .form-note { font-size: 0.78rem; color: var(--text-muted); }
  .form-note a { color: var(--pixel-blue); text-decoration: none; }
  .submit-btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: var(--pixel-blue); color: var(--navy);
    font-family: 'Press Start 2P', monospace; font-size: 0.54rem;
    padding: 0.85rem 1.6rem; border: none; border-radius: 8px;
    cursor: pointer; letter-spacing: 0.06em; font-weight: 700;
    box-shadow: 0 4px 0 rgba(40,100,180,0.5); transition: all 0.15s;
    flex-shrink: 0;
  }
  .submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(40,100,180,0.5); }
  .submit-btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(40,100,180,0.5); }

  /* Success / error states */
  .form-success {
    display: none; background: rgba(57,211,83,0.07); border: 1px solid rgba(57,211,83,0.25);
    border-radius: 10px; padding: 1.4rem 1.6rem; text-align: center;
    margin-top: 1.5rem;
  }
  .form-success .fs-icon { font-size: 2rem; margin-bottom: 0.5rem; }
  .form-success h3 { font-family: 'Press Start 2P', monospace; font-size: 0.65rem; color: var(--pixel-green); margin-bottom: 0.5rem; letter-spacing: 0.06em; }
  .form-success p { font-size: 0.85rem; color: var(--text-muted); }

  /* -- SIDEBAR -- */
  .sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 1.25rem; animation: fadeUp 0.4s 0.15s ease both; }
  .sb { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
  .sb-hd { display: flex; align-items: center; gap: 0.55rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); }
  .sb-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 1px; }
  .sb-hd h3 { font-family: 'Press Start 2P', monospace; font-size: 0.52rem; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; }
  .sb-bd { padding: 0.9rem 1rem; }

  /* Info list */
  .info-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
  .info-list li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.83rem; color: var(--text-muted); line-height: 1.55; }
  .info-list li .ic { font-size: 1rem; flex-shrink: 0; margin-top: 0.05rem; }
  .info-list li a { color: var(--pixel-blue); text-decoration: none; }
  .info-list li a:hover { text-decoration: underline; }

  /* Quick links */
  .qlinks { list-style: none; display: flex; flex-direction: column; }
  .qlinks a { display: flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.55rem; border-radius: 5px; color: var(--text-muted); text-decoration: none; font-size: 0.83rem; transition: all 0.12s; }
  .qlinks a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
  .qlinks .ic { font-size: 0.9rem; width: 20px; text-align: center; flex-shrink: 0; }

  /* -- FOOTER -- */
  footer { background: var(--navy2); border-top: 1px solid var(--border); padding: 2.5rem 2rem; }
  .footer-in { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
  .flogo { font-family: 'Press Start 2P', monospace; font-size: 0.68rem; color: var(--text-muted); }
  .flogo span { color: var(--pixel-yellow); }
  .flinks { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
  .flinks a { font-size: 0.82rem; color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
  .flinks a:hover { color: var(--text); }
  .fcopy { font-size: 0.76rem; color: rgba(255,255,255,0.18); font-family: 'DM Mono', monospace; }

  @keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

  @media(max-width:960px) {
    .page { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .form-row { grid-template-columns: 1fr; }
  }
  @media(max-width:640px) {
    .hamburger { display: flex; }
    .mobile-drawer { display: block; }
    nav { display: none; }
    .hdr-search { display: none; }
    .page { padding: 1.5rem 1.25rem 4rem; }
    .contact-form-wrap { padding: 1.25rem; }
    .form-footer { flex-direction: column; align-items: stretch; }
    .submit-btn { justify-content: center; }
  }