/* Salisbury Memorial Church Launch Page */

:root {
  --blue-deep: #0d2847;
  --blue-primary: #1a3a6b;
  --blue-mid: #1e4d7a;
  --teal-accent: #2a7a8a;
  --teal-light: #3d9aaa;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.88);
  --white-muted: rgba(255, 255, 255, 0.65);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--white);
  background-color: var(--blue-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.logo-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  pointer-events: auto;
}

.logo-intro-image {
  width: min(42vw, 180px);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
  will-change: transform, opacity;
}

/* Background layers — scoped to hero */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/church.png") center center / cover no-repeat;
  background-attachment: fixed;
  filter: brightness(0.62);
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      105deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.55) 40%,
      rgba(0, 0, 0, 0.3) 70%,
      rgba(0, 0, 0, 0.46) 100%
    ),
    linear-gradient(
      to bottom,
      transparent 50%,
      rgba(0, 0, 0, 0.92) 82%,
      #000000 100%
    );
  pointer-events: none;
}

#particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

/* Navbar — liquid glass */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: max(1rem, env(safe-area-inset-top)) 1.5rem 1rem;
  opacity: 0;
  transform: translateY(-30px);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.75rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.14) 100%
  );
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 52px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  opacity: 0;
}

.navbar-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.navbar-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 1.5rem 4rem;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-light);
  opacity: 0;
}

.launch-banner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(
    135deg,
    rgba(115, 191, 196, 0.2) 0%,
    rgba(26, 58, 107, 0.28) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
}

.launch-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #73bfc4;
  background: rgba(13, 40, 71, 0.35);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.launch-text {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--white-soft);
}

.launch-text strong {
  font-weight: 600;
  color: var(--white);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  opacity: 0;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--white-soft);
  max-width: 480px;
  opacity: 0;
}

/* Store buttons */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  color: var(--white);
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  opacity: 0;
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-btn-label {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.85;
}

.store-btn-name {
  font-size: 1rem;
  font-weight: 600;
}

/* Mockup */
.hero-mockup-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
}

.mockup-glow {
  position: absolute;
  width: 70%;
  height: 60%;
  background: radial-gradient(
    ellipse at center,
    rgba(42, 122, 138, 0.35) 0%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
}

.hero-mockup {
  position: relative;
  width: 100%;
  max-width: clamp(300px, 42vw, 420px);
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
  will-change: transform;
}

/* Features section */
.features-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.features-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.features-video-wrap,
.features-video {
  display: none;
}

.shader-gradient-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none !important;
  touch-action: none;
}

.shader-gradient-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  pointer-events: none !important;
  touch-action: none;
}

.features-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(13, 40, 71, 0.25) 50%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
}

.features-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

.features-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-light);
  text-align: center;
  margin-bottom: 0.75rem;
}

.features-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  text-align: center;
  color: var(--white);
  margin-bottom: 1rem;
}

.features-intro {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--white-soft);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--white-muted);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 1rem 1rem 1.5rem;
  opacity: 0;
}

.footer-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  /* Keep it neutral-gray glass (avoid blue-tinted look) */
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(18px) saturate(80%);
  -webkit-backdrop-filter: blur(18px) saturate(80%);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: transform 0.2s ease;
}

.footer-logo-link:hover {
  transform: translateY(-1px);
}

.footer-logo {
  width: auto;
  height: 72px;
  max-width: min(280px, 70vw);
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.22));
}

.footer-byline {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}

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

  .hero-section {
    min-height: auto;
  }

  .hero {
    min-height: auto;
    padding: 8rem 1.5rem 3rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-content {
    align-items: center;
    order: 2;
  }

  .hero-tagline {
    max-width: 560px;
  }

  .hero-mockup-wrap {
    order: 1;
    width: 100%;
  }

  .hero-mockup {
    max-width: min(75vw, 360px);
  }

  .store-buttons {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .bg-layer {
    background-attachment: scroll;
  }

  .hero-section {
    min-height: auto;
  }

  .navbar {
    padding: max(0.65rem, env(safe-area-inset-top)) 0.85rem 0.65rem;
  }

  .navbar-inner {
    padding: 0.7rem 1rem;
    border-radius: 36px;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
  }

  .navbar-brand {
    gap: 0.75rem;
  }

  .navbar-logo {
    width: 72px;
    height: 72px;
  }

  .navbar-title {
    font-size: clamp(1.1rem, 5.2vw, 1.45rem);
    font-weight: 900;
    line-height: 1.2;
  }

  .hero {
    min-height: auto;
    padding: calc(7.5rem + env(safe-area-inset-top)) 1rem 2.5rem;
  }

  .hero-inner {
    gap: 1.5rem;
  }

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

  .hero-tagline {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .launch-banner {
    padding: 0.75rem 0.9rem;
    text-align: left;
    width: 100%;
    max-width: 100%;
  }

  .launch-text {
    font-size: 0.85rem;
  }

  .hero-mockup {
    max-width: min(88vw, 340px);
  }

  .mockup-glow {
    width: 90%;
    height: 70%;
  }

  .store-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    gap: 0.75rem;
  }

  .store-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
  }

  .features-section {
    padding: 0;
  }

  .features-inner {
    margin-top: 0;
    padding: 3.5rem 1rem 4rem;
  }

  .features-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(13, 40, 71, 0.2) 50%,
      rgba(0, 0, 0, 0.4) 100%
    );
  }

  .features-heading {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .features-intro {
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .feature-card {
    padding: 1.15rem;
  }

  .footer {
    padding: 1.25rem 1rem;
  }

  .footer-shell {
    border-radius: 24px;
    padding: 0.85rem 1rem;
  }

  .footer-logo {
    height: 56px;
  }

  .footer-byline {
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .navbar-logo {
    width: 64px;
    height: 64px;
  }

  .navbar-title {
    font-size: 0.85rem;
  }

  .hero-mockup {
    max-width: min(92vw, 300px);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-mockup {
    will-change: auto;
  }

  #particles {
    display: none;
  }

  .features-video-wrap {
    display: none;
  }

  .shader-gradient-wrap {
    display: none;
  }

  .features-overlay {
    background: var(--blue-deep);
  }

  .feature-card {
    transform: none;
  }

  .feature-card:hover {
    transform: none;
  }
}
