/* ===================================================
   Signal LP — Style Sheet
   AppTheme.swift のデザイントークンを CSS に移植
   =================================================== */

/* --- Design Tokens (CSS Custom Properties) --- */
:root {
  /* Colors – Kawaii Palette */
  --cream-bg: #FFFDF9;
  --border-pink: #FEE2E2;
  --strawberry: #FFB7CE;
  --text-main: #7C6E8F;
  --soft-pink-bg: #FFF0F5;
  --mint: #E0FBE2;
  --lavender: #E7E0FF;
  --accent-yellow: #FDFD96;
  --heart-pink: #FF4D82;
  --heart-light: #FFE0E9;
  --secondary: #67D5FF;
  --gradient-end: #FFD5E5;
  --heading-color: #475569;
  --card-bg: #ffffff;

  /* Spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-sm-md: 12px;
  --sp-md: 16px;
  --sp-md-lg: 20px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;

  /* Font Size */
  --fs-caption2: 10px;
  --fs-card-title: 11px;
  --fs-caption: 12px;
  --fs-subheadline: 14px;
  --fs-body: 16px;
  --fs-title3: 20px;
  --fs-title2: 24px;
  --fs-title: 28px;
  --fs-large-title: 34px;

  /* Corner Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-kawaii: 24px;
  --radius-kawaii-lg: 32px;
  --radius-full: 100px;

  /* Shadow */
  --shadow-kawaii: 0 4px 12px rgba(255, 183, 206, 0.15);
  --shadow-kawaii-lg: 0 8px 24px rgba(255, 183, 206, 0.2);
}

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

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

body {
  font-family: "Nunito", "Hiragino Maru Gothic ProN", "Rounded Mplus 1c",
    system-ui, sans-serif;
  color: var(--text-main);
  background-color: var(--cream-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Dot pattern background (matches DotPatternBackground in app) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(
    circle,
    var(--border-pink) 1.5px,
    transparent 1.5px
  );
  background-size: 24px 24px;
  pointer-events: none;
}

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

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

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: var(--fs-title);
  font-weight: 800;
  color: var(--heading-color);
  text-align: center;
  margin-bottom: var(--sp-xxl);
  letter-spacing: 0.5px;
}

/* --- Gradient Button --- */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-xl);
  background: linear-gradient(135deg, var(--strawberry), var(--gradient-end));
  color: #fff;
  font-size: var(--fs-body);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-kawaii-lg);
  cursor: pointer;
  box-shadow: var(--shadow-kawaii-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 183, 206, 0.35);
}

.btn-gradient:active {
  transform: translateY(0);
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 253, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-pink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.header-logo-icon {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1.5px solid rgba(255, 183, 206, 0.3);
  box-shadow: 0 2px 8px rgba(255, 183, 206, 0.1);
}

.header-logo-text {
  font-size: var(--fs-title3);
  font-weight: 800;
  color: var(--heading-color);
  letter-spacing: 0.5px;
}

.header-cta {
  padding: var(--sp-sm) var(--sp-md-lg);
  font-size: var(--fs-caption);
  border-radius: var(--radius-kawaii-lg);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  position: relative;
  display: inline-block;
  margin-bottom: var(--sp-lg);
}

.hero-logo-circle {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  box-shadow: var(--shadow-kawaii-lg);
  border: 2px solid rgba(255, 183, 206, 0.2);
  margin: 0 auto;
}

.hero-sparkle {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: var(--fs-title2);
  animation: sparkle 2s ease-in-out infinite alternate;
}

@keyframes sparkle {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.3; transform: scale(0.85); }
}

.hero-app-name {
  font-size: 48px;
  font-weight: 800;
  color: var(--heading-color);
  letter-spacing: 2px;
  margin-bottom: var(--sp-sm);
}

.hero-subtitle {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text-main);
  opacity: 0.6;
  margin-bottom: var(--sp-xl);
}

.hero-tagline {
  font-size: var(--fs-title2);
  font-weight: 800;
  color: var(--heading-color);
  line-height: 1.5;
  margin-bottom: var(--sp-xxl);
}

.hero-cta {
  padding: var(--sp-md) 40px;
  font-size: 18px;
}

/* Floating emojis (decorative) */
.floating-emoji {
  position: absolute;
  opacity: 0.5;
  pointer-events: none;
  animation: float 6s ease-in-out infinite alternate;
}

.floating-emoji:nth-child(1) { top: 12%; left: 8%; font-size: 32px; animation-delay: 0s; }
.floating-emoji:nth-child(2) { top: 20%; right: 8%; font-size: 28px; animation-delay: 1s; }
.floating-emoji:nth-child(3) { bottom: 18%; left: 6%; font-size: 28px; animation-delay: 2s; }
.floating-emoji:nth-child(4) { bottom: 22%; right: 10%; font-size: 32px; animation-delay: 0.5s; }

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-16px) rotate(6deg); }
}

/* --- Features Section --- */
.features {
  background: var(--soft-pink-bg);
  position: relative;
}

.features::before,
.features::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 48px;
}

.features::before {
  top: -1px;
  background: linear-gradient(to bottom, var(--cream-bg), transparent);
}

.features::after {
  bottom: -1px;
  background: linear-gradient(to top, var(--cream-bg), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-pink);
  border-radius: var(--radius-kawaii);
  padding: var(--sp-xl);
  text-align: center;
  box-shadow: var(--shadow-kawaii);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-kawaii-lg);
}

.feature-emoji {
  font-size: 48px;
  margin-bottom: var(--sp-md);
  display: block;
}

.feature-title {
  font-size: var(--fs-title3);
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: var(--sp-sm);
}

.feature-desc {
  font-size: var(--fs-body);
  color: var(--text-main);
  line-height: 1.7;
}

/* --- Screenshots Section --- */
.screenshots {
  text-align: center;
}

.screenshots-row {
  display: flex;
  justify-content: center;
  gap: var(--sp-xl);
  flex-wrap: wrap;
}

.phone-frame {
  width: 220px;
  height: 440px;
  background: var(--card-bg);
  border: 1px solid var(--border-pink);
  border-radius: var(--radius-kawaii-lg);
  box-shadow: var(--shadow-kawaii-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  color: var(--text-main);
  opacity: 0.4;
}

.phone-placeholder-icon {
  font-size: 40px;
}

.phone-placeholder-text {
  font-size: var(--fs-caption);
  font-weight: 600;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--soft-pink-bg), var(--lavender));
  position: relative;
}

.cta-section::before,
.cta-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 48px;
}

.cta-section::before {
  top: -1px;
  background: linear-gradient(to bottom, var(--cream-bg), transparent);
}

.cta-section::after {
  bottom: -1px;
  background: linear-gradient(to top, var(--cream-bg), transparent);
}

.cta-emoji {
  font-size: 56px;
  margin-bottom: var(--sp-lg);
  display: block;
}

.cta-title {
  font-size: var(--fs-title);
  font-weight: 800;
  color: var(--heading-color);
  margin-bottom: var(--sp-sm);
}

.cta-desc {
  font-size: var(--fs-body);
  color: var(--text-main);
  margin-bottom: var(--sp-xl);
}

.cta-button {
  padding: 18px 48px;
  font-size: 18px;
}

.cta-note {
  margin-top: var(--sp-md);
  font-size: var(--fs-caption);
  color: var(--text-main);
  opacity: 0.5;
}

/* --- Footer --- */
.footer {
  padding: var(--sp-xl) 0;
  text-align: center;
  border-top: 1px solid var(--border-pink);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-sm-md);
  margin-bottom: var(--sp-md);
}

.footer-link {
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--text-main);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 0.8;
}

.footer-divider {
  width: 1px;
  height: 14px;
  background: var(--text-main);
  opacity: 0.2;
}

.footer-copy {
  font-size: var(--fs-caption2);
  color: var(--text-main);
  opacity: 0.35;
}

/* --- Scroll Fade-In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: var(--fs-title2);
    margin-bottom: var(--sp-xl);
  }

  .hero-app-name {
    font-size: 36px;
  }

  .hero-tagline {
    font-size: var(--fs-title3);
  }

  .hero-logo-circle {
    width: 96px;
    height: 96px;
    font-size: 48px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }

  .feature-card {
    padding: var(--sp-lg);
  }

  .screenshots-row {
    gap: var(--sp-md);
  }

  .phone-frame {
    width: 180px;
    height: 360px;
  }

  .header-logo-text {
    font-size: var(--fs-body);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--sp-md);
  }

  .hero-app-name {
    font-size: 30px;
  }

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

  .phone-frame {
    width: 150px;
    height: 300px;
  }

  .cta-button {
    padding: var(--sp-md) var(--sp-xl);
    font-size: var(--fs-body);
  }
}
