:root {
  --bg: #0b0e14;
  --bg-elevated: #121622;
  --bg-card: #161b2b;
  --border: #242b3d;
  --text: #eef1f8;
  --text-dim: #9aa3b8;
  --accent: #7c5cff;
  --accent-2: #22d3c7;
  --accent-grad: linear-gradient(120deg, #7c5cff 0%, #22d3c7 100%);
  --danger: #ff5c7c;
  --radius: 14px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Inter", -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* personalization banner */
.client-banner {
  background: var(--accent-grad);
  color: #0b0e14;
  font-weight: 700;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  letter-spacing: .02em;
}

/* header / nav */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,14,20,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .01em;
}
.brand .mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  color: #0b0e14;
}

nav.links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dim);
}
nav.links a:hover { color: var(--text); }
nav.links a.active { color: var(--accent-2); }

.nav-cta {
  background: var(--accent-grad);
  color: #0b0e14 !important;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
}

/* hero */
.hero {
  position: relative;
  padding: 72px 0 60px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(34,211,199,0.1);
  border: 1px solid rgba(34,211,199,0.3);
  padding: 6px 14px;
  border-radius: 999px;
}
h1 {
  font-size: 44px;
  line-height: 1.3;
  margin: 20px 0 16px;
  font-weight: 800;
}
h1 .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17px; color: var(--text-dim); max-width: 50ch; }

.btn-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent-grad); color: #0b0e14; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero-media .tag {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(11,14,20,0.75);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

/* sections */
section { padding: 72px 0; border-top: 1px solid var(--border); }
section.flush { border-top: none; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: 32px; font-weight: 800; margin: 10px 0 14px; }
.section-head p { color: var(--text-dim); font-size: 15.5px; }

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: rgba(124,92,255,.5); transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 22px; }
.card-body h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.card-body p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(124,92,255,.12);
  color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(124,92,255,.15);
  color: #b9a7ff;
  margin-bottom: 10px;
}

/* demo page */
.demo-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent-2); background: rgba(34,211,199,0.05); }
.dropzone input { display: none; }
.dropzone .icon-wrap {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: #0b0e14;
}

.controls-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 24px 0; }
.slider-group { flex: 1; min-width: 220px; }
.slider-group label { font-size: 13px; color: var(--text-dim); display: flex; justify-content: space-between; margin-bottom: 8px; }
input[type=range] {
  width: 100%;
  accent-color: var(--accent-2);
}

canvas#waveform {
  width: 100%;
  height: 220px;
  background: #0a0d15;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 760px){ .stat-row { grid-template-columns: repeat(2,1fr);} }
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}
.stat .num { font-size: 26px; font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }

.segment-list { max-height: 220px; overflow-y: auto; margin-top: 18px; border-top: 1px solid var(--border); }
.segment-row { display: flex; justify-content: space-between; padding: 10px 4px; font-size: 13.5px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.segment-row b { color: var(--danger); font-weight: 700; }

.loading-row { display:flex; align-items:center; gap:10px; color: var(--text-dim); font-size: 14px; }
.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent-2);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tech-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-dim);
  background: rgba(124,92,255,.08);
  border: 1px solid rgba(124,92,255,.25);
  border-radius: 10px;
  padding: 14px 16px;
}

/* proposal / pricing */
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
}
.price-card .amount { font-size: 42px; font-weight: 800; }
.price-card .amount span { font-size: 16px; color: var(--text-dim); font-weight: 600; }
.check-list { list-style: none; padding: 0; margin: 20px 0; }
.check-list li { display: flex; gap: 10px; padding: 8px 0; font-size: 14.5px; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.check-list li:last-child { border-bottom: none; }
.check-list svg { color: var(--accent-2); flex-shrink: 0; }

.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item::before {
  content: ""; position: absolute; left: -28px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-grad);
}
.timeline-item h4 { margin: 0 0 4px; font-size: 15.5px; }
.timeline-item p { margin: 0; font-size: 13.5px; color: var(--text-dim); }

table.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
table.spec th, table.spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
table.spec th { color: var(--text-dim); font-weight: 600; width: 32%; }

footer.site {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 13.5px;
}

.quote-banner {
  background: linear-gradient(120deg, rgba(124,92,255,.15), rgba(34,211,199,.1));
  border: 1px solid rgba(124,92,255,.3);
  border-radius: var(--radius);
  padding: 28px 32px;
  font-size: 16px;
  line-height: 1.8;
}
.quote-banner b { color: var(--accent-2); }
