/* ===== StashCache Website — Liquid Glass Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* App Icon Palette */
  --bg-deep: #0a0a14;
  --bg-dark: #0f0f1e;
  --bg-card: #161625;
  --orange: #FFAB40;
  --orange-bright: #FF8C00;
  --orange-soft: #FFC266;
  --orange-glow: rgba(255, 171, 64, 0.15);
  --amber: #FFC266;
  --text-primary: #F0F0F5;
  --text-secondary: #9999AA;
  --text-muted: #666677;

  /* Liquid Glass tokens */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 194, 102, 0.1);
  --glass-border-hover: rgba(255, 171, 64, 0.25);
  --glass-highlight: rgba(255, 255, 255, 0.08);
  --glass-blur: 24px;
  --glass-radius: 24px;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-pad: clamp(60px, 10vw, 120px);
}

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

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

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

/* ===== Ambient Background with Animated Orbs ===== */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.ambient-bg::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.07) 0%, rgba(255, 100, 0, 0.03) 40%, transparent 70%);
  top: -300px;
  right: -200px;
  animation: orbit-glow 20s ease-in-out infinite;
}

.ambient-bg::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.05) 0%, transparent 70%);
  bottom: -200px;
  left: -150px;
  animation: orbit-glow 25s ease-in-out infinite reverse;
}

@keyframes orbit-glow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  25% { transform: translate(40px, -30px) scale(1.15); opacity: 0.8; }
  50% { transform: translate(-20px, 40px) scale(0.9); opacity: 1; }
  75% { transform: translate(30px, 20px) scale(1.1); opacity: 0.7; }
}

/* ===== Liquid Glass Mixin ===== */
.liquid-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  position: relative;
  overflow: hidden;
}

/* Specular highlight — top edge shine */
.liquid-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 179, 71, 0.35), rgba(255,255,255,0.15), rgba(255, 179, 71, 0.35), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.liquid-glass:hover::before {
  opacity: 1;
}

/* Inner glow effect */
.liquid-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%, rgba(255,140,0,0.02) 100%);
  pointer-events: none;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(255, 140, 0, 0.2);
}

.nav-brand span {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--orange);
  background: rgba(255, 140, 0, 0.08);
}

.nav-cta {
  background: linear-gradient(135deg, var(--orange), var(--orange-bright)) !important;
  color: #000 !important;
  padding: 10px 24px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255, 179, 71, 0.4);
  transition: transform 0.2s, box-shadow 0.3s !important;
}

.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(255, 140, 0, 0.35) !important;
  background: linear-gradient(135deg, var(--orange), var(--orange-bright)) !important;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--section-pad) 24px;
  padding-top: calc(var(--section-pad) + 60px);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 8px 20px;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--orange);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 140, 0, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(255, 140, 0, 0.6); }
  50% { opacity: 0.4; box-shadow: 0 0 4px rgba(255, 140, 0, 0.3); }
}

.hero h1 {
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--orange), var(--amber), var(--orange-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer-text 4s ease-in-out infinite;
}

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

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
  font-weight: 400;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--orange), var(--orange-bright));
  color: #000;
  padding: 16px 32px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 179, 71, 0.4);
  transition: transform 0.25s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(255, 140, 0, 0.35);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 16px 32px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.3s, background 0.3s;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border-hover);
  background: var(--glass-bg-hover);
}

.hero-phone {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Phone glow ring */
.hero-phone::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: phone-glow 6s ease-in-out infinite;
}

@keyframes phone-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-phone img {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 20px 60px rgba(255, 140, 0, 0.15));
  animation: float-phone 6s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

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

/* ===== Features Section ===== */
.features {
  padding: var(--section-pad) 24px;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 56px;
}

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

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  padding: 32px;
  transition: transform 0.4s ease, border-color 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

/* Specular highlight on top edge */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 179, 71, 0.4), rgba(255,255,255,0.12), rgba(255, 179, 71, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Inner subtle refraction gradient */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 40%, rgba(255,140,0,0.03) 100%);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 48px rgba(255, 140, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.05);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(255, 179, 71, 0.08));
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  position: relative;
}

/* Icon inner highlight */
.feature-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

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

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

/* ===== How It Works ===== */
.how-it-works {
  padding: var(--section-pad) 24px;
}

.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.step {
  text-align: center;
  padding: 40px 24px;
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  transition: transform 0.4s ease, border-color 0.4s, box-shadow 0.4s;
  overflow: hidden;
}

/* Specular highlight */
.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,179,71,0.3), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.step::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 32px rgba(255, 140, 0, 0.06);
}

.step:hover::before {
  opacity: 1;
}

.step-number {
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(180deg, var(--orange), rgba(255, 140, 0, 0.15));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ===== CTA / Download Section ===== */
.cta-section {
  padding: var(--section-pad) 24px;
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}

/* Top specular line */
.cta-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), rgba(255,255,255,0.2), var(--orange), transparent);
}

/* Subtle inner ambient */
.cta-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 140, 0, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.cta-inner p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px 28px;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}

.store-badge:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: 0 8px 32px rgba(255, 140, 0, 0.12);
}

.store-badge svg {
  width: 28px;
  height: 28px;
  fill: var(--text-primary);
}

.store-badge-text {
  text-align: left;
}

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

.store-badge-text span {
  font-size: 16px;
  font-weight: 600;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand span {
  font-weight: 600;
  color: var(--text-secondary);
}

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

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

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

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

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

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-phone {
    order: -1;
  }

  .hero-phone img {
    max-width: 320px;
  }

  .nav-links {
    display: none;
  }

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

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

/* ===== Scroll Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for cards */
.features-grid .feature-card:nth-child(1) { transition-delay: 0s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.3s; }

.steps-row .step:nth-child(1) { transition-delay: 0s; }
.steps-row .step:nth-child(2) { transition-delay: 0.15s; }
.steps-row .step:nth-child(3) { transition-delay: 0.3s; }

/* ===== Page styles (Privacy, Support) ===== */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}

.page-content h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.page-content .last-updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.page-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--orange);
}

.page-content p,
.page-content li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.page-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-content a {
  color: var(--orange);
  text-decoration: none;
}

.page-content a:hover {
  text-decoration: underline;
}
