/* =========================================================
   Cyberspace.co.jp
   site.css
   Theme: dark editorial cyber magazine
   ========================================================= */

:root {
  --bg: #05070d;
  --bg-2: #08111f;
  --panel: rgba(12, 22, 38, 0.78);
  --panel-strong: rgba(16, 31, 54, 0.92);
  --ink: #f4f8ff;
  --muted: #aebbd0;
  --soft: #74849d;
  --line: rgba(120, 190, 255, 0.22);
  --line-strong: rgba(120, 220, 255, 0.42);
  --cyan: #62e7ff;
  --blue: #7aa7ff;
  --violet: #b784ff;
  --green: #6dffbc;
  --pink: #ff77d9;
  --gold: #f4d58d;
  --danger: #ff6f91;

  --max: 1180px;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --glow: 0 0 32px rgba(98, 231, 255, 0.22);

  --font-jp: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --font-ui: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

/* ---------------------------------------------------------
   Base
   --------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(98, 231, 255, 0.15), transparent 32%),
    radial-gradient(circle at 85% 0%, rgba(183, 132, 255, 0.15), transparent 30%),
    radial-gradient(circle at 55% 70%, rgba(109, 255, 188, 0.08), transparent 34%),
    linear-gradient(180deg, #04060b 0%, #07101e 45%, #02040a 100%);
  font-family: var(--font-ui);
  line-height: 1.8;
  letter-spacing: 0.02em;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(98, 231, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 231, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.25), transparent);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 5px
    );
  opacity: 0.28;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1.2rem;
}

strong {
  color: #ffffff;
}

::selection {
  background: rgba(98, 231, 255, 0.34);
  color: #ffffff;
}

/* ---------------------------------------------------------
   Layout helpers
   --------------------------------------------------------- */

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

.section {
  padding: 86px 0;
  position: relative;
}

.section.tight {
  padding: 54px 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--cyan);
  font: 700 0.78rem/1 var(--font-ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  box-shadow: var(--glow);
}

.lead {
  color: #dce8ff;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 2;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.grid {
  display: grid;
  gap: 24px;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------------------------------------------------------
   Header / Navigation
   --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(4, 7, 13, 0.76);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.08rem;
}

.brand-subtitle {
  margin-top: 6px;
  color: var(--soft);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: #dbe7ff;
  font-size: 0.88rem;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: 0.22s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #ffffff;
  border-color: var(--line-strong);
  background: rgba(98, 231, 255, 0.08);
  box-shadow: 0 0 24px rgba(98, 231, 255, 0.12);
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.92) 0%, rgba(5, 7, 13, 0.64) 48%, rgba(5, 7, 13, 0.34) 100%),
    var(--hero-image, radial-gradient(circle at 75% 42%, rgba(98, 231, 255, 0.25), transparent 30%));
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  width: 820px;
  height: 820px;
  right: -260px;
  top: 5%;
  background:
    radial-gradient(circle, rgba(98, 231, 255, 0.20), transparent 62%),
    conic-gradient(from 180deg, rgba(98,231,255,.0), rgba(98,231,255,.18), rgba(183,132,255,.14), rgba(98,231,255,.0));
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.75;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 98px 0;
}

.hero-copy {
  max-width: 780px;
}

.hero h1 {
  font-family: var(--font-jp);
  font-size: clamp(3.1rem, 8vw, 8.4rem);
  line-height: 0.98;
  margin: 0 0 26px;
  letter-spacing: -0.055em;
  text-shadow: 0 0 42px rgba(98, 231, 255, 0.20);
}

.hero h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 248, 255, 0.72);
  text-shadow: none;
}

.hero-tagline {
  color: var(--cyan);
  font-size: clamp(1.15rem, 2.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.hero-text {
  max-width: 670px;
  color: #d6e4ff;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-strong);
  transition: 0.25s ease;
}

.btn.primary {
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 28px rgba(98, 231, 255, 0.24);
}

.btn.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.045);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), var(--glow);
}

/* ---------------------------------------------------------
   Cards
   --------------------------------------------------------- */

.card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(98,231,255,0.12), transparent 34%, rgba(183,132,255,0.08));
  opacity: 0;
  transition: 0.28s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1322;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.45s ease;
}

.card:hover .card-media img {
  transform: scale(1.045);
}

.card-body {
  position: relative;
  padding: 26px;
}

.card h2,
.card h3 {
  margin: 0 0 12px;
  line-height: 1.35;
}

.card h2 {
  font-family: var(--font-jp);
  font-size: clamp(1.65rem, 2.8vw, 2.6rem);
}

.card h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
}

.card p {
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.card-link::after {
  content: " →";
}

/* ---------------------------------------------------------
   Feature bands
   --------------------------------------------------------- */

.feature-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 20%, rgba(98, 231, 255, 0.12), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(183, 132, 255, 0.12), transparent 30%),
    rgba(2, 5, 12, 0.7);
}

.feature-band-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
  padding: 74px 0;
}

.feature-band h2 {
  font-family: var(--font-jp);
  font-size: clamp(2.1rem, 4.6vw, 5rem);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.05em;
}

.feature-band p {
  color: #d7e4ff;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}

/* ---------------------------------------------------------
   Editorial article styling
   --------------------------------------------------------- */

.article {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0;
}

.article-header {
  margin-bottom: 46px;
}

.article h1 {
  font-family: var(--font-jp);
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin: 0 0 24px;
}

.article h2 {
  font-family: var(--font-jp);
  font-size: clamp(1.8rem, 3.2vw, 3.1rem);
  line-height: 1.28;
  margin: 58px 0 18px;
  letter-spacing: -0.03em;
}

.article h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  margin: 36px 0 12px;
}

.article p {
  color: #d9e3f6;
  font-size: 1.06rem;
  line-height: 2.08;
}

.article .lead {
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  color: #ffffff;
}

.article blockquote {
  margin: 42px 0;
  padding: 28px 30px;
  border-left: 3px solid var(--cyan);
  background: rgba(98, 231, 255, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #ffffff;
  font-family: var(--font-jp);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.8;
}

.article figure {
  margin: 44px 0;
}

.article figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article figcaption {
  color: var(--soft);
  font-size: 0.9rem;
  margin-top: 12px;
}

/* ---------------------------------------------------------
   Cyber list / index cards
   --------------------------------------------------------- */

.index-list {
  display: grid;
  gap: 16px;
}

.index-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: 0.25s ease;
}

.index-row:hover {
  background: rgba(98, 231, 255, 0.065);
  border-color: var(--line-strong);
  transform: translateX(4px);
}

.index-row .label {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.index-row h3 {
  margin: 0 0 4px;
  line-height: 1.35;
}

.index-row p {
  margin: 0;
  color: var(--muted);
}

.index-row .arrow {
  color: var(--cyan);
  font-size: 1.6rem;
}

/* ---------------------------------------------------------
   Pills / chips
   --------------------------------------------------------- */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dce8ff;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.88rem;
}

.pill.hot {
  color: #061018;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 800;
}

/* ---------------------------------------------------------
   Terminal / code-style boxes
   --------------------------------------------------------- */

.terminal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(1, 6, 12, 0.88);
  box-shadow: var(--shadow), var(--glow);
}

.terminal-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 18px 0 0 var(--violet), 36px 0 0 var(--green);
}

.terminal pre {
  margin: 0;
  padding: 28px;
  white-space: pre-wrap;
  color: #c8fff0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 0%, rgba(98, 231, 255, 0.11), transparent 28%),
    rgba(2, 5, 12, 0.92);
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-text {
  color: var(--muted);
  max-width: 560px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-content: start;
}

.footer-links a {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dbe7ff;
}

.footer-links a:hover {
  border-color: var(--line-strong);
  color: var(--cyan);
}

.copyright {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 34px;
  color: var(--soft);
  font-size: 0.86rem;
}

/* ---------------------------------------------------------
   Forms
   --------------------------------------------------------- */

.form {
  display: grid;
  gap: 16px;
}

.input,
textarea,
select {
  width: 100%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(98, 231, 255, 0.13);
}

/* ---------------------------------------------------------
   Utilities
   --------------------------------------------------------- */

.glow-text {
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(98, 231, 255, 0.38);
}

.neon-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  box-shadow: var(--glow);
  margin: 38px 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.stat b {
  display: block;
  color: var(--cyan);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
  margin-bottom: 10px;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .two,
  .three,
  .four,
  .feature-band-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-row {
    grid-template-columns: 1fr;
  }

  .index-row .arrow {
    display: none;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .wrap,
  .hero-inner,
  .article,
  .footer-inner,
  .copyright {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 72px 0;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 18vw, 5.2rem);
  }

  .section {
    padding: 58px 0;
  }

  .card-body {
    padding: 22px;
  }

  .feature-band-inner {
    padding: 54px 0;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .nav-links a {
    font-size: 0.8rem;
    padding: 8px 10px;
  }

  .btn {
    width: 100%;
  }
}

/* ---------------------------------------------------------
   Print
   --------------------------------------------------------- */

@media print {
  body {
    background: #ffffff;
    color: #111111;
  }

  body::before,
  body::after,
  .site-header,
  .site-footer,
  .hero::after {
    display: none;
  }

  .card,
  .article figure img,
  .terminal {
    box-shadow: none;
  }

  a {
    color: #111111;
    text-decoration: underline;
  }
}
