/* Avabodhak home page — mobile-first, calm, dark theme */

:root {
  --bg: #0a0e14;
  --bg-soft: #0f151e;
  --bg-card: #121820;
  --bg-card-hover: #16222e;
  --border: #1f2937;
  --border-strong: #2b3647;
  --text-primary: #f3f4f6;
  --text-secondary: #a7b0bf;
  --text-muted: #6b7686;
  --gold: #d4af37;
  --gold-soft: #e6c96a;
  --teal: #3ec8b6;
  --blue: #38bdf8;
  --serif: "Noto Serif Devanagari", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(1200px 500px at 50% -120px, rgba(56, 189, 248, 0.08), transparent 60%),
    radial-gradient(900px 420px at 100% 10%, rgba(212, 175, 55, 0.05), transparent 55%);
}

main { flex: 1; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: #0a0e14;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.global-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 20, 0.78);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  color: var(--gold);
  font-weight: 400;
}
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: 0.2px; }
.site-nav { display: flex; gap: 6px; }
.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--text-primary); background: var(--bg-card); }

/* ---------- Hero ---------- */
.hero { padding: 72px 22px 40px; text-align: center; }
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-eyebrow {
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--sans);
  font-size: clamp(32px, 6vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero-accent { color: var(--gold); }
.hero-subtitle {
  margin: 20px auto 0;
  max-width: 620px;
  color: var(--text-secondary);
  font-size: clamp(16px, 2.4vw, 19px);
}
.hero-actions { margin-top: 28px; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 12px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8912a);
  color: #1a1404;
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.28);
}
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(212, 175, 55, 0.36); }

/* ---------- Sections ---------- */
.apps-section, .about-section { max-width: 1120px; margin: 0 auto; padding: 56px 22px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-title { font-size: clamp(24px, 4vw, 32px); font-weight: 700; letter-spacing: -0.01em; }
.section-sub { color: var(--text-secondary); margin-top: 10px; }

/* ---------- App grid / cards ---------- */
.app-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
.app-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.24s var(--ease), border-color 0.24s, box-shadow 0.24s;
}
.app-card:hover, .app-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
  outline: none;
}
.card-chakra:hover, .card-chakra:focus-visible { border-color: var(--gold); }
.card-chant:hover, .card-chant:focus-visible { border-color: var(--teal); }
.card-play:hover, .card-play:focus-visible { border-color: var(--blue); }

.card-visual {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.card-content { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.app-title { font-size: 22px; font-weight: 700; }
.app-subtitle { color: var(--gold-soft); font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.card-chant .app-subtitle { color: var(--teal); }
.card-play .app-subtitle { color: var(--blue); }
.app-description { color: var(--text-secondary); font-size: 14.5px; line-height: 1.7; margin-top: 12px; flex: 1; }
.app-action { margin-top: 22px; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.card-chakra .app-action { color: var(--gold-soft); }
.card-chant .app-action { color: var(--teal); }
.card-play .app-action { color: var(--blue); }
.arrow { font-style: normal; transition: transform 0.2s var(--ease); }
.app-card:hover .arrow { transform: translateX(4px); }

/* Card graphic motifs */
.cosmic-wheel {
  width: 84px; height: 84px;
  border: 2px dashed rgba(212, 175, 55, 0.28);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: rotateWheel 40s linear infinite;
}
.wheel-inner { width: 46px; height: 46px; border: 2px solid var(--gold); border-radius: 50%; }
@keyframes rotateWheel { to { transform: rotate(360deg); } }

.manuscript-icon { display: flex; flex-direction: column; gap: 10px; width: 64px; }
.manuscript-icon .line { height: 4px; border-radius: 3px; background: var(--teal); opacity: 0.5; }
.manuscript-icon .line.medium { width: 74%; }
.manuscript-icon .line.long { width: 100%; }
.manuscript-icon .line.short { width: 54%; }
.card-chant:hover .line { opacity: 1; }
.card-chant:hover .line.medium { animation: pulse 1.4s ease infinite; }
.card-chant:hover .line.long { animation: pulse 1.4s ease 0.12s infinite; }
.card-chant:hover .line.short { animation: pulse 1.4s ease 0.24s infinite; }
@keyframes pulse { 50% { background: #f3f4f6; } }

.play-motif { position: relative; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; }
.play-ring {
  position: absolute; inset: 0;
  border: 2px solid rgba(56, 189, 248, 0.3);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.play-triangle {
  width: 0; height: 0;
  border-left: 30px solid var(--blue);
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  margin-left: 6px;
  filter: drop-shadow(0 4px 10px rgba(56, 189, 248, 0.4));
}
.card-play:hover .play-ring { transform: scale(1.08); border-color: var(--blue); }

/* ---------- About ---------- */
.about-section { text-align: center; }
.about-text { max-width: 680px; margin: 18px auto 0; color: var(--text-secondary); }
.about-text em { color: var(--gold-soft); font-style: normal; font-weight: 600; }
.about-values { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; margin-top: 30px; }
.about-values li { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 15px; }
.value-dot { width: 10px; height: 10px; border-radius: 50%; }
.value-dot.gold { background: var(--gold); }
.value-dot.teal { background: var(--teal); }
.value-dot.blue { background: var(--blue); }

/* ---------- Footer ---------- */
.global-footer {
  text-align: center;
  padding: 28px 22px 34px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}
.footer-note { margin-top: 4px; opacity: 0.8; }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Desktop / larger screens ---------- */
@media (min-width: 640px) {
  .hero { padding: 96px 22px 56px; }
  .apps-section, .about-section { padding-top: 64px; }
}

@media (min-width: 900px) {
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .apps-section { padding-top: 72px; }
  .card-visual { height: 210px; }
}
