/* ===== FlipMe Landing Page — Neon Cyber-Chic Theme ===== */

:root {
  --bg-deep: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.1);
  --pink: #ff6ec7;
  --magenta: #e040fb;
  --purple: #9c27b0;
  --cyan: #00e5ff;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --gradient-main: linear-gradient(135deg, var(--pink), var(--magenta), var(--purple));
  --gradient-alt: linear-gradient(135deg, var(--cyan), var(--magenta));
  --gradient-text: linear-gradient(90deg, var(--pink), var(--magenta));
  --glow-pink: 0 0 40px rgba(255, 110, 199, 0.4);
  --glow-cyan: 0 0 40px rgba(0, 229, 255, 0.3);
  --radius: 16px;
  --radius-lg: 24px;
  --font: 'Noto Sans JP', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===== Background Effects ===== */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: rgba(224, 64, 251, 0.15);
  top: -200px;
  right: -100px;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: rgba(255, 110, 199, 0.12);
  bottom: 20%;
  left: -150px;
}

.bg-glow-3 {
  width: 400px;
  height: 400px;
  background: rgba(0, 229, 255, 0.08);
  top: 50%;
  right: 10%;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ===== Typography ===== */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-alt {
  background: var(--gradient-alt);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

.btn-primary {
  background: var(--gradient-main);
  color: var(--white);
  box-shadow: var(--glow-pink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(255, 110, 199, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--pink);
  background: rgba(255, 110, 199, 0.08);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-flip { color: var(--white); }

.logo-me {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-glass);
}

/* ===== Phone Mockup ===== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
}

.phone-frame {
  width: 280px;
  height: 580px;
  background: #1a1a24;
  border-radius: 40px;
  padding: 12px;
  border: 2px solid rgba(255, 110, 199, 0.3);
  box-shadow:
    0 0 60px rgba(224, 64, 251, 0.2),
    inset 0 0 30px rgba(255, 110, 199, 0.05);
  position: relative;
  z-index: 2;
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: #1a1a24;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.phone-screen {
  background: #0d0d14;
  border-radius: 32px;
  height: calc(100% - 28px);
  overflow: hidden;
  position: relative;
}

.video-card {
  height: 100%;
  position: relative;
}

.phone-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  background: #0d0d14;
}

.video-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}

.video-bg-1 {
  background: linear-gradient(180deg,
    rgba(224, 64, 251, 0.3) 0%,
    rgba(255, 110, 199, 0.2) 30%,
    rgba(10, 10, 15, 0.9) 100%
  ),
  linear-gradient(135deg, #2d1b4e 0%, #1a0a2e 50%, #0a0a0f 100%);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
  pointer-events: none;
}

.video-ui {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}

.video-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 2px;
  background: var(--gradient-main);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #1a1a24;
}

.video-user strong {
  display: block;
  font-size: 15px;
}

.video-user span {
  font-size: 12px;
  color: var(--text-muted);
}

.video-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 11px;
  cursor: pointer;
}

.action-btn span {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  font-size: 18px;
  backdrop-filter: blur(10px);
}

/* Floating cards */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  font-size: 13px;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.floating-card strong {
  display: block;
  font-size: 14px;
}

.floating-card span:last-child {
  color: var(--text-muted);
  font-size: 12px;
}

.fc-icon { font-size: 24px; }

.card-1 {
  top: 60px;
  left: -80px;
  animation-delay: 0s;
}

.card-2 {
  bottom: 100px;
  right: -60px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.play-glow {
  position: absolute;
  top: -20px;
  left: -60px;
  width: 100px;
  height: 100px;
  opacity: 0.7;
  animation: glow-pulse 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

.scroll-hint {
  text-align: center;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 13px;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--pink);
  border-bottom: 2px solid var(--pink);
  transform: rotate(45deg);
  margin: 8px auto 0;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ===== Section Common ===== */
section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 110, 199, 0.1);
  border: 1px solid rgba(255, 110, 199, 0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 500px;
  margin: 0 auto;
}

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

.feature-card {
  position: relative;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.feature-card:hover {
  border-color: rgba(255, 110, 199, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(224, 64, 251, 0.1);
}

.feature-card.featured {
  background: linear-gradient(135deg, rgba(255, 110, 199, 0.08), rgba(224, 64, 251, 0.05));
  border-color: rgba(255, 110, 199, 0.25);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 110, 199, 0.1);
  border-radius: 14px;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  color: var(--pink);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.feature-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  background: var(--gradient-main);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}

/* ===== Download ===== */
.download-card {
  position: relative;
  padding: 64px;
  background: var(--bg-glass);
  border: 1px solid rgba(255, 110, 199, 0.2);
  border-radius: 32px;
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.download-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(224, 64, 251, 0.15), transparent 70%);
  pointer-events: none;
}

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

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin-bottom: 32px;
  box-shadow:
    0 0 40px rgba(255, 110, 199, 0.4),
    0 0 80px rgba(224, 64, 251, 0.2);
  border: 2px solid rgba(255, 110, 199, 0.3);
}

.download-card h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.download-card > .download-content > p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 36px;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s;
}

.store-btn:hover {
  background: rgba(255, 110, 199, 0.1);
  border-color: rgba(255, 110, 199, 0.3);
  transform: translateY(-2px);
}

.store-btn-soon {
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}

.store-btn-soon:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-glass);
  transform: none;
}

.store-btn svg {
  width: 28px;
  height: 28px;
}

.store-btn small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.store-btn strong {
  font-size: 16px;
}

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 40px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-glass);
  }

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

  .floating-card { display: none; }

  .download-card { padding: 40px 24px; }
}
