/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "fot-udkakugo-large-pr6n", sans-serif;
  font-weight: 300;
  font-style: normal;
  background: #1e1f22;
  color: #dbdee1;
  overflow-x: hidden;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ===== Utility ===== */
.accent {
  color: #5865f2;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Nav ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(30, 31, 34, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
}

.nav-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: #b5bac1;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.language-switcher summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 82px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #b5bac1;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary::after {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease;
}

.language-switcher[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.language-switcher summary:hover,
.language-switcher[open] summary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 128px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #18191c;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.language-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: #b5bac1;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.language-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.language-menu a[aria-current="page"] {
  background: rgba(88, 101, 242, 0.24);
  color: #fff;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 0;
  }
}

/* ===== Hero ===== */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 0%,
      rgba(88, 101, 242, 0.15) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 50% at 80% 100%,
      rgba(87, 242, 135, 0.06) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #949cf7;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out;
}

.hero-title {
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-title .gradient {
  background: linear-gradient(135deg, #5865f2, #57f287);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-keyword {
  font-size: 0.88em;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: clamp(15px, 3.5vw, 18px);
  color: #949ba4;
  max-width: 520px;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* ===== Download Buttons ===== */
.download-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.6s ease-out 0.3s both;
  position: relative;
  overflow: visible;
  z-index: 100;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    opacity 0.2s;
  border: none;
  position: relative;
}

.dl-btn:active {
  transform: scale(0.96);
}

.dl-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.dl-btn--android {
  background: linear-gradient(135deg, #57f287, #3ddc84);
  color: #1e1f22;
}

.dl-btn--android:hover {
  box-shadow: 0 4px 24px rgba(87, 242, 135, 0.35);
}

.dl-btn--ios {
  background: #fff;
  color: #1e1f22;
}

.dl-btn--ios:hover {
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.2);
}

.dl-btn--pc {
  background: rgba(255, 255, 255, 0.1);
  color: #80848e;
  cursor: not-allowed;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dl-btn--pc:hover {
  box-shadow: none;
  transform: none;
}

.dl-btn--pc .badge {
  position: absolute;
  top: -8px;
  right: -4px;
  background: #ed4245;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Windows */
.dl-btn--windows {
  background: linear-gradient(135deg, #00bcf2, #00a4ef);
  color: #fff;
}

.dl-btn--windows:hover {
  box-shadow: 0 4px 24px rgba(0, 164, 239, 0.35);
}

/* Mac */
.dl-btn--mac {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dl-btn--mac:hover {
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.12);
}

/* Web / Browser */
.dl-btn--web {
  background: linear-gradient(135deg, #ff7961, #ff6347);
  color: #fff;
}

.dl-btn--web:hover {
  box-shadow: 0 4px 24px rgba(255, 99, 71, 0.35);
}

/* Download group styles */
.download-group {
  width: 100%;
  margin-top: 16px;
}

.download-group:first-child {
  margin-top: 0;
}

.download-group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #80848e;
  margin-bottom: 8px;
  text-align: center;
}

.download-group-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.dl-btn--small {
  padding: 10px 20px;
  font-size: 13px;
  border-radius: 22px;
}

/* Primary OS-specific button */
.dl-btn--primary {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 28px;
  width: auto;
  min-width: auto;
}

/* Dropdown row */
.dl-dropdown-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

/* Dropdown container */
.dl-dropdown {
  position: relative;
  z-index: 100;
}

/* Dropdown trigger button */
.dl-btn--dropdown {
  padding: 10px 22px;
  font-size: 13px;
  border-radius: 22px;
}

.dl-caret {
  margin-left: 6px;
  font-size: 12px;
  transition: transform 0.2s;
}

.dl-dropdown.open .dl-caret {
  transform: rotate(180deg);
}

/* Dropdown menu */
.dl-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dl-dropdown.open .dl-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Desktop: hover to open */
@media (hover: hover) {
  .dl-dropdown:hover .dl-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .dl-dropdown:hover .dl-caret {
    transform: rotate(180deg);
  }
}

.dl-dropdown-item {
  display: block;
  padding: 10px 20px;
  color: #dbdee1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
}

.dl-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Mobile: collapse other platforms */
.dl-mobile-collapse {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s, opacity 0.3s;
}

.dl-mobile-collapse.dl-expanded {
  max-height: 500px;
  opacity: 1;
}

/* Other platforms panel - collapsed by default */
.dl-other-platforms {
  max-height: 0;
  overflow: visible;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  width: 100%;
}

.dl-other-platforms.dl-expanded {
  max-height: 300px;
  opacity: 1;
}

/* "Other platforms" toggle */
.dl-show-more {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #80848e;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  margin-top: 12px;
  transition: color 0.2s, border-color 0.2s;
}

.dl-show-more:hover {
  color: #dbdee1;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Primary dropdown wrapper */
.dl-dropdown--primary {
  position: relative;
}

.dl-dropdown--primary .dl-dropdown-menu {
  min-width: 200px;
}

/* Desktop hover for primary button dropdown */
@media (hover: hover) {
  .dl-dropdown--primary:hover .dl-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .dl-dropdown--primary:hover .dl-caret {
    transform: rotate(180deg);
  }
}

/* ===== Mockup ===== */
.hero-mockup {
  margin-top: 48px;
  max-width: 320px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-mockup-img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  /* remove box shadow since image has transparent background */
  box-shadow: none;
}

/* ===== Features ===== */
.features {
  padding: 80px 20px;
}

.features-title {
  text-align: center;
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.features-subtitle {
  text-align: center;
  font-size: 15px;
  color: #949ba4;
  margin-bottom: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  background: #2b2d31;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #3f4147;
  transition:
    transform 0.3s,
    border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 101, 242, 0.4);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #f2f3f5;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: #949ba4;
  line-height: 1.6;
}

/* ===== Privacy Section ===== */
.privacy-section {
  padding: 60px 20px;
  text-align: center;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(87, 242, 135, 0.1);
  border: 1px solid rgba(87, 242, 135, 0.25);
  border-radius: 28px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 300;
  color: #57f287;
  margin-bottom: 20px;
}

.privacy-section h2 {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.privacy-section p {
  font-size: 15px;
  color: #949ba4;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== CTA ===== */
.cta {
  padding: 80px 20px;
  text-align: center;
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 70% at 50% 50%,
    rgba(88, 101, 242, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta h2 {
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}

.cta p {
  font-size: 15px;
  color: #949ba4;
  margin-bottom: 32px;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid #3f4147;
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
  color: #80848e;
}

footer a {
  color: #949cf7;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Scroll animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

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

.UDShingo {
  font-family: "a-otf-ud-shin-go-pr6n", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.UDKakugoL {
  font-family: "fot-udkakugo-large-pr6n", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.UDKakugoR {
  font-family: "fot-udkakugo-large-pr6n", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.UDKakugoB {
  font-family: "fot-udkakugo-large-pr6n", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.UDShinmarugo {
  font-family: "a-otf-ud-shin-maru-go-pr6n", sans-serif;
  font-weight: 300;
  font-style: normal;
}
