/* ==========================================================================
   KeepJoy — Official Premium Design System (SF Pro & Native App Colors)
   ========================================================================== */

/* --- Custom Variables & Theme Tokens --- */
:root {
  /* Official App Colors */
  --brand-mint: #5ECFB8;
  --brand-purple: #6B5CE7;
  --brand-purple-dark: #111827;
  
  --bg: #F5F5F7;
  --white: #FFFFFF;
  --text-1: #111827;
  --text-2: #6B7280;
  --text-3: #9CA3AF;
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-hover: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.04);
  
  --border: rgba(17, 24, 39, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  
  --max-w: 1100px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  /* Using native iOS system fonts */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* --- Ambient mesh background following app gradient --- */
body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 15% 15%, rgba(94, 207, 184, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(107, 92, 231, 0.15) 0%, transparent 45%);
  z-index: -2;
  pointer-events: none;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button {
  font: inherit;
  border: none;
  cursor: pointer;
  background: transparent;
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- SF Pro Display for Headings --- */
h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Noto Sans SC", sans-serif;
  color: var(--text-1);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px 0;
  background: rgba(245, 245, 247, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 34px;
  width: 34px;
  border-radius: 8px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-1);
  background: rgba(0, 0, 0, 0.04);
}

/* Apple style download CTA button */
.btn-cta {
  background: var(--brand-purple);
  color: var(--white);
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 99px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cta:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.lang-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-1);
}

.lang-btn svg {
  width: 14px;
  height: 14px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  padding: 4px;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
}

.lang-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 6px;
}

.lang-option:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--brand-purple);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: clamp(100px, 14vh, 140px);
  padding-bottom: clamp(60px, 8vh, 90px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(94, 207, 184, 0.12);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #3b9b87;
  margin-bottom: 20px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-mint);
}

.hero-title {
  font-size: clamp(2.25rem, 1.2rem + 3.8vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-title span.gradient {
  background: linear-gradient(135deg, var(--brand-purple), #4a3ee3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(0.95rem, 0.9rem + 0.15vw, 1.15rem);
  color: var(--text-2);
  margin-bottom: 32px;
  line-height: 1.65;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge-official {
  display: inline-block;
  height: 40px;
  width: 135px;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 6px;
}

.store-badge-official:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
}

.store-badge-official svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Stacking phone mockups */
.hero-mockups {
  display: grid;
  place-items: center;
  position: relative;
  height: 440px;
}

.phone-mockup {
  grid-row: 1; grid-column: 1;
  width: clamp(180px, 16vw, 220px);
  border-radius: 32px;
  border: 9px solid #08080A;
  background: #000;
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
  overflow: hidden;
  position: relative;
}

/* Dynamic Island for hero mockups */
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 14px;
  background: #000;
  border-radius: 7px;
  z-index: 10;
}

/* Home Indicator for hero mockups */
.phone-mockup::after {
  content: '';
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1.5px;
  z-index: 10;
}

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

.mockup-center {
  z-index: 3;
}

.mockup-left {
  z-index: 2;
  transform: translateX(-50%) translateY(24px) rotate(-8deg) scale(0.9);
}

.mockup-right {
  z-index: 2;
  transform: translateX(50%) translateY(24px) rotate(8deg) scale(0.9);
}

.hero-mockups:hover .mockup-left {
  transform: translateX(-65%) translateY(12px) rotate(-5deg) scale(0.93);
}

.hero-mockups:hover .mockup-right {
  transform: translateX(65%) translateY(12px) rotate(5deg) scale(0.93);
}

.phone-mockup:hover {
  transform: translateY(-10px) scale(1.02) !important;
  z-index: 5;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* ==========================================================================
   INTERACTIVE GAME SECTION
   ========================================================================== */
.interactive-demo {
  padding: 60px 0;
  background: rgba(255, 255, 255, 0.4);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.demo-title {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
  margin-bottom: 12px;
}

.demo-subtitle {
  color: var(--text-2);
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
}

.game-viewport {
  width: 100%;
  max-width: 380px;
  height: 530px;
  margin: 0 auto;
  perspective: 1000px;
  margin-bottom: 16px;
}

/* iOS glassmorphism card style (matching greeting card in app) */
.demo-glass-panel {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.game-score-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  z-index: 10;
}

.progress-indicator {
  display: flex;
  gap: 4px;
}

.progress-dot {
  width: 20px;
  height: 5px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 99px;
  transition: all 0.3s ease;
}

.progress-dot.active {
  background: var(--brand-purple);
}

.progress-dot.completed {
  background: var(--brand-mint);
}

.card-container {
  position: relative;
  width: 100%;
  height: 340px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-card {
  position: absolute;
  width: 260px;
  height: 340px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  padding: 18px;
  cursor: grab;
  user-select: none;
  transform-origin: 50% 99%;
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.15), opacity 0.2s;
  z-index: 3;
}

.game-card:active {
  cursor: grabbing;
}

.game-card.inactive {
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9) translateY(10px);
}

.game-card.stacked-1 {
  transform: translateY(10px) scale(0.96);
  z-index: 2;
  opacity: 0.85;
}

.game-card.stacked-2 {
  transform: translateY(20px) scale(0.92);
  z-index: 1;
  opacity: 0.5;
}

.card-item-image {
  height: 160px;
  background: linear-gradient(135deg, rgba(94, 207, 184, 0.1), rgba(107, 92, 231, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.card-item-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--text-1);
}

.card-item-story {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.35;
}

.game-controls {
  display: flex;
  gap: 16px;
  z-index: 10;
  width: 100%;
  justify-content: center;
}

.btn-game {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.05);
}

.btn-game.let-go:hover {
  background: #FFF0F2;
  color: #FF5A79;
  border-color: rgba(255, 90, 121, 0.15);
  transform: scale(1.1);
}

.btn-game.spark-joy:hover {
  background: #F0FFF9;
  color: #00B171;
  border-color: rgba(0, 177, 113, 0.15);
  transform: scale(1.1);
}

.btn-game:active {
  transform: scale(0.95);
}

/* Animation directions */
.swipe-left-anim {
  transform: translateX(-350px) translateY(30px) rotate(-25deg) !important;
  opacity: 0 !important;
}

.swipe-right-anim {
  transform: translateX(350px) translateY(30px) rotate(25deg) !important;
  opacity: 0 !important;
}

.game-finished-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 10px;
  height: 100%;
  width: 100%;
}

.sparkle-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

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

.finish-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.finish-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 24px;
}

/* ==========================================================================
   FEATURES SHOWCASE
   ========================================================================== */
.features-section {
  padding: 80px 0;
}

.features-header {
  text-align: center;
  margin-bottom: 50px;
}

.features-header .section-title {
  font-size: clamp(1.85rem, 1.2rem + 2.5vw, 2.75rem);
  margin-bottom: 10px;
}

.features-header .section-desc {
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.features-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: start;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.showcase-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.showcase-card:hover {
  background: var(--glass-bg-hover);
  transform: translateX(4px);
}

.showcase-card.active {
  background: var(--white);
  border-color: rgba(107, 92, 231, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transform: translateX(6px);
}

.feature-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.showcase-card.active .feature-icon-box {
  background: rgba(94, 207, 184, 0.15);
}

.showcase-card:not(.active) .feature-icon-box {
  background: rgba(0, 0, 0, 0.03);
}

.feature-card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--text-1);
}

.feature-card-content p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.45;
}

.showcase-sticky-phone {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  display: flex;
  justify-content: center;
}

.phone-solo-frame {
  width: 270px;
  height: 540px;
  border-radius: 42px;
  border: 11px solid #08080A;
  background: #000;
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
  overflow: hidden;
  position: relative;
}

/* Dynamic Island */
.phone-solo-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #000;
  border-radius: 9px;
  z-index: 10;
}

/* Home Indicator */
.phone-solo-frame::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  z-index: 10;
}

.phone-screen-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

/* ==========================================================================
   DOWNLOAD / CTA BAND
   ========================================================================== */
.download-band {
  padding: 60px 0 80px;
}

.download-card {
  background: linear-gradient(135deg, rgba(94, 207, 184, 0.2), rgba(107, 92, 231, 0.2));
  border-radius: var(--radius-lg);
  padding: 50px 32px;
  text-align: center;
  color: var(--text-1);
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}

.download-card h2 {
  font-size: clamp(1.6rem, 1.2rem + 2.5vw, 2.5rem);
  margin-bottom: 10px;
}

.download-card p {
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 28px;
  color: var(--text-2);
}

.download-card .store-row {
  justify-content: center;
}

/* ==========================================================================
   SUBPAGES (DOWNLOAD, CONTACT, ACCOUNT & DATA, PRIVACY)
   ========================================================================== */
.main-content {
  padding-top: clamp(90px, 12vh, 120px);
  padding-bottom: 60px;
}

.content-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 36px);
  box-shadow: var(--glass-shadow);
  max-width: 760px;
  margin: 0 auto;
}

.page-title {
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.5rem);
  margin-bottom: 10px;
  color: var(--text-1);
}

.page-lead {
  font-size: 0.98rem;
  color: var(--text-2);
  margin-bottom: 24px;
}

/* Forms styling (Contact Page) */
.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--white);
  transition: all 0.2s ease;
  min-height: 44px;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(107, 92, 231, 0.1);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

.form-help {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-top: 4px;
}

.form-status {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 12px;
}

.form-status.success {
  background: #F0FFF9;
  color: #00B171;
  border: 1px solid rgba(0, 177, 113, 0.1);
}

.form-status.error {
  background: #FFF0F2;
  color: #FF5A79;
  border: 1px solid rgba(255, 90, 121, 0.1);
}

/* Download Page Specifics */
.download-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.download-option-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}

.download-option-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.download-qr-box {
  width: 120px;
  height: 120px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-qr-box img {
  width: 100%;
  height: 100%;
}

.download-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Legal Articles Layout (Privacy, Terms) */
.legal-content {
  color: var(--text-1);
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 28px;
  margin-bottom: 10px;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 6px;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}

.legal-content p, .legal-content ul {
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--text-2);
}

.legal-content ul {
  padding-left: 18px;
}

.legal-content li {
  margin-bottom: 6px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--white);
  position: relative;
  z-index: 1;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
}

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

.copyright {
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 500;
  width: 100%;
  text-align: center;
  margin-top: 20px;
  border-top: 1.5px solid rgba(0, 0, 0, 0.03);
  padding-top: 20px;
}

/* Scroll reveal helper */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-copy {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .store-row {
    justify-content: center;
  }
  
  .hero-mockups {
    height: 360px;
    margin-top: 10px;
  }
  
  .phone-mockup {
    width: clamp(150px, 20vw, 190px);
  }
  
  .features-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .showcase-sticky-phone {
    display: none;
  }
  
  .showcase-card.active {
    transform: none;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 1.25rem;
  }
  
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  
  .download-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .phone-left {
    transform: translateX(-35%) translateY(16px) rotate(-6deg) scale(0.85);
  }
  
  .phone-right {
    transform: translateX(35%) translateY(16px) rotate(6deg) scale(0.85);
  }
  
  .hero-mockups:hover .phone-left {
    transform: translateX(-45%) translateY(8px) rotate(-4deg) scale(0.88);
  }
  
  .hero-mockups:hover .phone-right {
    transform: translateX(45%) translateY(8px) rotate(4deg) scale(0.88);
  }
}
