/* ===================================================
   GHOONGROO — Global Design System
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;600&display=swap');

/* ── Color Tokens ── */
:root {
  --gold:         #F2D16E;
  --gold-dim:     #C8A84B;
  --saffron:      #E8823A;
  --maroon:       #2D1010;
  --maroon-mid:   #3E1A1A;
  --maroon-card:  #281515;
  --beige:        #F0E6D3;
  --beige-dim:    rgba(240,230,211,0.55);
  --text-muted:   rgba(240,230,211,0.45);
  --border-gold:  rgba(242,209,110,0.2);
  --border-gold-bright: rgba(242,209,110,0.45);
  --shadow-gold:  rgba(242,209,110,0.15);
  --radius-card:  16px;
  --radius-pill:  100px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--maroon);
  color: var(--beige);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.15;
}
.hindi { font-family: 'Noto Sans Devanagari', sans-serif; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--saffron); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--maroon); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ================================================
   NAV
   ================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(29,8,8,0.7);
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  border-bottom: 1px solid var(--border-gold);
  transition: background 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(242,209,110,0.4);
  box-shadow: 0 2px 10px rgba(242,209,110,0.2);
  flex-shrink: 0;
}
.nav-logo .logo-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* App icon display in download / hero sections */
.app-icon-display {
  width: 100px; height: 100px;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid rgba(242,209,110,0.4);
  box-shadow: 0 8px 32px rgba(242,209,110,0.25), 0 0 0 1px rgba(242,209,110,0.1);
  display: inline-block;
  margin-bottom: 24px;
}
.app-icon-display img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--beige-dim);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  color: var(--maroon) !important;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(242,209,110,0.35);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--beige);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(29,8,8,0.97);
    border-bottom: 1px solid var(--border-gold);
    padding: 20px;
    gap: 20px;
  }
  .nav-links.open { display: flex; }
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(62,26,26,0.9) 0%, var(--maroon) 70%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 400px at 70% 50%, rgba(242,209,110,0.08) 0%, transparent 70%),
    radial-gradient(circle 300px at 20% 80%, rgba(232,130,58,0.06) 0%, transparent 60%);
}

/* Decorative mandala ring */
.hero-ring {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 560px; height: 560px;
  border-radius: 50%;
  border: 1px solid rgba(242,209,110,0.15);
  animation: ring-spin 40s linear infinite;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero-ring::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px dashed rgba(242,209,110,0.1);
  animation: ring-spin-reverse 25s linear infinite;
}
.hero-ring::after {
  content: '';
  position: absolute;
  inset: 50px;
  border-radius: 50%;
  border: 1px solid rgba(242,209,110,0.08);
}

@keyframes ring-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}
@keyframes ring-spin-reverse {
  to { transform: rotate(-360deg); }
}

.hero-image-wrap {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 520px; height: 520px;
  animation: float 7s ease-in-out infinite;
}
.hero-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  mask-image: radial-gradient(circle 220px at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle 220px at center, black 40%, transparent 80%);
  filter: brightness(0.85) contrast(1.1);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 0 5% 0 8%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242,209,110,0.1);
  border: 1px solid var(--border-gold-bright);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--saffron);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.hero-subtitle-hindi {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 1.1rem;
  color: var(--saffron);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}
.hero-divider {
  width: 80px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 24px;
}
.hero-tagline {
  font-size: 1.15rem;
  color: var(--beige-dim);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  color: var(--maroon);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(242,209,110,0.4);
  color: var(--maroon);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--beige);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-gold-bright);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}
.btn-ghost:hover {
  background: rgba(242,209,110,0.08);
  border-color: var(--gold);
  color: var(--gold);
}

/* Hero stats row */
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-gold);
}
.hero-stat .stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero-stat .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .hero-image-wrap, .hero-ring { display: none; }
  .hero-content { max-width: 100%; padding: 80px 5% 60px; text-align: center; }
  .hero-divider { margin: 0 auto 24px; }
  .hero-tagline { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
}

/* ================================================
   SECTIONS — Common
   ================================================ */
.section {
  padding: 100px 8%;
}
.section-dark { background: var(--maroon); }
.section-mid  { background: var(--maroon-mid); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--saffron);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Glass Card ── */
.glass-card {
  background: rgba(45,16,16,0.6);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
  border-color: var(--border-gold-bright);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(242,209,110,0.08);
}

/* ── Gold divider ── */
.ornamental-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  width: max-content;
}
.ornamental-divider .line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.ornamental-divider .line.right {
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}
.ornamental-divider .diamond {
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ================================================
   FEATURES GRID
   ================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
}

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: rgba(242,209,110,0.1);
  border: 1px solid var(--border-gold);
}

.feature-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}
.feature-hindi {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 0.85rem;
  color: var(--saffron);
  margin-bottom: 12px;
}
.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ================================================
   TAAL / RHYTHM SHOWCASE
   ================================================ */
.taal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.taal-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.taal-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,209,110,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.taal-beats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0;
}
.beat-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-gold);
  border: 1px solid var(--border-gold-bright);
  transition: background 0.2s;
}
.beat-dot.sam   { background: var(--gold);    box-shadow: 0 0 8px var(--gold); }
.beat-dot.taali { background: var(--saffron); }
.beat-dot.khaali{ background: transparent; border-color: var(--text-muted); }

.taal-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold);
}
.taal-cycle {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.taal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 12px;
}

/* ================================================
   GRACE SCORE SECTION — clean editorial redesign
   ================================================ */

/* Heading centred above the 3-col layout */
.grace-header {
  text-align: center;
  margin-bottom: 64px;
}

/* 3-column grid */
.grace-layout {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── COL 1: Big ring ── */
.grace-ring-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.grace-ring-outer {
  position: relative;
  width: 180px; height: 180px;
}
.grace-ring-outer svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.gr-bg {
  fill: none;
  stroke: rgba(242,209,110,0.1);
  stroke-width: 9;
}
.gr-fill {
  fill: none;
  stroke: url(#graceGrad);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 490.1;      /* 2π × 78 */
  stroke-dashoffset: 122.5;     /* 75% → 490.1 × 0.25 */
  animation: grace-fill 2s ease-out forwards;
}
@keyframes grace-fill {
  from { stroke-dashoffset: 490.1; }
  to   { stroke-dashoffset: 122.5; }
}
.grace-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.grace-big-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.grace-big-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 4px;
}
.grace-ring-status {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  text-align: center;
}
.grace-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.gbadge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(94,207,110,0.12);
  color: #5ecf6e;
  border: 1px solid rgba(94,207,110,0.25);
  letter-spacing: 0.02em;
}

/* ── COL 2: Metric bars ── */
.grace-metrics-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}
.gmetric { display: flex; flex-direction: column; gap: 8px; }
.gmetric-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gmetric-name {
  font-size: 0.83rem;
  color: var(--beige);
  letter-spacing: 0.01em;
}
.gmetric-pct {
  font-size: 0.83rem;
  font-weight: 700;
  min-width: 36px;
  text-align: right;
}
.gmetric-pct.green-txt { color: #5ecf6e; }
.gmetric-pct.gold-txt  { color: var(--gold); }
.gmetric-track {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.gmetric-bar {
  height: 100%;
  border-radius: 3px;
  animation: bar-in 1.6s ease-out forwards;
  transform-origin: left;
}
.gmetric-bar.green-bar { background: linear-gradient(90deg, #5ecf6e, #3ab84d); }
.gmetric-bar.gold-bar  { background: linear-gradient(90deg, var(--gold), var(--saffron)); }
@keyframes bar-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.gmetric-legend {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.legend-dot.green-dot { background: #5ecf6e; }
.legend-dot.gold-dot  { background: var(--gold); }

/* ── COL 3: AI Coach ── */
.grace-coach-col {
  display: flex;
  flex-direction: column;
}
.coach-card {
  background: rgba(20,6,6,0.7);
  border: 1px solid rgba(242,209,110,0.18);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.coach-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(242,209,110,0.4), transparent 70%);
}
.coach-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.coach-brain-icon { font-size: 1.25rem; }
.coach-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.1;
}
.coach-card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.coach-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.8;
  animation: pulse-glow 1.6s ease-in-out infinite;
  margin-left: auto;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.8; transform: scale(1); box-shadow: 0 0 0 0 rgba(242,209,110,0.4); }
  50%       { opacity: 0.3; transform: scale(0.8); box-shadow: 0 0 6px 3px rgba(242,209,110,0.15); }
}
.coach-divider {
  height: 1px;
  background: rgba(242,209,110,0.1);
  margin: 16px 0;
}

/* ── AI Coach feature list (what the AI does) ── */
.coach-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.coach-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cfl-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 8px;
}
.coach-feature-list strong {
  display: block;
  font-size: 0.88rem;
  color: var(--beige);
  font-weight: 600;
  margin-bottom: 4px;
}
.coach-feature-list p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Centred CTA below the grace grid ── */
.grace-cta {
  display: flex;
  justify-content: center;
  margin-top: 52px;
}

@media (max-width: 1100px) {
  .grace-layout { grid-template-columns: 1fr 1fr; }
  .grace-ring-col { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 32px; }
  .grace-badges  { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .grace-layout { grid-template-columns: 1fr; }
  .grace-ring-col { flex-direction: column; align-items: center; }
}



/* ── Score card (left column) — mirrors the app's ResultSummarySection ── */
.score-visual {
  display: flex;
  flex-direction: column;
  background: rgba(28,9,9,0.85);
  border: 1px solid rgba(242,209,110,0.25);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(242,209,110,0.08);
  backdrop-filter: blur(12px);
}

/* ① Hero row */
.app-score-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
}
.app-ring-wrap {
  position: relative;
  width: 56px; height: 56px;
  flex-shrink: 0;
}
.app-ring-wrap svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.app-ring-bg {
  fill: none;
  stroke: rgba(242,209,110,0.15);
  stroke-width: 4;
}
.app-ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 150.8;       /* 2π × 24 */
  stroke-dashoffset: 37.7;       /* 75% filled → offset = 150.8 × 0.25 */
  animation: ring-fill-app 1.8s ease-out forwards;
}
@keyframes ring-fill-app {
  from { stroke-dashoffset: 150.8; }
  to   { stroke-dashoffset: 37.7;  }
}
.app-ring-num {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
}
.app-score-label-col { flex: 1; }
.app-score-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--beige);
  line-height: 1.2;
}
.app-score-sub {
  font-size: 0.78rem;
  margin-top: 4px;
  font-weight: 600;
}
.app-score-sub.good    { color: var(--gold); }
.app-score-sub.great   { color: #5ecf6e; }
.app-score-sub.needs   { color: #ff7070; }

/* ② Badges */
.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 14px;
}
.app-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.app-badge.green {
  background: rgba(94,207,110,0.18);
  color: #5ecf6e;
  border: 1px solid rgba(94,207,110,0.3);
}
.app-badge.warn {
  background: rgba(232,130,58,0.18);
  color: var(--saffron);
  border: 1px solid rgba(232,130,58,0.3);
}

/* Divider */
.app-divider {
  height: 1px;
  background: rgba(242,209,110,0.15);
  margin: 4px 0 12px;
}

/* ③ ML text rows */
.app-ml-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.app-ml-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 8px 0;
}
.app-ml-icon { font-size: 0.95rem; }
.app-ml-label {
  font-size: 0.82rem;
  color: var(--beige);
  flex: 1;
}
.app-ml-val {
  font-size: 0.82rem;
  font-weight: 600;
}
.app-ml-val.gold       { color: var(--gold); }
.app-ml-val.green-text { color: #5ecf6e; }

/* ④ Metric bars */
.score-metrics {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.metric-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.metric-icon { font-size: 0.9rem; flex-shrink: 0; }
.metric-label {
  font-size: 0.82rem;
  color: var(--beige);
  min-width: 130px;
}
.metric-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(242,209,110,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.metric-bar {
  height: 100%;
  border-radius: 3px;
  animation: bar-in 1.5s ease-out forwards;
  transform-origin: left;
}
.metric-bar.green-bar { background: linear-gradient(90deg, #5ecf6e, #3db855); }
.metric-bar.gold-bar  { background: linear-gradient(90deg, var(--gold), var(--saffron)); }
@keyframes bar-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.metric-val {
  font-size: 0.82rem;
  min-width: 34px;
  text-align: right;
  font-weight: 600;
}
.metric-val.green-text { color: #5ecf6e; }
.metric-val.gold       { color: var(--gold); }

.score-content .section-title { text-align: left; }
.score-content .section-desc  { text-align: left; margin: 0; }

/* ── AI Coach Feedback Panel ── */
.ai-coach-panel {
  background: rgba(20,6,6,0.8);
  border: 1px solid rgba(242,209,110,0.25);
  border-radius: 16px;
  padding: 20px;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}
.ai-coach-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(242,209,110,0.5), transparent);
}
.ai-coach-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}
.ai-coach-brain { font-size: 1.15rem; }
.ai-coach-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  flex: 1;
}
/* Pulsing dot that mimics the ProgressView in the app */
.ai-typing-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1);   }
  50%       { opacity: 0.3; transform: scale(0.7); }
}

.ai-feedback-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-fb-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0;
  animation: fb-appear 0.4s ease forwards;
}
.ai-fb-item:nth-child(1) { animation-delay: 0.3s; }
.ai-fb-item:nth-child(2) { animation-delay: 0.7s; }
.ai-fb-item:nth-child(3) { animation-delay: 1.1s; }
.ai-fb-item:nth-child(4) { animation-delay: 1.5s; }
.ai-fb-item:nth-child(5) { animation-delay: 1.9s; }
.ai-fb-item:nth-child(6) { animation-delay: 2.3s; }
.ai-fb-item:nth-child(7) { animation-delay: 2.7s; }
@keyframes fb-appear {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ai-fb-item.positive { color: rgba(255,255,255,0.88); }
.ai-fb-item.warn     { color: rgba(255,255,255,0.75); }
.fb-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.ai-fb-item strong { color: var(--beige); }

.ai-coach-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(242,209,110,0.12);
  font-size: 0.72rem;
  color: rgba(242,209,110,0.45);
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 900px) {
  .score-section { grid-template-columns: 1fr; }
  .score-content .section-title,
  .score-content .section-desc { text-align: center; }
}


.score-ring-outer {
  position: relative;
  width: 220px; height: 220px;
  flex-shrink: 0;
}
.score-ring-outer svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.score-ring-bg {
  fill: none;
  stroke: rgba(242,209,110,0.1);
  stroke-width: 8;
}
.score-ring-fill {
  fill: none;
  stroke: url(#scoreGrad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 720;
  stroke-dashoffset: 180;
  animation: ring-fill 2s ease-out forwards;
}
@keyframes ring-fill {
  from { stroke-dashoffset: 720; }
  to   { stroke-dashoffset: 180; }
}

.score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.score-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.score-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
}

/* Bars sit below the ring in normal document flow — no absolute */
.score-metrics {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.metric-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.metric-label {
  font-size: 0.8rem;
  color: var(--beige-dim);
  min-width: 96px;
}
.metric-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(242,209,110,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.metric-bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  animation: bar-in 1.5s ease-out forwards;
  transform-origin: left;
}
@keyframes bar-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.metric-val {
  font-size: 0.8rem;
  color: var(--gold);
  min-width: 36px;
  text-align: right;
  font-weight: 600;
}

.score-content .section-title { text-align: left; }
.score-content .section-desc  { text-align: left; margin: 0; }

@media (max-width: 800px) {
  .score-section { grid-template-columns: 1fr; }
  .score-content .section-title,
  .score-content .section-desc { text-align: center; }
  .score-visual { align-items: center; }
}

/* ================================================
   LEARNING PATH
   ================================================ */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.path-card {
  padding: 28px;
  text-align: center;
}
.path-level {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.path-level.beginner     { background: rgba(100,200,100,0.15); color: #8AE08A; border: 1px solid rgba(100,200,100,0.3); }
.path-level.intermediate { background: rgba(242,209,110,0.15); color: var(--gold); border: 1px solid var(--border-gold); }
.path-level.advanced     { background: rgba(232,130,58,0.15);  color: var(--saffron); border: 1px solid rgba(232,130,58,0.3); }

.path-elements {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  text-align: left;
}
.path-element {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--beige-dim);
}
.path-element::before {
  content: '◆';
  font-size: 0.4rem;
  color: var(--gold);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .path-grid { grid-template-columns: 1fr; }
}

/* ================================================
   TESTIMONIALS / QUOTES
   ================================================ */
.quote-section {
  text-align: center;
  padding: 80px 8%;
  background: linear-gradient(180deg, var(--maroon-mid), var(--maroon));
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--beige);
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 1.6;
  opacity: 0.85;
}
.quote-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ================================================
   APP DOWNLOAD STRIP
   ================================================ */
.download-section {
  padding: 100px 8%;
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at center, rgba(62,26,26,1) 0%, var(--maroon) 80%);
  position: relative;
  overflow: hidden;
}
.download-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(242,209,110,0.07);
  pointer-events: none;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--maroon-card);
  border: 1px solid var(--border-gold-bright);
  border-radius: 14px;
  padding: 14px 24px;
  margin-top: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.app-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(242,209,110,0.2);
  border-color: var(--gold);
}
.app-badge .badge-icon { font-size: 2rem; }
.app-badge .badge-text { text-align: left; }
.app-badge .badge-text .badge-sub  { font-size: 0.7rem; color: var(--text-muted); }
.app-badge .badge-text .badge-main { font-size: 1.1rem; font-weight: 600; color: var(--beige); font-family: 'Cormorant Garamond', serif; }

/* ================================================
   FOOTER
   ================================================ */
footer {
  background: var(--maroon-card);
  border-top: 1px solid var(--border-gold);
  padding: 60px 8% 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border-gold);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }
.footer-bottom .footer-heart { color: var(--saffron); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ================================================
   INNER PAGE HERO (Privacy, Terms, Contact)
   ================================================ */
.page-hero {
  padding: 140px 8% 80px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(62,26,26,0.9) 0%, var(--maroon) 70%);
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border-gold);
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--gold);
  margin-bottom: 12px;
}
.page-hero .page-hero-sub {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ================================================
   PROSE (Privacy & Terms content)
   ================================================ */
.prose-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 5%;
}
.prose-container h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  color: var(--gold);
  margin-top: 52px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-gold);
}
.prose-container h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--beige);
  margin-top: 28px;
  margin-bottom: 8px;
}
.prose-container p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.prose-container ul, .prose-container ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.prose-container li {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 6px;
}
.prose-container strong { color: var(--beige); }
.prose-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding: 10px 16px;
  background: rgba(242,209,110,0.06);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
}

/* ================================================
   CONTACT PAGE
   ================================================ */
.contact-section {
  padding: 80px 8%;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.contact-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(242,209,110,0.1);
  border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-body .contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.contact-item-body .contact-value {
  font-size: 0.95rem;
  color: var(--beige);
  margin-top: 2px;
}
.contact-item-body .contact-value a {
  color: var(--gold);
}

/* Contact Form */
.contact-form-wrap {
  background: rgba(45,16,16,0.5);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 40px;
}
.contact-form-wrap h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--beige-dim);
  margin-bottom: 7px;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--beige);
  font-size: 0.93rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(242,209,110,0.04);
}
.form-group select option { background: var(--maroon); }
.form-group textarea { resize: vertical; min-height: 130px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
  padding: 15px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
  background: rgba(100,200,100,0.1);
  border: 1px solid rgba(100,200,100,0.3);
  border-radius: 10px;
  color: #8AE08A;
  font-size: 0.95rem;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ================================================
   PARTICLE CANVAS (decorative)
   ================================================ */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ================================================
   ANIMATIONS — fade-in on scroll
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ================================================
   LEGAL PAGE NAV HIGHLIGHT
   ================================================ */
nav[data-page="privacy"] a[href="privacy.html"],
nav[data-page="terms"]   a[href="terms.html"],
nav[data-page="contact"] a[href="contact.html"] {
  color: var(--gold);
}
