/* CamJam Landing – creative, dense, advanced */
:root {
  --gradient-start: #E07177;
  --gradient-mid: #8A4A70;
  --gradient-end: #643D69;
  --primary: #4B164C;
  --primary-dark: #22172A;
  --background-light: #F8E7F5;
  --background-lighter: #FDF7FD;
  --card: #FFFFFF;
  --text-dark: #22172A;
  --text-muted: #6B5B6F;
  --accent: #E07177;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(75, 22, 76, 0.12);
  --shadow-lg: 0 12px 40px rgba(75, 22, 76, 0.18);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dark);
  background: var(--background-lighter);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-overflow-scrolling: touch;
}

main {
  max-width: 100%;
  overflow-x: hidden;
}

/* Prevent overflow from long words */
h1, h2, h3, .hero-title, .section-title, .download-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ----- Header (creative, glass, responsive) ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding-top: env(safe-area-inset-top, 0);
}

.header-inner {
  background: linear-gradient(135deg, rgba(224, 113, 119, 0.92), rgba(138, 74, 112, 0.92), rgba(100, 61, 105, 0.92));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.header.scrolled .header-inner {
  background: linear-gradient(135deg, rgba(224, 113, 119, 0.98), rgba(138, 74, 112, 0.98), rgba(100, 61, 105, 0.98));
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
  min-width: 0;
  flex-shrink: 0;
}

.nav-logo:hover {
  opacity: 0.95;
  transform: scale(1.02);
}

.nav-logo-ring {
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-logo:hover .nav-logo-ring {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.nav-logo-text {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
}

.nav-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.nav-cta {
  background: rgba(255, 255, 255, 0.25);
  font-weight: 600;
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  cursor: pointer;
  gap: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

.nav-toggle:active {
  transform: scale(0.96);
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Tablet: show hamburger earlier so nav doesn't cram */
@media (max-width: 992px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 80px 24px 40px;
    background: linear-gradient(165deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, visibility 0.35s;
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu .nav-link {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 16px 24px;
    font-size: 1.05rem;
    border-radius: 14px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .nav-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .nav-menu .nav-cta {
    margin-top: 16px;
    margin-left: 0;
    background: rgba(255, 255, 255, 0.3);
    font-size: 1.05rem;
    padding: 18px 24px;
  }

  .nav-menu .nav-cta:hover {
    background: rgba(255, 255, 255, 0.45);
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: calc(88px + env(safe-area-inset-top, 0px)) 0 56px;
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 100% 80% at 20% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(ellipse 80% 100% at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-blob-1 {
  width: 280px;
  height: 280px;
  background: var(--accent);
  top: -80px;
  right: -60px;
  animation: blob 8s ease-in-out infinite;
}

.hero-blob-2 {
  width: 200px;
  height: 200px;
  background: var(--primary);
  bottom: -40px;
  left: -40px;
  animation: blob 10s ease-in-out infinite reverse;
}

@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 100%;
}

.hero-content { text-align: center; }

.hero-badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}

.hero-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-title-accent {
  background: linear-gradient(120deg, #fff 0%, rgba(255,255,255,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin: 0 0 20px;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.9);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(75, 22, 76, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(75, 22, 76, 0.5);
}

.btn-glow {
  box-shadow: 0 0 24px rgba(255,255,255,0.25), 0 4px 16px rgba(75, 22, 76, 0.4);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}

.btn-ghost:hover { background: rgba(255,255,255,0.25); }

/* Hero: two phone mockups – on mobile: glass card + device frame + notch + labels; on desktop overlap */
.hero-phones {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 300px;
  padding: 24px 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Glass card behind phones (mobile) */
.hero-phones-glass {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(320px, 92vw);
  height: 85%;
  min-height: 280px;
  background: linear-gradient(145deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 25px 50px -12px rgba(0,0,0,0.35),
    0 0 60px -15px rgba(224, 113, 119, 0.25);
  pointer-events: none;
  z-index: 0;
}

.hero-phones-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.hero-phone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hero-phone-bezel {
  position: relative;
  width: min(160px, 44vw);
  max-width: 100%;
  padding: 10px;
  padding-top: 18px;
  background: linear-gradient(165deg, #2d2d2d 0%, #1a1a1a 50%, #0d0d0d 100%);
  border-radius: 28px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.12),
    0 0 0 4px rgba(0,0,0,0.3),
    0 20px 40px -10px rgba(0,0,0,0.5),
    0 0 30px -5px rgba(224, 113, 119, 0.15);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.hero-phone-bezel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
  border-radius: 28px 28px 50% 50% / 20px 20px 30% 30%;
  pointer-events: none;
  z-index: 1;
}

/* Notch / dynamic island */
.hero-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 8px;
  background: #0a0a0a;
  border-radius: 20px;
  z-index: 2;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.hero-phone-splash {
  animation: heroFloat 4s ease-in-out infinite;
}

.hero-phone-signup {
  animation: heroFloat 4s ease-in-out infinite 0.5s;
}

.hero-phone-frame {
  width: 100%;
  height: 268px;
  max-height: 52vh;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}

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

.hero-phone-label {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

/* Desktop: overlapping phones with absolute positioning; no glass card */
@media (min-width: 900px) {
  .hero-phones-glass {
    display: none;
  }

  .hero-phones {
    flex-direction: row;
    gap: 0;
    min-height: 400px;
    overflow: visible;
    padding: 20px 0;
  }

  .hero-phones-inner {
    position: relative;
    width: 100%;
    height: 400px;
  }

  .hero-phone {
    position: absolute;
    width: 200px;
    max-width: none;
    left: 50%;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .hero-phone-label {
    display: none;
  }

  .hero-phone-bezel {
    width: 100%;
    padding: 12px;
    padding-top: 22px;
    border-radius: 32px;
  }

  .hero-phone-notch {
    width: 70px;
    height: 10px;
    top: 10px;
  }

  .hero-phone-frame {
    height: 360px;
    max-height: none;
    border-radius: 22px;
  }

  .hero-phone-splash {
    transform: translate(-85%, 0) rotate(-10deg);
    animation: heroFloatDesktop 4s ease-in-out infinite;
  }

  .hero-phone-signup {
    transform: translate(-15%, 0) rotate(10deg);
    animation: heroFloatDesktopRight 4s ease-in-out infinite 0.5s;
  }

  @keyframes heroFloatDesktop {
    0%, 100% { transform: translate(-85%, 0) rotate(-10deg) translateY(0); }
    50% { transform: translate(-85%, 0) rotate(-10deg) translateY(-14px); }
  }

  @keyframes heroFloatDesktopRight {
    0%, 100% { transform: translate(-15%, 0) rotate(10deg) translateY(0); }
    50% { transform: translate(-15%, 0) rotate(10deg) translateY(-14px); }
  }
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--background-lighter);
  clip-path: polygon(0 60%, 100% 40%, 100% 100%, 0 100%);
  z-index: 1;
}

@media (min-width: 900px) {
  .hero { padding: 96px 0 64px; }
}

/* ----- Section head (compact) ----- */
.section-head {
  margin-bottom: 28px;
}

.section-head-compact { margin-bottom: 22px; }

.section-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}

.section-title-light { color: #fff; }
.section-subtitle-light { color: rgba(255,255,255,0.85); }

/* ----- Features (dark section, masonry tiles) ----- */
.features {
  padding: 48px 0 56px;
  background: var(--background-lighter);
}

.features-dark {
  background: linear-gradient(165deg, var(--primary-dark) 0%, var(--gradient-end) 50%, var(--primary) 100%);
  padding: 56px 0 64px;
}

.features-masonry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.feature-tile {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.feature-tile:hover {
  transform: translateY(-4px) scale(1.01);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.feature-tile-hero {
  grid-column: 1;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
}

.feature-tile-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 10px;
}

.feature-tile h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
}

.feature-tile p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
}

@media (min-width: 600px) {
  .features-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .feature-tile-hero { grid-column: span 2; }
}

@media (min-width: 900px) {
  .features-masonry {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(140px, auto);
    gap: 20px;
  }
  .feature-tile-hero {
    grid-column: span 2;
    grid-row: span 2;
    padding: 28px 32px;
  }
  .feature-tile-hero .feature-tile-icon { font-size: 2.2rem; }
  .feature-tile-hero h3 { font-size: 1.35rem; }
  .feature-tile-hero p { font-size: 1rem; }
}

/* ----- About (3 cards) ----- */
.about {
  padding: 48px 0 56px;
  background: linear-gradient(180deg, var(--background-light) 0%, var(--background-lighter) 100%);
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.about-card {
  background: var(--card);
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(75, 22, 76, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.about-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.about-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.about-card strong { color: var(--primary-dark); }

@media (min-width: 600px) {
  .about-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ----- How it works ----- */
.how {
  padding: 44px 0 48px;
  background: linear-gradient(180deg, var(--background-light) 0%, var(--background-lighter) 100%);
}

.how-dark {
  background: linear-gradient(180deg, var(--gradient-end) 0%, var(--primary-dark) 100%);
  padding: 52px 0 60px;
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.how-steps-creative {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.how-step-creative {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.25s ease, background 0.25s ease;
}

.how-step-creative:hover {
  transform: translateX(8px);
  background: rgba(255,255,255,0.15);
}

.how-step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  font-family: var(--font-display);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(224, 113, 119, 0.4);
}

.how-step-creative h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
}

.how-step-creative p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
}

.how-step-creative strong { color: #fff; }

@media (min-width: 768px) {
  .how-steps-creative {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* Legacy how-step (if used elsewhere) */
.how-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  padding: 18px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(75, 22, 76, 0.08);
  transition: transform 0.2s;
}

.how-step:hover { transform: translateX(4px); }

.how-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-display);
  border-radius: 50%;
}

.how-step h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 600; color: var(--primary-dark); font-family: var(--font-display); }
.how-step p { margin: 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.45; }

@media (min-width: 768px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* ----- Screenshots (splash + signup in device frames) ----- */
.screenshots {
  padding: 52px 0 60px;
  background: linear-gradient(180deg, var(--background-lighter) 0%, var(--background-light) 100%);
}

.screenshots-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 32px;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.showcase-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
}

.showcase-phone:hover {
  transform: translateY(-8px);
}

.showcase-phone-bezel {
  width: min(180px, 42vw);
  max-width: 100%;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 0 2px rgba(255,255,255,0.08);
  overflow: hidden;
}

.showcase-phone-bezel img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.showcase-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-display);
}

.showcase-phone-right .showcase-phone-bezel {
  box-shadow: 0 20px 50px rgba(75, 22, 76, 0.25), 0 0 0 2px rgba(75, 22, 76, 0.15);
}

@media (min-width: 600px) {
  .screenshots-showcase {
    gap: 48px;
    flex-wrap: nowrap;
  }
  .showcase-phone-bezel { width: 220px; }
  .showcase-phone-left { order: 1; }
  .showcase-phone-right { order: 2; }
}

/* ----- Help & Support ----- */
.support {
  padding: 44px 0 48px;
  background: var(--background-lighter);
}

.support-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.support-card {
  background: var(--card);
  padding: 22px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(75, 22, 76, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.support-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.support-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 10px;
}

.support-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.support-card p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.support-email {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid var(--accent);
  transition: color 0.2s, border-color 0.2s;
}

.support-email:hover {
  color: var(--gradient-start);
  border-bottom-color: var(--gradient-start);
}

@media (min-width: 768px) {
  .support-content { grid-template-columns: repeat(3, 1fr); }
}

/* ----- Download (dense CTA block) ----- */
.download {
  padding: 48px 0 56px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  position: relative;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 45%);
  pointer-events: none;
}

.download-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}

.download-content { text-align: center; }

.download-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.download-desc {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

.btn-download {
  min-width: 0;
  width: 100%;
  max-width: 280px;
  font-size: 1rem;
  padding: 14px 28px;
}

.download-note {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}

.download-art {
  display: flex;
  justify-content: center;
}

.download-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .download-inner {
    grid-template-columns: 1fr auto;
    text-align: left;
  }
  .download-content { text-align: left; }
  .download-art { order: -1; }
  .btn-download {
    width: auto;
    min-width: 200px;
    max-width: none;
  }
}

/* ----- Footer (single compact row) ----- */
.footer {
  padding: 28px 0 24px;
  background: var(--primary-dark);
  color: rgba(255,255,255,0.9);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 28px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-display);
}

.footer-logo img { width: 28px; height: 28px; object-fit: contain; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 20px;
}

.footer-links a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover { text-decoration: underline; }

.footer-email {
  color: rgba(255,255,255,0.95) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-email:hover { opacity: 0.9; }

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.8;
  width: 100%;
  text-align: center;
}

/* ============== RESPONSIVE: ALL MOBILE DEVICES ============== */

/* Extra small (320px - 360px) */
@media (max-width: 360px) {
  .container { padding: 0 12px; }

  .hero {
    padding: calc(72px + env(safe-area-inset-top, 0px)) 0 40px;
  }

  .hero-title {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }

  .hero-subtitle {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-phones {
    min-height: 260px;
    padding: 16px 0;
  }

  .hero-phones-glass {
    width: min(280px, 88vw);
    min-height: 260px;
  }

  .hero-phone-bezel {
    width: min(130px, 40vw);
    padding: 8px;
    padding-top: 14px;
  }

  .hero-phone-notch {
    width: 44px;
    height: 6px;
    top: 6px;
  }

  .hero-phone-frame {
    height: 220px;
    border-radius: 16px;
  }

  .section-title {
    font-size: clamp(1.4rem, 6vw, 1.75rem);
  }

  .section-subtitle { font-size: 0.875rem; }

  .section-head { margin-bottom: 20px; }
  .section-head-compact { margin-bottom: 16px; }

  .features,
  .features-dark {
    padding: 36px 0 44px;
  }

  .feature-tile {
    padding: 18px 20px;
  }

  .feature-tile h3 { font-size: 1rem; }
  .feature-tile p { font-size: 0.85rem; }

  .about,
  .how,
  .how-dark,
  .screenshots,
  .support {
    padding: 36px 0 44px;
  }

  .about-card {
    padding: 20px 22px;
  }

  .about-card h3 { font-size: 1.1rem; }
  .about-card p { font-size: 0.875rem; }

  .how-step-creative {
    padding: 18px 20px;
    gap: 16px;
  }

  .how-step-num {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .how-step-creative h3 { font-size: 1rem; }
  .how-step-creative p { font-size: 0.85rem; }

  .showcase-phone-bezel {
    width: 150px;
    padding: 8px;
    border-radius: 22px;
  }

  .showcase-phone-bezel img {
    border-radius: 16px;
  }

  .screenshots-showcase { gap: 24px; }

  .download {
    padding: 40px 0 48px;
  }

  .download-inner { gap: 24px; }

  .download-title {
    font-size: clamp(1.5rem, 6vw, 1.75rem);
  }

  .download-desc { font-size: 0.9rem; }
  .btn-download {
    width: 100%;
    max-width: 280px;
    min-width: 0;
  }

  .download-logo {
    width: 80px;
    height: 80px;
  }

  .support-card {
    padding: 18px 20px;
  }

  .footer {
    padding: 24px 0 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .footer-links a {
    font-size: 0.85rem;
  }
}

/* Small phones (361px - 480px) */
@media (min-width: 361px) and (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero {
    padding: calc(80px + env(safe-area-inset-top, 0px)) 0 48px;
  }

  .hero-phone-bezel {
    width: min(145px, 42vw);
  }

  .hero-phone-frame { height: 250px; }

  .btn-download {
    min-width: 180px;
  }
}

/* Mobile: 480px and down (unified) */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .nav { padding: 12px 16px; }
  .nav-logo-text { font-size: 1.1rem; }
  .nav-logo-ring { width: 40px; height: 40px; }
  .nav-logo-img { width: 32px; height: 32px; }
  .nav-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .nav-menu { padding: 70px 20px 32px; }
  .nav-menu .nav-link {
    padding: 14px 20px;
    font-size: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-menu .nav-cta { min-height: 52px; }

  .features,
  .features-dark { padding: 40px 0 48px; }
  .about,
  .how,
  .how-dark { padding: 40px 0 48px; }
  .screenshots { padding: 44px 0 52px; }
  .download { padding: 44px 0 52px; }
  .support { padding: 40px 0 48px; }

  .footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

/* Portrait phones / large phones (481px - 600px) */
@media (min-width: 481px) and (max-width: 600px) {
  .hero-phones { min-height: 320px; }
  .hero-phone-bezel { width: min(160px, 42vw); }
  .hero-phone-frame { height: 280px; }
}

/* Tablets portrait (601px - 768px) */
@media (min-width: 601px) and (max-width: 768px) {
  .hero-phones { min-height: 360px; }
  .hero-phones-glass { width: min(340px, 90vw); min-height: 320px; }
  .hero-phone-bezel { width: min(170px, 42vw); }
  .hero-phone-frame { height: 300px; }
  .about-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Tablets landscape (769px - 899px): still stacked phones, no absolute */
@media (min-width: 769px) and (max-width: 899px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-phones {
    min-height: 360px;
  }
  .hero-phone-bezel {
    width: min(180px, 42vw);
  }
  .hero-phone-frame { height: 320px; }
}

/* Prevent horizontal scroll on all viewports */
img {
  max-width: 100%;
  height: auto;
}

/* ----- AOS ----- */
[data-aos] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

[data-aos].aos-visible {
  opacity: 1;
  transform: translateY(0);
}
