@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --navy: #0F172A;
  --navy-mid: #1E293B;
  --navy-light: #334155;
  --cyan: #06B6D4;
  --cyan-dim: rgba(6, 182, 212, 0.15);
  --cyan-glow: rgba(6, 182, 212, 0.4);
  --white: #F8FAFC;
  --gray: #94A3B8;
  --gray-dim: #475569;
  --text: #E2E8F0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--navy);
  color: var(--text);
  overflow-x: hidden;
}

/* DOT GRID BACKGROUND */
.dot-grid {
  background-image: radial-gradient(circle, rgba(6,182,212,0.18) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* SCAN LINE ANIMATION */
@keyframes scanline {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

.scanline-wrap {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.scanline {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
  animation: scanline 8s linear infinite;
  animation-delay: var(--delay, 0s);
}

/* GLITCH TEXT */
@keyframes glitch {
  0%, 94%, 100% { clip-path: none; transform: none; }
  95% { clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%); transform: translate(-2px, 0); }
  96% { clip-path: polygon(0 60%, 100% 60%, 100% 75%, 0 75%); transform: translate(2px, 0); }
  97% { clip-path: none; transform: none; }
}

.glitch { animation: glitch 6s infinite; }

/* FADE IN UP */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeInUp 0.7s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.22s; }
.fade-up-3 { animation-delay: 0.34s; }
.fade-up-4 { animation-delay: 0.46s; }
.fade-up-5 { animation-delay: 0.58s; }

/* NUMBER COUNTER (mono) */
.mono { font-family: 'Space Mono', monospace; }

/* CARD BORDER GLOW ON HOVER */
.card-glow {
  border: 1px solid var(--navy-light);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.card-glow:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 24px var(--cyan-glow), inset 0 0 24px rgba(6,182,212,0.04);
  transform: translateY(-4px);
}

/* CORNER ACCENT */
.corner::before, .corner::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--cyan);
  border-style: solid;
}
.corner::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.corner::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* CYAN LINE DIVIDER */
.line-accent {
  display: inline-block;
  width: 48px; height: 3px;
  background: var(--cyan);
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* BUTTON STYLES */
.btn-cyan {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none; cursor: pointer; font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
}
.btn-cyan:hover {
  background: #22D3EE;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--cyan-glow);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer; font-family: 'Noto Sans JP', sans-serif; font-size: 0.95rem;
}
.btn-outline:hover {
  background: var(--cyan-dim);
  transform: translateY(-2px);
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(6,182,212,0.2);
}

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
}

.nav-logo {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav-logo span { color: var(--cyan); }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-cta { margin-left: 16px; }

/* MOBILE NAV TOGGLE */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-mid); padding: 16px 0; border-bottom: 1px solid var(--navy-light); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 24px; font-size: 1rem; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0F172A 0%, #0F1F35 50%, #0A1628 100%);
}

.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(6,182,212,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}

.hero-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-label::before {
  content: '';
  display: inline-block; width: 32px; height: 1px;
  background: var(--cyan);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--cyan); }

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--gray);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 40px;
}

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

/* SECTION COMMONS */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800; color: var(--white);
  line-height: 1.25; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--gray); line-height: 1.8; font-size: 1rem;
}

/* SERVICE CARDS */
.service-card {
  background: var(--navy-mid);
  border-radius: 8px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.service-card .icon-wrap {
  width: 56px; height: 56px;
  background: var(--cyan-dim);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  border: 1px solid rgba(6,182,212,0.3);
}
.service-card h3 {
  font-size: 1.25rem; font-weight: 700;
  color: var(--white); margin-bottom: 12px;
}
.service-card p {
  color: var(--gray); line-height: 1.8; font-size: 0.9rem;
  margin-bottom: 24px;
}

/* FEATURE GRID */
.feature-item {
  background: var(--navy-mid);
  border-radius: 6px;
  padding: 32px;
  border-left: 3px solid var(--cyan);
}
.feature-item .num {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem; color: var(--cyan);
  letter-spacing: 0.15em; margin-bottom: 12px;
}
.feature-item h4 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--white); margin-bottom: 8px;
}
.feature-item p { color: var(--gray); font-size: 0.875rem; line-height: 1.7; }

/* TAGS */
.tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--navy-light);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--gray);
  background: var(--navy-mid);
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover { border-color: var(--cyan); color: var(--cyan); }

/* PRICING CARDS */
.price-card {
  background: var(--navy-mid);
  border-radius: 8px;
  padding: 36px 32px;
  border: 1px solid var(--navy-light);
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}
.price-card.featured {
  border-color: var(--cyan);
  background: linear-gradient(145deg, var(--navy-mid), rgba(6,182,212,0.06));
}
.price-card.featured .badge {
  position: absolute; top: -1px; right: 24px;
  background: var(--cyan); color: var(--navy);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 4px 12px; border-radius: 0 0 6px 6px;
  font-family: 'Space Mono', monospace;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--cyan); }
.plan-name {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem; color: var(--gray);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 8px;
}
.plan-price {
  font-size: 2.2rem; font-weight: 900; color: var(--white);
  margin-bottom: 4px;
  font-family: 'Space Mono', monospace;
}
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--gray); }
.plan-items { list-style: none; margin: 20px 0 24px; }
.plan-items li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.875rem; color: var(--gray);
  padding: 6px 0; border-bottom: 1px solid rgba(51,65,85,0.5);
}
.plan-items li::before {
  content: '✓';
  color: var(--cyan); font-weight: 700; flex-shrink: 0;
  font-family: 'Space Mono', monospace;
}

/* FAQ */
details {
  border-bottom: 1px solid var(--navy-light);
  overflow: hidden;
}
details:first-child { border-top: 1px solid var(--navy-light); }
summary {
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: var(--white);
  user-select: none;
  transition: color 0.2s;
}
summary:hover { color: var(--cyan); }
summary::after {
  content: '+';
  font-family: 'Space Mono', monospace;
  font-size: 1.2rem; color: var(--cyan);
  flex-shrink: 0;
  transition: transform 0.3s;
}
details[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 0 20px;
  color: var(--gray); line-height: 1.8; font-size: 0.9rem;
}

/* FLOW STEPS */
.step {
  display: flex; gap: 24px; align-items: flex-start;
}
.step-num {
  font-family: 'Space Mono', monospace;
  font-size: 2rem; font-weight: 700;
  color: var(--cyan); line-height: 1;
  flex-shrink: 0; min-width: 48px;
}
.step-content h4 {
  font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 6px;
}
.step-content p { color: var(--gray); font-size: 0.875rem; line-height: 1.7; }

/* COMPARISON TABLE */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th {
  text-align: left; padding: 14px 16px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan); border-bottom: 1px solid var(--navy-light);
}
.compare-table td {
  padding: 14px 16px;
  font-size: 0.875rem; color: var(--gray);
  border-bottom: 1px solid rgba(51,65,85,0.4);
}
.compare-table tr:hover td { background: rgba(6,182,212,0.03); color: var(--text); }
.compare-table td:first-child { color: var(--white); font-weight: 600; }
.check { color: var(--cyan); font-weight: 700; }
.dash { color: var(--gray-dim); }

/* FOOTER */
footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-light);
  padding: 48px 0 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.footer-logo {
  font-family: 'Space Mono', monospace;
  font-weight: 700; font-size: 1.1rem; color: var(--white);
}
.footer-logo span { color: var(--cyan); }
.footer-links {
  display: flex; gap: 24px; flex-wrap: wrap;
  list-style: none; margin-top: 8px;
}
.footer-links a {
  color: var(--gray); text-decoration: none;
  font-size: 0.8rem; transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }
.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem; color: var(--gray-dim);
  margin-top: 32px; letter-spacing: 0.05em;
}

/* FORM */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: 0.8rem; color: var(--gray);
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--navy-mid);
  border: 1px solid var(--navy-light);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2306B6D4' viewBox='0 0 16 16'%3E%3Cpath d='M8 10.5L3 5.5h10L8 10.5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.form-textarea { resize: vertical; min-height: 120px; }

/* DEMO BOX */
.demo-box {
  background: var(--navy-mid);
  border: 2px dashed var(--navy-light);
  border-radius: 8px;
  min-height: 320px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  color: var(--gray);
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}
.demo-box .demo-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--cyan);
}

/* WORKS - EMPTY STATE */
.works-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--navy-mid);
  border-radius: 8px;
  border: 1px dashed var(--navy-light);
}

/* STAT NUMBERS */
.stat-num {
  font-family: 'Space Mono', monospace;
  font-size: 3rem; font-weight: 700;
  color: var(--cyan); line-height: 1;
}
.stat-label {
  font-size: 0.875rem; color: var(--gray); margin-top: 6px;
}

/* CTA FINAL */
.cta-final {
  background: linear-gradient(135deg, var(--navy-mid) 0%, rgba(6,182,212,0.08) 100%);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: 12px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 3px;
  background: var(--cyan);
  border-radius: 2px;
}

/* ALERT BOX */
.alert-info {
  background: var(--cyan-dim);
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 0.875rem; color: var(--text);
  display: flex; gap: 10px; align-items: flex-start;
}

/* GRID UTILITIES */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .section { padding: 64px 0; }
  .cta-final { padding: 48px 24px; }
  .service-card, .price-card { padding: 28px 20px; }
}

/* ABOUT / PROBLEM CARDS */
.problem-card {
  background: var(--navy-mid);
  border-radius: 6px; padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
}
.problem-icon {
  font-size: 1.5rem; flex-shrink: 0;
  width: 44px; height: 44px;
  background: rgba(239,68,68,0.12);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(239,68,68,0.25);
}
.problem-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.problem-card p { font-size: 0.825rem; color: var(--gray); line-height: 1.6; }

/* PLACEHOLDER SLIDE IMAGES */
.slide-preview {
  background: var(--navy-mid);
  border: 1px solid var(--navy-light);
  border-radius: 6px;
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-dim);
  font-size: 0.75rem;
  font-family: 'Space Mono', monospace;
  position: relative;
  overflow: hidden;
}
.slide-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(6,182,212,0.05));
}
