/* Page layout & sections */

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 0;
  max-width: var(--maxw); margin-inline: auto; width: 100%;
}
.brand img { height: 40px; width: auto; }
.lang {
  font: 700 .9rem/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: .08em; color: var(--white);
  background: var(--glass); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: .65rem 1.1rem; cursor: pointer;
  backdrop-filter: blur(6px); transition: background .2s, transform .2s;
}
.lang:hover { background: var(--glass-strong); }
.lang:active { transform: scale(.96); }
.lang__sep { opacity: .5; margin: 0 .25em; }
html[lang="ar"] .lang__ar, html[lang="en"] .lang__en { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1fr; align-items: center; justify-items: center;
  gap: clamp(8px, 3vh, 32px);
  max-width: var(--maxw); margin-inline: auto; width: 100%;
  padding: 0 var(--gutter) clamp(24px, 6vh, 64px);
  min-height: calc(100dvh - 120px);
}
.copy { text-align: center; max-width: 640px; font-family: var(--font-hero); }
.pill {
  display: inline-block; margin-bottom: 1rem; padding: .4rem 1.1rem;
  font-size: .9rem; font-weight: 700; letter-spacing: .06em;
  border-radius: var(--radius); background: var(--white); color: var(--blue);
}
.title { font-size: clamp(2.4rem, 8vw, 4.8rem); line-height: 1.15; font-weight: 800; margin-bottom: .6rem; text-wrap: balance; }
.sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); line-height: 1.8; opacity: .92; margin-bottom: 1.5rem; text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }

/* Countdown (shown only when launchDate is set in config.js) */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: 0 auto 1.4rem; max-width: 420px; }
.countdown > div { padding: .7rem .3rem; border: 1.5px solid var(--line); border-radius: 16px; background: var(--glass); backdrop-filter: blur(6px); }
.countdown b { display: block; font: 800 1.9rem/1.1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .8rem; opacity: .85; }

/* Sections */
.section { max-width: var(--maxw); margin-inline: auto; width: 100%; padding: clamp(40px, 8vh, 96px) var(--gutter); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(24px, 5vh, 48px); }
.section__head h2 { font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.2; margin-bottom: .5rem; }
.section__head p { opacity: .9; font-size: 1.1rem; }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(12px, 2vw, 24px); }
.card {
  padding: 1.6rem 1.3rem; text-align: center;
  border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  background: var(--glass); backdrop-filter: blur(8px);
  transition: transform .3s var(--ease), background .3s;
}
.card:hover { transform: translateY(-6px) rotate(-.6deg); background: var(--glass-strong); }
.card svg { width: 84px; height: 84px; margin: 0 auto 1rem; filter: drop-shadow(0 10px 12px rgba(0, 20, 80, .35)); }
.card h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.card p { opacity: .88; font-size: 1rem; line-height: 1.7; }

/* Contact links (rendered by JS only if set in config.js) */
.links { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.2rem; }

/* Footer */
.foot { padding: 28px 16px max(22px, env(safe-area-inset-bottom)); text-align: center; opacity: .75; font-size: .9rem; }
.ns { text-align: center; padding: 1rem; }

/* Responsive */
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 1fr; gap: 24px; }
  .copy { text-align: start; }
  .actions, .links { justify-content: flex-start; }
  .countdown { margin-inline: 0; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero { grid-template-columns: 1fr 1fr; min-height: auto; }
  .copy { text-align: start; }
  .actions { justify-content: flex-start; }
}
