:root {
  --bg: #06101d;
  --bg-deep: #030712;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(9, 18, 32, 0.9);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f6f8ff;
  --muted: #a9b4c8;
  --blue: #28d7ff;
  --green: #70ffb8;
  --violet: #8d6bff;
  --pink: #ff55d6;
  --gold: #ffd166;
  --shadow: 0 26px 100px rgba(0, 0, 0, 0.35);
  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(40, 215, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 78% 4%, rgba(255, 85, 214, 0.12), transparent 26rem),
    linear-gradient(140deg, #030712 0%, #06101d 48%, #090a1f 100%);
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  pointer-events: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

.background-orb {
  position: fixed;
  z-index: -2;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.42;
  pointer-events: none;
}

.orb-one {
  left: -120px;
  top: 150px;
  background: var(--blue);
}

.orb-two {
  right: -120px;
  bottom: 80px;
  background: var(--pink);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  transform: translateX(-50%);
  width: min(var(--max), calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 10, 20, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.34);
  transition: 0.25s ease;
}

.site-header.scrolled {
  top: 10px;
  background: rgba(4, 10, 20, 0.9);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(40, 215, 255, 0.45);
  border-radius: 15px;
  color: #05111b;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-weight: 950;
  letter-spacing: -0.08em;
  box-shadow: 0 0 28px rgba(40, 215, 255, 0.26);
}

.brand strong {
  display: block;
  line-height: 1.1;
  font-size: 0.98rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 3px;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.global-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  transition: 0.22s;
}

.global-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  color: #03111a !important;
  background: linear-gradient(90deg, var(--blue), var(--green)) !important;
  box-shadow: 0 0 28px rgba(40, 215, 255, 0.25);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--text);
}

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

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 54px;
  padding-top: 150px;
}

.label {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(40, 215, 255, 0.34);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(40, 215, 255, 0.075);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 7.4vw, 6.7rem);
  line-height: 0.96;
  letter-spacing: -0.082em;
}

h1 span,
h2 span {
  color: var(--blue);
  text-shadow: 0 0 28px rgba(40, 215, 255, 0.65);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.15rem, 5vw, 4.35rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.hero-lead,
.section-heading p,
.service-card p,
.product-copy p,
.process-item p,
.news-card p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.78;
}

.hero-lead {
  max-width: 720px;
  font-size: 1.06rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: 0.24s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: #03111a;
  background: linear-gradient(90deg, var(--blue), var(--green));
  box-shadow: 0 0 34px rgba(40, 215, 255, 0.25);
}

.button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,0.065);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.hero-metrics article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(16px);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 1.65rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-card {
  position: relative;
  min-height: 530px;
}

.dashboard,
.service-card,
.work-card,
.product-showcase,
.process-item,
.news-card,
.contact-panel,
.intro-strip {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.dashboard {
  padding: 18px;
  border-radius: 38px;
  transform: rotate(1.2deg);
}

.dashboard::before,
.service-card::before,
.work-card::before,
.product-showcase::before,
.process-item::before,
.contact-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(40,215,255,0.62), rgba(112,255,184,0.28), rgba(255,85,214,0.38));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

.dashboard-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.dashboard-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 16px var(--pink);
}

.dashboard-top span:nth-child(2) {
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold);
}

.dashboard-top span:nth-child(3) {
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.dashboard-top p {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 0.8rem;
}

.dashboard-main {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 16px;
  min-height: 300px;
}

.pulse-ring {
  display: grid;
  place-items: center;
  min-height: 300px;
  border-radius: 28px;
  background:
    radial-gradient(circle, rgba(40,215,255,0.23), transparent 34%),
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px),
    #06101d;
  background-size: auto, 22px 22px, 22px 22px, auto;
}

.core {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 32px;
  color: #03111a;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow:
    0 0 0 16px rgba(40,215,255,0.05),
    0 0 0 34px rgba(40,215,255,0.04),
    0 0 60px rgba(40,215,255,0.45);
  font-size: 2rem;
  font-weight: 950;
  animation: corePulse 2.2s infinite alternate ease-in-out;
}

.status-list {
  display: grid;
  gap: 12px;
}

.status-list div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.055);
}

.status-list span {
  color: var(--muted);
}

.status-list b {
  color: var(--green);
  font-size: 1.12rem;
}

.code-window {
  margin-top: 16px;
  padding: 17px;
  border-radius: 24px;
  color: var(--muted);
  background: rgba(0,0,0,0.32);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
}

.code-window p {
  margin: 0 0 7px;
}

.code-window .success {
  color: var(--green);
}

.float-badge {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(5, 13, 25, 0.84);
  box-shadow: 0 0 34px rgba(40,215,255,0.18);
  font-size: 0.82rem;
  font-weight: 900;
  animation: floatBadge 3s infinite alternate ease-in-out;
}

.badge-a { top: 54px; right: 4px; }
.badge-b { bottom: 132px; left: -12px; animation-delay: 0.45s; }
.badge-c { bottom: 54px; right: 48px; animation-delay: 0.9s; }

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: -40px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.intro-strip p {
  margin: 0;
  color: var(--muted);
}

.intro-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intro-strip span,
.tag-row span,
.contact-points span,
.work-tag {
  display: inline-flex;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.055);
  font-size: 0.8rem;
  font-weight: 800;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.service-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card,
.work-card,
.news-card,
.process-item {
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: 0.25s ease;
}

.service-card:hover,
.work-card:hover,
.process-item:hover {
  transform: translateY(-8px);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 16px;
  color: #03111a;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-weight: 950;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  color: var(--muted);
}

.service-card li {
  position: relative;
  padding-left: 18px;
  margin: 10px 0;
}

.service-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--green);
}

.work-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.055);
  cursor: pointer;
  font-weight: 850;
  transition: 0.2s ease;
}

.filter.active,
.filter:hover {
  color: #03111a;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

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

.work-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
}

.work-thumb {
  min-height: 150px;
  margin-bottom: 18px;
  border-radius: 24px;
  background:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(135deg, rgba(40,215,255,0.66), rgba(141,107,255,0.43), rgba(255,85,214,0.36));
  background-size: 18px 18px, 18px 18px, auto;
  box-shadow: inset 0 0 45px rgba(0,0,0,0.22);
}

.work-card p {
  color: var(--muted);
  line-height: 1.68;
}

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

.work-status {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.product-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 26px;
  border-radius: 42px;
}

.product-visual {
  min-height: 360px;
}

.mini-game {
  position: relative;
  height: 360px;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(40,215,255,0.35) 50%, transparent 51%),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(255,85,214,0.24), transparent 50%),
    #050b17;
  background-size: 100% 100%, 24px 24px, 24px 24px, auto, auto;
}

.mini-paddle {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 96px;
  transform: translateY(-50%);
  border-radius: 999px;
}

.mini-paddle.left {
  left: 34px;
  background: var(--blue);
  box-shadow: 0 0 35px var(--blue);
  animation: paddleLeft 3.4s infinite alternate ease-in-out;
}

.mini-paddle.right {
  right: 34px;
  background: var(--pink);
  box-shadow: 0 0 35px var(--pink);
  animation: paddleRight 2.7s infinite alternate ease-in-out;
}

.mini-ball {
  position: absolute;
  width: 24px;
  height: 24px;
  left: 46%;
  top: 48%;
  border-radius: 8px;
  background: var(--green);
  box-shadow: 0 0 30px var(--green);
  animation: ballMove 3.2s infinite ease-in-out;
}

.product-copy {
  padding: 12px;
}

.product-copy h3 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.tag-row,
.contact-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-item span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 950;
}

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

.news-card {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 20px;
  align-items: center;
  background: rgba(255,255,255,0.055);
}

.news-date {
  color: var(--blue);
  font-weight: 950;
}

.news-card h3,
.news-card p {
  margin-bottom: 4px;
}

.news-badge {
  padding: 8px 10px;
  border-radius: 999px;
  color: #03111a;
  background: linear-gradient(90deg, var(--blue), var(--green));
  font-size: 0.78rem;
  font-weight: 950;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  padding: 32px;
  border-radius: 44px;
}

.contact-copy h2 {
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 850;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(0,0,0,0.25);
  transition: 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(40,215,255,0.68);
  box-shadow: 0 0 0 4px rgba(40,215,255,0.11);
}

select {
  appearance: none;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.055);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  color: var(--muted);
}

.footer-brand strong {
  color: var(--text);
}

.footer-brand p,
.copyright {
  margin: 4px 0 0;
}

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

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

.copyright {
  grid-column: 1 / -1;
  font-size: 0.82rem;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  transform: translateY(28px);
  opacity: 0;
  padding: 14px 18px;
  border: 1px solid rgba(112,255,184,0.36);
  border-radius: 18px;
  color: var(--text);
  background: rgba(4, 12, 22, 0.94);
  box-shadow: 0 0 36px rgba(112,255,184,0.18);
  transition: 0.25s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes corePulse {
  from {
    transform: scale(0.96) rotate(-2deg);
  }
  to {
    transform: scale(1.04) rotate(2deg);
  }
}

@keyframes floatBadge {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-14px);
  }
}

@keyframes paddleLeft {
  from { top: 34%; }
  to { top: 70%; }
}

@keyframes paddleRight {
  from { top: 69%; }
  to { top: 36%; }
}

@keyframes ballMove {
  0% { left: 18%; top: 40%; }
  34% { left: 74%; top: 62%; }
  68% { left: 38%; top: 72%; }
  100% { left: 55%; top: 32%; }
}

@media (max-width: 1020px) {
  .service-grid,
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero,
  .product-showcase,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .global-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(4, 10, 20, 0.96);
    box-shadow: var(--shadow);
  }

  .global-nav.open {
    display: flex;
  }

  .global-nav a {
    width: 100%;
  }

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

  .dashboard-main {
    grid-template-columns: 1fr;
  }

  .intro-strip,
  .news-card {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 560px) {
  .section {
    width: min(100% - 24px, var(--max));
    padding: 82px 0;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 18px);
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 0.88rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 130px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }

  .hero-metrics,
  .service-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .dashboard {
    padding: 12px;
    border-radius: 28px;
  }

  .pulse-ring,
  .product-visual,
  .mini-game {
    min-height: 260px;
    height: 260px;
  }

  .float-badge {
    display: none;
  }

  .product-showcase,
  .contact-panel {
    padding: 20px;
    border-radius: 30px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}
