/* RemoteOne Landing Page
   Design-forward. Glass morphism, animated gradients, the app's real palette. */

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

:root {
  /* Core palette — pulled from the app's Liquid Glass + Neumorphic themes */
  --bg:          #050507;
  --surface:     rgba(255,255,255,0.04);
  --glass:       rgba(255,255,255,0.06);
  --glass-border:rgba(255,255,255,0.08);
  --glass-hover: rgba(255,255,255,0.10);
  --text:        #F2F0ED;
  --text-dim:    rgba(255,255,255,0.55);
  --text-muted:  rgba(255,255,255,0.25);
  --accent:      #4A9EFF;
  --accent-soft: rgba(74,158,255,0.15);
  --clay:        #CEC3B0;
  --sakura:      #D4879A;
  --amber:       #B8784A;
  --green:       #8BA07A;
  --radius:      20px;
  --radius-sm:   12px;
  --max-w:       1080px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-soft);
  color: #fff;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #74b6ff; }

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

/* ── Layout ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 120px 0; }

/* ── Animated background mesh ────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(74,158,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(212,135,154,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 50% 80%, rgba(184,120,74,0.05) 0%, transparent 70%);
  animation: meshDrift 20s ease-in-out infinite alternate;
}

@keyframes meshDrift {
  0%   { opacity: 1; transform: scale(1) translate(0, 0); }
  50%  { opacity: 0.8; transform: scale(1.1) translate(-2%, 3%); }
  100% { opacity: 1; transform: scale(1.05) translate(2%, -2%); }
}

/* Grain removed — looked noisy at full screen on large displays */

/* ── Mouse-reactive gradient overlay ────────────────── */
.mouse-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: none;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
  position: relative;
}

/* Soft radial glow behind hero — mimics Sakura's breathing glow */
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle,
    rgba(74,158,255,0.12) 0%,
    rgba(212,135,154,0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0%   { opacity: 0.6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

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

/* App icon with glass ring */
.app-icon-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 40px;
}

/* Soft ambient glow behind icon — breathes slowly like Sakura's radial pulse */
.app-icon-wrap::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50px;
  background: radial-gradient(circle, rgba(74,158,255,0.2) 0%, transparent 70%);
  animation: iconBreathe 6s ease-in-out infinite alternate;
}

@keyframes iconBreathe {
  0%   { opacity: 0.4; transform: scale(0.95); }
  100% { opacity: 0.7; transform: scale(1.05); }
}

.app-icon {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 30px;
  overflow: hidden;
  object-fit: cover;
  z-index: 1;
  /* Mask to iOS squircle — clip any white edge artifacts */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--text-dim);
  font-weight: 400;
  margin-bottom: 48px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.01em;
}

/* ── CTA button — glass pill with glow ───────────────── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  letter-spacing: -0.01em;
  position: relative;
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  box-shadow: 0 0 40px rgba(74,158,255,0.3);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cta:hover {
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.cta:hover::after { opacity: 1; }

.cta:active { transform: translateY(0); }

.cta svg { flex-shrink: 0; }

/* ── TV brand pills ──────────────────────────────────── */
.tv-brands {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
}

.tv-brand-pill {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.tv-brand-pill:hover {
  background: var(--glass-hover);
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
}

/* ── Section headers ─────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Features — glass cards with accent borders ──────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle colored top-border accent per card */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:nth-child(1)::before { background: var(--accent); }
.feature-card:nth-child(2)::before { background: var(--sakura); }
.feature-card:nth-child(3)::before { background: var(--amber); }

.feature-card:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.feature-card:nth-child(1) .feature-icon {
  background: rgba(74,158,255,0.1);
  color: var(--accent);
}
.feature-card:nth-child(1) .feature-icon svg { stroke: var(--accent); }

.feature-card:nth-child(2) .feature-icon {
  background: rgba(212,135,154,0.1);
  color: var(--sakura);
}
.feature-card:nth-child(2) .feature-icon svg { stroke: var(--sakura); }

.feature-card:nth-child(3) .feature-icon {
  background: rgba(184,120,74,0.1);
  color: var(--amber);
}
.feature-card:nth-child(3) .feature-icon svg { stroke: var(--amber); }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

/* ── Theme showcase ──────────────────────────────────── */
.themes { overflow: hidden; }

.theme-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: nowrap;
}

/* Mobile: horizontal scroll carousel */
@media (max-width: 768px) {
  .themes { overflow: visible; }
  .theme-row {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 24px;
    scrollbar-width: none;
  }
  .theme-row::-webkit-scrollbar { display: none; }
  .theme-row .theme-card {
    scroll-snap-align: center;
    flex-shrink: 0;
  }
}

.theme-card {
  flex: 0 0 280px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

.theme-card:hover { transform: scale(1.03); }

/* Phone frame with device chrome */
.phone-frame {
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  border: 2px solid rgba(255,255,255,0.1);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 20px 60px rgba(0,0,0,0.5),
    0 4px 16px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Dynamic Island notch removed — screenshots already include it */

/* Subtle glass reflection sweep */
.phone-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.08) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255,255,255,0.02) 100%
  );
  pointer-events: none;
  z-index: 1;
}

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

/* Placeholder state for phone frames */
.phone-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Theme-specific placeholder backgrounds */
.phone-placeholder.clay {
  background: linear-gradient(180deg, #CEC3B0 0%, #B8AD9A 100%);
  color: rgba(122,112,96,0.5);
}

.phone-placeholder.glass {
  background: linear-gradient(180deg, #1a2030 0%, #0d1520 100%);
  color: rgba(255,255,255,0.2);
}

.phone-placeholder.sakura {
  background: linear-gradient(180deg, #F5EDE6 0%, #F2DCDE 50%, #EDE5DC 100%);
  color: rgba(138,104,114,0.3);
}

.theme-label {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── How it works — numbered steps ───────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.step {
  text-align: center;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}

/* ── Bottom CTA ──────────────────────────────────────── */
.bottom-cta {
  text-align: center;
  padding: 120px 0 140px;
  position: relative;
}

.bottom-cta::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(74,158,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.bottom-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.bottom-cta p {
  color: var(--text-dim);
  margin-bottom: 40px;
  font-size: 1.05rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Divider ─────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  margin: 0 auto;
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 48px 0;
  text-align: center;
}

footer p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

footer a {
  color: var(--text-dim);
  font-size: 0.82rem;
  transition: color 0.2s;
}

footer a:hover { color: var(--text); text-decoration: none; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
}

/* ── Scroll animations ───────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

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

/* Stagger children */
.stagger > .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger > .fade-in:nth-child(3) { transition-delay: 0.2s; }

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

  .hero { min-height: 85vh; padding: 100px 0 60px; }

  .app-icon-wrap { width: 100px; height: 100px; margin-bottom: 32px; }
  .app-icon { width: 100px; height: 100px; border-radius: 24px; }
  .app-icon-wrap::before { border-radius: 28px; }

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

  .theme-row { gap: 16px; }
  .theme-card { flex: 0 0 200px; }
  .phone-frame { border-radius: 20px; }
  /* phone-frame::before removed — screenshots include notch */
  .phone-frame::after { border-radius: 20px; }

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

  .tv-brands { gap: 8px; }
  .tv-brand-pill { padding: 6px 14px; font-size: 0.78rem; }

  .bottom-cta { padding: 80px 0 100px; }
}

@media (max-width: 480px) {
  .theme-row { gap: 12px; }
  .theme-card { flex: 0 0 160px; }
}

/* ── Privacy page ────────────────────────────────────── */
.privacy-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px;
}

.privacy-page h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.privacy-page .last-updated {
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 0.88rem;
}

.privacy-page h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.privacy-page p,
.privacy-page ul {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 0.93rem;
  line-height: 1.6;
}

.privacy-page ul { padding-left: 24px; }
.privacy-page li { margin-bottom: 8px; }

.back-link {
  display: inline-block;
  margin-bottom: 48px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

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