:root {
  --bg: #050505;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f5f5;
  --muted: #b9b9b9;
  --red: #d6001c;
  --red-2: #ff304f;
  --white: #ffffff;
  --green: #36d17c;
  --yellow: #ffbf3f;
  --danger: #ff4e4e;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(214, 0, 28, 0.12), transparent 35%),
    radial-gradient(circle at right center, rgba(214, 0, 28, 0.08), transparent 30%),
    var(--bg);
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

a {
  color: var(--white);
  text-decoration: none;
}

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

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* =========================
   TYPOGRAPHY
========================= */

h1,
h2,
h3,
.brand-mark {
  font-family: "Zen Antique", serif;
}

.eyebrow,
.section-label,
.brand-label,
.status-chip,
.service-badge,
.news-tag,
.nav a,
.button {
  font-family: "M PLUS 1 Code", monospace;
  letter-spacing: 0.08em;
}

.kanji {
  font-family: "Yuji Syuku", "Zen Antique", serif;
}

.hero h2 {
  margin: 0;
  font-family: "Zen Antique", serif;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 0.98;
  max-width: 780px;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.brand-text h1 {
  font-family: "Zen Antique", serif;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-family: "Zen Antique", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.news-card h3,
.service-name,
.status-panel h3 {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.news-card p,
.service-note,
.hero-text,
.status-panel p,
.help-list,
.footer-text {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 350;
  letter-spacing: -0.045em;
  line-height: 1.65;
}

.news-card p,
.service-note,
.status-panel p,
.footer-text {
  font-size: 14px;
}

.hero-text {
  font-size: 16px;
}

.help-list {
  font-size: 14px;
}

/* =========================
   PARTICLES CANVAS
========================= */

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.85;
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes redGlow {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.12;
  }

  50% {
    transform: translateY(-20px) scale(1.06);
    opacity: 0.22;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 0.12;
  }
}

@keyframes gridMove {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 28px 28px;
  }
}

@keyframes brandGlow {
  0% {
    box-shadow: 0 12px 30px rgba(214, 0, 28, 0.35);
  }

  50% {
    box-shadow: 0 14px 44px rgba(255, 48, 79, 0.55);
  }

  100% {
    box-shadow: 0 12px 30px rgba(214, 0, 28, 0.35);
  }
}

@keyframes waveDraw {
  from {
    stroke-dashoffset: 1800;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes foamPulse {
  0% {
    opacity: 0.56;
    transform: scale(1);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.035);
  }

  100% {
    opacity: 0.56;
    transform: scale(1);
  }
}

@keyframes sunPulse {
  0% {
    opacity: 0.16;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(1.04);
  }

  100% {
    opacity: 0.16;
    transform: scale(1);
  }
}

@keyframes waveFloatBottom {
  0% {
    transform: rotate(-3deg) scale(1.18) translate(0, 0);
  }

  50% {
    transform: rotate(-1deg) scale(1.22) translate(-10px, -14px);
  }

  100% {
    transform: rotate(-3deg) scale(1.18) translate(0, 0);
  }
}

@keyframes waveFloatTop {
  0% {
    transform: scaleX(-1) scaleY(-1) rotate(-4deg) scale(1.08) translate(0, 0);
  }

  50% {
    transform: scaleX(-1) scaleY(-1) rotate(-2deg) scale(1.12) translate(10px, 14px);
  }

  100% {
    transform: scaleX(-1) scaleY(-1) rotate(-4deg) scale(1.08) translate(0, 0);
  }
}

@keyframes kanjiFloat {
  0% {
    transform: translateY(0px) translateX(0px) rotate(var(--rot, 0deg));
  }

  50% {
    transform: translateY(-12px) translateX(8px) rotate(calc(var(--rot, 0deg) + 2deg));
  }

  100% {
    transform: translateY(0px) translateX(0px) rotate(var(--rot, 0deg));
  }
}

@keyframes pulseStatusGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(54, 209, 124, 0.45);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(54, 209, 124, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(54, 209, 124, 0);
  }
}

@keyframes pulseStatusYellow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 191, 63, 0.45);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(255, 191, 63, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 191, 63, 0);
  }
}

@keyframes pulseStatusRed {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 78, 78, 0.45);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(255, 78, 78, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 78, 78, 0);
  }
}

@keyframes borderFlash {
  0% {
    opacity: 0;
    transform: translateX(-120%);
  }

  45% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

/* =========================
   BACKGROUND
========================= */

.bg-decoration {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(30px);
  animation: redGlow 7s ease-in-out infinite;
}

.bg-circle-1 {
  width: 260px;
  height: 260px;
  background: rgba(214, 0, 28, 0.18);
  top: 90px;
  right: -40px;
}

.bg-circle-2 {
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.06);
  bottom: 120px;
  left: -30px;
  animation-delay: 2s;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
  animation: gridMove 18s linear infinite;
}

/* =========================
   KANJI BACKGROUND
========================= */

.kanji-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.kanji {
  position: absolute;
  display: block;
  line-height: 1;
  font-weight: 400;
  user-select: none;
  color: rgba(255, 255, 255, 0.045);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.035);
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.02),
    0 0 24px rgba(255, 48, 79, 0.08),
    0 0 40px rgba(214, 0, 28, 0.07);
  filter: blur(0.2px);
  mix-blend-mode: screen;
  animation: kanjiFloat 18s ease-in-out infinite;
}

.k1 {
  top: 7%;
  left: 6%;
  font-size: 150px;
  opacity: 0.7;
  --rot: -12deg;
  animation-delay: 0s;
}

.k2 {
  top: 15%;
  right: 10%;
  font-size: 96px;
  opacity: 0.45;
  --rot: 10deg;
  animation-delay: 2s;
}

.k3 {
  top: 37%;
  left: 10%;
  font-size: 122px;
  opacity: 0.5;
  --rot: -8deg;
  animation-delay: 4s;
}

.k4 {
  top: 28%;
  right: 18%;
  font-size: 84px;
  opacity: 0.38;
  --rot: 16deg;
  animation-delay: 1.5s;
}

.k5 {
  top: 56%;
  left: 5%;
  font-size: 112px;
  opacity: 0.4;
  --rot: -10deg;
  animation-delay: 3s;
}

.k6 {
  top: 68%;
  right: 8%;
  font-size: 132px;
  opacity: 0.48;
  --rot: 8deg;
  animation-delay: 5s;
}

.k7 {
  top: 78%;
  left: 18%;
  font-size: 92px;
  opacity: 0.35;
  --rot: -14deg;
  animation-delay: 6s;
}

.k8 {
  top: 48%;
  right: 4%;
  font-size: 118px;
  opacity: 0.42;
  --rot: 14deg;
  animation-delay: 7s;
}

.k9 {
  top: 8%;
  left: 44%;
  font-size: 76px;
  opacity: 0.3;
  --rot: -6deg;
  animation-delay: 2.8s;
}

.k10 {
  top: 82%;
  right: 30%;
  font-size: 88px;
  opacity: 0.32;
  --rot: 6deg;
  animation-delay: 4.8s;
}

/* =========================
   DOUBLE WAVE FIELD
========================= */

.wave-field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.wave-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 48, 79, 0.08), transparent 24%),
    radial-gradient(circle at 82% 78%, rgba(255, 48, 79, 0.08), transparent 24%);
  pointer-events: none;
}

.wave-scene {
  position: absolute;
  width: min(1240px, 92vw);
  filter: drop-shadow(0 26px 80px rgba(214, 0, 28, 0.16));
  mix-blend-mode: screen;
}

.wave-scene-top {
  left: -280px;
  top: -220px;
  opacity: 0.17;
  animation: waveFloatTop 13s ease-in-out infinite;
}

.wave-scene-bottom {
  right: -250px;
  bottom: -220px;
  opacity: 0.3;
  animation: waveFloatBottom 12s ease-in-out infinite;
}

.code-wave {
  width: 100%;
  height: auto;
  display: block;
}

.wave-sun {
  fill: rgba(214, 0, 28, 0.28);
  transform-origin: 1110px 210px;
  animation: sunPulse 5s ease-in-out infinite;
}

.wave-back {
  fill: rgba(255, 255, 255, 0.03);
}

.wave-body {
  fill: rgba(255, 255, 255, 0.05);
}

.wave-outline,
.wave-claw {
  fill: none;
  stroke: rgba(255, 255, 255, 0.86);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  filter: url(#waveGlow);
}

.wave-outline {
  stroke-width: 11;
  animation: waveDraw 2.3s ease forwards;
}

.wave-claw {
  stroke-width: 8;
  animation: waveDraw 2.3s ease forwards;
  animation-delay: 0.2s;
}

.wave-flow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: waveDraw 2.6s ease forwards;
  animation-delay: 0.45s;
}

.wave-red-line {
  fill: none;
  stroke: rgba(255, 48, 79, 0.78);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(255, 48, 79, 0.38));
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: waveDraw 2.8s ease forwards;
  animation-delay: 0.7s;
}

.foam-group circle {
  fill: rgba(255, 255, 255, 0.82);
  filter: drop-shadow(0 0 8px rgba(255, 48, 79, 0.18));
  transform-origin: center;
  animation: foamPulse 3.2s ease-in-out infinite;
}

.foam-curls path {
  fill: rgba(255, 255, 255, 0.72);
  filter: drop-shadow(0 0 8px rgba(255, 48, 79, 0.15));
  transform-origin: center;
  animation: foamPulse 4s ease-in-out infinite;
}

/* =========================
   LAYOUT
========================= */

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 4;
}

.site-header {
  padding: 24px 0 10px;
  animation: fadeUp 0.7s ease both;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--red), #75000f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 400;
  box-shadow: 0 12px 30px rgba(214, 0, 28, 0.4);
  animation: brandGlow 3.5s ease-in-out infinite;
}

.brand-label {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--muted);
}

.brand-text h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  color: var(--white);
  transform: translateY(-1px);
}

/* =========================
   HERO
========================= */

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 34px 0 24px;
  align-items: center;
}

.hero-left {
  animation: fadeUp 0.7s ease 0.05s both;
}

.hero-right {
  animation: fadeUp 0.7s ease 0.12s both;
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--red-2);
  font-size: 12px;
  font-weight: 700;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  margin: 18px 0 0;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================
   BUTTONS
========================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  font-size: 15px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.22),
    transparent
  );
  transition: transform 0.5s ease;
}

.button:hover::after {
  transform: translateX(120%);
}

.button.primary {
  background: linear-gradient(135deg, var(--red), #920013);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(214, 0, 28, 0.3);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(214, 0, 28, 0.42);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border-color: var(--border);
}

.button.ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 48, 79, 0.4);
}

.button.small {
  min-height: 42px;
  padding: 0 14px;
}

/* =========================
   CARDS
========================= */

.status-panel,
.service-card,
.news-card,
.help-card {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.status-panel:hover,
.service-card:hover,
.news-card:hover,
.help-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 48, 79, 0.45);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.045));
  box-shadow: 0 24px 60px rgba(214, 0, 28, 0.12);
}

/* =========================
   STATUS PANEL
========================= */

.status-panel {
  padding: 24px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.status-panel-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
}

.status-chip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 10px currentColor;
}

.status-chip.ok::before {
  background: var(--green);
  animation: pulseStatusGreen 2s infinite;
}

.status-chip.warning::before {
  background: var(--yellow);
  animation: pulseStatusYellow 2s infinite;
}

.status-chip.error::before {
  background: var(--danger);
  animation: pulseStatusRed 2s infinite;
}

.status-chip.info::before {
  background: var(--red-2);
  animation: pulseStatusRed 2s infinite;
}

.status-updated {
  font-size: 13px;
  color: var(--muted);
}

.status-panel h3 {
  margin: 0 0 12px;
  font-size: 28px;
}

.status-panel p {
  margin: 0;
  color: var(--muted);
}

/* =========================
   SECTIONS
========================= */

.section {
  padding: 20px 0 10px;
  animation: fadeUp 0.7s ease both;
}

.section:nth-of-type(1) {
  animation-delay: 0.18s;
}

.section:nth-of-type(2) {
  animation-delay: 0.24s;
}

.section:nth-of-type(3) {
  animation-delay: 0.3s;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 34px;
}

/* =========================
   SERVICES
========================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  padding: 20px;
  animation: fadeUp 0.55s ease both;
}

.service-card:nth-child(1) {
  animation-delay: 0.05s;
}

.service-card:nth-child(2) {
  animation-delay: 0.1s;
}

.service-card:nth-child(3) {
  animation-delay: 0.15s;
}

.service-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.service-name {
  margin: 0;
  font-size: 20px;
}

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

.service-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.service-badge.ok {
  color: #8ff0b3;
}

.service-badge.warning {
  color: #ffd56e;
}

.service-badge.error {
  color: #ff8a8a;
}

.service-badge.info {
  color: #ff8998;
}

/* =========================
   NEWS
========================= */

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

.news-card {
  padding: 20px;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.55s ease both;
}

.news-card:nth-child(1) {
  animation-delay: 0.05s;
}

.news-card:nth-child(2) {
  animation-delay: 0.1s;
}

.news-card:nth-child(3) {
  animation-delay: 0.15s;
}

.news-card:nth-child(4) {
  animation-delay: 0.2s;
}

.news-card:nth-child(5) {
  animation-delay: 0.25s;
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--red);
}

.news-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5px;
  width: 80px;
  background: linear-gradient(90deg, rgba(255, 48, 79, 0.14), transparent);
  pointer-events: none;
  opacity: 0.45;
}

.news-card.ok::before {
  background: var(--green);
}

.news-card.warning::before {
  background: var(--yellow);
}

.news-card.error::before {
  background: var(--danger);
}

.news-card.info::before {
  background: var(--red-2);
}

.news-card:hover::after {
  animation: borderFlash 0.9s ease both;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
}

.news-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  position: relative;
  z-index: 1;
}

.news-card p {
  margin: 0;
  color: #dddddd;
  position: relative;
  z-index: 1;
  max-width: 92ch;
}

/* =========================
   HELP
========================= */

.help-card {
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 18px;
}

.help-list {
  margin: 0;
  padding-left: 22px;
  color: #dddddd;
}

.help-list li + li {
  margin-top: 12px;
}

.support-box {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  align-self: start;
}

.support-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.support-box a {
  color: var(--red-2);
  font-weight: 700;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  padding: 36px 0 40px;
  animation: fadeUp 0.7s ease 0.35s both;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.footer-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.footer-text {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

/* =========================
   STATES
========================= */

.empty-state,
.error-state {
  padding: 20px;
  border-radius: 18px;
  border: 1px dashed var(--border);
  color: var(--muted);
}

.error-state {
  color: #ff8a8a;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
  .wave-scene {
    width: 1080px;
  }

  .wave-scene-top {
    left: -340px;
    top: -240px;
    opacity: 0.14;
  }

  .wave-scene-bottom {
    right: -320px;
    bottom: -240px;
    opacity: 0.26;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .help-card {
    grid-template-columns: 1fr;
  }

  .header-inner {
    border-radius: 28px;
    align-items: start;
    flex-direction: column;
  }

  .wave-scene {
    width: 920px;
  }

  .wave-scene-top {
    left: -360px;
    top: -240px;
    opacity: 0.12;
  }

  .wave-scene-bottom {
    right: -350px;
    bottom: -180px;
    opacity: 0.22;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }

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

  .section-head,
  .footer-inner {
    flex-direction: column;
    align-items: start;
  }

  .nav {
    gap: 10px 14px;
  }

  .hero {
    padding-top: 22px;
  }

  .hero h2 {
    font-size: clamp(36px, 12vw, 54px);
    letter-spacing: -0.055em;
  }

  .status-panel h3 {
    font-size: 24px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .news-meta {
    flex-direction: column;
    gap: 8px;
  }

  .wave-scene {
    width: 760px;
  }

  .wave-scene-top {
    left: -360px;
    top: -200px;
    opacity: 0.1;
  }

  .wave-scene-bottom {
    right: -330px;
    bottom: -120px;
    opacity: 0.18;
  }

  .kanji {
    opacity: 0.025 !important;
  }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  #particleCanvas {
    display: none;
  }
}
