/* ===== Tokens ===== */
:root {
  --violet: #6c4cff;
  --violet-2: #5b3df5;
  --blue: #3a8dff;
  --cyan: #36c5f0;
  --grad: linear-gradient(135deg, #7c5cff 0%, #5b3df5 45%, #3a8dff 100%);
  --ink: #0c0e1a;
  --ink-2: #1a1d2e;
  --text: #e9ecf5;
  --muted: #a3a8bd;
  --muted-2: #7f859c;
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --radius: 20px;
  --maxw: 1120px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== Background aurora ===== */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(91, 61, 245, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(58, 141, 255, 0.12), transparent 60%),
    var(--ink);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.blob-1 { width: 480px; height: 480px; top: -120px; right: -80px; background: #6c4cff; }
.blob-2 { width: 420px; height: 420px; top: 40%; left: -140px; background: #2c7cff; opacity: 0.35; }
.blob-3 { width: 360px; height: 360px; bottom: -120px; right: 20%; background: #36c5f0; opacity: 0.22; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav--solid {
  background: rgba(12, 14, 26, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.2px;
}
.nav__logo { width: 30px; height: 30px; border-radius: 8px; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav__links a { color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: #fff; }
.nav__cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 8px 24px -8px rgba(108, 76, 255, 0.8);
}
.nav__cta:hover { transform: translateY(-1px); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 14px 36px -12px rgba(108, 76, 255, 0.85);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -12px rgba(108, 76, 255, 0.95); }
.btn--ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--card-hover); transform: translateY(-2px); }
.btn--lg { padding: 18px 34px; font-size: 18px; }

/* ===== Hero ===== */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 60px 24px 40px; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(108, 76, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.32);
  color: #c5b9ff;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.grad-text {
  background: linear-gradient(120deg, #9b86ff, #5b9bff 60%, #36c5f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  margin: 24px 0 32px;
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta { margin-top: 20px; font-size: 13.5px; color: var(--muted-2); }

/* ===== Hero visual ===== */
.hero__visual { position: relative; }
.app-shot {
  border-radius: 14px;
  overflow: hidden;
  background: #14172a;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
  transition: transform 0.5s ease;
}
.app-shot img { width: 100%; height: auto; display: block; }
.hero__visual:hover .app-shot { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.app-window {
  border-radius: 16px;
  overflow: hidden;
  background: #14172a;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
  transition: transform 0.5s ease;
}
.hero__visual:hover .app-window { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.app-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #1b1f33;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--red { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green { background: #28c840; }
.app-window__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.app-window__body { padding: 16px; }
.shot {
  position: relative;
  height: 240px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #232842, #1a1e30);
  overflow: hidden;
}
.shot__selection {
  position: absolute;
  left: 22%;
  top: 26%;
  width: 56%;
  height: 48%;
  border: 1.5px solid rgba(124, 156, 255, 0.9);
  background: rgba(124, 156, 255, 0.08);
  box-shadow: 0 0 0 9999px rgba(8, 10, 20, 0.45);
  border-radius: 4px;
}
.shot__corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
}
.shot__corner.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.shot__corner.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.shot__corner.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.shot__corner.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.shot__dim {
  position: absolute;
  top: -26px;
  left: 0;
  font-size: 11px;
  color: #c5cdff;
  background: rgba(20, 23, 42, 0.85);
  padding: 2px 7px;
  border-radius: 5px;
}
.shot__arrow { position: absolute; right: 8%; bottom: 14%; width: 120px; filter: drop-shadow(2px 3px 3px rgba(0,0,0,0.4)); }
.shot__label {
  position: absolute;
  right: 6%;
  bottom: 8%;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transform: rotate(-6deg);
}
.app-window__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.tool {
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
}
.tool--active { background: var(--grad); color: #fff; }
.tool-spacer { flex: 1; }
.zoom { font-size: 13px; color: var(--muted); }

.tray-chip {
  position: absolute;
  top: -22px;
  right: -10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(20, 23, 42, 0.9);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.8);
  animation: float 5s ease-in-out infinite;
}
.tray-chip img { width: 20px; height: 20px; border-radius: 6px; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ===== Strip ===== */
.strip {
  max-width: var(--maxw);
  margin: 30px auto;
  padding: 26px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip__item { display: flex; flex-direction: column; }
.strip__item strong { font-size: 16px; }
.strip__item span { font-size: 13.5px; color: var(--muted-2); }

/* ===== Sections ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 90px 24px; }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -0.02em; }
.section__head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-6px); background: var(--card-hover); border-color: rgba(124,92,255,0.35); }
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: #fff;
}
.ico-violet { background: linear-gradient(135deg, #7c5cff, #5b3df5); }
.ico-blue { background: linear-gradient(135deg, #3a8dff, #2c5cff); }
.ico-cyan { background: linear-gradient(135deg, #36c5f0, #2c8cff); }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ===== Edit section ===== */
.section--edit { padding-top: 30px; }
.edit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.edit__visual { position: relative; }
.edit__visual .app-shot { transform: perspective(1400px) rotateY(8deg) rotateX(3deg); }
.edit__visual:hover .app-shot { transform: perspective(1400px) rotateY(3deg) rotateX(1deg); }
.kicker {
  display: inline-block;
  color: #9b86ff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.edit__copy h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; }
.edit__copy > p { margin: 20px 0; color: var(--muted); font-size: 16.5px; }
.edit__copy strong { color: var(--text); }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 8px 0 18px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text); font-size: 15.5px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: inset 0 0 0 0 #fff;
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.note { font-size: 13.5px; color: var(--muted-2); }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative;
  padding: 32px 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.step__num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--grad);
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== Download ===== */
.download { text-align: center; }
.download__card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 40px;
  border-radius: 28px;
  background:
    radial-gradient(700px 300px at 50% -20%, rgba(108, 76, 255, 0.3), transparent 70%),
    linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(124, 92, 255, 0.3);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.download__icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  margin: 0 auto 24px;
  box-shadow: 0 18px 40px -12px rgba(108, 76, 255, 0.7);
}
.download__card h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; letter-spacing: -0.02em; }
.download__card > p { margin: 16px auto 30px; color: var(--muted); max-width: 460px; }
.download__meta { margin-top: 18px; font-size: 13.5px; color: var(--muted-2); }
.download__reqs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.download__reqs span {
  font-size: 13.5px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--text);
}

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.footer__brand img { width: 26px; height: 26px; border-radius: 7px; }
.footer__copy { color: var(--muted-2); font-size: 14px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: -1; max-width: 480px; }
  .edit { grid-template-columns: 1fr; gap: 36px; }
  .edit__visual { order: 2; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (max-width: 620px) {
  .nav__links { gap: 14px; font-size: 14px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .cards, .steps, .strip { grid-template-columns: 1fr; }
  .section { padding: 64px 20px; }
  .hero { padding: 36px 20px; }
  .app-window, .app-shot { transform: none; }
  .download__card { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .tray-chip { animation: none; }
}
