:root {
  --teal: #173f3d;
  --teal-2: #234f4c;
  --ivory: #f4efe4;
  --paper: #fbf8f1;
  --brass: #b99a62;
  --ink: #18201f;
  --muted: #6b7673;
  --line: rgba(23, 63, 61, 0.14);
  --shadow: 0 18px 60px rgba(23, 63, 61, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, a.button { font: inherit; }

.site-shell { min-height: 100vh; }
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(251, 248, 241, 0.86);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1120px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 14px;
  color: var(--teal);
}
.nav { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--teal); }

.hero {
  width: min(1120px, calc(100% - 40px));
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 88px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-2);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
}
h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: var(--teal);
}
.hero-copy {
  max-width: 620px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 19px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal);
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button.primary { background: var(--teal); color: white; box-shadow: var(--shadow); }
.button.secondary { color: var(--teal); background: transparent; }
.button:hover { transform: translateY(-1px); }

.hero-object {
  aspect-ratio: 1 / 1;
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 48%, rgba(185,154,98,.16), transparent 28%),
    linear-gradient(145deg, #efe5d4, #fbf8f1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(185,154,98,.18);
  box-shadow: var(--shadow);
}
.hero-object::before {
  content: "";
  position: absolute;
  width: 48%;
  height: 48%;
  border: 34px solid var(--teal);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), 0 22px 50px rgba(23,63,61,.18);
}
.hero-object::after {
  content: "NEREMAI";
  position: absolute;
  bottom: 26px;
  left: 28px;
  color: rgba(23,63,61,.52);
  letter-spacing: .26em;
  font-size: 11px;
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.section-inner { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.section h2 {
  margin: 0;
  color: var(--teal);
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.035em;
}
.section-lead { margin-top: 16px; max-width: 680px; color: var(--muted); font-size: 18px; }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}
.card {
  min-height: 220px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255,255,255,.46);
  border: 1px solid var(--line);
}
.card .num { color: var(--brass); font-size: 12px; letter-spacing: .16em; }
.card h3 { margin: 34px 0 8px; color: var(--teal); font-size: 22px; }
.card p { margin: 0; color: var(--muted); }

.app-panel {
  background: var(--teal);
  color: white;
  border-radius: 34px;
  padding: 54px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.app-panel h2 { color: white; }
.app-panel p { color: rgba(255,255,255,.72); max-width: 650px; }
.app-panel .button { border-color: rgba(255,255,255,.65); color: white; }

.footer {
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; }

/* Product-led app landing page */
.app-landing {
  --app-ivory: #f3eee2;
  --app-paper: #faf7f0;
  --app-teal: #173f3b;
  --app-teal-soft: #496760;
  --app-brass: #b89b68;
  --app-muted: #746f68;
  background: var(--app-ivory);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.app-landing .app-header { position: relative; backdrop-filter: none; background: var(--app-ivory); }
.app-landing .app-header .header-inner { height: 66px; }
.app-landing .app-nav { gap: 30px; }
.app-landing .app-nav a { padding: 7px 0; border-bottom: 1px solid transparent; }
.app-landing .app-nav a:hover { border-color: var(--app-brass); }
.app-hero,
.product-section-inner { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.app-hero {
  min-height: calc(100svh - 67px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
  gap: clamp(40px, 6vw, 82px);
  align-items: center;
  padding: 48px 0 64px;
}
.app-hero-copy { max-width: 610px; }
.app-landing .kicker { margin-bottom: 20px; color: var(--app-teal-soft); font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.app-landing .app-hero h1 {
  max-width: 600px;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(54px, 5.1vw, 66px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.app-landing .app-sub { max-width: 555px; margin: 22px 0 0; color: var(--app-muted); font-size: 18px; line-height: 1.55; }
.download-area { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 31px; }
.app-landing .store-card { display: grid; gap: 7px; }
.app-landing .status { padding-left: 18px; color: var(--app-muted); font-size: 13px; line-height: 1.3; }
.app-landing .status::before { content: none; }
.app-landing .download-button {
  min-height: 48px;
  min-width: 194px;
  padding: 0 20px;
  border-color: rgba(23, 63, 59, .46);
  color: var(--app-teal);
  background: rgba(250, 247, 240, .44);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: not-allowed;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.app-landing .download-button:hover { transform: translateY(-2px); border-color: var(--app-teal); background: var(--app-paper); }
.hero-product-stage {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border: 1px solid rgba(23, 63, 59, .12);
  border-radius: 34px;
  background: #e5ded1;
}
.device { position: relative; overflow: hidden; border: 8px solid #202421; border-radius: 42px; background: #f6f1e7; box-shadow: 0 20px 50px rgba(23, 43, 39, .16); }
.device img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device-hero { position: absolute; width: 276px; height: 564px; top: 34px; right: 54px; transform: rotate(2deg); }
.hero-ring { position: absolute; z-index: 2; width: 54%; height: auto; left: -3%; bottom: 5%; filter: drop-shadow(0 20px 18px rgba(12, 29, 27, .24)); transform: rotate(-8deg); }
.connection-chip { position: absolute; z-index: 3; left: 34px; top: 36px; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; color: var(--app-teal); background: rgba(250, 247, 240, .92); font-size: 12px; font-weight: 600; }
.connection-chip span { width: 7px; height: 7px; border-radius: 50%; background: #668d74; }
.product-section { padding: clamp(88px, 9vw, 120px) 0; border-top: 1px solid rgba(23, 63, 59, .12); }
.split-layout { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(0, .9fr); gap: clamp(68px, 10vw, 138px); align-items: center; }
.screen-stage { min-height: 660px; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 32px; background: #ded5c6; }
.device-session { width: 300px; height: 620px; transform: translateY(44px); }
.screen-stat { position: absolute; right: 34px; top: 34px; display: flex; align-items: baseline; gap: 5px; color: var(--app-teal); }
.screen-stat strong { font-size: 28px; }
.screen-stat span { color: var(--app-muted); font-size: 13px; }
.section-copy h2,
.features-heading h2 { max-width: 620px; margin: 0; color: var(--app-teal); font-size: clamp(36px, 4vw, 48px); font-weight: 600; line-height: 1.06; letter-spacing: -.03em; }
.section-copy p { max-width: 520px; margin: 20px 0 0; color: var(--app-muted); font-size: 17px; line-height: 1.6; }
.data-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.data-tags span { padding: 8px 11px; border: 1px solid rgba(23, 63, 59, .18); border-radius: 999px; color: var(--app-teal-soft); font-size: 12px; font-weight: 500; }
.qibla-section { color: #f4efe5; background: var(--app-teal); }
.qibla-layout { grid-template-columns: minmax(0, .82fr) minmax(380px, 1.18fr); }
.qibla-copy h2 { color: #f7f2e9; }
.qibla-copy p { color: rgba(247, 242, 233, .68); }
.qibla-section .kicker { color: #c8ae7e; }
.qibla-stage { min-height: 650px; display: grid; place-items: center; border-radius: 30px; background: #0e3431; }
.qibla-device { width: 306px; height: 626px; border-color: #101614; box-shadow: 0 26px 60px rgba(0, 0, 0, .28); }
.qibla-screen { height: 100%; padding: 34px 22px 24px; color: var(--app-teal); background: #f3eee2; text-align: center; }
.qibla-screen-head { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; }
.qibla-screen-head > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #e9e2d6; font-size: 19px; }
.qibla-screen-head div { display: grid; gap: 2px; }
.qibla-screen-head strong { font-size: 23px; font-weight: 600; }
.qibla-screen-head small { color: var(--app-muted); font-size: 10px; }
.qibla-dial { position: relative; width: 240px; height: 240px; margin: 34px auto 0; }
.qibla-dial img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.qibla-dial .dial-needle { transform: rotate(22deg); }
.qibla-dial .dial-target { width: 78px; height: 78px; left: 81px; top: -11px; }
.qibla-guidance { margin: 18px 0 0; color: #625b54; font-size: 13px; }
.qibla-degree { display: block; margin-top: 3px; font-size: 28px; font-weight: 500; }
.qibla-action { display: grid; width: 210px; height: 42px; margin: 34px auto 0; place-items: center; border-radius: 999px; color: #ead8bb; background: #174f49; font-size: 13px; font-weight: 600; }
.features-heading { max-width: 720px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 48px; }
.feature-card { min-width: 0; padding: 12px 12px 22px; border: 1px solid rgba(23, 63, 59, .14); border-radius: 22px; background: rgba(250, 247, 240, .5); transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(23, 63, 59, .28); background: var(--app-paper); }
.feature-preview { height: 190px; overflow: hidden; border-radius: 14px; background: #e8e1d5; }
.feature-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.preview-count img { object-position: 50% 42%; }
.preview-goal img { object-position: 50% 24%; }
.preview-qibla { display: grid; place-items: center; background: var(--app-teal); }
.preview-qibla img { width: 68%; height: 68%; object-fit: contain; transform: rotate(18deg); }
.preview-reminder { display: grid; grid-template-columns: 52px auto; gap: 14px; place-content: center; align-items: center; color: var(--app-teal); }
.reminder-clock { position: relative; width: 48px; height: 48px; border: 2px solid var(--app-teal-soft); border-radius: 50%; }
.reminder-clock::before { content: ""; position: absolute; width: 1px; height: 13px; left: 23px; top: 10px; background: var(--app-brass); transform: rotate(24deg); transform-origin: bottom; }
.reminder-clock::after { content: ""; position: absolute; width: 12px; height: 1px; left: 23px; top: 23px; background: var(--app-teal-soft); transform: rotate(-18deg); transform-origin: left; }
.preview-reminder small { font-size: 12px; line-height: 1.55; }
.feature-card h3 { margin: 18px 8px 0; color: var(--app-teal); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.feature-card p { margin: 7px 8px 0; color: var(--app-muted); font-size: 14px; line-height: 1.5; }
.mobile-download-bar { display: none; }
.app-footer { background: var(--app-ivory); }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.js .reveal-media { transform: translateY(28px); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

.legal {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 100px;
}
.legal h1 { font-size: clamp(40px, 6vw, 62px); }
.legal h2 { color: var(--teal); margin-top: 42px; font-size: 24px; }
.legal p, .legal li { color: #4d5957; }
.legal .meta { margin-top: 14px; color: var(--muted); font-size: 13px; }

@media (max-width: 800px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 56px 0 70px; }
  .hero-object { max-width: 520px; width: 100%; margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr; }
  .app-panel { grid-template-columns: 1fr; padding: 34px; }
  .store-grid { grid-template-columns: 1fr; }
  .app-landing .app-nav { display: flex; gap: 20px; }
  .app-hero { grid-template-columns: 1fr; gap: 42px; min-height: auto; }
  .hero-product-stage { width: min(100%, 620px); justify-self: center; }
  .split-layout,
  .qibla-layout { grid-template-columns: 1fr; gap: 54px; }
  .section-copy { max-width: 620px; }
  .qibla-stage { width: min(100%, 620px); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .app-landing .app-header .header-inner { width: min(100% - 32px, 1180px); height: 60px; }
  .app-landing .brand { font-size: 12px; }
  .app-landing .app-nav { font-size: 12px; }
  .app-landing { padding-bottom: 54px; }
  .app-hero,
  .product-section-inner { width: calc(100% - 32px); }
  .app-hero { min-height: calc(100svh - 61px); align-content: center; gap: 26px; padding: 28px 0 34px; }
  .app-landing .app-hero .kicker { margin-bottom: 16px; font-size: 11px; }
  .app-landing .app-hero .kicker::before { width: 20px; }
  .app-landing .app-hero h1 { max-width: 360px; font-size: clamp(38px, 11.25vw, 44px); line-height: 1.04; letter-spacing: -.035em; }
  .app-landing .app-sub { max-width: 365px; margin-top: 16px; font-size: 15px; line-height: 1.5; }
  .download-area { display: grid; gap: 9px; margin-top: 22px; }
  .app-landing .store-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
  .app-landing .status { padding-left: 0; font-size: 12px; }
  .app-landing .download-button { min-width: 0; min-height: 42px; padding: 0 15px; font-size: 13px; }
  .hero-product-stage { min-height: 268px; border-radius: 24px; }
  .device { border-width: 5px; border-radius: 26px; }
  .device-hero { width: 128px; height: 264px; top: 14px; right: 34px; }
  .hero-ring { width: 53%; left: 0; bottom: 9%; }
  .connection-chip { left: 14px; top: 14px; padding: 7px 9px; font-size: 10px; }
  .product-section { padding: 72px 0; }
  .split-layout,
  .qibla-layout { gap: 42px; }
  .screen-stage { min-height: 470px; border-radius: 24px; }
  .device-session { width: 210px; height: 455px; transform: translateY(26px); }
  .screen-stat { right: 18px; top: 18px; }
  .section-copy h2,
  .features-heading h2 { font-size: clamp(28px, 8.6vw, 34px); line-height: 1.1; }
  .section-copy p { margin-top: 16px; font-size: 15px; line-height: 1.55; }
  .data-tags { margin-top: 22px; }
  .qibla-stage { min-height: 510px; border-radius: 24px; }
  .qibla-device { width: 234px; height: 480px; }
  .qibla-screen { padding: 24px 16px 18px; }
  .qibla-screen-head strong { font-size: 18px; }
  .qibla-dial { width: 184px; height: 184px; margin-top: 25px; }
  .qibla-dial .dial-target { width: 60px; height: 60px; left: 62px; top: -8px; }
  .qibla-guidance { margin-top: 12px; font-size: 11px; }
  .qibla-degree { font-size: 23px; }
  .qibla-action { width: 164px; height: 36px; margin-top: 22px; font-size: 11px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 34px; }
  .feature-card { padding: 8px 8px 17px; border-radius: 17px; }
  .feature-preview { height: 128px; border-radius: 11px; }
  .feature-card h3 { margin: 14px 5px 0; font-size: 17px; }
  .feature-card p { margin: 5px 5px 0; font-size: 12px; }
  .preview-reminder { grid-template-columns: 38px 1fr; gap: 8px; padding: 10px; }
  .reminder-clock { width: 36px; height: 36px; }
  .reminder-clock::before { height: 10px; left: 17px; top: 7px; }
  .reminder-clock::after { width: 9px; left: 17px; top: 17px; }
  .preview-reminder small { font-size: 10px; }
  .mobile-download-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: 54px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px; border-top: 1px solid rgba(23, 63, 59, .16); background: rgba(250, 247, 240, .96); color: var(--app-teal); font-size: 12px; font-weight: 600; }
  .mobile-download-bar a:last-child { text-align: right; }
  .mobile-download-bar span { padding: 0 12px; color: var(--app-muted); font-size: 10px; font-weight: 400; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal-media { opacity: 1; transform: none; transition: none; }
  .feature-card,
  .app-landing .download-button { transition: none; }
}
