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

:root {
  --color-primary: #2563EB;
  --color-text: #0F172A;
  --color-text-secondary: #64748B;
  --color-text-muted: #94A3B8;
  --color-bg: #FFFFFF;
  --color-bg-subtle: #F8FAFC;
  --color-dark: #0F172A;
  --color-dark-border: #1E293B;
  --color-dark-text: #94A3B8;
  --color-dark-muted: #475569;
  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Aurora palette (from app icon) */
  --aurora-pink: #E879F9;
  --aurora-blue: #60A5FA;
  --aurora-cyan: #67E8F9;
  --aurora-gradient: linear-gradient(135deg, #C084FC, #60A5FA, #67E8F9);
  --aurora-gradient-soft: linear-gradient(135deg, rgba(192, 132, 252, 0.08), rgba(96, 165, 250, 0.06), rgba(103, 232, 249, 0.08));
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Beta Marquee ===== */
.beta-marquee {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 32px;
  background: var(--aurora-gradient);
  overflow: hidden;
  display: flex;
  align-items: center;
  transform: translateZ(0);
}

.beta-marquee-bottom {
  position: relative;
  z-index: 1;
}

.beta-marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  will-change: transform;
}

.beta-marquee-track span {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
  padding: 0 48px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  transition: box-shadow 0.2s;
}

.header.scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.lang-switch {
  padding: 4px 12px;
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: border-color 0.2s, color 0.2s;
}

.lang-switch:hover {
  border-color: rgba(192, 132, 252, 0.4);
  color: #A78BFA;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #7C3AED;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 18px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 172px 24px 80px;
  text-align: center;
  background: var(--color-bg);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(248, 245, 255, 0.9);
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #A78BFA;
}

.hero-headline {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-req {
  font-size: 13px;
  color: var(--color-text-muted);
}

.hero-demo {
  width: 100%;
  max-width: 1200px;
  border-radius: 16px;
  box-shadow: 0 8px 32px -4px rgba(15, 23, 42, 0.1);
  margin-top: 8px;
}

/* ===== Section Common ===== */
.section-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  background: var(--aurora-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 48px;
}

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

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

.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(192, 132, 252, 0.06);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: rgba(192, 132, 252, 0.12);
  box-shadow: 0 8px 32px rgba(192, 132, 252, 0.04), 0 4px 16px rgba(96, 165, 250, 0.03);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--aurora-gradient-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A78BFA;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.feature-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.feature-img {
  width: 100%;
  border-radius: 10px;
  margin-top: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 56px 0;
  background:
    radial-gradient(ellipse 500px 400px at 50% 100%, rgba(103, 232, 249, 0.05), transparent),
    var(--color-bg-subtle);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--aurora-gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(192, 132, 252, 0.15);
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.step-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ===== Download CTA ===== */
.download-cta {
  padding: 80px 24px;
  background:
    radial-gradient(ellipse 500px 400px at 10% 90%, rgba(232, 121, 249, 0.08), transparent),
    radial-gradient(ellipse 600px 500px at 90% 10%, rgba(103, 232, 249, 0.08), transparent),
    var(--color-bg);
  text-align: center;
}

.download-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.download-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text);
}

.download-sub {
  font-size: 17px;
  color: var(--color-text-secondary);
  margin-top: -8px;
}

.download-req {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  background: var(--color-bg-subtle);
  border-top: 1px solid rgba(192, 132, 252, 0.08);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 700;
}

.footer-tagline {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-divider {
  height: 1px;
  background: rgba(192, 132, 252, 0.08);
  margin: 24px 0;
}

.footer-copy {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .nav.open {
    display: flex;
  }

  .hero {
    padding: 152px 20px 60px;
  }

  .hero-headline {
    font-size: 32px;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-title {
    font-size: 26px;
  }

  .download-title {
    font-size: 26px;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 28px;
  }

  .btn-primary {
    padding: 12px 24px;
    font-size: 15px;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 16px;
  }
}
