/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --primary: oklch(0.76 0.08 95.5);   /* warm gold  ≈ #C1B66D */
  --secondary: oklch(0.13 0.04 270.5); /* dark navy  ≈ #0d1226 */
  --radius: 1.25rem;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--secondary);
  color: #f9fafb;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

a { text-decoration: none; }

img { max-width: 100%; }

/* ===== UTILITY ===== */
.hidden { display: none !important; }

/* ===== HEADER ===== */
#site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 83.333%; /* w-5/6 */
  border-radius: 9999px;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 50;
  transition: width 0.3s ease;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#site-header.scrolled {
  width: 91.667%; /* w-11/12 */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

.desktop-nav {
  display: none;
  gap: 1rem;
  align-items: center;
}

.desktop-nav a {
  color: white;
  transition: color 0.2s;
}

.desktop-nav a:hover { color: var(--primary); }

.desktop-cta {
  display: none;
}

.desktop-cta a {
  background: #C1B66D;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.desktop-cta a:hover { opacity: 0.85; }

.mobile-menu-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  line-height: 0;
}

.mobile-menu-btn svg { width: 24px; height: 24px; }

/* Mobile dropdown */
.mobile-menu {
  position: absolute;
  top: 4.5rem;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
}

.mobile-menu nav a {
  color: white;
  font-size: 1rem;
  transition: color 0.2s;
}

.mobile-menu nav a:hover { color: var(--primary); }

.mobile-menu nav a.mobile-cta {
  background: #C1B66D;
  color: #002368;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .desktop-nav  { display: flex; }
  .desktop-cta  { display: block; }
  .mobile-menu-btn { display: none; }
}

/* ===== HERO ===== */
#hero {
  position: relative;
  width: 100%;
  padding: 14rem 0;
}

@media (min-width: 768px) {
  #hero { padding: 0; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content-wrapper {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  color: white;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

@media (min-width: 768px) {
  .hero-inner { flex-direction: row; }
}

/* hero text */
.hero-text {
  width: 100%;
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s ease forwards;
}

@media (min-width: 768px) {
  .hero-text {
    width: 50%;
    text-align: left;
    margin-bottom: 0;
  }
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 1rem;
  line-height: 1.1;
}

@media (min-width: 640px)  { .hero-text h1 { font-size: 3rem; } }
@media (min-width: 768px)  { .hero-text h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-text h1 { font-size: 4.5rem; } }

.hero-text p {
  font-size: 1.125rem;
  margin-top: 1rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-text p { max-width: 100%; margin-left: 0; margin-right: 0; }
}

.store-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .store-links { justify-content: flex-start; }
}

.store-links a {
  background: black;
  color: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  transition: background 0.3s, color 0.3s;
}

.store-links a:hover { background: var(--primary); }

.store-links img { height: 2.5rem; }

/* hero mockup */
.hero-mockup {
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-mockup { width: 50%; justify-content: flex-end; }
}

.hero-mockup img {
  height: 24rem;
  object-fit: contain;
  z-index: 10;
  opacity: 0;
  animation: heroMockupIn 0.7s ease 0.3s forwards;
}

@media (min-width: 768px) {
  .hero-mockup img { height: 750px; }
}

/* ===== SERVICES ===== */
#features {
  padding: 6rem 0;
  width: 100%;
  background: white;
  position: relative;
}

.features-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(193, 182, 109, 0.1), transparent);
  pointer-events: none;
}

.section-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--primary);
  margin-top: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px)  { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: 1fr 1fr 1fr; } }

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  border: 1px solid #f3f4f6;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow 0.3s, transform 0.3s;
}

/* Applied via JS before the IntersectionObserver starts – allows cards to be
   visible without JavaScript (progressive enhancement). */
.service-card.pre-animate {
  opacity: 0;
  transform: translateY(20px);
}

.service-card.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s;
}

.service-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-8px);
}

.service-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon-inner {
  background: rgba(193, 182, 109, 0.1);
  padding: 1.25rem;
  border-radius: 9999px;
  border: 2px solid rgba(193, 182, 109, 0.5);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon-inner svg {
  width: 40px;
  height: 40px;
  stroke: var(--primary);
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.service-card p { color: #4b5563; padding: 0 0.5rem; }

/* ===== TESTIMONIALS ===== */
#faqs {
  padding: 5rem 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: white;
}

.testimonials-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.testimonials-header p {
  font-size: 1.125rem;
  color: #6b7280;
}

.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.marquee + .marquee {
  margin-top: 1rem;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
}

.marquee-reverse .marquee-content {
  animation-direction: reverse;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.testimonial-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin: 1rem;
  width: 320px;
  flex-shrink: 0;
}

.testimonial-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.testimonial-card-header img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.testimonial-card-header .t-name { font-weight: 700; color: #111827; }
.testimonial-card-header .t-handle { color: #6b7280; font-size: 0.875rem; }
.testimonial-card p { color: #374151; }

.testimonials-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(to top, white, transparent);
  pointer-events: none;
}

/* ===== APP SPOTLIGHT ===== */
#downloadApp {
  background: var(--secondary);
  width: 100%;
  color: white;
  padding: 5rem 1.5rem;
}

.spotlight-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (min-width: 768px) {
  #downloadApp { padding: 5rem 7rem; }
  .spotlight-inner { flex-direction: row; gap: 0; }
}

.spotlight-text {
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .spotlight-text { width: 50%; text-align: left; }
}

.spotlight-text h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.spotlight-text h2 span { color: var(--primary); }

.spotlight-text > p {
  font-size: 1.125rem;
  color: #9ca3af;
  margin-bottom: 2rem;
}

.spotlight-store-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .spotlight-store-links { justify-content: flex-start; }
}

.spotlight-store-links img { height: 2.5rem; }

.spotlight-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  color: rgba(193, 182, 109, 0.8);
}

@media (min-width: 768px) {
  .spotlight-stats { justify-content: flex-start; }
}

.spotlight-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.spotlight-stat svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

.spotlight-divider {
  height: 1.5rem;
  width: 1px;
  background: rgba(193, 182, 109, 0.5);
}

.spotlight-mockup {
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .spotlight-mockup { width: 50%; justify-content: flex-end; }
}

.spotlight-mockup img {
  height: 500px;
  width: 100%;
  object-fit: contain;
  animation: float 3s ease-in-out infinite;
}

/* ===== FOOTER ===== */
footer {
  background: var(--secondary);
  color: white;
  width: 100%;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 4fr 5fr 3fr; }
}

.footer-brand h4 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.footer-brand > p {
  color: #9ca3af;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 9999px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--secondary);
}

.social-links svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-links-col h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-links-col ul {
  list-style: none;
}

.footer-links-col ul li { margin-bottom: 0.75rem; }

.footer-links-col ul li a {
  color: #9ca3af;
  transition: color 0.2s;
}

.footer-links-col ul li a:hover { color: var(--primary); }

.contact-item {
  display: flex;
  align-items: center;
  color: #9ca3af;
  gap: 0.75rem;
}

.contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  flex-shrink: 0;
}

.footer-app h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-app-cta {
  background: #C1B66D;
  color: var(--secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: opacity 0.2s;
  margin-bottom: 1rem;
  cursor: pointer;
}

.footer-app-cta:hover { opacity: 0.9; }

.footer-store-links {
  display: flex;
  gap: 1rem;
}

.footer-store-links img { height: 2rem; }

.footer-bottom {
  border-top: 1px solid rgba(193, 182, 109, 0.2);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

/* ===== COMING SOON MODAL ===== */
#coming-soon-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.15s ease;
}

.modal-box {
  position: relative;
  background: var(--secondary);
  color: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 28rem;
  margin: 0 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 10;
  animation: scaleIn 0.14s ease;
}

.modal-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: #d1d5db;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  line-height: 0;
}

.modal-close-btn:hover { color: white; }
.modal-close-btn svg { width: 24px; height: 24px; }

.modal-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.modal-icon-wrap {
  flex-shrink: 0;
  background: rgba(193, 182, 109, 0.1);
  padding: 0.75rem;
  border-radius: 0.5rem;
  color: var(--primary);
  display: flex;
}

.modal-icon-wrap svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.modal-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.modal-body p { color: #d1d5db; margin-bottom: 1rem; }

.modal-footer-row {
  display: flex;
  justify-content: flex-end;
}

.modal-close-action {
  background: var(--primary);
  color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.modal-close-action:hover { opacity: 0.9; }

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroMockupIn {
  from { opacity: 0; transform: translateY(0); }
  to   { opacity: 1; transform: translateY(100px); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
