/* ================================================================
   RemoDeck Landing Page — style.css
   Dark, glassy, premium tech aesthetic
   ================================================================ */

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

/* ── Design Tokens ── */
:root {
  --bg:            #0F1117;
  --bg-deep:       #0A0C12;
  --surface:       #1A1D27;
  --surface-hover: #242836;
  --surface-glass: rgba(26, 29, 39, 0.6);
  --border:        #2A2E3B;
  --border-subtle: #1E2230;
  --primary:       #3B82F6;
  --primary-dim:   #2563EB;
  --primary-bright:#60A5FA;
  --primary-glow:  rgba(59, 130, 246, 0.15);
  --primary-glow-strong: rgba(59, 130, 246, 0.35);
  --text:          #E2E8F0;
  --text-muted:    #64748B;
  --text-dim:      #475569;
  --success:       #22C55E;
  --warning:       #F59E0B;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Noise texture overlay on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ── Selection ── */
::selection {
  background: var(--primary);
  color: #fff;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a {
  color: var(--primary-bright);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: #93C5FD;
}

/* ── Container ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background var(--transition-smooth), backdrop-filter var(--transition-smooth), border-color var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(15, 17, 23, 0.8);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.03em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.lang-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lang-toggle:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--primary);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* Atmospheric gradient mesh behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 40%, rgba(59, 130, 246, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 30% 60%, rgba(37, 99, 235, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 70% 30%, rgba(96, 165, 250, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Grid lines in hero background */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

/* App icon with glow */
.hero-icon-wrap {
  position: relative;
  width: 256px;
  height: 256px;
  margin-bottom: 40px;
}

.hero-icon {
  width: 256px;
  height: 256px;
  border-radius: 56px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.3));
}

/* Pulsing glow ring */
.hero-glow {
  position: absolute;
  inset: -30px;
  border-radius: 80px;
  background: radial-gradient(circle, var(--primary-glow-strong) 0%, transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
  z-index: 1;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.08); }
}

/* Orbiting particle ring */
.hero-orbit {
  position: absolute;
  inset: -50px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.08);
  animation: orbitSpin 20s linear infinite;
  z-index: 1;
}
.hero-orbit::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--primary);
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 16px;
  background: linear-gradient(135deg, #E2E8F0 0%, #94A3B8 50%, #E2E8F0 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 200% center; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3), 0 4px 14px rgba(59, 130, 246, 0.2);
  text-decoration: none;
}
.hero-cta:hover {
  background: var(--primary-dim);
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.4), 0 8px 24px rgba(59, 130, 246, 0.3);
  color: #fff;
}
.hero-cta svg {
  width: 18px;
  height: 18px;
}

/* ================================================================
   SECTION COMMON
   ================================================================ */
section {
  padding: 100px 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.7;
}

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

/* ================================================================
   FEATURES
   ================================================================ */
.features {
  position: relative;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-glow-strong), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(59, 130, 246, 0.05);
}
.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-bright);
  font-size: 1.25rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ================================================================
   SCREENSHOTS
   ================================================================ */
.screenshots {
  position: relative;
  overflow: hidden;
}

.screenshots-track {
  display: flex;
  gap: 20px;
  padding: 0 max(24px, calc((100vw - 1400px) / 2)) 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.screenshots-track:active {
  cursor: grabbing;
}
.screenshots-track::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 260px;
  position: relative;
}

/* Store screenshots already carry their own phone frame and headline */
.store-shot img {
  width: 100%;
  display: block;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-smooth);
}
.store-shot img:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Phone frame */
.phone-frame {
  background: linear-gradient(145deg, #1E2230, #161923);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 12px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.phone-frame:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(59, 130, 246, 0.08),
    0 0 0 1px rgba(59, 130, 246, 0.1) inset;
}

.phone-frame img {
  width: 100%;
  border-radius: 22px;
  display: block;
}

.screenshot-label {
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* Scroll fade edges */
.screenshots-track-wrap {
  position: relative;
}
.screenshots-track-wrap::before,
.screenshots-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.screenshots-track-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.screenshots-track-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

/* ================================================================
   DOWNLOAD
   ================================================================ */
.download {
  position: relative;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.4;
}

.download-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-bright);
}

.download-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.download-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.download-btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}
.download-btn-primary:hover {
  background: var(--primary-dim);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
  color: #fff;
}

.download-btn-secondary {
  background: var(--surface-hover);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.download-coming {
  display: block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* ================================================================
   FAQ
   ================================================================ */
.faq {
  position: relative;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.faq-item.active {
  border-color: rgba(59, 130, 246, 0.2);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
  gap: 16px;
}
.faq-question:hover {
  color: var(--primary-bright);
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-dim);
  transition: transform var(--transition-smooth), color var(--transition-fast);
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .download-grid {
    gap: 16px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .site-header {
    padding: 0 16px;
  }

  section {
    padding: 72px 0;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .hero-icon-wrap {
    width: 180px;
    height: 180px;
    margin-bottom: 32px;
  }
  .hero-icon {
    width: 180px;
    height: 180px;
    border-radius: 40px;
  }
  .hero-glow {
    inset: -20px;
    border-radius: 60px;
  }
  .hero-orbit {
    inset: -35px;
  }

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

  .feature-card {
    padding: 28px 24px;
  }

  .screenshot-item {
    width: 220px;
  }

  .download-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .faq-question {
    padding: 16px 20px;
    font-size: 0.92rem;
  }

  .faq-answer-inner {
    padding: 0 20px 16px;
    font-size: 0.85rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Tiny screens */
@media (max-width: 400px) {
  .hero h1 {
    font-size: 2rem;
  }

  .container {
    padding: 0 16px;
  }
}


/* ================================================================
   v1: steps, pricing, no-wrap labels
   ================================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
  white-space: nowrap;
}
.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Hard rule: button and label text never wraps */
.download-btn,
.hero-cta,
.hero-badge,
.lang-toggle,
.section-label,
.screenshot-label,
.download-coming,
.download-card h3,
.feature-card h3,
.faq-question > span {
  white-space: nowrap;
}
.download-btn { max-width: 100%; }

@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; gap: 12px; }
  .download-card { padding: 32px 16px; }
  .download-btn { padding: 12px 20px; }
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; gap: 12px; max-width: 480px; }
}
