@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&family=Cormorant+Garamond:wght@500;600;700&display=swap");

:root {
  --obsidian: oklch(0.14 0.02 200);
  --background: oklch(0.13 0.022 200);
  --foreground: oklch(0.97 0.01 180);
  --emerald-deep: oklch(0.5 0.13 165);
  --teal-glow: oklch(0.72 0.13 190);
  --cyan-soft: oklch(0.85 0.09 200);
  --glass: oklch(1 0 0 / 0.04);
  --glass-strong: oklch(1 0 0 / 0.08);
  --destructive: oklch(0.62 0.21 25);
  --landing-bg-top: #0f3a31;
  --landing-bg-mid: #08261f;
  --landing-bg-bottom: #041310;
  --landing-surface: rgba(20, 42, 36, 0.82);
  --landing-surface-strong: rgba(28, 56, 48, 0.9);
  --landing-surface-soft: rgba(20, 42, 36, 0.66);
  --landing-border: rgba(173, 235, 223, 0.14);
  --landing-border-strong: rgba(173, 235, 223, 0.2);
  --landing-copy: #e8f7f1;
  --landing-copy-soft: rgba(214, 233, 226, 0.72);
  --landing-copy-muted: rgba(214, 233, 226, 0.52);
  --landing-accent: #71d7c8;
  --landing-accent-strong: #59c7bb;
  --landing-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

body.landing-page {
  margin: 0;
  min-height: 100vh;
  color: var(--landing-copy);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 14%, rgba(74, 179, 157, 0.22), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(86, 181, 169, 0.14), transparent 28%),
    radial-gradient(circle at 52% 0%, rgba(88, 196, 184, 0.07), transparent 32%),
    linear-gradient(180deg, var(--landing-bg-top) 0%, var(--landing-bg-mid) 38%, var(--landing-bg-bottom) 100%);
  overflow-x: hidden;
}

body.landing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 7% 28%, rgba(155, 237, 224, 0.5) 0, rgba(155, 237, 224, 0.5) 2px, transparent 3px),
    radial-gradient(circle at 18% 79%, rgba(155, 237, 224, 0.35) 0, rgba(155, 237, 224, 0.35) 1.5px, transparent 2.5px),
    radial-gradient(circle at 42% 21%, rgba(155, 237, 224, 0.24) 0, rgba(155, 237, 224, 0.24) 1.5px, transparent 2.5px),
    radial-gradient(circle at 63% 32%, rgba(155, 237, 224, 0.3) 0, rgba(155, 237, 224, 0.3) 2px, transparent 3px),
    radial-gradient(circle at 79% 61%, rgba(155, 237, 224, 0.28) 0, rgba(155, 237, 224, 0.28) 1.5px, transparent 2.5px),
    radial-gradient(circle at 95% 73%, rgba(155, 237, 224, 0.22) 0, rgba(155, 237, 224, 0.22) 1.5px, transparent 2.5px);
  opacity: 0.55;
}

body.landing-page * {
  box-sizing: border-box;
}

body.landing-page a {
  color: inherit;
  text-decoration: none;
}

body.landing-page img,
body.landing-page svg {
  display: block;
}

.site-footer {
  width: min(1360px, calc(100% - 3rem));
  margin: 4rem auto 1.5rem;
  padding: 2rem 2rem 1.4rem;
  border-radius: 2rem;
  border: 1px solid rgba(173, 235, 223, 0.12);
  background:
    linear-gradient(180deg, rgba(17, 33, 29, 0.9) 0%, rgba(10, 21, 18, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 58px rgba(0, 0, 0, 0.22);
}

.site-footer .footer-container {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr));
  gap: 2rem;
  align-items: start;
}

.site-footer .footer-brand {
  display: grid;
  gap: 0.9rem;
}

.site-footer .footer-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(109, 222, 207, 0.12),
    0 10px 28px rgba(60, 183, 162, 0.26);
}

.site-footer .footer-brand h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: rgba(242, 251, 247, 0.96);
}

.site-footer .footer-tagline {
  margin: 0;
  max-width: 19rem;
  color: rgba(214, 233, 226, 0.62);
  font-size: 1rem;
  line-height: 1.65;
}

.site-footer .footer-links {
  display: grid;
  gap: 0.9rem;
}

.site-footer .footer-links h4 {
  margin: 0;
  color: rgba(118, 221, 207, 0.94);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-footer .footer-links a {
  color: rgba(228, 242, 237, 0.68);
  font-size: 1rem;
  transition: color 160ms ease, transform 160ms ease;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible {
  color: rgba(241, 251, 248, 0.96);
  transform: translateX(2px);
}

.site-footer .footer-bottom {
  margin-top: 1.7rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(173, 235, 223, 0.1);
}

.site-footer .footer-bottom p {
  margin: 0;
  color: rgba(214, 233, 226, 0.52);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

body.landing-page .landing-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body.landing-page .landing-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(5.5rem, 8vw, 9rem);
  padding-bottom: 5rem;
}

body.landing-page .landing-container {
  width: min(1360px, calc(100% - 3rem));
  margin: 0 auto;
}

body.landing-page .site-header {
  position: sticky;
  top: 1rem;
  z-index: 50;
  width: min(1360px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid var(--landing-border-strong);
  border-radius: 999px;
  background: rgba(31, 66, 57, 0.72);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    var(--landing-shadow);
}

body.landing-page .brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

body.landing-page .logo-img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(109, 222, 207, 0.12),
    0 8px 26px rgba(60, 183, 162, 0.32);
}

body.landing-page .brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: rgba(246, 253, 250, 0.96);
}

body.landing-page .header-right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

body.landing-page .header-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 2rem);
}

body.landing-page .nav-link {
  color: rgba(222, 236, 231, 0.74);
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition:
    color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

body.landing-page .nav-link:hover,
body.landing-page .nav-link:focus-visible {
  color: rgba(244, 252, 250, 0.96);
  transform: translateY(-1px);
}

body.landing-page .nav-link-signin {
  margin-left: clamp(2rem, 12vw, 17rem);
}

body.landing-page .nav-link-cta {
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  color: #07221b;
  font-weight: 700;
  background: linear-gradient(135deg, #7ee3d4 0%, #56c4b8 100%);
  box-shadow: 0 16px 40px rgba(93, 212, 196, 0.26);
}

body.landing-page .nav-link-cta:hover,
body.landing-page .nav-link-cta:focus-visible {
  color: #07221b;
  box-shadow: 0 22px 48px rgba(93, 212, 196, 0.34);
}

body.landing-page .nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--landing-copy);
  padding: 0.5rem;
}

body.landing-page .nav-toggle-bar {
  display: block;
  width: 1.5rem;
  height: 2px;
  margin: 0.22rem 0;
  border-radius: 999px;
  background: currentColor;
}

body.landing-page .landing-hero,
body.landing-page .features,
body.landing-page .stats,
body.landing-page .cta-final {
  scroll-margin-top: 6rem;
}

body.landing-page .landing-hero {
  position: relative;
  padding-top: clamp(6rem, 10vw, 9rem);
}

body.landing-page .landing-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body.landing-page .landing-star {
  position: absolute;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: rgba(162, 233, 224, 0.76);
  box-shadow: 0 0 18px rgba(119, 215, 203, 0.5);
  animation: landingFloat 9s ease-in-out infinite;
}

body.landing-page .landing-star:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
body.landing-page .landing-star:nth-child(2) { top: 28%; left: 18%; animation-delay: -1.5s; }
body.landing-page .landing-star:nth-child(3) { top: 14%; right: 12%; animation-delay: -3s; }
body.landing-page .landing-star:nth-child(4) { top: 44%; right: 22%; animation-delay: -4.5s; }
body.landing-page .landing-star:nth-child(5) { top: 64%; left: 20%; animation-delay: -2.25s; }
body.landing-page .landing-star:nth-child(6) { top: 72%; right: 8%; animation-delay: -5.2s; }

body.landing-page .hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 1.6rem;
  text-align: center;
}

body.landing-page .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(182, 239, 230, 0.12);
  background: rgba(27, 52, 45, 0.64);
  color: var(--landing-copy-soft);
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.landing-page .hero-badge-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--landing-accent);
  box-shadow: 0 0 16px rgba(113, 215, 200, 0.75);
}

body.landing-page .hero-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4rem, 7.7vw, 7.35rem);
    font-weight: 200;
  line-height: 0.91;
  letter-spacing: -0.055em;
  color: #effaf7;
}

body.landing-page .hero-title .highlight,
body.landing-page .cta-card .highlight {
  color: var(--landing-accent);
}

body.landing-page .hero-title .highlight {
  display: block;
}

body.landing-page .hero-text {
  margin: 0;
  max-width: 46rem;
  color: var(--landing-copy-soft);
  font-size: clamp(1.1rem, 1.6vw, 1.42rem);
  line-height: 1.72;
}

body.landing-page .cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.45rem;
}

body.landing-page .primary-btn,
body.landing-page .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-width: 10.5rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

body.landing-page .primary-btn {
  color: #07221b;
  background: linear-gradient(135deg, #78ddcf 0%, #55c7bb 100%);
  box-shadow: 0 20px 42px rgba(84, 196, 182, 0.26);
}

body.landing-page .secondary-btn {
  color: rgba(242, 251, 248, 0.88);
  background: rgba(24, 39, 35, 0.78);
  border-color: rgba(181, 237, 228, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.landing-page .primary-btn:hover,
body.landing-page .secondary-btn:hover,
body.landing-page .primary-btn:focus-visible,
body.landing-page .secondary-btn:focus-visible {
  transform: translateY(-2px);
}

body.landing-page .btn-icon,
body.landing-page .landing-icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.landing-page .hero-showcase-wrap {
  position: relative;
  z-index: 2;
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

body.landing-page .hero-showcase {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(15, 30, 26, 0.95) 0%, rgba(7, 16, 14, 0.98) 100%);
  border: 1px solid rgba(173, 235, 223, 0.14);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 32px 90px rgba(0, 0, 0, 0.48),
    0 0 80px rgba(72, 194, 178, 0.12);
}

body.landing-page .hero-showcase::before {
  content: "";
  position: absolute;
  inset: -4rem 18% auto;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 202, 187, 0.18) 0%, transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

body.landing-page .showcase-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem 0.15rem 1rem;
  border-bottom: 1px solid rgba(173, 235, 223, 0.08);
  color: var(--landing-copy-muted);
  font-size: 0.98rem;
}

body.landing-page .showcase-topbar p {
  margin: 0;
}

body.landing-page .showcase-dots {
  display: inline-flex;
  gap: 0.55rem;
}

body.landing-page .showcase-dots span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
}

body.landing-page .showcase-dots span:nth-child(1) { background: #d85f59; }
body.landing-page .showcase-dots span:nth-child(2) { background: #d6a654; }
body.landing-page .showcase-dots span:nth-child(3) { background: #57c5ba; }

body.landing-page .showcase-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.45rem;
}

body.landing-page .showcase-kpi,
body.landing-page .showcase-panel {
  padding: 1.55rem;
  border-radius: 1.55rem;
  background: linear-gradient(180deg, rgba(23, 43, 37, 0.9) 0%, rgba(17, 31, 28, 0.9) 100%);
  border: 1px solid rgba(173, 235, 223, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.landing-page .showcase-kpi p,
body.landing-page .showcase-panel-head p {
  margin: 0;
  color: var(--landing-copy-muted);
  font-size: 1rem;
}

body.landing-page .showcase-kpi h3 {
  margin: 0.65rem 0 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.45rem, 4vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #edf9f5;
}

body.landing-page .showcase-kpi h3 span {
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  color: var(--landing-accent-strong);
}

body.landing-page .showcase-meter,
body.landing-page .showcase-progress-bar {
  height: 0.54rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

body.landing-page .showcase-meter span,
body.landing-page .showcase-progress-bar span {
  display: block;
  height: 100%;
  width: var(--meter, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(86, 197, 183, 0.85) 0%, rgba(133, 231, 223, 0.96) 100%);
  box-shadow: 0 0 14px rgba(90, 199, 184, 0.35);
}

body.landing-page .meter-54 { --meter: 54%; }
body.landing-page .meter-62 { --meter: 62%; }
body.landing-page .meter-72 { --meter: 72%; }
body.landing-page .meter-78 { --meter: 78%; }
body.landing-page .meter-86 { --meter: 86%; }
body.landing-page .meter-91 { --meter: 91%; }

body.landing-page .showcase-panels {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: 1.15rem;
  margin-top: 1.15rem;
}

body.landing-page .showcase-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

body.landing-page .showcase-panel-head span {
  color: var(--landing-accent-strong);
  font-weight: 600;
}

body.landing-page .showcase-leaderboard {
  margin: 0;
  padding: 0;
  list-style: decimal-leading-zero inside;
  color: var(--landing-copy-soft);
}

body.landing-page .showcase-leaderboard li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(173, 235, 223, 0.08);
}

body.landing-page .showcase-leaderboard li:first-child {
  border-top: 0;
  padding-top: 0;
}

body.landing-page .showcase-leaderboard strong,
body.landing-page .showcase-progress-copy strong {
  color: rgba(236, 249, 244, 0.9);
  font-size: 0.98rem;
}

body.landing-page .showcase-progress-list {
  display: grid;
  gap: 1rem;
}

body.landing-page .showcase-progress-item {
  display: grid;
  gap: 0.48rem;
}

body.landing-page .showcase-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--landing-copy-soft);
  font-size: 0.98rem;
}

body.landing-page .features {
  position: relative;
}

body.landing-page .section-head {
  margin-bottom: 2.4rem;
}

body.landing-page .section-kicker {
  margin: 0 0 1rem;
  color: var(--landing-accent-strong);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

body.landing-page .section-head h2 {
  margin: 0;
  max-width: 14ch;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.4rem, 6vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: #edf9f5;
}

body.landing-page .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.45rem;
}

body.landing-page .feature-card {
  min-height: 17.5rem;
  padding: 1.9rem 1.8rem 1.7rem;
  display: grid;
  align-content: start;
  gap: 1rem;
  border-radius: 1.75rem;
  background: linear-gradient(180deg, rgba(22, 42, 37, 0.82) 0%, rgba(14, 27, 24, 0.82) 100%);
  border: 1px solid rgba(173, 235, 223, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 48px rgba(0, 0, 0, 0.18);
}

body.landing-page .icon-pill {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1.1rem;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(113, 215, 200, 0.32), rgba(56, 127, 115, 0.42));
  border: 1px solid rgba(173, 235, 223, 0.12);
  color: #aef4e8;
}

body.landing-page .feature-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 2.4vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #edf9f5;
}

body.landing-page .feature-card p {
  margin: 0;
  color: var(--landing-copy-soft);
  font-size: 1.15rem;
  line-height: 1.55;
}

body.landing-page .stats .landing-container {
  position: relative;
}

body.landing-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.8rem 2rem;
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(34, 64, 55, 0.72) 0%, rgba(24, 47, 41, 0.72) 100%);
  border: 1px solid rgba(173, 235, 223, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 52px rgba(0, 0, 0, 0.2);
}

body.landing-page .stat-card {
  padding: 1rem;
}

body.landing-page .stat-value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 4.8vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  color: #ecf9f5;
}

body.landing-page .stat-label {
  margin-top: 0.5rem;
  color: var(--landing-copy-soft);
  font-size: 1.08rem;
}

body.landing-page .cta-final {
  padding-bottom: 4.5rem;
}

body.landing-page .cta-card {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1rem 1rem;
}

body.landing-page .cta-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4rem, 7vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  color: #effaf7;
}

body.landing-page .cta-card p {
  margin: 1.3rem auto 0;
  max-width: 34rem;
  color: var(--landing-copy-soft);
  font-size: 1.22rem;
  line-height: 1.65;
}

body.landing-page .cta-final .cta-row {
  margin-top: 2rem;
}

body.landing-page .site-footer {
  width: min(1360px, calc(100% - 3rem));
  margin: 0 auto 1.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(173, 235, 223, 0.1);
}

body.landing-page .site-footer .footer-container {
  display: none;
}

body.landing-page .site-footer .footer-bottom {
  padding: 0;
  border: 0;
  text-align: center;
}

body.landing-page .site-footer .footer-bottom p {
  margin: 0;
  color: var(--landing-copy-muted);
  font-size: 0.94rem;
  letter-spacing: 0.01em;
}

body.landing-page .site-footer .footer-bottom p::after {
  content: " · Crafted with ihsan";
}

html[data-animations-ready] body.landing-page .reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  transition:
    opacity 720ms ease,
    transform 720ms ease,
    filter 720ms ease;
}

html[data-animations-ready] body.landing-page .reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes landingFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.72;
  }
  50% {
    transform: translateY(-10px) scale(1.14);
    opacity: 1;
  }
}

@media (max-width: 1120px) {
  body.landing-page .nav-link-signin {
    margin-left: 3rem;
  }

  body.landing-page .showcase-kpis,
  body.landing-page .feature-grid,
  body.landing-page .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.landing-page .showcase-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-footer {
    width: min(100%, calc(100% - 1.5rem));
    padding: 1.6rem 1.25rem 1.15rem;
  }

  .site-footer .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  body.landing-page .site-header {
    padding: 0.9rem 1rem;
  }

  body.landing-page .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: auto;
  }

  body.landing-page .header-nav {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    width: min(23rem, 84vw);
    padding: 1rem;
    display: grid;
    gap: 0.5rem;
    border-radius: 1.5rem;
    background: rgba(18, 34, 30, 0.94);
    border: 1px solid rgba(173, 235, 223, 0.12);
    box-shadow: var(--landing-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  body.landing-page .header-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.landing-page .nav-link-signin {
    margin-left: 0;
  }

  body.landing-page .nav-link,
  body.landing-page .nav-link-cta {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
  }

  body.landing-page .nav-link-cta {
    justify-content: center;
  }

  body.landing-page .landing-container,
  body.landing-page .site-footer {
    width: min(100%, calc(100% - 1.5rem));
  }

  body.landing-page .landing-hero {
    padding-top: 4.8rem;
  }
}

@media (max-width: 720px) {
  .site-footer .footer-links {
    gap: 0.65rem;
  }

  body.landing-page .hero-title,
  body.landing-page .cta-card h2,
  body.landing-page .section-head h2 {
    max-width: none;
  }

  body.landing-page .showcase-kpis,
  body.landing-page .feature-grid,
  body.landing-page .stats-grid {
    grid-template-columns: 1fr;
  }

  body.landing-page .hero-showcase,
  body.landing-page .stats-grid {
    padding: 1rem;
  }

  body.landing-page .stat-card,
  body.landing-page .feature-card,
  body.landing-page .showcase-kpi,
  body.landing-page .showcase-panel {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.landing-page .landing-star,
  html[data-animations-ready] body.landing-page .reveal {
    animation: none;
    transition: none;
    transform: none;
    filter: none;
    opacity: 1;
  }
}

/* ============================================================
   LANDING ELEVATION — tasteful khatam/mihrab accents + motion
   ============================================================ */

/* Hero geometric backdrop (slowly rotating khatam + rings) */
body.landing-page .landing-geo {
  position: absolute;
  top: clamp(1rem, 5vw, 4rem);
  left: 50%;
  width: min(46rem, 94vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.42;
  -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 44%, #000 30%, transparent 70%);
}
body.landing-page .landing-geo-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
body.landing-page .landing-geo-svg rect,
body.landing-page .landing-geo-svg circle {
  stroke: url(#landingGeoStroke);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
body.landing-page .landing-geo-khatam {
  transform-box: fill-box;
  transform-origin: center;
  animation: landingGeoSpin 90s linear infinite;
}
body.landing-page .landing-geo-rings {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0.55;
  animation: landingGeoSpin 140s linear infinite reverse;
}
@keyframes landingGeoSpin { to { transform: rotate(360deg); } }

/* Animated gradient on the highlighted headline words */
body.landing-page .hero-title .highlight,
body.landing-page .cta-card .highlight {
  background: linear-gradient(110deg, #aef4e8 0%, #5ec7bb 45%, #aef4e8 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: landingShimmer 8s ease-in-out infinite;
}
@keyframes landingShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Hero badge dot — gentle pulse */
body.landing-page .hero-badge-dot {
  animation: landingDotPulse 2.4s ease-in-out infinite;
}
@keyframes landingDotPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(113, 215, 200, 0.7); }
  50% { box-shadow: 0 0 26px rgba(113, 215, 200, 1); }
}

/* Hero showcase — subtle float */
body.landing-page .hero-showcase {
  animation: landingFloatCard 10s ease-in-out infinite;
}
@keyframes landingFloatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Feature cards — hover lift, top hairline, icon glow */
body.landing-page .feature-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 240ms ease,
    box-shadow 240ms ease;
}
body.landing-page .feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.8rem;
  right: 1.8rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 221, 208, 0.55), transparent);
  opacity: 0;
  transition: opacity 240ms ease;
}
body.landing-page .feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(120, 221, 208, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 26px 60px rgba(0, 0, 0, 0.28),
    0 0 42px rgba(72, 194, 178, 0.16);
}
body.landing-page .feature-card:hover::before { opacity: 1; }
body.landing-page .icon-pill {
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 240ms ease;
}
body.landing-page .feature-card:hover .icon-pill {
  transform: scale(1.06);
  box-shadow: 0 0 28px rgba(113, 215, 200, 0.32);
}

/* Stats — gradient numerals */
body.landing-page .stat-value {
  background: linear-gradient(135deg, #ecf9f5 0%, #8fe7df 60%, #5ec7bb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Final CTA — mihrab-arch frame, khatam watermark, Iqra accent */
body.landing-page .cta-final .cta-card {
  position: relative;
  overflow: hidden;
  max-width: 54rem;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.75rem, 4vw, 3rem) clamp(2.5rem, 5vw, 3.5rem);
  border-radius: clamp(6rem, 18vw, 11rem) clamp(6rem, 18vw, 11rem) 2rem 2rem;
  border: 1px solid rgba(173, 235, 223, 0.16);
  background: linear-gradient(180deg, rgba(24, 47, 41, 0.62) 0%, rgba(14, 27, 24, 0.5) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 30px 80px rgba(0, 0, 0, 0.32),
    0 0 70px rgba(72, 194, 178, 0.1);
}
body.landing-page .cta-final .cta-card::before {
  content: "";
  position: absolute;
  top: -8%;
  left: 50%;
  width: min(26rem, 78%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%237fe0d2' stroke-width='1'%3E%3Crect x='24' y='24' width='52' height='52' rx='6'/%3E%3Crect x='24' y='24' width='52' height='52' rx='6' transform='rotate(45 50 50)'/%3E%3Ccircle cx='50' cy='50' r='28'/%3E%3Ccircle cx='50' cy='50' r='15'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
}
body.landing-page .cta-card > * { position: relative; z-index: 1; }
body.landing-page .cta-ayah {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  margin: 0 0 1.4rem;
}
body.landing-page .cta-ayah-ar {
  font-family: "Amiri", "Scheherazade New", "Noto Naskh Arabic", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  line-height: 1;
  color: var(--landing-accent);
  text-shadow: 0 0 30px rgba(113, 215, 200, 0.3);
}
body.landing-page .cta-ayah-en {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--landing-copy-muted);
}

/* Light-mode adjustments for the new gradient text */
html[data-theme="light"] body.landing-page .hero-title .highlight,
html[data-theme="light"] body.landing-page .cta-card .highlight {
  background: linear-gradient(110deg, #1f9278, #2ca888, #1f9278);
  background-size: 220% 100%;
}
html[data-theme="light"] body.landing-page .stat-value {
  background: linear-gradient(135deg, #0b2820, #1f9278);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="light"] body.landing-page .landing-geo { opacity: 0.3; }

@media (prefers-reduced-motion: reduce) {
  body.landing-page .landing-geo-khatam,
  body.landing-page .landing-geo-rings,
  body.landing-page .hero-showcase,
  body.landing-page .hero-badge-dot,
  body.landing-page .hero-title .highlight,
  body.landing-page .cta-card .highlight {
    animation: none;
  }
}

body.auth-shell-page {
  margin: 0;
  min-height: 100vh;
  color: #ebf8f4;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 44%, rgba(88, 208, 189, 0.12), transparent 18rem),
    radial-gradient(circle at 18% 16%, rgba(92, 197, 184, 0.12), transparent 18rem),
    radial-gradient(circle at 84% 24%, rgba(95, 205, 191, 0.08), transparent 20rem),
    linear-gradient(180deg, #0d3b31 0%, #05231d 44%, #03110e 100%);
  overflow-x: hidden;
}

body.auth-shell-page::before,
body.auth-shell-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.auth-shell-page::before {
  background-image:
    radial-gradient(circle at 6% 38%, rgba(162, 233, 224, 0.7) 0, rgba(162, 233, 224, 0.7) 2px, transparent 3px),
    radial-gradient(circle at 18% 78%, rgba(162, 233, 224, 0.4) 0, rgba(162, 233, 224, 0.4) 1.5px, transparent 2.5px),
    radial-gradient(circle at 66% 20%, rgba(162, 233, 224, 0.42) 0, rgba(162, 233, 224, 0.42) 1.5px, transparent 2.5px),
    radial-gradient(circle at 82% 32%, rgba(162, 233, 224, 0.7) 0, rgba(162, 233, 224, 0.7) 2px, transparent 3px),
    radial-gradient(circle at 90% 74%, rgba(162, 233, 224, 0.32) 0, rgba(162, 233, 224, 0.32) 1.5px, transparent 2.5px),
    radial-gradient(circle at 32% 62%, rgba(162, 233, 224, 0.2) 0, rgba(162, 233, 224, 0.2) 1.5px, transparent 2.5px);
  opacity: 0.65;
}

body.auth-shell-page::after {
  inset: auto 50% 14%;
  width: 34rem;
  height: 34rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 204, 188, 0.22) 0%, rgba(89, 204, 188, 0.08) 34%, transparent 72%);
  filter: blur(28px);
}

body.auth-shell-page * {
  box-sizing: border-box;
}

body.auth-shell-page a {
  color: inherit;
  text-decoration: none;
}

body.auth-shell-page img,
body.auth-shell-page svg {
  display: block;
}

body.auth-shell-page .site-header {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: clamp(4.5rem, 10vw, 6.5rem) 1.5rem 0;
  display: flex;
  justify-content: center;
}

body.auth-shell-page .auth-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

body.auth-shell-page .auth-shell-brand .logo-img {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(109, 222, 207, 0.12),
    0 8px 22px rgba(60, 183, 162, 0.26);
}

body.auth-shell-page .auth-shell-brand .brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 2.4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: rgba(242, 251, 247, 0.95);
}

body.auth-shell-page .auth-shell {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 10rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 5rem;
}

body.auth-shell-page .auth-shell-stage {
  width: min(100%, 52rem);
  display: flex;
  justify-content: center;
}

body.auth-shell-page .auth-shell-card {
  width: min(100%, 34rem);
  padding: 2.5rem 2.35rem 2.1rem;
  border-radius: 2rem;
  border: 1px solid rgba(180, 237, 228, 0.16);
  background:
    linear-gradient(140deg, rgba(34, 68, 58, 0.9) 0%, rgba(29, 56, 49, 0.8) 36%, rgba(18, 30, 28, 0.88) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.015),
    0 30px 90px rgba(0, 0, 0, 0.4),
    0 0 72px rgba(82, 196, 182, 0.12);
  backdrop-filter: blur(24px);
}

body.auth-shell-page .auth-shell-card--compact {
  max-width: 34rem;
}

body.auth-shell-page .auth-shell-card--wide {
  width: min(100%, 48rem);
}

body.auth-shell-page .auth-shell-copy {
  margin-bottom: 1.7rem;
}

body.auth-shell-page .auth-shell-kicker {
  margin: 0 0 0.9rem;
  color: rgba(118, 221, 207, 0.92);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

body.auth-shell-page .auth-shell-heading {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.25rem, 5vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: #eefaf7;
}

body.auth-shell-page .auth-shell-subtitle {
  margin: 1rem 0 0;
  color: rgba(214, 233, 226, 0.68);
  font-size: 1.18rem;
  line-height: 1.6;
}

body.auth-shell-page .flash-messages {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

body.auth-shell-page .flash-message {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(173, 235, 223, 0.12);
  font-size: 0.98rem;
  line-height: 1.45;
}

body.auth-shell-page .flash-error {
  color: #ffe5e3;
  background: rgba(107, 25, 30, 0.44);
  border-color: rgba(255, 145, 145, 0.16);
}

body.auth-shell-page .flash-info {
  color: #dff7f1;
  background: rgba(34, 67, 58, 0.55);
}

body.auth-shell-page .auth-shell-form {
  display: grid;
  gap: 1.2rem;
}

body.auth-shell-page .auth-shell-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

body.auth-shell-page .auth-shell-field {
  display: grid;
  gap: 0.7rem;
}

body.auth-shell-page .auth-shell-field--full {
  grid-column: 1 / -1;
}

body.auth-shell-page .auth-shell-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.auth-shell-page .auth-shell-label {
  color: rgba(220, 238, 233, 0.76);
  font-size: 1rem;
  font-weight: 500;
}

body.auth-shell-page .auth-shell-inline-link,
body.auth-shell-page .auth-shell-links a,
body.auth-shell-page .auth-shell-secondary-link,
body.auth-shell-page .auth-shell-text-link {
  color: rgba(241, 251, 248, 0.9);
  transition: color 160ms ease, opacity 160ms ease;
}

body.auth-shell-page .auth-shell-inline-link:hover,
body.auth-shell-page .auth-shell-links a:hover,
body.auth-shell-page .auth-shell-secondary-link:hover,
body.auth-shell-page .auth-shell-text-link:hover,
body.auth-shell-page .auth-shell-inline-link:focus-visible,
body.auth-shell-page .auth-shell-links a:focus-visible,
body.auth-shell-page .auth-shell-secondary-link:focus-visible,
body.auth-shell-page .auth-shell-text-link:focus-visible {
  color: #80e0d1;
}

body.auth-shell-page .auth-shell-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 4.15rem;
  border-radius: 1.4rem;
  background: rgba(61, 93, 86, 0.28);
  border: 1px solid rgba(175, 234, 225, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

body.auth-shell-page .auth-shell-input-wrap:focus-within {
  border-color: rgba(112, 218, 203, 0.48);
  box-shadow:
    0 0 0 4px rgba(92, 201, 186, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body.auth-shell-page .auth-shell-input-icon {
  position: absolute;
  left: 1rem;
  color: rgba(217, 236, 231, 0.55);
}

body.auth-shell-page .auth-shell-icon {
  width: 1.18rem;
  height: 1.18rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.auth-shell-page .auth-shell-input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 1.15rem 0 3rem;
  color: #eefaf7;
  font-size: 1.06rem;
  font-family: inherit;
  border-radius: inherit;
  height: 100%;
}

body.auth-shell-page .auth-shell-input::placeholder {
  color: rgba(214, 233, 226, 0.34);
}

body.auth-shell-page .auth-shell-submit {
  width: 100%;
  margin-top: 0.25rem;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 4.15rem;
  border-radius: 1.4rem;
  font: inherit;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #08231d;
  cursor: pointer;
  background: linear-gradient(135deg, #68d6c7 0%, #56c5bb 54%, #6fd7cd 100%);
  box-shadow:
    0 18px 42px rgba(87, 201, 186, 0.28),
    0 0 40px rgba(87, 201, 186, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

body.auth-shell-page .auth-shell-submit:hover,
body.auth-shell-page .auth-shell-submit:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 24px 48px rgba(87, 201, 186, 0.32),
    0 0 54px rgba(87, 201, 186, 0.22);
}

body.auth-shell-page .auth-shell-submit--link {
  text-align: center;
}

body.auth-shell-page .auth-shell-links {
  margin-top: 1.55rem;
  display: grid;
  gap: 0.45rem;
  text-align: center;
}

body.auth-shell-page .auth-shell-links p {
  margin: 0;
  color: rgba(214, 233, 226, 0.62);
  font-size: 1rem;
}

body.auth-shell-page .auth-shell-status {
  margin-bottom: 1.4rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1.3rem;
  color: rgba(232, 247, 241, 0.82);
  background: rgba(37, 62, 55, 0.5);
  border: 1px solid rgba(173, 235, 223, 0.12);
}

body.auth-shell-page .auth-shell-status p {
  margin: 0;
  line-height: 1.6;
}

body.auth-shell-page .auth-shell-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.55rem;
}

body.auth-shell-page .auth-shell-info-card {
  padding: 1.25rem;
  border-radius: 1.4rem;
  background: rgba(18, 31, 28, 0.5);
  border: 1px solid rgba(173, 235, 223, 0.1);
}

body.auth-shell-page .auth-shell-info-card h2 {
  margin: 0 0 0.55rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #ebf8f4;
}

body.auth-shell-page .auth-shell-info-card p {
  margin: 0;
  color: rgba(214, 233, 226, 0.66);
  line-height: 1.6;
}

body.auth-shell-page .auth-shell-actions {
  display: grid;
  gap: 0.9rem;
  justify-items: center;
}

body.auth-shell-page .auth-shell-secondary-link,
body.auth-shell-page .auth-shell-text-link {
  font-size: 1rem;
  color: rgba(214, 233, 226, 0.7);
}

/* Auth pages - No scroll reveal animations for immediate content display */
body.auth-shell-page .reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (max-width: 820px) {
  body.auth-shell-page .auth-shell-grid,
  body.auth-shell-page .auth-shell-info-grid {
    grid-template-columns: 1fr;
  }

  body.auth-shell-page .auth-shell-card {
    padding: 2rem 1.4rem 1.65rem;
  }
}

@media (max-width: 640px) {
  body.auth-shell-page .site-header {
    padding-top: 3.5rem;
  }

  body.auth-shell-page .auth-shell {
    min-height: auto;
    padding: 2rem 1rem 3rem;
  }

  body.auth-shell-page .auth-shell-heading {
    font-size: clamp(2.65rem, 12vw, 3.35rem);
  }

  body.auth-shell-page .auth-shell-subtitle {
    font-size: 1.02rem;
  }

  body.auth-shell-page .auth-shell-field-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-animations-ready] body.auth-shell-page .reveal {
    transition: none;
    transform: none;
    filter: none;
    opacity: 1;
  }
}

/* ── AUTH CARD ACCENTS — tasteful khatam + mihrab arch hairline ── */
body.auth-shell-page .auth-shell-card {
  position: relative;
  overflow: hidden;
}
body.auth-shell-page .auth-shell-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 62%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(120, 221, 208, 0.55), transparent);
  z-index: -1;
}
body.auth-shell-page .auth-shell-card::after {
  content: "";
  position: absolute;
  top: -2.6rem;
  right: -2.6rem;
  width: 11rem;
  height: 11rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%237fe0d2' stroke-width='1.1'%3E%3Crect x='24' y='24' width='52' height='52' rx='6'/%3E%3Crect x='24' y='24' width='52' height='52' rx='6' transform='rotate(45 50 50)'/%3E%3Ccircle cx='50' cy='50' r='28'/%3E%3Ccircle cx='50' cy='50' r='15'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
  z-index: -1;
}
body.auth-shell-page .auth-shell-heading {
  text-shadow: 0 0 36px rgba(115, 222, 207, 0.12);
}

/* ── PASSWORD SHOW / HIDE TOGGLE ──────────────────────────── */
body.auth-shell-page .auth-shell-input-wrap--password .auth-shell-input {
  padding-right: 3.4rem;
}
body.auth-shell-page .auth-shell-toggle {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: rgba(217, 236, 231, 0.5);
  cursor: pointer;
  border-radius: 1rem;
  transition: color 160ms ease, background 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
body.auth-shell-page .auth-shell-toggle:hover {
  color: #80e0d1;
  background: rgba(255, 255, 255, 0.05);
}
body.auth-shell-page .auth-shell-toggle:focus-visible {
  outline: 2px solid rgba(112, 218, 203, 0.6);
  outline-offset: 2px;
}
body.auth-shell-page .auth-shell-toggle-hide {
  display: none;
}
body.auth-shell-page .auth-shell-input-wrap.is-revealed .auth-shell-toggle-show {
  display: none;
}
body.auth-shell-page .auth-shell-input-wrap.is-revealed .auth-shell-toggle-hide {
  display: block;
}

/* ============================================================
   POST-LOGIN SPLASH — "Gateway of knowledge"
   Pure CSS/SVG cinematic sequence. login-animation.js toggles
   .is-playing / .is-complete / .is-hidden and sets --splash-duration
   so the determinate progress arc lands exactly on the redirect.
   ============================================================ */
body.login-splash-page {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 46%, rgba(77, 198, 182, 0.14), transparent 24rem),
    linear-gradient(180deg, #06251f 0%, #031310 100%);
}

body.login-splash-page * {
  box-sizing: border-box;
}

body.login-splash-page .login-splash {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: #041310;
  --splash-duration: 2800ms;
  --splash-exit: 460ms;
}

body.login-splash-page .login-splash__backdrop,
body.login-splash-page .login-splash__aurora,
body.login-splash-page .login-splash__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body.login-splash-page .login-splash__backdrop {
  z-index: -3;
  background:
    radial-gradient(circle at 50% 42%, rgba(88, 208, 189, 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(3, 17, 14, 0.1) 0%, rgba(3, 17, 14, 0.55) 100%);
}

body.login-splash-page .login-splash__aurora {
  z-index: -2;
  background:
    radial-gradient(38rem 30rem at 30% 28%, rgba(94, 199, 187, 0.16), transparent 60%),
    radial-gradient(34rem 28rem at 72% 70%, rgba(63, 155, 140, 0.14), transparent 62%);
  filter: blur(8px);
  opacity: 0;
  animation:
    splashAuroraIn 1200ms ease forwards,
    splashAuroraDrift 14s ease-in-out 1200ms infinite;
}

body.login-splash-page .login-splash__grain {
  z-index: -1;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0.16) 1px, transparent 1.5px),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0.12) 1px, transparent 1.5px),
    radial-gradient(circle at 74% 78%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0.12) 1px, transparent 1.5px);
}

body.login-splash-page .login-splash__composition {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  width: min(100%, 40rem);
  padding: 2rem 1.5rem;
  text-align: center;
  transition:
    opacity var(--splash-exit) ease,
    transform var(--splash-exit) ease,
    filter var(--splash-exit) ease;
}

/* ── geometric stage ──────────────────────────────────────── */
body.login-splash-page .login-splash__stage {
  position: relative;
  width: clamp(11rem, 32vw, 14.5rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}

body.login-splash-page .login-splash__halo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58%;
  height: 58%;
  border-radius: 50%;
  border: 1px solid rgba(120, 221, 208, 0.5);
  opacity: 0;
  transform: scale(0.4);
}
body.login-splash-page .login-splash.is-playing .login-splash__halo {
  animation: splashHalo 2600ms cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
body.login-splash-page .login-splash__halo--1 { animation-delay: 300ms; }
body.login-splash-page .login-splash__halo--2 { animation-delay: 1100ms; }
body.login-splash-page .login-splash__halo--3 { animation-delay: 1900ms; }

body.login-splash-page .login-splash__geometry {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

body.login-splash-page .login-splash__khatam rect,
body.login-splash-page .login-splash__ring-inner {
  fill: none;
  stroke: url(#splashStroke);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
body.login-splash-page .login-splash__ring-inner {
  stroke-width: 1.2;
  opacity: 0.8;
}

body.login-splash-page .login-splash__ring-outer {
  fill: none;
  stroke: rgba(120, 221, 208, 0.26);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transform: scale(0.7);
  transform-box: fill-box;
  transform-origin: center;
}
body.login-splash-page .login-splash.is-playing .login-splash__ring-outer {
  animation: splashRingIn 1000ms ease 60ms forwards;
}

body.login-splash-page .login-splash__khatam {
  opacity: 0;
  transform: rotate(-55deg) scale(0.55);
  transform-box: fill-box;
  transform-origin: center;
}
body.login-splash-page .login-splash.is-playing .login-splash__khatam {
  animation: splashKhatam 1200ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards;
}

body.login-splash-page .login-splash__progress {
  fill: none;
  stroke: url(#splashStroke);
  stroke-width: 2.4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transform: rotate(-90deg);
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 6px rgba(111, 215, 205, 0.5));
}
body.login-splash-page .login-splash.is-playing .login-splash__progress {
  animation: splashProgress var(--splash-duration) cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

body.login-splash-page .login-splash__brand-mark {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(3.4rem, 9vw, 4.3rem);
  height: clamp(3.4rem, 9vw, 4.3rem);
  border-radius: 50%;
  background: rgba(9, 23, 20, 0.6);
  border: 1px solid rgba(174, 235, 226, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 18px 48px rgba(0, 0, 0, 0.4),
    0 0 54px rgba(90, 204, 189, 0.22);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: scale(0.5);
}
body.login-splash-page .login-splash.is-playing .login-splash__brand-mark {
  animation: splashMarkIn 900ms cubic-bezier(0.16, 1, 0.3, 1) 520ms forwards;
}

body.login-splash-page .login-splash__brand-logo {
  width: 64%;
  height: 64%;
  border-radius: 50%;
  object-fit: cover;
}

/* ── copy ─────────────────────────────────────────────────── */
body.login-splash-page .login-splash__eyebrow {
  margin: 0;
  color: rgba(117, 219, 205, 0.92);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
}
body.login-splash-page .login-splash.is-playing .login-splash__eyebrow {
  animation: splashFadeUp 700ms ease 760ms forwards;
}

body.login-splash-page .login-splash__wordmark {
  margin: 0;
  display: inline-flex;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.4rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #f0fbf8;
  text-shadow: 0 0 30px rgba(115, 222, 207, 0.18);
}
body.login-splash-page .login-splash__letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotate(4deg);
}
body.login-splash-page .login-splash.is-playing .login-splash__letter {
  animation: splashLetter 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(900ms + var(--i) * 55ms);
}

body.login-splash-page .login-splash__caption {
  margin: 0;
  color: rgba(223, 240, 235, 0.66);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(8px);
}
body.login-splash-page .login-splash.is-playing .login-splash__caption {
  animation: splashFadeUp 700ms ease 1500ms forwards;
}
body.login-splash-page .login-splash__caption::after {
  content: "";
  animation: splashDots 1.5s steps(1, end) 2200ms infinite;
}

body.login-splash-page .login-splash__replay {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 3;
  border: 1px solid rgba(174, 235, 226, 0.16);
  border-radius: 999px;
  padding: 0.8rem 1.05rem;
  color: rgba(240, 251, 248, 0.88);
  background: rgba(16, 31, 28, 0.72);
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 160ms ease, transform 160ms ease;
}
body.login-splash-page .login-splash__replay:hover {
  background: rgba(24, 44, 39, 0.85);
  transform: translateY(-1px);
}
body.login-splash-page .login-splash__replay[hidden] {
  display: none;
}

/* ── exit bloom ───────────────────────────────────────────── */
body.login-splash-page .login-splash.is-complete .login-splash__composition {
  opacity: 0;
  transform: scale(1.08);
  filter: blur(6px);
}
body.login-splash-page .login-splash.is-complete .login-splash__aurora {
  opacity: 0;
  transition: opacity var(--splash-exit) ease;
}
body.login-splash-page .login-splash.is-hidden {
  display: none;
}

/* ── keyframes ────────────────────────────────────────────── */
@keyframes splashAuroraIn { to { opacity: 1; } }
@keyframes splashAuroraDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -1.5%, 0) scale(1.05); }
}
@keyframes splashHalo {
  0% { opacity: 0; transform: scale(0.4); }
  18% { opacity: 0.55; }
  100% { opacity: 0; transform: scale(1.9); }
}
@keyframes splashRingIn { to { opacity: 1; transform: scale(1); } }
@keyframes splashKhatam { to { opacity: 0.92; transform: rotate(0deg) scale(1); } }
@keyframes splashProgress {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}
@keyframes splashMarkIn { to { opacity: 1; transform: scale(1); } }
@keyframes splashFadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes splashLetter { to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes splashDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}

@media (max-width: 640px) {
  body.login-splash-page .login-splash__composition {
    padding: 2rem 1.1rem;
    gap: 0.7rem;
  }
  body.login-splash-page .login-splash__wordmark {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.login-splash-page .login-splash__aurora { animation: none; opacity: 1; }
  body.login-splash-page .login-splash__halo { display: none; }
  body.login-splash-page .login-splash__khatam,
  body.login-splash-page .login-splash__ring-outer,
  body.login-splash-page .login-splash__brand-mark,
  body.login-splash-page .login-splash__eyebrow,
  body.login-splash-page .login-splash__caption,
  body.login-splash-page .login-splash__letter {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  body.login-splash-page .login-splash__khatam { opacity: 0.92 !important; }
  body.login-splash-page .login-splash__progress {
    animation: none !important;
    stroke-dashoffset: 0;
  }
  body.login-splash-page .login-splash__caption::after { animation: none; content: "\2026"; }
  body.login-splash-page .login-splash.is-complete .login-splash__composition {
    transform: none;
    filter: none;
  }
}

/* ── LANDING THEME TOGGLE BUTTON ──────────────────────────── */
.landing-theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--landing-border-strong);
  background: var(--landing-surface);
  color: var(--landing-copy);
  font-size: 1rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  flex-shrink: 0;
  line-height: 1;
}
.landing-theme-btn:hover {
  background: var(--landing-surface-strong);
  border-color: var(--landing-accent);
  transform: scale(1.08);
}

/* ── LIGHT MODE OVERRIDES ──────────────────────────────────── */
html[data-theme="light"] {
  --landing-bg-top: #e4f2eb;
  --landing-bg-mid: #d2e9de;
  --landing-bg-bottom: #c4e2d5;
  --landing-surface: rgba(255, 255, 255, 0.82);
  --landing-surface-strong: rgba(255, 255, 255, 0.95);
  --landing-surface-soft: rgba(255, 255, 255, 0.68);
  --landing-border: rgba(0, 90, 68, 0.12);
  --landing-border-strong: rgba(0, 90, 68, 0.2);
  --landing-copy: #0b2820;
  --landing-copy-soft: rgba(11, 40, 32, 0.72);
  --landing-copy-muted: rgba(11, 40, 32, 0.5);
  --landing-accent: #2ca888;
  --landing-accent-strong: #1f9278;
  --landing-shadow: 0 24px 80px rgba(0, 90, 68, 0.14);
}

html[data-theme="light"] body.landing-page {
  background:
    radial-gradient(circle at 12% 14%, rgba(74, 179, 157, 0.09), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(86, 181, 169, 0.06), transparent 28%),
    linear-gradient(180deg, var(--landing-bg-top) 0%, var(--landing-bg-mid) 38%, var(--landing-bg-bottom) 100%);
}

html[data-theme="light"] body.landing-page::before { opacity: 0.08; }

html[data-theme="light"] body.landing-page .site-header {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(0, 90, 68, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 36px rgba(0, 90, 68, 0.1);
}

html[data-theme="light"] body.landing-page .brand-name { color: #0b2820; }

html[data-theme="light"] body.landing-page .nav-link { color: rgba(11, 40, 32, 0.7); }
html[data-theme="light"] body.landing-page .nav-link:hover { color: #0b2820; }

html[data-theme="light"] body.landing-page .nav-link-cta {
  background: linear-gradient(135deg, #2ca888 0%, #1f9278 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(32, 160, 128, 0.24);
}
html[data-theme="light"] body.landing-page .nav-link-cta:hover { color: #fff; }

html[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(240,250,246,0.92) 100%);
  border-color: rgba(0, 90, 68, 0.1);
}
html[data-theme="light"] .site-footer .footer-brand h3 { color: #0b2820; }
html[data-theme="light"] .site-footer .footer-tagline { color: rgba(11, 40, 32, 0.62); }
html[data-theme="light"] .site-footer .footer-links h4 { color: #2ca888; }
html[data-theme="light"] .site-footer .footer-links a { color: rgba(11, 40, 32, 0.65); }
html[data-theme="light"] .site-footer .footer-links a:hover { color: #0b2820; }
html[data-theme="light"] .site-footer .footer-bottom { border-top-color: rgba(0, 90, 68, 0.1); }
html[data-theme="light"] .site-footer .footer-bottom p { color: rgba(11, 40, 32, 0.52); }

