/* styles.css */
:root{
  --bg: #0b0e14;
  --panel: #121826;
  --panel2: #0f1522;
  --text: #e8eefc;
  --muted: #a9b4cc;
  --line: rgba(232,238,252,.12);
  --accent: #7aa7ff;
  --accent2: #f5cf6b;

  --wrap: 1120px;
  --r: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(122,167,255,.18), transparent 55%),
    radial-gradient(900px 500px at 80% 25%, rgba(245,207,107,.12), transparent 60%),
    linear-gradient(180deg, #070a10 0%, var(--bg) 30%, #070a10 100%);
  color: var(--text);
  line-height: 1.65;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: .2em; }

.wrap{ width:min(var(--wrap), calc(100% - 32px)); margin:0 auto; }

.skiplink{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skiplink:focus{
  left:16px; top:16px; width:auto; height:auto; padding:10px 12px;
  background:#000; border:1px solid var(--line); border-radius:10px; z-index:9999;
}

.site-header{
  position: sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(9,12,18,.72);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand{ display:flex; align-items:center; gap: 12px; min-width: 240px; }
.brand-title{ margin:0; font-weight: 750; letter-spacing: .02em; }
.brand-sub{ margin:0; font-size: 12px; color: var(--muted); }

.nav{
  display:flex; flex-wrap:wrap;
  gap: 10px 14px;
  justify-content:flex-end;
}
.nav a{
  font-size: 12px;
  letter-spacing: .08em;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
}
.nav a:hover{
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.03);
  text-decoration:none;
}

.hero{ padding: 28px 0 10px; }
.hero-inner{ display:grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: stretch; }
.hero-media{ min-height: 360px; }
.hero-copy{ display:flex; flex-direction:column; gap: 10px; }
.catch{ margin:0; color: var(--accent2); letter-spacing: .04em; }
.h1{ margin:0; font-size: clamp(22px, 3vw, 32px); line-height: 1.2; }
.lead{ margin:0; color: var(--muted); }

.quickfacts{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-top: 6px;
}
.qf{
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.qf-k{ margin:0; font-size: 12px; color: var(--muted); }
.qf-v{ margin:0; font-weight: 650; }

.cta{ display:flex; gap: 10px; margin-top: 6px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(122,167,255,.45);
  background: rgba(122,167,255,.12);
  box-shadow: var(--shadow);
  font-weight: 650;
}
.btn.ghost{
  border-color: var(--line);
  background: rgba(255,255,255,.03);
  box-shadow:none;
}
.btn:hover{ text-decoration:none; filter: brightness(1.05); }

.note{ margin: 6px 0 0; font-size: 12px; color: var(--muted); }

.section{ padding: 26px 0; }
.section-head{ margin-bottom: 12px; }
.h2{ margin:0; letter-spacing: .10em; font-size: 14px; color: var(--muted); }
.sub{ margin: 6px 0 0; font-size: 16px; }

.grid{ display:grid; gap: 12px; }
.grid.two{ grid-template-columns: repeat(2, minmax(0,1fr)); margin-bottom: 1.1rem;}

.panel{
  background: rgba(18,24,38,.72);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 14px;
  box-shadow: var(--shadow);
}
.h3{ margin: 0 0 6px; font-size: 15px; }
.caption{ margin: 10px 0 0; font-size: 12px; color: var(--muted); }

.list{ margin: 8px 0 0 1.1em; }
.list.compact{ margin-top: 6px; }
.list li{ margin: 4px 0; color: var(--muted); }

.table-wrap{ overflow:auto; }
.table{
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}
.table th, .table td{
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th{
  text-align:left;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  background: rgba(255,255,255,.02);
}
.table td{ color: var(--text); }
.table td:nth-child(1){ width: 110px; color: var(--accent2); font-weight: 700; }
.table td:nth-child(2){ width: 280px; font-weight: 650; }
.table td:nth-child(3){ color: var(--muted); }

.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.card{
  background: rgba(18,24,38,.72);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow:hidden;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction: column;
}
.card-body{ padding: 12px 12px 14px; display:flex; flex-direction: column; gap: 6px; }
.card-title{ margin:0; font-size: 16px; display:flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.card-sub{ margin:0; color: var(--muted); font-size: 13px; }
.tag{
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.media{
  border-bottom: 1px solid var(--line);
}
.img-placeholder{
  position: relative;
  width: 100%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0, rgba(255,255,255,.07) 10px, rgba(255,255,255,.03) 10px, rgba(255,255,255,.03) 20px);
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(232,238,252,.75);
  font-size: 12px;
  letter-spacing: .06em;
}
.img-placeholder::after{
  content: attr(data-img-id);
  position:absolute;
  left: 10px; top: 10px;
  font-size: 11px;
  color: rgba(232,238,252,.7);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0,0,0,.25);
}
.img-placeholder.kv{ aspect-ratio: 16 / 9; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); }
.img-placeholder.map{ aspect-ratio: 14 / 9; border-radius: 12px; }
.img-placeholder.logo{
  width: 180px;
  aspect-ratio: 10 / 3;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.card-media.img-placeholder{ aspect-ratio: 3 / 4; }

.swatch{
  width: 100%;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(122,167,255,.65), rgba(245,207,107,.55), rgba(170,120,255,.55));
  margin-top: 4px;
}

.to-top{ margin: 14px 0 0; color: var(--muted); }
.to-top a{ padding: 8px 10px; display:inline-block; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); }

.site-footer{
  border-top: 1px solid var(--line);
  background: rgba(9,12,18,.72);
}
.footer-inner{ padding: 16px 0; }
.small{ margin:0; font-size: 12px; color: var(--muted); }

@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .quickfacts{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .brand{ min-width: unset; }
}
@media (max-width: 640px){
  .grid.two{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .nav{ display:none; }
}
