:root {
    --bg: #0c1014;
    --card-bg: #131a22;
    --card-bg-hover: #18212b;
    --white: #f0ebe1;
    --muted: #9a9490;
    --muted-2: #6a6660;
    --line: rgba(240, 235, 225, .1);
    --line-strong: rgba(240, 235, 225, .2);
    --accent: #e8c48a;
    --accent-soft: rgba(232, 196, 138, .14);
    --accent-strong: #f0d1a0;
    --sirius-glow: rgba(180, 215, 255, .75);
  }
  
  * { box-sizing: border-box; }
  
  html, body { overflow-x: hidden; }
  
  body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--white);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeSpeed;
  }
  
  a { color: inherit; text-decoration: none; }
  button { font: inherit; color: inherit; }
  
  .site {
    position: relative;
    min-height: 100svh;
    isolation: isolate;
    background: var(--bg);
  }
  
  .site::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background:
      radial-gradient(ellipse 70% 50% at 55% 52%, rgba(80, 120, 160, .12), transparent 60%),
      radial-gradient(ellipse 50% 40% at 90% 12%, rgba(110, 90, 180, .08), transparent 60%),
      radial-gradient(ellipse 45% 40% at 15% 85%, rgba(180, 140, 80, .05), transparent 60%);
  }
  
  .stars {
    position: fixed; z-index: -2; inset: 0;
    opacity: .55; pointer-events: none;
    background-image:
      radial-gradient(1px 1px at 8% 14%, #fff 45%, transparent 100%),
      radial-gradient(1px 1px at 18% 72%, #fff 45%, transparent 100%),
      radial-gradient(1px 1px at 27% 31%, #fff 45%, transparent 100%),
      radial-gradient(1px 1px at 37% 82%, #fff 45%, transparent 100%),
      radial-gradient(1px 1px at 48% 17%, #fff 45%, transparent 100%),
      radial-gradient(1px 1px at 57% 69%, #fff 45%, transparent 100%),
      radial-gradient(1px 1px at 67% 25%, #fff 45%, transparent 100%),
      radial-gradient(1px 1px at 78% 77%, #fff 45%, transparent 100%),
      radial-gradient(1px 1px at 89% 35%, #fff 45%, transparent 100%),
      radial-gradient(1px 1px at 95% 87%, #fff 45%, transparent 100%);
    background-size: 510px 420px;
  }
  
  .universe {
    position: fixed; z-index: -1;
    top: 50svh; left: 55%;
    width: min(93vw, 1080px); aspect-ratio: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
  .orbit {
    --size: 92%; --speed: 90s; --planet: #a8c5e8;
    position: absolute; top: 50%; left: 50%;
    width: var(--size); aspect-ratio: 1;
    border: 1px solid rgba(200, 220, 240, .12);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: orbit var(--speed) linear infinite;
  }
  .orbit:nth-child(2) { --size: 73%; --speed: 68s; --planet: #c3a8e8; border-style: dashed; border-color: rgba(180, 150, 230, .18); }
  .orbit:nth-child(3) { --size: 55%; --speed: 51s; --planet: #88d4c4; border-color: rgba(120, 210, 190, .2); }
  .orbit:nth-child(4) { --size: 37%; --speed: 37s; --planet: #93c5fd; border-style: dotted; border-color: rgba(140, 180, 240, .22); }
  .orbit:nth-child(5) { --size: 19%; --speed: 25s; --planet: var(--accent); border-color: rgba(232, 196, 138, .3); }
  
  .planet {
    position: absolute; top: 0; left: 50%;
    width: 30px; height: 30px;
    display: grid; place-items: center;
    padding: 0; border: 0; border-radius: 50%;
    background: transparent; cursor: pointer;
    transform: translate(-50%, -50%);
    pointer-events: auto;
  }
  .planet-dot {
    position: relative; width: 11px; height: 11px;
    border: 1px solid var(--planet); border-radius: 50%;
    background: #101821;
    box-shadow: 0 0 15px color-mix(in srgb, var(--planet) 55%, transparent);
    transition: transform .2s, background .2s, box-shadow .2s;
  }
  .planet-dot::after {
    content: ""; position: absolute; inset: -7px;
    border: 1px solid color-mix(in srgb, var(--planet) 40%, transparent);
    border-radius: 50%; opacity: .7;
  }
  .planet:hover .planet-dot,
  .planet.selected .planet-dot {
    transform: scale(1.25);
    background: var(--planet);
    box-shadow: 0 0 26px color-mix(in srgb, var(--planet) 80%, transparent);
  }
  
  .system-core {
    position: absolute; top: 50%; left: 50%;
    width: 24px; height: 24px; border-radius: 50%;
    background:
      radial-gradient(circle at 50% 50%,
        #ffffff 0%, #eaf2ff 18%, #cfe2ff 38%,
        #a8c5ff 62%, rgba(150, 180, 255, .28) 82%, transparent 100%);
    box-shadow:
      0 0 18px 6px rgba(255, 255, 255, .85),
      0 0 42px 16px var(--sirius-glow);
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
  
  @keyframes orbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
  }
  
  .header {
    position: relative; z-index: 3;
    height: 76px;
    border-bottom: 1px solid var(--line);
  }
  .header-inner {
    width: min(1400px, calc(100% - 64px)); height: 100%;
    display: flex; align-items: center; justify-content: space-between;
    gap: 25px; margin: auto;
  }
  .brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
  .brand-mark {
    width: 34px; height: 34px; display: grid; place-items: center;
    border: 1px solid rgba(232, 196, 138, .6); border-radius: 50%;
    color: var(--accent); font-size: 14px; font-weight: 700;
  }
  .brand-name {
    font-size: 13px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    color: #e6e0d6;
  }
  .brand-name small {
    display: block; margin-top: 3px;
    color: var(--muted-2); font-size: 11px;
    font-weight: 400; letter-spacing: .08em;
  }
  .nav {
    display: flex; gap: 32px;
    color: #b5ada2; font-size: 14px;
  }
  .nav a { transition: color .3s; }
  .nav a:hover { color: var(--accent); }
  
  .header-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 14px;
    white-space: nowrap;
    transition: color .3s;
  }
  .header-account:hover { color: var(--white); }
  .header-account svg { width: 16px; height: 16px; }
  
  .hero {
    position: relative; z-index: 1;
    width: min(1400px, calc(100% - 64px));
    min-height: calc(100svh - 76px);
    display: flex; align-items: center;
    margin: auto;
    padding: 60px 0;
  }
  .hero-copy { max-width: 1100px; }
  h1 {
    margin: 0;
    font-size: clamp(64px, 10vw, 140px);
    font-weight: 600;
    line-height: .88;
    letter-spacing: -.055em;
    color: #f0ebe1;
  }
  h1 span { display: block; color: var(--accent); }
  .hero-copy p {
    max-width: 620px; margin: 40px 0 0;
    color: #b5ada2;
    font-size: 17px;
    line-height: 1.7;
  }
  
  .market {
    position: relative;
    z-index: 2;
    width: min(1400px, calc(100% - 64px));
    margin: auto;
    padding: 40px 0 120px;
  }
  
  .filter-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 28px;
    margin-bottom: 36px;
    background: rgba(12, 16, 20, .9);
    flex-wrap: wrap;
  }
  
  .chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }
  
  .chip {
    padding: 9px 18px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: color .2s, background-color .2s;
    white-space: nowrap;
  }
  .chip:hover { color: var(--white); }
  .chip.active {
    background: var(--accent-soft);
    color: var(--white);
  }
  
  .chip-type {
    color: var(--muted);
    font-weight: 500;
  }
  .chip-type.active {
    background: rgba(232, 196, 138, .2);
    color: var(--accent);
  }
  
  .divider {
    width: 1px;
    height: 22px;
    background: var(--line-strong);
    flex-shrink: 0;
  }
  
  .market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
  }
  
  .card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 290px;
    padding: 30px 26px 24px;
    border: 0;
    border-radius: 4px;
    background: var(--card-bg);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
    box-shadow: 0 1px 0 rgba(240, 235, 225, .05);
    transform: translateZ(0);
    -webkit-tap-highlight-color: transparent;
  }
  .card:hover {
    transform: translate3d(0, -3px, 0);
    background: var(--card-bg-hover);
    box-shadow:
      0 12px 32px rgba(0, 0, 0, .4),
      0 1px 0 rgba(240, 235, 225, .07);
  }
  
  .card-cat {
    margin-bottom: 20px;
    color: var(--muted-2);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  
  .card-title {
    margin: 0 0 12px;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: #f0ebe1;
    transition: color .2s;
  }
  .card:hover .card-title { color: var(--accent); }
  
  .card-desc {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
  }
  .card-tags span {
    padding: 4px 10px;
    border-radius: 3px;
    background: rgba(240, 235, 225, .06);
    color: var(--muted-2);
    font-size: 11px;
    white-space: nowrap;
  }
  
  .card-bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(240, 235, 225, .08);
  }
  .card-price {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .card-price small {
    color: var(--muted-2);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .card-price strong {
    color: #f0ebe1;
    font-size: 15px;
    font-weight: 500;
  }
  .card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    transition: gap .2s;
  }
  .card:hover .card-link { gap: 12px; }
  
  .market-empty {
    padding: 80px 0;
    text-align: center;
    color: var(--muted);
    font-size: 15px;
    grid-column: 1 / -1;
  }
  
  .finale {
    width: min(1400px, calc(100% - 64px));
    margin: auto;
    padding: 100px 0 120px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 60px;
  }
  .finale p {
    margin: 0;
    max-width: 900px;
    font-size: clamp(26px, 3vw, 44px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -.03em;
    color: #f0ebe1;
  }
  .finale p em { font-style: normal; color: var(--accent); }
  .finale a {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 28px;
    border: 0;
    border-radius: 4px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: background-color .25s, color .25s;
    white-space: nowrap;
  }
  .finale a:hover { background: var(--accent); color: #0c1014; }
  
  .footer {
    position: relative; z-index: 2;
    border-top: 1px solid var(--line);
    padding: 40px max(32px, calc((100vw - 1400px) / 2)) 30px;
    color: var(--muted-2);
    font-size: 12px;
  }
  
  .footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    margin-bottom: 30px;
  }
  
  .footer-brand { max-width: 420px; }
  
  .footer-brand strong {
    display: block;
    color: #e6e0d6;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  
  .footer-brand p {
    margin: 0;
    color: var(--muted-2);
    font-size: 13px;
    line-height: 1.6;
  }
  
  .footer-req {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 30px;
  }
  
  .footer-req .row {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .footer-req .row small {
    color: var(--muted-2);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  
  .footer-req .row span {
    color: #e6e0d6;
    font-size: 13px;
    line-height: 1.4;
  }
  
  .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s ease, transform .8s ease;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  
  html { scroll-behavior: smooth; }
  
  @media (max-width: 900px) {
    .header-inner, .hero, .market, .finale { width: calc(100% - 48px); }
    h1 { font-size: clamp(52px, 11vw, 100px); }
    .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  }
  
  @media (max-width: 650px) {
    .header { height: 64px; }
    .header-inner, .hero, .market, .finale { width: calc(100% - 36px); }
    .nav { display: none; }
    .header-account { font-size: 13px; }
  
    .hero { min-height: calc(100svh - 64px); padding: 40px 0; }
    h1 { font-size: clamp(44px, 13vw, 80px); }
    .hero-copy p { font-size: 15px; margin-top: 24px; }
  
    .market { padding: 20px 0 80px; }
  
    .filter-bar {
      overflow-x: auto;
      overflow-y: hidden;
      flex-wrap: nowrap;
      justify-content: flex-start;
      padding: 14px 16px;
      -webkit-overflow-scrolling: touch;
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    .filter-bar::-webkit-scrollbar { display: none; }
    .chips { flex-wrap: nowrap; justify-content: flex-start; }
    .divider { display: none; }
  
    .market-grid { grid-template-columns: 1fr; gap: 12px; }
    .card { padding: 26px 22px; min-height: auto; }
    .card-title { font-size: 19px; }
  
    .card,
    .card:hover { transform: none; }
    .card:hover { box-shadow: 0 1px 0 rgba(240, 235, 225, .05); }
  
    .finale { grid-template-columns: 1fr; gap: 26px; padding: 70px 0 80px; }
    .finale p { font-size: clamp(22px, 6vw, 32px); }
  
    .footer { padding: 30px 18px 20px; }
    .footer-req { grid-template-columns: 1fr; gap: 14px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 10px; }
  }
  
  @media (max-width: 400px) {
    .brand-name { font-size: 12px; }
    .brand-name small { font-size: 10px; }
    .hero { width: calc(100% - 28px); }
    h1 { font-size: 42px; }
    .card-title { font-size: 17px; }
  }
  
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: .01ms !important;
    }
    .orbit { animation: none; }
  }