/* dr-muneeb.com — responsive visual and motion system */
:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --bg-elevated: rgba(255, 253, 248, 0.82);
  --surface: #fffdf8;
  --surface-2: #eee7da;
  --text: #18201e;
  --muted: #66706c;
  --line: rgba(24, 32, 30, 0.12);
  --primary: #176b5b;
  --primary-strong: #0d5145;
  --primary-soft: #dceee8;
  --violet: #6d55a7;
  --blue: #2870a8;
  --header: rgba(245, 241, 232, 0.72);
  --shadow-sm: 0 8px 28px rgba(36, 44, 40, 0.08);
  --shadow-lg: 0 28px 80px rgba(36, 44, 40, 0.14);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;
  --shell: min(1180px, calc(100% - 40px));
  --ease: cubic-bezier(0.2, 0.72, 0.25, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg: #f7f9f8;
  --bg-elevated: rgba(255, 255, 255, 0.82);
  --surface: #fff;
  --surface-2: #edf3f0;
  --text: #10201b;
  --muted: #60706a;
  --line: rgba(16, 32, 27, 0.1);
  --header: rgba(247, 249, 248, 0.72);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1513;
  --bg-elevated: rgba(18, 29, 26, 0.84);
  --surface: #15211e;
  --surface-2: #1b2b27;
  --text: #eef7f3;
  --muted: #a5b7b0;
  --line: rgba(230, 245, 239, 0.12);
  --primary: #66c8ae;
  --primary-strong: #8bd9c3;
  --primary-soft: #1d3c34;
  --violet: #a992dc;
  --blue: #7ab9e8;
  --header: rgba(13, 21, 19, 0.76);
  --shadow-sm: 0 10px 32px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: clip;
}
body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(
      circle at 8% 6%,
      color-mix(in srgb, var(--primary) 11%, transparent),
      transparent 28rem
    ),
    radial-gradient(
      circle at 92% 32%,
      color-mix(in srgb, var(--violet) 8%, transparent),
      transparent 30rem
    ),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
}
.shell {
  width: var(--shell);
  margin-inline: auto;
}
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: var(--header);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    transform 0.35s var(--ease);
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 32px rgba(20, 30, 27, 0.06);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 28%, transparent);
}
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  right: 0;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-pill {
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.nav-pill.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.theme-menu {
  display: flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
}
.theme-menu button {
  min-height: 31px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 750;
}
.theme-menu button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}
.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 750;
}

.hero {
  min-height: min(820px, calc(100svh - 78px));
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(35px, 6vw, 90px);
  padding-block: clamp(70px, 10vw, 130px);
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(3.9rem, 7.4vw, 7.3rem);
  line-height: 0.84;
  letter-spacing: -0.075em;
}
.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--text);
}
.tagline {
  margin: 25px 0 8px;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  font-weight: 780;
  letter-spacing: -0.03em;
}
.lead {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 21px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0 0 transparent;
  transform: translateZ(0);
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}
.button::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -1;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.3),
    transparent 30%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}
.button:hover::before {
  opacity: 1;
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 24%, transparent);
}
.button:active {
  transform: translateY(-1px) scale(0.98);
}
.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
}
.button.secondary {
  border-color: var(--line);
  background: var(--bg-elevated);
  color: var(--text);
}
.button.small {
  min-height: 44px;
  padding: 10px 17px;
  background: var(--text);
  color: var(--bg);
}
.button.white {
  background: #fff;
  color: #13332a;
}
.text-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}
.text-link span {
  transition: transform 0.3s var(--ease);
}
.text-link:hover span {
  transform: translateX(6px);
}

.portrait-stage {
  position: relative;
  min-height: 570px;
  display: grid;
  align-items: end;
  justify-items: center;
  perspective: 1000px;
}
.portrait-stage::before {
  content: "";
  position: absolute;
  width: min(93%, 500px);
  aspect-ratio: 1;
  bottom: 4%;
  border-radius: 42% 58% 55% 45% / 52% 43% 57% 48%;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--primary) 24%, var(--surface)),
    color-mix(in srgb, var(--violet) 15%, var(--surface))
  );
  filter: drop-shadow(0 35px 45px rgba(32, 48, 42, 0.16));
  animation: morph 9s ease-in-out infinite alternate;
}
.portrait-stage img {
  position: relative;
  z-index: 2;
  width: min(92%, 510px);
  max-height: 610px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 28px 25px rgba(18, 32, 27, 0.19));
  transform: translate3d(var(--portrait-x, 0), var(--portrait-y, 0), 0);
  transition: transform 0.14s linear;
}
.portrait-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-one {
  width: 86%;
  aspect-ratio: 1;
  animation: orbit 18s linear infinite;
}
.orbit-two {
  width: 70%;
  aspect-ratio: 1;
  border-style: dashed;
  animation: orbit 24s linear infinite reverse;
}
.portrait-note {
  position: absolute;
  right: -2%;
  bottom: 10%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 16px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}
.portrait-note strong,
.portrait-note small {
  display: block;
}
.portrait-note strong {
  font-size: 0.82rem;
}
.portrait-note small {
  color: var(--muted);
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #27b986;
  box-shadow: 0 0 0 7px rgba(39, 185, 134, 0.13);
  animation: pulse 2s ease-out infinite;
}

.stethoscope-path {
  position: absolute;
  top: 100px;
  right: 0;
  z-index: -1;
  width: min(100%, 1440px);
  height: 3800px;
  opacity: 0.1;
  pointer-events: none;
}
.stethoscope-path path,
.stethoscope-path circle {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.stethoscope-path path:first-child {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--scroll-progress, 0));
  pathlength: 1;
}

.impact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.impact > div {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  border-right: 1px solid var(--line);
}
.impact > div:last-child {
  border: 0;
}
.impact strong {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}
.impact span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.83rem;
}

.section {
  padding-block: clamp(85px, 11vw, 150px);
}
.section-heading {
  max-width: 800px;
  margin-bottom: 50px;
}
.section-heading h2,
.section h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.section-heading > p:last-child {
  max-width: 640px;
  color: var(--muted);
}
.story {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  margin-top: 28px;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.story::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -160px;
  top: -180px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.08;
  transition: transform 0.8s var(--ease);
}
.story:hover::before {
  transform: scale(1.28);
}
.story-blue {
  color: var(--blue);
}
.story-violet {
  color: var(--violet);
}
.story-copy {
  color: var(--text);
}
.story-number {
  font-size: 1.3rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}
.kicker {
  margin-top: 0;
  color: currentColor;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.story h3 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.story-copy > p:not(.kicker) {
  max-width: 790px;
  color: var(--muted);
}
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 32px 0;
}
.flow div {
  min-height: 100px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-2) 62%, transparent);
}
.flow span,
.flow b {
  display: block;
}
.flow span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.flow b {
  font-size: 0.85rem;
  line-height: 1.45;
}
.flow i {
  color: var(--muted);
  font-style: normal;
}

.library-section {
  background: color-mix(in srgb, var(--primary-soft) 58%, transparent);
}
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}
.platform-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}
.chip-row span,
.feature-list span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}
.library-visual {
  position: relative;
  min-height: 470px;
  perspective: 1000px;
}
.folder {
  position: absolute;
  width: min(82%, 380px);
  min-height: 155px;
  padding: 34px 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px 22px 22px 22px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  transition:
    transform 0.5s var(--ease-spring),
    box-shadow 0.4s ease;
}
.folder::before {
  content: "";
  position: absolute;
  left: 0;
  top: -18px;
  width: 42%;
  height: 30px;
  border-radius: 14px 16px 0 0;
  background: inherit;
}
.folder span {
  position: absolute;
  right: 22px;
  top: 18px;
  font-size: 1.8rem;
  font-weight: 900;
  opacity: 0.45;
}
.folder b,
.folder small {
  display: block;
}
.folder b {
  font-size: 1.17rem;
}
.folder small {
  margin-top: 5px;
  opacity: 0.76;
}
.folder-one {
  top: 20px;
  left: 0;
  z-index: 3;
  background: linear-gradient(145deg, #196f60, #0e4f44);
  transform: rotate(-3deg);
}
.folder-two {
  top: 155px;
  right: 0;
  z-index: 2;
  background: linear-gradient(145deg, #735da9, #4c3d77);
  transform: rotate(4deg);
}
.folder-three {
  bottom: 10px;
  left: 10%;
  z-index: 1;
  background: linear-gradient(145deg, #3279ad, #1e5279);
  transform: rotate(-1deg);
}
.folder:hover {
  z-index: 5;
  transform: translateY(-12px) rotate(0) scale(1.025);
  box-shadow: 0 34px 65px rgba(20, 35, 30, 0.24);
}

.quiz-section {
  background: #0c312b;
  color: #fff;
}
.quiz-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(45px, 7vw, 95px);
}
.eyebrow.light {
  color: #9fe1cc;
}
.quiz-panel h2 {
  color: #fff;
}
.quiz-panel > div:first-child > p:not(.eyebrow) {
  color: #c0d4ce;
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin: 25px 0;
}
.feature-list span {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #d9e8e3;
}
.quiz-window {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.7s var(--ease-spring);
}
.quiz-panel:hover .quiz-window {
  transform: perspective(1000px) rotateY(0) rotateX(0) translateY(-6px);
}
.window-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 4px 15px;
}
.window-top i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}
.window-top span {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}
.question-card {
  padding: clamp(23px, 4vw, 42px);
  border-radius: 17px;
  background: #fff;
  color: #18312b;
}
.question-card small {
  color: #608077;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.question-card h3 {
  margin: 12px 0 22px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.2;
}
.option {
  display: flex;
  gap: 15px;
  margin: 9px 0;
  padding: 13px 15px;
  border: 1px solid #dfe8e4;
  border-radius: 11px;
  color: #4d635d;
}
.option.selected {
  border-color: #3a907a;
  background: #e8f5f0;
  color: #1b5d4e;
}
.quiz-progress {
  height: 5px;
  margin-top: 25px;
  overflow: hidden;
  border-radius: 99px;
  background: #e4ece9;
}
.quiz-progress i {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: #358a73;
  animation: progress-breathe 3s ease-in-out infinite alternate;
}

.about-preview {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(50px, 9vw, 120px);
}
.about-image {
  position: relative;
  min-height: 550px;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(
    145deg,
    var(--primary-soft),
    color-mix(in srgb, var(--violet) 12%, var(--surface))
  );
}
.about-image img {
  width: 100%;
  height: 100%;
  min-height: 550px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 25px 25px rgba(15, 30, 25, 0.18));
  transition: transform 0.8s var(--ease-spring);
}
.about-image:hover img {
  transform: scale(1.035);
}
.about-image span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}
.lead-small {
  color: var(--text);
  font-size: 1.13rem;
  font-weight: 650;
}
.about-preview > div:last-child > p:not(.eyebrow):not(.lead-small) {
  color: var(--muted);
}

.social-section {
  background: color-mix(in srgb, var(--surface-2) 65%, transparent);
}
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.social-card {
  position: relative;
  min-height: 260px;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.45s var(--ease-spring),
    box-shadow 0.4s ease;
}
.social-card::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -80px;
  bottom: -120px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow:
    0 0 0 35px rgba(255, 255, 255, 0.05),
    0 0 0 75px rgba(255, 255, 255, 0.035);
  transition: transform 0.7s var(--ease);
}
.social-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.social-card:hover::after {
  transform: scale(1.22) translate(-14px, -10px);
}
.social-card.instagram {
  background: linear-gradient(135deg, #7d3fc3, #c13680 50%, #e46d36);
}
.social-card.youtube {
  background: linear-gradient(135deg, #b51625, #e62b36);
}
.social-card span {
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}
.social-card h3 {
  margin: 25px 0 4px;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
}
.social-card p {
  margin: 0 0 30px;
  opacity: 0.78;
}
.social-card b {
  position: relative;
  z-index: 2;
}

.feedback {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 50px;
  padding-inline: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.feedback h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.feedback p {
  color: var(--muted);
}
.feedback > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feedback small {
  color: var(--muted);
  text-align: center;
}

.faq {
  padding-top: 120px;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 22px 52px 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 780;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 10px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--primary);
  font-size: 1.35rem;
  transition:
    transform 0.35s var(--ease),
    background 0.3s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--primary-soft);
}
.faq details p {
  max-width: 760px;
  margin: -4px 0 24px;
  color: var(--muted);
}

.footer {
  margin-top: 120px;
  padding: 70px 0 20px;
  background: #0d1e1a;
  color: #eef7f3;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer p,
.footer a:not(.brand) {
  color: #9eb3ac;
  font-size: 0.84rem;
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 55px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #81968f;
  font-size: 0.75rem;
}

/* Motion activates only after JavaScript adds .motion-ready. */
.motion-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 38px, 0) scale(0.985);
  filter: blur(5px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease),
    filter 0.85s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready .reveal[data-reveal="left"] {
  transform: translate3d(-45px, 0, 0);
}
.motion-ready .reveal[data-reveal="right"] {
  transform: translate3d(45px, 0, 0);
}
.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
.motion-ready .impact.is-visible > div {
  animation: rise-in 0.72s var(--ease-spring) both;
  animation-delay: calc(var(--item-index, 0) * 90ms);
}
.motion-ready .chip-row span,
.motion-ready .feature-list span {
  opacity: 0;
  transform: translateY(12px);
}
.motion-ready .is-visible .chip-row span,
.motion-ready .is-visible .feature-list span,
.motion-ready .platform-copy.is-visible .chip-row span {
  animation: rise-in 0.55s var(--ease-spring) forwards;
  animation-delay: calc(170ms + var(--item-index, 0) * 55ms);
}
.motion-ready .is-visible .flow > * {
  animation: rise-in 0.55s var(--ease-spring) both;
  animation-delay: calc(180ms + var(--item-index, 0) * 80ms);
}

.pointer-halo {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--primary) 10%, transparent),
    transparent 68%
  );
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--pointer-x, -300px), var(--pointer-y, -300px), 0);
  transition: opacity 0.25s ease;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .pointer-halo {
  mix-blend-mode: screen;
}
body.has-pointer .pointer-halo {
  opacity: 1;
}
.press-ripple {
  position: absolute;
  z-index: 5;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.62s ease-out forwards;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 4px;
}

@keyframes morph {
  0% {
    border-radius: 42% 58% 55% 45% / 52% 43% 57% 48%;
    transform: rotate(-2deg);
  }
  100% {
    border-radius: 56% 44% 43% 57% / 42% 58% 42% 58%;
    transform: rotate(2deg);
  }
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(39, 185, 134, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39, 185, 134, 0);
  }
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes progress-breathe {
  to {
    width: 68%;
  }
}
@keyframes ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@media (max-width: 1120px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.is-open {
    display: flex;
    animation: rise-in 0.28s var(--ease-spring);
  }
  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 8px;
  }
  .nav-links a::after {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav-actions .nav-pill {
    display: none;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: min(100% - 28px, 680px);
    --radius-lg: 26px;
  }
  .nav {
    min-height: 68px;
    gap: 10px;
  }
  .brand > span:last-child {
    display: none;
  }
  .theme-menu button {
    width: 44px;
    min-height: 44px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }
  .theme-menu button::first-letter {
    font-size: 0.72rem;
  }
  .theme-menu button[data-theme-choice="light"]::after {
    content: "L";
    font-size: 0.7rem;
  }
  .theme-menu button[data-theme-choice="sepia"]::after {
    content: "S";
    font-size: 0.7rem;
  }
  .theme-menu button[data-theme-choice="dark"]::after {
    content: "D";
    font-size: 0.7rem;
  }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 62px;
    text-align: center;
  }
  .motion-ready .reveal[data-reveal] {
    transform: translate3d(0, 28px, 0) scale(0.985);
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero h1 {
    font-size: clamp(3.5rem, 17vw, 6.2rem);
  }
  .hero-actions {
    justify-content: center;
  }
  .portrait-stage {
    min-height: 500px;
    width: min(100%, 540px);
    margin-inline: auto;
  }
  .portrait-note {
    right: 2%;
  }
  .impact {
    grid-template-columns: 1fr 1fr;
  }
  .impact > div:nth-child(2) {
    border-right: 0;
  }
  .impact > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .story {
    grid-template-columns: 1fr;
  }
  .flow {
    grid-template-columns: 1fr;
  }
  .flow i {
    transform: rotate(90deg);
    justify-self: center;
  }
  .platform-grid,
  .quiz-panel,
  .about-preview,
  .feedback {
    grid-template-columns: 1fr;
  }
  .library-visual {
    width: min(100%, 540px);
    margin-inline: auto;
  }
  .quiz-window {
    transform: none;
  }
  .about-image {
    width: min(100%, 520px);
    min-height: 490px;
    margin-inline: auto;
  }
  .about-image img {
    min-height: 490px;
  }
  .social-grid {
    grid-template-columns: 1fr;
  }
  .feedback {
    width: var(--shell);
    padding-block: 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  :root {
    --shell: calc(100% - 24px);
  }
  .section {
    padding-block: 76px;
  }
  .hero {
    padding-top: 48px;
  }
  .hero h1 {
    font-size: clamp(3rem, 18vw, 4.7rem);
  }
  .lead {
    font-size: 0.98rem;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-actions .button {
    width: 100%;
  }
  .portrait-stage {
    min-height: 410px;
  }
  .portrait-stage img {
    max-height: 440px;
  }
  .portrait-note {
    left: 50%;
    right: auto;
    bottom: 3%;
    width: max-content;
    transform: translateX(-50%);
  }
  .impact > div {
    min-height: 115px;
    padding: 18px;
  }
  .impact strong {
    font-size: 1.55rem;
  }
  .story {
    padding: 25px 20px;
  }
  .story-number {
    font-size: 0.9rem;
  }
  .library-visual {
    min-height: 420px;
  }
  .folder {
    width: 88%;
    min-height: 135px;
    padding: 27px 21px 20px;
  }
  .folder-two {
    top: 138px;
  }
  .feature-list {
    grid-template-columns: 1fr;
  }
  .question-card {
    padding: 20px 16px;
  }
  .about-image,
  .about-image img {
    min-height: 420px;
  }
  .social-card {
    min-height: 230px;
  }
  .feedback {
    gap: 25px;
  }
  .feedback .button {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    gap: 12px;
    flex-direction: column;
  }
}

@media (hover: none), (pointer: coarse) {
  .pointer-halo {
    display: none;
  }
  .button:hover,
  .social-card:hover,
  .folder:hover {
    transform: none;
  }
  .button:active,
  .social-card:active {
    transform: scale(0.98);
  }
  .nav a,
  .button,
  .theme-menu button,
  .menu-toggle,
  summary {
    touch-action: manipulation;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
  .motion-ready .reveal,
  .motion-ready .reveal[data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .pointer-halo {
    display: none;
  }
}
