:root {
  --primary: #1e3a8a;
  --primary-dark: #142966;
  --secondary: #3b82f6;
  --success: #10b981;
  --gold: #fbbf24;
  --background: #eaecf0;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #546478;
  --border: #dfe4eb;
  --container: 1200px;
  --shadow: 0 24px 64px rgba(15, 23, 42, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-underline-offset: 3px;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 10px;
}

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

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--primary);
  font-weight: 900;
}

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

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--primary);
  color: #fff;
}

.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.main-nav a:hover {
  color: #fff;
}

.header-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.header-cta:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  min-height: 720px;
  background: var(--primary);
  color: #fff;
}

.hero-grid {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 90px;
}

.hero-copy {
  padding: 78px 0 90px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow-gold {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
}

.eyebrow-gold span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

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

h1 {
  max-width: 770px;
  margin: 0;
  font-size: clamp(4.2rem, 6vw, 5.75rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-summary {
  max-width: 700px;
  margin: 29px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.62;
}

.audience-note {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border-radius: 16px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-gold {
  background: var(--gold);
  color: var(--primary);
  box-shadow: 0 12px 28px rgba(8, 23, 67, 0.25);
}

.button-gold:hover {
  background: #ffc62f;
  box-shadow: 0 15px 34px rgba(8, 23, 67, 0.32);
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(30, 58, 138, 0.2);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.text-link {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.text-link span {
  margin-left: 6px;
  color: var(--gold);
}

.hero-device {
  margin: 0;
  justify-self: center;
}

.device-frame,
.screen-card,
.screen-crop {
  overflow: hidden;
  border: 6px solid #0b1328;
  background: var(--background);
  box-shadow: 0 32px 72px rgba(5, 18, 57, 0.36);
}

.device-frame {
  width: 306px;
  aspect-ratio: 390 / 844;
  border-radius: 42px;
}

.device-frame img,
.screen-card img,
.screen-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-section {
  padding: 108px 0;
}

.minyan-section {
  background: #fff;
}

.prayer-section {
  background: var(--background);
}

.community-section {
  overflow: hidden;
  background: var(--primary);
  color: #fff;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(540px, 1.08fr);
  align-items: center;
  gap: 88px;
}

.story-grid-reverse .story-copy {
  grid-column: 2;
  grid-row: 1;
}

.story-grid-reverse .product-canvas {
  grid-column: 1;
  grid-row: 1;
}

.story-copy h2,
.launch-card h2 {
  margin: 0;
  font-size: clamp(3rem, 4vw, 3.75rem);
  font-weight: 950;
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.story-copy > p:not(.eyebrow),
.launch-card p:not(.eyebrow) {
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.story-copy > p + p {
  margin-top: 15px;
}

.story-copy-light > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.product-canvas {
  position: relative;
  height: 630px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 36px;
  background: #f2f4f7;
}

.minyan-canvas::before,
.prayer-canvas::before,
.community-canvas::before {
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  content: "";
}

.minyan-canvas::before {
  right: -80px;
  bottom: -85px;
}

.screen-card {
  position: absolute;
  aspect-ratio: 390 / 844;
  border-radius: 36px;
}

.screen-card-main {
  z-index: 2;
  top: 34px;
  left: 48px;
  width: 258px;
}

.screen-card-secondary {
  z-index: 1;
  top: 86px;
  right: 42px;
  width: 220px;
  border-color: #fff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

.prayer-canvas {
  height: 570px;
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--primary);
}

.prayer-canvas::before {
  left: -85px;
  bottom: -115px;
  background: rgba(251, 191, 36, 0.16);
}

.zmanim-crop {
  position: absolute;
  top: 35px;
  left: 30px;
  width: 310px;
  height: 430px;
  border-color: #0b1328;
  border-radius: 34px;
}

.zmanim-crop img {
  height: auto;
  object-fit: initial;
}

.prayer-index {
  position: absolute;
  z-index: 2;
  top: 146px;
  right: 30px;
  width: 260px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 58px rgba(5, 18, 57, 0.3);
  color: var(--text);
}

.prayer-index-head {
  padding: 20px 20px 17px;
  background: #f3f6fb;
}

.prayer-index-head span,
.prayer-index-head small {
  display: block;
}

.prayer-index-head span {
  font-size: 18px;
  font-weight: 900;
}

.prayer-index-head small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.prayer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 20px;
  border-top: 1px solid var(--border);
}

.prayer-row strong {
  font-size: 14px;
}

.prayer-row span {
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
}

.community-canvas {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.community-canvas::before {
  right: -70px;
  top: -90px;
  background: rgba(251, 191, 36, 0.13);
}

.community-detail-card {
  z-index: 1;
  top: 75px;
  left: 38px;
  width: 235px;
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 54px rgba(5, 18, 57, 0.3);
}

.community-news-card {
  z-index: 2;
  top: 30px;
  right: 40px;
  width: 270px;
  border-color: #fff;
}

.launch-section {
  padding: 78px 0;
  background: #fff;
}

.launch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
  padding: 52px 58px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: #f5f7fa;
}

.launch-card > div {
  max-width: 780px;
}

.launch-card h2 {
  font-size: clamp(2.6rem, 3.5vw, 3.45rem);
}

.site-footer {
  padding: 44px 0 24px;
  background: #0b1328;
  color: #fff;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.footer-brand {
  font-size: 16px;
}

.footer-brand .brand-icon {
  width: 38px;
  height: 38px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 23px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 31px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
}

@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 52px;
  }

  .device-frame {
    width: 285px;
  }

  .story-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(470px, 1fr);
    gap: 54px;
  }

  .screen-card-main {
    left: 30px;
  }

  .screen-card-secondary {
    right: 28px;
  }

  .zmanim-crop {
    left: 22px;
  }

  .prayer-index {
    right: 22px;
  }

  .community-detail-card {
    left: 24px;
  }

  .community-news-card {
    right: 26px;
  }
}

@media (max-width: 880px) {
  .hero,
  .hero-grid {
    min-height: auto;
  }

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

  .hero-copy {
    padding: 66px 0 46px;
  }

  .hero-device {
    padding-bottom: 64px;
  }

  .device-frame {
    width: 270px;
  }

  .story-section {
    padding: 82px 0;
  }

  .story-copy {
    max-width: 690px;
  }

  .story-grid-reverse .story-copy,
  .story-grid-reverse .product-canvas {
    grid-column: auto;
    grid-row: auto;
  }

  .product-canvas {
    width: min(100%, 650px);
    justify-self: center;
  }

  .launch-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
    font-size: 15px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .header-cta {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 10px;
  }

  .hero-copy {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(3.15rem, 14vw, 4.1rem);
  }

  .hero-summary {
    margin-top: 24px;
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 17px;
    margin-top: 28px;
  }

  .button-gold {
    width: 100%;
  }

  .text-link {
    text-align: center;
  }

  .hero-device {
    padding-bottom: 52px;
  }

  .device-frame {
    width: 248px;
    border-width: 5px;
    border-radius: 35px;
  }

  .story-section {
    padding: 68px 0;
  }

  .story-copy h2,
  .launch-card h2 {
    font-size: 2.55rem;
  }

  .story-copy > p:not(.eyebrow),
  .launch-card p:not(.eyebrow) {
    font-size: 16px;
  }

  .product-canvas {
    height: 505px;
    border-radius: 27px;
  }

  .screen-card {
    border-width: 4px;
    border-radius: 29px;
  }

  .screen-card-main {
    top: 28px;
    left: 13px;
    width: 205px;
  }

  .screen-card-secondary {
    top: 84px;
    right: 10px;
    width: 177px;
  }

  .prayer-canvas {
    height: 515px;
  }

  .zmanim-crop {
    top: 26px;
    left: 13px;
    width: 250px;
    height: 350px;
    border-width: 4px;
    border-radius: 29px;
  }

  .prayer-index {
    top: 230px;
    right: 12px;
    width: 226px;
    border-radius: 21px;
  }

  .prayer-index-head {
    padding: 17px 17px 14px;
  }

  .prayer-index-head span {
    font-size: 16px;
  }

  .prayer-row {
    min-height: 50px;
    padding-inline: 17px;
  }

  .community-detail-card {
    top: 62px;
    left: 11px;
    width: 200px;
  }

  .community-news-card {
    top: 27px;
    right: 10px;
    width: 210px;
  }

  .launch-section {
    padding: 58px 0;
  }

  .launch-card {
    padding: 35px 24px;
    border-radius: 24px;
  }

  .launch-card .button {
    width: 100%;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-meta {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 345px) {
  .brand > span:last-child {
    display: none;
  }
}

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

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