/* ============================================
   House of Jain-Z — Spiritual Theme
   Palette: White, Saffron, Green
   ============================================ */

:root {
  --white: #fefefe;
  --cream: #faf8f5;
  --saffron: #e07c24;
  --saffron-light: #f4a261;
  --saffron-dark: #c45a0f;
  --green: #0d6b4a;
  --green-light: #1a8c63;
  --green-dark: #084d35;
  --text: #2c2c2c;
  --text-muted: #5a5a5a;
  --border: rgba(13, 107, 74, 0.15);
  --shadow: 0 4px 24px rgba(13, 107, 74, 0.08);
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--saffron);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}

ul {
  list-style: none;
}

/* Temporary hide until app/QR ready */
.hide-download-app,
.hide-app-screens,
.hide-qr {
  display: none !important;
}

/* ============================================
   Layout
   ============================================ */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ============================================
   Header
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(254, 254, 254, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
}

@media (min-width: 768px) {
  .header-inner {
    padding: 1rem 1.5rem;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo:hover {
  color: var(--saffron);
}

.logo-symbol {
  font-size: 1.5rem;
  opacity: 0.9;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-menu {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
}

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

@media (min-width: 768px) {
  .nav-menu {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    border: none;
    background: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
}

.nav-menu a {
  display: block;
  padding: 0.6rem 0;
  font-weight: 500;
  color: var(--text);
}

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

@media (min-width: 768px) {
  .nav-menu a {
    padding: 0.25rem 0;
  }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--saffron);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(224, 124, 36, 0.35);
}

.btn-primary:hover {
  background: var(--saffron-dark);
  box-shadow: 0 4px 20px rgba(224, 124, 36, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-secondary:hover {
  background: var(--green);
  color: var(--white);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.25rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, var(--white) 0%, var(--cream) 40%, rgba(224, 124, 36, 0.06) 70%, rgba(13, 107, 74, 0.08) 100%),
    radial-gradient(circle at 80% 20%, rgba(224, 124, 36, 0.04) 0%, transparent 35%);
  z-index: 0;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(224, 124, 36, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -15%;
  width: 45%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(13, 107, 74, 0.1) 0%, transparent 70%);
  pointer-events: none;
}


.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
}

.hero-tagline {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 1rem;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--green-dark);
  margin-bottom: 1.25rem;
}

.hero-subhead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

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

/* ============================================
   Section common
   ============================================ */

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ============================================
   Community
   ============================================ */

.community {
  background: var(--white);
}

.community-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .community-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.community-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.community-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(13, 107, 74, 0.25);
}

.community-card .card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.community-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.community-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================
   Marketplace
   ============================================ */

.marketplace {
  background: linear-gradient(180deg, var(--cream) 0%, rgba(13, 107, 74, 0.04) 100%);
}

.marketplace-features {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .marketplace-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .marketplace-features {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.marketplace-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow var(--transition);
}

.marketplace-item:hover {
  box-shadow: var(--shadow);
}

.marketplace-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  background: rgba(13, 107, 74, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.marketplace-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ============================================
   Values
   ============================================ */

.values {
  background: var(--white);
}

.values-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
  }
}

.value-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow);
}

.value-symbol {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ============================================
   App Promotion
   ============================================ */

.app-promo {
  background: linear-gradient(165deg, rgba(224, 124, 36, 0.06) 0%, var(--cream) 30%, rgba(13, 107, 74, 0.06) 100%);
}

.app-promo-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .app-promo-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.app-screenshots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  order: 2;
}

@media (min-width: 900px) {
  .app-screenshots {
    order: 1;
  }
}

.screenshot-placeholder {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 9 / 19;
  background: linear-gradient(145deg, var(--white), var(--cream));
  border: 2px solid var(--border);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  box-shadow: var(--shadow);
}

@media (min-width: 480px) {
  .screenshot-placeholder {
    max-width: 160px;
  }
}

.app-details {
  order: 1;
}

@media (min-width: 900px) {
  .app-details {
    order: 2;
  }
}

.app-features {
  margin-bottom: 1.75rem;
}

.app-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text);
  font-size: 0.95rem;
}

.app-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.qr-area {
  margin-bottom: 1.75rem;
}

.qr-placeholder {
  width: 120px;
  height: 120px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.qr-placeholder small {
  font-size: 0.65rem;
}

.qr-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.app-details .btn-large {
  width: 100%;
  max-width: 280px;
}

@media (min-width: 480px) {
  .app-details .btn-large {
    width: auto;
  }
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 3rem 0 2rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
  color: var(--saffron-light);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.footer-brand .logo {
  color: var(--white);
}

.footer-brand .logo:hover {
  color: var(--saffron-light);
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

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

.footer-contact p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.25rem;
}

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

.social-links a {
  font-size: 0.9rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
