:root {
  --ink: #172033;
  --muted: #637084;
  --line: rgba(23, 32, 51, 0.12);
  --blue: #075ce8;
  --cyan: #20a9ff;
  --orange: #ff6b2b;
  --yellow: #ffd54a;
  --green: #33b25f;
  --paper: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 80px rgba(20, 59, 126, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(32, 169, 255, 0.24), transparent 34%),
    radial-gradient(circle at 86% 2%, rgba(255, 107, 43, 0.16), transparent 30%),
    linear-gradient(140deg, #f7fbff 0%, #eef7ff 42%, #fff6e5 100%);
  overflow-x: hidden;
}

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

.sky-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.76) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.62) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 92%);
}

.rocket-flight {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.rocket-flight.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.flying-rocket,
.rocket-trail {
  position: absolute;
  top: 14vh;
  left: -180px;
  width: min(18vw, 170px);
  min-width: 96px;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(0, 76, 191, 0.2));
  transform: rotate(8deg);
  animation: fly-across 17s linear infinite;
}

.flying-rocket {
  cursor: pointer;
  pointer-events: auto;
}

.rocket-trail {
  opacity: 0.18;
  filter: blur(2px) saturate(1.08) drop-shadow(0 16px 20px rgba(0, 76, 191, 0.14));
}

.rocket-trail-1 {
  animation-delay: 0.18s;
}

.rocket-trail-2 {
  animation-delay: 0.36s;
  opacity: 0.12;
  filter: blur(3px) saturate(1.06) drop-shadow(0 14px 18px rgba(0, 76, 191, 0.1));
}

.rocket-trail-3 {
  animation-delay: 0.54s;
  opacity: 0.07;
  filter: blur(4px) saturate(1.04) drop-shadow(0 12px 16px rgba(0, 76, 191, 0.08));
}

.rocket-flight.paused .flying-rocket,
.rocket-flight.paused .rocket-trail {
  animation-play-state: paused;
}

.rocket-restore {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 44px rgba(7, 92, 232, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.92);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.rocket-restore.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.rocket-restore:hover {
  transform: translateY(-2px) scale(1.03);
}

.rocket-restore img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(23, 32, 51, 0.18));
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 40px rgba(31, 70, 116, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: #42516a;
  font-size: 14px;
  font-weight: 700;
}

.site-header nav a {
  padding: 9px 12px;
  border-radius: 999px;
}

.site-header nav a:hover {
  background: rgba(7, 92, 232, 0.08);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.86fr);
  gap: 46px;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 58px 0 46px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.campaign-pill {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px solid rgba(51, 178, 95, 0.22);
  border-radius: 999px;
  color: #087763;
  background: rgba(202, 255, 239, 0.72);
  box-shadow: 0 12px 28px rgba(51, 178, 95, 0.12);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.28;
}

.lead {
  max-width: 640px;
  color: #46546b;
  font-size: 18px;
  line-height: 2;
}

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

.download-actions {
  margin-top: 18px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(7, 92, 232, 0.2);
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.secondary-button {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: none;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
  margin: 34px 0 0;
}

.quick-stats div,
.feature-grid article,
.plan,
.trust,
.download,
.task-panel,
.phone-screen {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-stats div {
  padding: 16px;
  border-radius: 20px;
}

.quick-stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.quick-stats dd {
  margin: 8px 0 0;
  font-size: 17px;
  font-weight: 900;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  width: min(94%, 450px);
  aspect-ratio: 1;
  border: 1px dashed rgba(7, 92, 232, 0.24);
  border-radius: 50%;
  animation: spin 24s linear infinite;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(255, 213, 74, 0.76);
}

.orbit::before {
  width: 16px;
  height: 16px;
  top: 22%;
  right: 4%;
}

.orbit::after {
  width: 10px;
  height: 10px;
  bottom: 18%;
  left: 8%;
}

.app-icon {
  width: min(78vw, 390px);
  border-radius: 66px;
  box-shadow: 0 36px 100px rgba(7, 92, 232, 0.32);
  transform: rotate(-5deg);
  animation: float 5.4s ease-in-out infinite;
}

.task-panel {
  position: absolute;
  right: 0;
  bottom: 34px;
  width: min(320px, 82vw);
  padding: 18px;
  border-radius: 24px;
}

.task-panel p {
  margin-bottom: 14px;
  font-weight: 900;
}

.task-panel ul,
.plan ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-panel li,
.screen-task {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #334159;
}

.task-panel span,
.screen-task span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: white;
  background: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.section {
  padding: 82px 0;
}

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

.section-heading p,
.workflow-copy p,
.trust-list,
.download p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

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

.screen-gallery {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
}

.gallery-preview,
.gallery-panel {
  display: grid;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.gallery-preview {
  place-items: center;
  padding: 16px;
}

.gallery-preview img {
  display: block;
  width: 100%;
  max-width: 390px;
  aspect-ratio: 440 / 956;
  object-fit: cover;
  object-position: top center;
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(23, 32, 51, 0.16);
}

.gallery-panel {
  gap: 18px;
  padding: 28px;
}

.gallery-count {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.gallery-panel h3 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.gallery-panel > p:not(.gallery-count) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.gallery-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gallery-thumb {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  transform: translateY(-2px);
  color: var(--ink);
  border-color: rgba(7, 92, 232, 0.28);
  background: rgba(238, 247, 255, 0.94);
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
}

.gallery-thumb span {
  overflow-wrap: anywhere;
}

.feature-grid article {
  min-height: 260px;
  padding: 22px;
  border-radius: 28px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 15px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-weight: 900;
}

.feature-grid p,
.plan li {
  color: var(--muted);
  line-height: 1.75;
}

.workflow {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 52px;
  align-items: center;
}

.phone-mock {
  max-width: 360px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 46px;
  background: #172033;
  box-shadow: 0 32px 80px rgba(23, 32, 51, 0.3);
}

.phone-screen {
  min-height: 560px;
  padding: 28px 22px;
  border-radius: 34px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    url("assets/images/icon.png") center top / 100% auto no-repeat;
}

.screen-label {
  display: inline-block;
  margin-bottom: 24px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(7, 92, 232, 0.1);
  font-size: 13px;
  font-weight: 900;
}

.phone-screen h3 {
  margin-top: 190px;
  font-size: 28px;
}

.screen-task {
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  background: white;
}

.phone-screen button {
  width: 100%;
  min-height: 50px;
  margin-top: 20px;
  border: 0;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--orange), #ff9845);
  font: inherit;
  font-weight: 900;
}

.workflow-copy ol {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.workflow-copy li {
  counter-increment: steps;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.workflow-copy li::before {
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: white;
  background: var(--blue);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.campaign-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin: -10px 0 22px;
  padding: 18px 20px;
  border: 1px solid rgba(51, 178, 95, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 4% 0%, rgba(255, 213, 74, 0.26), transparent 28%),
    rgba(238, 255, 248, 0.82);
  box-shadow: 0 18px 46px rgba(51, 178, 95, 0.13);
}

.campaign-card span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: white;
  background: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.campaign-card p {
  margin: 0;
  color: #315062;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 800;
}

.plan {
  position: relative;
  padding: 28px;
  border-radius: 30px;
}

.plan.featured {
  color: white;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 213, 74, 0.36), transparent 30%),
    linear-gradient(135deg, #075ce8, #0d93ff 56%, #19b78d);
}

.plan.featured li,
.plan.featured .price span {
  color: rgba(255, 255, 255, 0.86);
}

.badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #10203a;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

.price {
  margin-bottom: 22px;
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
}

.price span {
  color: var(--muted);
  font-size: 18px;
}

.trust {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 36px;
  padding: 34px;
  border-radius: 32px;
}

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

.trust-list p {
  margin: 0;
}

.trust a,
.site-footer a {
  color: var(--blue);
  font-weight: 900;
}

.download {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
  margin: 70px 0;
  padding: 28px;
  border-radius: 34px;
}

.download img {
  width: 120px;
  height: 120px;
  border-radius: 28px;
}

.download h2 {
  margin-bottom: 10px;
}

.download p:last-child {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
  color: var(--muted);
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-main {
  width: min(920px, calc(100% - 32px));
  padding: 72px 0 34px;
}

.legal-hero {
  margin-bottom: 18px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.legal-hero h1 {
  max-width: 760px;
  font-size: clamp(36px, 6vw, 62px);
}

.legal-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.legal-content {
  display: grid;
  gap: 14px;
}

.legal-section {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 48px rgba(20, 59, 126, 0.1);
}

.legal-section h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.legal-section p,
.legal-section li {
  color: #4b5870;
  font-size: 16px;
  line-height: 1.9;
}

.legal-section p:last-child,
.legal-section ul:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  padding-left: 1.2em;
}

.legal-section a {
  color: var(--blue);
  font-weight: 900;
}

.legal-updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

@keyframes fly-across {
  0% {
    transform: translate(-190px, 10vh) rotate(16deg) scale(0.82);
  }
  38% {
    transform: translate(44vw, -8vh) rotate(-7deg) scale(1.04);
  }
  65% {
    transform: translate(82vw, 38vh) rotate(12deg) scale(0.9);
  }
  100% {
    transform: translate(calc(100vw + 220px), 6vh) rotate(18deg) scale(0.82);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-18px) rotate(2deg);
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    border-radius: 20px;
  }

  .brand span {
    max-width: 180px;
    line-height: 1.3;
  }

  .hero,
  .workflow,
  .trust {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-visual {
    min-height: 480px;
  }

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

  .screen-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    position: relative;
    top: 0;
  }

  .site-header nav {
    justify-content: flex-start;
    width: 100%;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .lead {
    font-size: 16px;
  }

  .quick-stats,
  .feature-grid,
  .plan-grid,
  .download {
    grid-template-columns: 1fr;
  }

  .campaign-card {
    grid-template-columns: 1fr;
  }

  .gallery-preview,
  .gallery-panel {
    border-radius: 24px;
  }

  .gallery-panel {
    padding: 20px;
  }

  .gallery-controls {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .gallery-thumb {
    flex: 0 0 118px;
    scroll-snap-align: start;
  }

  .hero-visual {
    min-height: 420px;
  }

  .app-icon {
    border-radius: 42px;
  }

  .task-panel {
    right: 50%;
    bottom: 0;
    transform: translateX(50%);
  }

  .section {
    padding: 56px 0;
  }

  .feature-grid article {
    min-height: auto;
  }

  .phone-screen {
    min-height: 500px;
  }

  .phone-screen h3 {
    margin-top: 150px;
  }

  .trust,
  .download {
    padding: 22px;
    border-radius: 26px;
  }

  .download img {
    width: 92px;
    height: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
