/* myaku — style.css */

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

html {
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

p {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.75;
}

a {
  color: #fff;
  text-decoration: underline;
  opacity: 0.5;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.8;
}

/* ============================================
   HEADER — fixed, transparent, blur
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.6;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  transition: background 0.4s, backdrop-filter 0.4s;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.lang-switch a {
  font-size: 12px;
  opacity: 0.7;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.3s;
}

.lang-switch a:hover {
  opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 32px;
  overflow: hidden;
}

.hero canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.hero .sub {
  margin-top: 24px;
  font-size: 16px;
  opacity: 0.5;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  cursor: pointer;
  opacity: 0.25;
  transition: opacity 0.3s;
}

.scroll-indicator:hover {
  opacity: 0.5;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ============================================
   SCREENSHOTS SECTION
   ============================================ */

.screenshots {
  background: #0a0a0a;
  padding: 120px 32px;
  overflow-x: auto;
}

.screenshot-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}

.screenshot-item {
  flex-shrink: 0;
  text-align: center;
}

.screenshot-item img {
  width: 280px;
  border-radius: 20px;
  display: block;
}

.screenshot-item .caption {
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.3;
  letter-spacing: 0.02em;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  padding: 120px 32px;
  text-align: center;
}

.cta-section .cta-text {
  font-size: 22px;
  font-weight: 500;
  opacity: 0.85;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 40px;
}

.badge {
  text-align: center;
}

.badge a {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.6;
  letter-spacing: 0.02em;
  transition: opacity 0.3s, border-color 0.3s;
}

.badge a:hover {
  opacity: 0.9;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
  padding: 120px 32px 160px;
  max-width: 960px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

.feature {
  text-align: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Feature icon: Pulsing dot */
.icon-pulse {
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.icon-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes pulseRing {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

/* Feature icon: Rotating gradient circle */
.icon-gradient {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(
    rgba(255, 255, 255, 0.0),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.0)
  );
  animation: gradientSpin 6s linear infinite;
}

@keyframes gradientSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Feature icon: Morphing blob */
.icon-blob {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  animation: blobMorph 8s ease-in-out infinite;
}

@keyframes blobMorph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 50% 40% / 40% 50% 60% 50%; }
  75% { border-radius: 40% 30% 60% 50% / 60% 40% 50% 60%; }
}

.feature h2 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  opacity: 0.9;
}

.feature p {
  font-size: 16px;
  opacity: 0.5;
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  padding: 80px 32px 60px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer .footer-links {
  font-size: 13px;
  opacity: 0.3;
}

footer .footer-links a {
  opacity: 1;
  text-decoration: none;
}

footer .footer-links a:hover {
  opacity: 0.8;
}

footer .footer-logo {
  margin-top: 40px;
  font-size: 11px;
  letter-spacing: 0.3em;
  opacity: 0.12;
  user-select: none;
}

footer .footer-copy {
  margin-top: 20px;
  font-size: 12px;
  opacity: 0.2;
}

/* ============================================
   SCROLL FADE-IN ANIMATION
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ============================================
   RESPONSIVE — DESKTOP
   ============================================ */

@media (min-width: 768px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 28px;
  }

  p {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero .sub {
    font-size: 18px;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }

  .feature h2 {
    font-size: 24px;
  }

  .feature p {
    font-size: 16px;
  }

  .cta-section .cta-text {
    font-size: 28px;
  }

  .screenshot-item img {
    width: 280px;
  }
}

/* Small screens */
@media (max-width: 640px) {
  .header {
    padding: 16px 20px;
  }

  .hero {
    min-height: 500px;
    padding: 0 20px;
  }

  .screenshots {
    padding: 80px 20px;
  }

  .screenshot-row {
    gap: 12px;
  }

  .screenshot-item img {
    width: 200px;
  }

  .cta-section {
    padding: 80px 20px;
  }

  .features {
    padding: 80px 20px 120px;
  }

  footer {
    padding: 60px 20px 40px;
  }
}

/* ============================================
   LEGAL PAGES (privacy, terms)
   ============================================ */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px;
}

.legal section {
  margin: 32px 0;
}

.legal h1 {
  margin-bottom: 8px;
}

.legal .updated {
  font-size: 13px;
  opacity: 0.3;
  margin-bottom: 48px;
}

.legal h3 {
  margin-bottom: 8px;
}

.legal p {
  margin-bottom: 12px;
}

.legal ul {
  margin: 8px 0 12px 20px;
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.7;
}
