﻿:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --surface-2: #eef4fb;
  --text: #0d1b2a;
  --muted: #425466;
  --primary: #0E1A2A;
  --primary-ink: #ffffff;
  --accent: #1e3a5a;
  --line: #d6deeb;
  --shadow: 0 20px 40px rgba(14, 26, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at 18% 12%, #e4efff, transparent 45%),
              radial-gradient(circle at 88% 18%, #d8e5ff, transparent 35%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  filter: blur(70px);
  opacity: 0.5;
}

.bg-shape-a {
  width: 280px;
  height: 280px;
  top: 180px;
  right: -80px;
  background: #77a9ff;
}

.bg-shape-b {
  width: 260px;
  height: 260px;
  top: 56%;
  left: -100px;
  background: #0E1A2A;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(248, 247, 255, 0.75);
  border-bottom: 1px solid rgba(224, 217, 247, 0.75);
  z-index: 30;
}

.nav-wrap {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-family: "Sora", sans-serif;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text);
}

main section[id] {
  scroll-margin-top: 96px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  padding: 72px 0 48px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  font-family: "Sora", sans-serif;
}

.hero-text {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 58ch;
}

.hero-cta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-disabled {
  opacity: 0.72;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

a:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
.faq-list summary:focus-visible {
  outline: 3px solid rgba(12, 99, 231, 0.45);
  outline-offset: 2px;
  border-radius: 10px;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 8px 20px rgba(12, 99, 231, 0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.meta-list {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.hero-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #ffffff 0%, #f1efff 100%);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.hero-card-head img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}

.hero-card-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.hero-card-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.stat-grid article {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  padding: 14px;
}

.stat-grid h3 {
  margin: 0;
  font-size: 0.92rem;
}

.stat-grid p {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.section {
  padding: 58px 0;
}

.section-head h2 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-family: "Sora", sans-serif;
}

.feature-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.gallery-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gallery-groups {
  margin-top: 20px;
  display: grid;
  gap: 20px;
}

.gallery-device {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f1efff);
  padding: 14px;
}

.gallery-device-title {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: #4a356f;
  font-family: "Sora", sans-serif;
}

.gallery-device .gallery-grid {
  margin-top: 12px;
}

.gallery-scroll-note {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.gallery-pager-controls {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.gallery-pager-btn {
  border: 1px solid #cec8ee;
  background: #ffffff;
  color: #242b63;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.gallery-pager-btn:hover {
  background: #f1efff;
}

.gallery-pager-indicators {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.gallery-pager-indicator {
  width: 10px;
  height: 4px;
  border-radius: 999px;
  background: #d8c8ee;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.gallery-pager-indicator.is-active {
  background: var(--primary);
  transform: scaleX(1.15);
}

.gallery-device-tablet {
  background: linear-gradient(180deg, #f8f7ff, #f1efff);
  overflow: hidden;
}

.gallery-grid-pager {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-inline: clamp(10px, 3vw, 28px);
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: clamp(10px, 3vw, 28px);
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  border-radius: 14px;
  scrollbar-width: none;
}

.gallery-grid-pager::-webkit-scrollbar {
  display: none;
}

.gallery-grid-pager .gallery-card {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  border-radius: 14px;
}

.gallery-grid-phone .gallery-card {
  flex: 0 0 min(300px, calc(100% - clamp(70px, 18vw, 190px)));
  min-width: 0;
}

.gallery-grid-phone .gallery-card img {
  width: auto;
  max-width: 100%;
  height: 50vh;
  margin: 0 auto;
  padding-top: 12px;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}

.gallery-grid-phone .gallery-card figcaption {
  text-align: center;
}

.gallery-grid-phone {
  max-width: min(100%, 760px);
  padding-inline: clamp(10px, 3vw, 28px);
  scroll-padding-inline: clamp(10px, 3vw, 28px);
  gap: 12px;
}

.gallery-grid-tablet .gallery-card {
  flex: 0 0 min(860px, calc(100% - clamp(44px, 12vw, 140px)));
  min-width: 0;
}

.gallery-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  height: auto;
  object-fit: contain;
  background: linear-gradient(170deg, #efe4ff, #f1efff);
  display: block;
}

.gallery-card figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.screenshot-card {
  box-shadow: 0 12px 24px rgba(45, 14, 71, 0.1);
}

.tablet-card {
  border-color: #cec8ee;
}

.tablet-card img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  background: linear-gradient(170deg, #efe4ff, #f1efff);
}

.gallery-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.full-gallery-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

.feature-card,
.perm-grid article,
.faq-list details,
.timeline article {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
}

.feature-card {
  padding: 16px;
}

.feature-card h3 {
  margin: 0;
}

.feature-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.timeline {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.timeline article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px;
}

.timeline span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--primary-ink);
  background: linear-gradient(145deg, var(--primary), #4a356f);
}

.timeline h3 {
  margin: 0;
}

.timeline p {
  margin: 4px 0 0;
  color: var(--muted);
}

.perm-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.perm-grid article {
  padding: 14px;
}

.perm-grid h3 {
  margin: 0;
  font-size: 1rem;
}

.perm-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.download-card {
  margin-top: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #ffffff, #f1efff);
  border-radius: 14px;
  padding: 18px;
}

.download-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-main img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
}

.download-main h3 {
  margin: 0;
}

.download-main p {
  margin: 4px 0 0;
  color: var(--muted);
}

.download-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.download-meta p {
  margin: 0;
  border: 1px solid var(--line);
  background: #ffffffbd;
  border-radius: 10px;
  padding: 10px;
}

.download-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 10px 14px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin: 8px 0 2px;
  color: var(--muted);
}

.contact-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--surface-2);
  color: var(--primary);
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-info h3 {
  margin: 0;
  font-size: 1.1rem;
  font-family: "Sora", sans-serif;
}

.contact-info p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding: 24px 0 38px;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

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

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

  .gallery-grid-pager {
    max-width: 100%;
  }

  .download-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 26px rgba(15, 45, 74, 0.16);
    padding: 8px;
    gap: 4px;
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: var(--surface-2);
  }

  .hero-cta {
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .feature-grid,
  .perm-grid,
  .gallery-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .full-gallery-grid,
  .full-gallery-grid-tablet {
    grid-template-columns: 1fr;
  }

  .gallery-grid-pager {
    max-width: 100%;
  }

  .gallery-device {
    padding: 12px;
  }

  .section {
    padding: 44px 0;
  }

  .download-main {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal.show {
    opacity: 1;
    transform: none;
  }
}
