/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;800&family=Tiro+Devanagari+Sanskrit&family=DynaPuff:wght@700&display=swap');

/* ── Design Tokens ── */
:root {
  --primary-color: #E8210A;
  --secondary-color: #1FA8A5;
  --accent-color: #F5B800;
  --warm-orange: #FF7B35;
  --purple: #7C5CBF;
  --text-dark: #1A1A2E;
  --text-secondary: #4A4A6A;
  --bg-color: #FFF8F0;
  --card-bg: #FFFFFF;
  --info-surface: #F0F7FF;
  --font-english: 'Nunito', 'Segoe UI', sans-serif;
  --font-sanskrit: 'Tiro Devanagari Sanskrit', serif;
  --font-display: 'DynaPuff', var(--font-english);
  --border-radius: 8px;
}

/* ── Base ── */
body {
  font-family: var(--font-english);
  background: var(--bg-color);
  color: var(--text-dark);
  margin: 0;
}

/* ── Animations ── */
@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.35; }
  50%       { transform: translate(-50%, -50%) scale(1.08); opacity: 0.15; }
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideInLeft {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes tileIn {
  from { opacity: 0; transform: scale(0) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─────────────────────────────────────────
   WELCOME SECTION
───────────────────────────────────────── */
.sg-welcome {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  background: url('REPLACE_WITH_DESKTOP_BG_URL') center / cover no-repeat;
  --mobile-bg: url('REPLACE_WITH_MOBILE_BG_URL');
}

/* Glow rings */
.sg-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 30%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.sg-ring-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(245,184,0,0.18) 0%, transparent 70%);
  animation: ringPulse 4s ease-in-out infinite;
}
.sg-ring-2 {
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(232,33,10,0.09) 0%, transparent 70%);
  animation: ringPulse 5s ease-in-out infinite reverse;
}

/* Layout: landscape row */
.sg-layout {
  position: relative; z-index: 1;
  display: flex; flex-direction: row;
  align-items: center; justify-content: center;
  width: 100%; max-width: 1280px; min-height: 100vh;
  padding: 0 48px; box-sizing: border-box;
}

/* Left panel */
.sg-left {
  flex: 0 0 auto;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 16px;
  animation: fadeSlideInLeft 0.75s cubic-bezier(0.22,1,0.36,1) both;
}
.sg-logo {
  width: 460px; height: 460px;
  object-fit: contain;
  animation: logoFloat 4s ease-in-out infinite;
}
.sg-app-name-mobile { display: none; }

/* Vowel tiles */
.sg-vowel-row {
  display: flex; gap: 10px;
  margin-top: 20px; justify-content: center;
}
.sg-vtile {
  width: 64px; height: 68px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Annapurna SIL', var(--font-sanskrit);
  font-size: 32px; font-weight: 700; color: #fff;
  box-shadow: 0 4px 0 var(--ts), 0 6px 16px rgba(0,0,0,0.15);
  border: 2px solid rgba(255,255,255,0.35);
  animation: tileIn 0.5s cubic-bezier(0.34,1.56,0.64,1) backwards;
  transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
  cursor: default;
}
.sg-vtile:hover { transform: translateY(-6px) scale(1.12); }
.sg-vt1 { background: #E8210A; --ts: #891205; animation-delay: 0.3s; }
.sg-vt2 { background: #1FA8A5; --ts: #0f6160; animation-delay: 0.4s; }
.sg-vt3 { background: #7C5CBF; --ts: #4a3070; animation-delay: 0.5s; }
.sg-vt4 { background: #FF7B35; --ts: #994918; animation-delay: 0.6s; }
.sg-vt5 { background: #EF4C8B; --ts: #9e2856; animation-delay: 0.7s; }

/* Right panel */
.sg-right {
  position: relative; flex: 1 1 0;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding: 40px 32px 40px 52px;
  animation: fadeSlideIn 0.75s 0.1s cubic-bezier(0.22,1,0.36,1) both;
}
.sg-right::before {
  content: '';
  position: absolute; left: 0; top: 12%; height: 76%; width: 1.5px;
  background: linear-gradient(to bottom,
    transparent,
    rgba(245,184,0,0.55) 30%,
    rgba(232,33,10,0.32) 70%,
    transparent);
  border-radius: 2px;
}

/* App name */
.sg-app-name {
  display: flex; flex-direction: column;
  line-height: 1; margin: 0 0 12px;
}
.sg-name-s, .sg-name-g {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -1px;
  -webkit-text-stroke: 3px white;
  paint-order: stroke fill;
  display: block;
}
.sg-name-s { color: #E8210A; }
.sg-name-g { color: #1FA8A5; }

/* Mantra + meaning */
.sg-mantra {
  margin: 0;
  font-family: var(--font-sanskrit); font-style: normal;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 600; color: var(--primary-color); letter-spacing: 0.8px;
}
.sg-meaning {
  margin: 0 0 24px;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 500; color: var(--text-secondary);
  font-style: italic; letter-spacing: 0.3px;
}
.sg-fun-badge {
  display: inline-block; margin: 10px 0 8px; padding: 8px 20px;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem); font-weight: 700;
  color: var(--warm-orange); border: 2px solid var(--warm-orange);
  border-radius: 999px; background: rgba(255,123,53,0.07);
  letter-spacing: 0.3px; box-shadow: 0 2px 10px rgba(255,123,53,0.15);
}

/* Feature badges */
.sg-badges {
  display: flex; flex-direction: column;
  gap: 10px; margin-bottom: 40px;
}
.sg-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600;
  background: transparent; width: fit-content; letter-spacing: 0.2px;
}
.sg-badge-teal   { border: 1.5px solid #1FA8A5; color: #1FA8A5; }
.sg-badge-gold   { border: 1.5px solid #FF7B35; color: #FF7B35; }
.sg-badge-purple { border: 1.5px solid #7C5CBF; color: #7C5CBF; }

/* CTA button */
.sg-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 240px; padding: 17px 36px;
  font-family: var(--font-english);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #E8210A 0%, #c9190c 100%);
  border: none; border-radius: 16px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(232,33,10,0.38), 0 2px 4px rgba(0,0,0,0.12);
  transition: transform 0.2s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.sg-cta::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
  border-radius: inherit; pointer-events: none;
}
.sg-cta:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(232,33,10,0.48), 0 4px 8px rgba(0,0,0,0.14);
}
.sg-arrow { font-size: 1.2rem; transition: transform 0.2s; }
.sg-cta:hover .sg-arrow { transform: translateX(4px); }

/* ─────────────────────────────────────────
   PORTRAIT / MOBILE
───────────────────────────────────────── */
@media (orientation: portrait) {
  .sg-welcome {
    background-image: var(--mobile-bg) !important;
    height: 100svh; overflow: hidden;
  }
  .sg-ring { left: 50%; top: 28%; }
  .sg-layout {
    flex-direction: column;
    padding: 32px 20px 16px; gap: 18px;
    justify-content: flex-start; height: 100%;
  }
  .sg-left   { padding: 0; }
  .sg-logo   { width: min(82vw, 320px); height: auto; }
  .sg-vtile  { width: 56px; height: 62px; font-size: 28px; border-radius: 12px; }
  .sg-vowel-row { gap: 8px; margin-top: 24px; }

  .sg-app-name-mobile {
    display: flex; flex-direction: row;
    align-items: baseline; gap: 10px; justify-content: center;
    margin-bottom: 14px;
  }
  .sg-app-name-mobile .sg-name-s,
  .sg-app-name-mobile .sg-name-g { font-size: clamp(3.2rem, 13vw, 5rem); }
  .sg-right .sg-app-name { display: none; }

  .sg-right {
    align-items: center; text-align: center;
    padding: 0; flex: 0 0 auto; justify-content: flex-start;
  }
  .sg-right::before { display: none; }
  .sg-badges  { align-items: center; gap: 7px; margin-bottom: 16px; }
  .sg-badge-purple { display: none; }
  .sg-badge   { font-size: 0.82rem; padding: 5px 14px; }
  .sg-mantra  { font-size: clamp(1.8rem, 7.5vw, 2.6rem); }
  .sg-meaning { font-size: 0.82rem; margin-bottom: 10px; }
  .sg-fun-badge { font-size: 0.82rem; padding: 5px 14px; margin: 5px 0; }
  .sg-cta     { width: 100%; font-size: 1rem; padding: 14px 24px; min-width: unset; }
}
