:root {
  --index-ink: #10131c;
  --index-muted: #667085;
  --index-paper: #f6f8fb;
  --index-line: rgba(16, 19, 28, 0.12);
  --index-blue: #0a84ff;
  --index-teal: #14b8a6;
  --index-coral: #ff6b5a;
  --index-gold: #f5b544;
  --index-green: #43c883;
  --index-night: #08111f;
  --index-shadow: 0 24px 70px rgba(12, 20, 36, 0.16);
}

html.index-root,
html.index-root body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
}

.index-page {
  min-height: 100%;
  background: var(--index-paper);
  color: var(--index-ink);
}

.index-page a {
  color: inherit;
}

.index-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  width: 100%;
  min-height: 68px;
  margin: 0;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  color: #ffffff;
  background: rgba(8, 17, 31, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px) saturate(150%);
}

.index-nav::before {
  display: none;
}

.index-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1rem;
}

.index-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(10, 132, 255, 0.32);
}

.index-nav-links {
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.index-nav-links a,
.index-install-mini,
.index-login-mini {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 13px;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  background: transparent;
}

.index-nav-links a:hover,
.index-install-mini:hover,
.index-login-mini:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.index-nav-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.index-install-mini {
  cursor: pointer;
}

.index-nav-actions .index-login-mini {
  color: #08111f;
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.index-nav-actions .index-login-mini:hover {
  color: #08111f;
  background: #f4fbff;
}

.index-shell {
  overflow: hidden;
}

.index-hero {
  position: relative;
  z-index: 0;
  min-height: 78svh;
  max-height: 820px;
  margin-top: 0;
  display: grid;
  align-items: center;
  padding: 118px max(24px, calc((100vw - 1180px) / 2)) 58px;
  color: #ffffff;
  background: #08111f;
  isolation: isolate;
  overflow: hidden;
}

.index-hero::before,
.index-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.index-hero::before {
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(8, 17, 31, 0.95) 0%,
    rgba(8, 17, 31, 0.82) 42%,
    rgba(8, 17, 31, 0.3) 78%,
    rgba(8, 17, 31, 0.12) 100%
  );
}

.index-hero::after {
  inset: auto 0 0;
  height: 34%;
  z-index: 3;
  background:
    linear-gradient(0deg, rgba(8, 17, 31, 0.92), rgba(8, 17, 31, 0)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 74px
    );
  opacity: 0.7;
}

.index-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #08111f;
}

.index-hero-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  transform-style: preserve-3d;
}

.index-dashboard-preview {
  position: absolute;
  right: max(28px, calc((100vw - 1180px) / 2));
  top: 96px;
  width: min(500px, 42vw);
  aspect-ratio: 430 / 932;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  background: #0b1220;
  box-shadow:
    0 42px 100px rgba(0, 0, 0, 0.5),
    0 0 0 10px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0) rotate(-2deg);
  animation: index-device-float 8s ease-in-out infinite;
}

.index-dashboard-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 22%);
  opacity: 0.45;
}

.index-dashboard-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.index-float-card {
  position: absolute;
  min-width: 220px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px) saturate(150%);
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
  animation: index-chip-float 7s ease-in-out infinite;
}

.index-float-card img,
.index-float-dot {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
}

.index-float-dot {
  position: relative;
  background: var(--index-coral);
}

.index-float-dot::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffffff;
}

.index-float-card strong,
.index-float-card small {
  display: block;
  min-width: 0;
}

.index-float-card strong {
  font-size: 0.95rem;
}

.index-float-card small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.7);
}

.index-float-chat {
  right: min(520px, 42vw);
  top: 220px;
}

.index-float-photo {
  right: max(32px, calc((100vw - 1160px) / 2));
  top: 514px;
  animation-delay: -2s;
}

.index-float-call {
  right: min(310px, 29vw);
  top: 600px;
  animation-delay: -4s;
}

.index-hero-content {
  position: relative;
  z-index: 4;
  width: min(620px, 100%);
  display: grid;
  gap: 18px;
}

.index-badge {
  width: fit-content;
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.82rem;
  font-weight: 800;
}

.index-hero h1 {
  margin: 0;
  font-family: "Avenir Next", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 5.4rem;
  line-height: 0.95;
  font-weight: 900;
}

.index-lead {
  margin: 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.9;
  font-size: 1.05rem;
}

.index-hero-actions,
.index-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.index-primary-action,
.index-secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.index-primary-action {
  color: #ffffff;
  background: var(--index-blue);
  box-shadow: 0 16px 36px rgba(10, 132, 255, 0.36);
}

.index-primary-action:hover {
  background: #2492ff;
}

.index-secondary-action {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.index-secondary-action:hover {
  background: rgba(255, 255, 255, 0.16);
}

.index-subnote {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.index-proof-band,
.index-section {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.index-proof-band {
  padding: 18px 0 28px;
}

.index-proof-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.index-proof-item {
  min-height: 110px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(16, 19, 28, 0.08);
  box-shadow: 0 14px 38px rgba(12, 20, 36, 0.08);
}

.index-proof-item strong {
  color: var(--index-blue);
  font-size: 2.2rem;
  line-height: 1;
}

.index-proof-item span {
  color: var(--index-muted);
  line-height: 1.55;
}

.index-section {
  padding: 70px 0;
}

.index-section-head {
  position: relative;
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.index-section-head p,
.index-platform-copy p {
  margin: 0;
  color: var(--index-blue);
  font-weight: 900;
}

.index-section-head h2,
.index-platform-copy h2,
.index-final-cta h2 {
  max-width: 720px;
  margin: 0;
  font-size: 2.45rem;
  line-height: 1.18;
}

.index-section-head a {
  position: absolute;
  right: 0;
  bottom: 2px;
  color: var(--index-blue);
  font-weight: 900;
  text-decoration: none;
}

.index-section-head a:hover {
  text-decoration: underline;
}

.index-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.index-feature-card {
  position: relative;
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(16, 19, 28, 0.1);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 42px rgba(12, 20, 36, 0.07);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.index-feature-card::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--index-blue), var(--index-teal), var(--index-coral));
}

.index-feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(10, 132, 255, 0.34);
  box-shadow: var(--index-shadow);
}

.index-feature-card img {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 16px;
  background: #eef5ff;
}

.index-feature-card span {
  color: var(--index-blue);
  font-weight: 900;
  font-size: 0.82rem;
}

.index-feature-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.index-feature-card p {
  margin: 0;
  color: var(--index-muted);
  line-height: 1.7;
}

.index-flow {
  position: relative;
}

.index-flow-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.index-flow-rail::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--index-blue), var(--index-teal), var(--index-coral));
}

.index-flow-step {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 0;
}

.index-flow-step span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: var(--index-night);
  box-shadow: 0 14px 34px rgba(8, 17, 31, 0.24);
  font-weight: 900;
}

.index-flow-step div {
  min-height: 148px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(16, 19, 28, 0.1);
}

.index-flow-step h3 {
  margin: 0;
  font-size: 1.2rem;
}

.index-flow-step p {
  margin: 0;
  color: var(--index-muted);
  line-height: 1.7;
}

.index-platform-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--index-line);
  border-bottom: 1px solid var(--index-line);
}

.index-platform-copy {
  display: grid;
  gap: 8px;
}

.index-platform-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.index-platform-list span {
  min-height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #ffffff;
  background: var(--index-night);
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(8, 17, 31, 0.18);
}

.index-platform-list span:nth-child(2) {
  background: var(--index-teal);
}

.index-platform-list span:nth-child(3) {
  background: var(--index-coral);
}

.index-platform-list span:nth-child(4) {
  background: var(--index-blue);
}

.index-final-cta {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 38px;
  padding: 56px max(24px, calc((100vw - 1180px) / 2));
  border-radius: 0;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(8, 17, 31, 0.94), rgba(10, 132, 255, 0.74)),
    #08111f;
}

.index-final-cta p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.index-ad-band {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto 70px;
  padding: 18px 0 0;
  border-top: 1px solid var(--index-line);
}

.install-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: rgba(8, 17, 31, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(8, 17, 31, 0.28);
  max-width: min(560px, calc(100vw - 24px));
  display: none;
  gap: 10px;
  z-index: 80;
}

.install-toast.show {
  display: grid;
}

.install-toast .toast-title {
  font-weight: 900;
}

.install-toast .toast-body {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
}

.install-toast .toast-actions {
  display: flex;
  justify-content: flex-end;
}

.install-toast button {
  border-radius: 999px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
}

.index-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

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

@keyframes index-device-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes index-chip-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 9px;
  }
}

@media (max-width: 1040px) {
  .index-nav {
    grid-template-columns: auto auto;
  }

  .index-nav-links {
    display: none;
  }

  .index-hero {
    min-height: 76svh;
    padding-bottom: 42px;
  }

  .index-dashboard-preview {
    width: min(450px, 50vw);
    right: -58px;
    top: 116px;
    opacity: 0.76;
  }

  .index-float-chat {
    right: min(360px, 40vw);
  }

  .index-float-photo,
  .index-float-call {
    display: none;
  }

  .index-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .index-nav {
    width: 100%;
    min-height: 62px;
    padding: 0 12px;
    gap: 10px;
  }

  .index-nav::before {
    height: 70px;
  }

  .index-brand span {
    font-size: 0.95rem;
  }

  .index-install-mini {
    display: none;
  }

  .index-login-mini {
    min-height: 36px;
    padding: 7px 12px;
  }

  .index-hero {
    min-height: 72svh;
    padding: 96px 18px 34px;
  }

  .index-hero h1 {
    font-size: 3.9rem;
  }

  .index-lead {
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .index-dashboard-preview {
    width: 275px;
    right: -150px;
    top: 112px;
    opacity: 0.3;
  }

  .index-float-chat {
    min-width: 190px;
    right: 14px;
    top: auto;
    bottom: 62px;
    opacity: 0.7;
  }

  .index-hero-actions,
  .index-final-actions {
    width: 100%;
  }

  .index-primary-action,
  .index-secondary-action {
    width: 100%;
  }

  .index-proof-band,
  .index-section,
  .index-ad-band {
    width: calc(100vw - 24px);
  }

  .index-proof-inner,
  .index-feature-grid,
  .index-flow-rail,
  .index-platform-band,
  .index-final-cta {
    grid-template-columns: 1fr;
  }

  .index-proof-band {
    padding-top: 12px;
  }

  .index-section {
    padding: 48px 0;
  }

  .index-section-head h2,
  .index-platform-copy h2,
  .index-final-cta h2 {
    font-size: 1.85rem;
  }

  .index-section-head a {
    position: static;
    width: fit-content;
    margin-top: 4px;
  }

  .index-feature-card {
    min-height: 210px;
  }

  .index-flow-rail::before {
    left: 28px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .index-flow-step {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
  }

  .index-flow-step div {
    min-height: 0;
  }

  .index-platform-band {
    gap: 18px;
  }

  .index-platform-list {
    grid-template-columns: 1fr 1fr;
  }

  .index-final-cta {
    padding: 34px 18px;
    margin-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .index-dashboard-preview,
  .index-float-card,
  .index-reveal {
    animation: none;
    transition: none;
  }

  .index-reveal {
    opacity: 1;
    transform: none;
  }
}
