:root {
  color-scheme: light;
  --bg: #fbfdf9;
  --bg-soft: #f1f8f1;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #09231c;
  --muted: #5d6f66;
  --line: rgba(9, 35, 28, 0.12);
  --primary: #0b5d43;
  --primary-dark: #073a2d;
  --emerald: #14a66a;
  --gold: #d4a84f;
  --gold-soft: #f8e6b3;
  --shadow: 0 24px 70px rgba(7, 58, 45, 0.14);
  --radius: 8px;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Poppins", var(--font-body);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #04130f;
  --bg-soft: #081d17;
  --surface: rgba(10, 33, 27, 0.78);
  --surface-strong: #0b211b;
  --text: #effaf3;
  --muted: #a9bdb4;
  --line: rgba(239, 250, 243, 0.13);
  --primary: #27c987;
  --primary-dark: #0e5f45;
  --emerald: #39d994;
  --gold: #f2c76f;
  --gold-soft: #4b3d1d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  transition: background 220ms ease, color 220ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(251, 253, 249, 0.76);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

:root[data-theme="dark"] .site-header {
  background: rgba(4, 19, 15, 0.76);
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.navbar {
  width: min(1120px, calc(100% - 32px));
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(20, 166, 106, 0.22);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-panel a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
  color: var(--text);
}

.nav-toggle,
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: currentColor;
}

.theme-toggle {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  padding: 3px;
}

.theme-icon {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #ffffff);
  box-shadow: 0 4px 12px rgba(212, 168, 79, 0.28);
  transition: transform 180ms ease, background 180ms ease;
}

:root[data-theme="dark"] .theme-icon {
  transform: translateX(18px);
  background: linear-gradient(135deg, #dcebe4, #7de2ad);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 74px);
  padding: 86px 0 58px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 16% 20%, rgba(20, 166, 106, 0.22), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(212, 168, 79, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(241, 248, 241, 0.96), rgba(255, 255, 255, 0.68));
}

:root[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 18% 20%, rgba(39, 201, 135, 0.18), transparent 36%),
    radial-gradient(circle at 86% 12%, rgba(242, 199, 111, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(4, 19, 15, 0.96), rgba(8, 29, 23, 0.8));
}

.section-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(30deg, rgba(212, 168, 79, 0.11) 12%, transparent 12.5%, transparent 87%, rgba(212, 168, 79, 0.11) 87.5%, rgba(212, 168, 79, 0.11)),
    linear-gradient(150deg, rgba(20, 166, 106, 0.1) 12%, transparent 12.5%, transparent 87%, rgba(20, 166, 106, 0.1) 87.5%, rgba(20, 166, 106, 0.1));
  background-size: 76px 132px;
  opacity: 0.22;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 12vw, 6.9rem);
}

h2 {
  font-size: clamp(2rem, 7vw, 4rem);
}

h3 {
  font-size: 1.05rem;
}

.hero-tagline {
  margin: 18px 0 0;
  color: var(--primary);
  font-size: clamp(1.28rem, 4.4vw, 2rem);
  font-weight: 800;
  line-height: 1.22;
}

.hero-text,
.section-heading p,
.section-body p,
.section-copy p,
.feature-card p,
.app-card-item p,
.policy-grid p,
.app-feature-block li {
  color: var(--muted);
}

.hero-text {
  max-width: 620px;
  margin: 20px 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 800;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease, background 170ms ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(11, 93, 67, 0.24);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.orbit-ring {
  position: absolute;
  width: min(82vw, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(212, 168, 79, 0.28);
  border-radius: 50%;
  animation: float 5s ease-in-out infinite;
}

.orbit-ring::before,
.orbit-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.orbit-ring::before {
  width: 62%;
  height: 62%;
  inset: 19%;
  border: 1px solid rgba(20, 166, 106, 0.22);
}

.orbit-ring::after {
  width: 42px;
  height: 42px;
  right: 42px;
  top: 68px;
  background: var(--gold);
  box-shadow: -16px 0 0 0 var(--bg);
}

.phone-shell {
  position: relative;
  width: min(78vw, 285px);
  aspect-ratio: 0.52;
  border-radius: 32px;
  padding: 13px;
  background: linear-gradient(145deg, #101c18, #31463f);
  box-shadow: var(--shadow);
}

.phone-shell::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 72px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-50%);
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  padding: 34px 18px 18px;
  background:
    linear-gradient(180deg, rgba(15, 81, 56, 0.92), rgba(3, 31, 25, 0.96)),
    radial-gradient(circle at top right, rgba(242, 199, 111, 0.32), transparent 34%);
  color: #ffffff;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.app-topbar span {
  width: 68px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.app-topbar span:last-child {
  width: 34px;
}

.app-card.featured {
  min-height: 148px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.mini-crescent {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  margin-bottom: 24px;
}

.mini-crescent::after {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  left: 12px;
  top: -4px;
  border-radius: 50%;
  background: #124c38;
}

.app-card.featured p {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.74);
}

.app-card.featured strong {
  font-size: 2rem;
  line-height: 1;
}

.app-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.app-list div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.app-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.line-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), rgba(255, 255, 255, 0.7));
}

.section {
  padding: 86px 0;
}

.section-muted {
  background:
    linear-gradient(180deg, transparent 0%, var(--bg-soft) 14%, var(--bg-soft) 86%, transparent 100%);
}

.split,
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: start;
}

.section-body {
  display: grid;
  gap: 16px;
}

.section-body p,
.section-copy p,
.section-heading p {
  margin: 0;
  font-size: 1rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
  text-align: center;
  margin-inline: auto;
}

.section-heading.left {
  text-align: left;
  margin-inline: 0;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin-bottom: 14px;
}

.card-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card-item,
.feature-card,
.privacy-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-card-item {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.app-card-item:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 166, 106, 0.34);
}

.app-card-link {
  color: inherit;
}

.app-card-cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius);
}

.app-card-cover-link:focus-visible {
  outline: 3px solid rgba(20, 166, 106, 0.34);
  outline-offset: 4px;
}

.app-icon {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--emerald));
}

.app-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(7, 58, 45, 0.18);
}

.app-icon::before,
.app-icon::after {
  content: "";
  position: absolute;
}

.app-icon.quran::before {
  inset: 13px 17px;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
}

.app-icon.quran::after {
  left: 14px;
  right: 14px;
  top: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 0 rgba(255, 255, 255, 0.72);
}

.app-icon.prayer::before {
  width: 30px;
  height: 30px;
  left: 12px;
  top: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: -10px 0 0 0 var(--primary);
}

.app-icon.utility::before {
  width: 26px;
  height: 26px;
  left: 14px;
  top: 14px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 6px;
}

.app-icon.utility::after {
  width: 12px;
  height: 2px;
  left: 21px;
  top: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 -6px 0 rgba(255, 255, 255, 0.9), 0 6px 0 rgba(255, 255, 255, 0.9);
}

.app-card-item p,
.feature-card p {
  margin: 10px 0 0;
}

.status-link {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 800;
  background: rgba(20, 166, 106, 0.08);
}

.app-status-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.status-link.live {
  color: #6e4f12;
  background: rgba(212, 168, 79, 0.14);
}

:root[data-theme="dark"] .status-link.live {
  color: var(--gold);
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  min-height: 240px;
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 168, 79, 0.42);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(20, 166, 106, 0.14), rgba(212, 168, 79, 0.2));
  color: var(--primary);
}

.feature-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}

.privacy-card {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 5vw, 42px);
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.policy-grid > div {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.policy-grid p {
  margin: 10px 0 0;
}

.policy-grid a {
  color: var(--primary);
  font-weight: 800;
}

.split-browser-policy {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}

.split-browser-policy .section-heading {
  margin-bottom: 18px;
}

.split-browser-policy h3 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.split-browser-policy-body {
  display: grid;
  gap: 14px;
}

.split-browser-policy-body p {
  margin: 0;
  color: var(--muted);
}

.utility-preview {
  display: grid;
  gap: 14px;
}

.utility-preview-window {
  display: flex;
  gap: 8px;
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.utility-preview-window span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

.utility-preview-window span:nth-child(2) {
  background: var(--emerald);
}

.utility-preview-window span:nth-child(3) {
  background: rgba(255, 255, 255, 0.66);
}

.utility-preview-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.utility-preview-split div {
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(20, 166, 106, 0.42), rgba(212, 168, 79, 0.24));
}

.contact-grid {
  align-items: center;
}

.contact-email {
  display: inline-flex;
  margin-top: 24px;
  color: var(--primary);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.contact-form label {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(20, 166, 106, 0.12);
}

.contact-form .btn {
  margin-top: 8px;
  border: 0;
  cursor: pointer;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-note.is-error {
  color: #b42318;
}

.app-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 68px;
  background:
    radial-gradient(circle at 12% 18%, rgba(20, 166, 106, 0.2), transparent 32%),
    radial-gradient(circle at 82% 16%, rgba(212, 168, 79, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(241, 248, 241, 0.96), rgba(255, 255, 255, 0.72));
}

:root[data-theme="dark"] .app-detail-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(39, 201, 135, 0.16), transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(242, 199, 111, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(4, 19, 15, 0.96), rgba(8, 29, 23, 0.82));
}

.app-detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  gap: 48px;
  align-items: center;
}

.app-detail-copy h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(2.25rem, 6vw, 4rem);
}

.app-detail-video {
  justify-self: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(145deg, #101c18, #31463f);
  box-shadow: var(--shadow);
}

.app-detail-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-list article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.detail-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.app-features-section {
  padding-top: 24px;
}

.app-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app-feature-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.app-feature-block h3 {
  margin-bottom: 14px;
  color: var(--text);
}

.app-feature-block ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.app-feature-block li {
  padding-left: 2px;
}

.app-feature-block li::marker {
  color: var(--primary);
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.screenshot-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.footer-links {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .nav-panel {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 82px;
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 170ms ease, transform 170ms ease;
  }

  .nav-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-panel a {
    border-radius: var(--radius);
    padding: 12px;
  }

  .theme-toggle {
    margin: 8px 12px 6px;
  }

  .hero {
    min-height: auto;
    padding-top: 62px;
  }

  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 430px;
  }

  .card-grid,
  .feature-grid,
  .policy-grid,
  .app-feature-grid,
  .screenshot-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container,
  .navbar {
    width: min(100% - 24px, 1120px);
  }

  .navbar {
    min-height: 68px;
  }

  .hero {
    padding: 46px 0 36px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 374px;
  }

  .phone-shell {
    width: min(74vw, 235px);
  }

  .phone-screen {
    padding: 30px 14px 14px;
  }

  .app-card.featured {
    min-height: 126px;
  }

  .app-card.featured strong {
    font-size: 1.52rem;
  }

  .section {
    padding: 62px 0;
  }

  .section-heading {
    text-align: left;
  }

  .card-grid,
  .feature-grid,
  .policy-grid,
  .detail-list,
  .app-feature-grid,
  .apps-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .app-detail-hero {
    padding: 46px 0 42px;
  }

  .app-detail-copy h1 {
    font-size: clamp(1.9rem, 9vw, 3.7rem);
  }

  .app-detail-video {
    width: 100%;
  }

  .app-card-item,
  .feature-card {
    min-height: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-grid p {
    text-align: left;
  }

  .footer-links {
    justify-self: start;
  }
}
