/* Jamous IT — design system */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: #1d1d1f;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.dark { background: #0b0b0f; color: #f5f5f7; }
.light { background: #ffffff; color: #1d1d1f; }

/* ---------- type ---------- */
.display {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-align: center;
}
.grad {
  background: linear-gradient(100deg, #4f6df5, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.sub {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  color: #6e6e73;
  max-width: 40em;
  margin: 18px auto 0;
  text-align: center;
}
.dark .sub { color: #a1a1a6; }

/* ---------- navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: 48px;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(251, 251, 253, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 18px;
  font-size: 0.85rem;
}
.wordmark { font-weight: 600; font-size: 1rem; }
.nav-link { color: #333336; }
.nav-link:hover { color: #000; }
.menu { position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  color: #333336;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { color: #000; }
.menu-drop {
  position: absolute;
  top: 34px;
  inset-inline-start: -16px;
  background: rgba(251, 251, 253, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  padding: 16px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  min-width: 460px;
}
@media (max-width: 740px) {
  .menu-drop { grid-template-columns: 1fr; min-width: 250px; }
}
.menu-drop a { color: #333336; white-space: nowrap; }
.menu-drop a:hover { color: #000; }
.langs { margin-inline-start: auto; display: flex; gap: 4px; }
.lang-btn {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  color: #6e6e73;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 20px;
}
.lang-btn.on { background: #1d1d1f; color: #fff; }

/* ---------- ribbon ---------- */
.ribbon {
  position: sticky;
  top: 48px;
  z-index: 90;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: rgba(251, 251, 253, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.ribbon-title { font-weight: 600; font-size: 0.95rem; }

/* ---------- hero ---------- */
.hero {
  min-height: min(88vh, 960px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 110px 22px 70px;
  text-align: center;
}
.hero img.hero-img {
  width: 100%;
  max-width: 1100px;
  border-radius: 18px;
  margin-top: 48px;
}
.hero-bg {
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-bg > * { position: relative; }
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 10, 0.55);
}

/* ---------- sections ---------- */
.story { padding: 110px 22px; text-align: center; }
.story h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.story p { max-width: 34em; margin: 22px auto 0; font-size: 1.15rem; color: #6e6e73; }
.dark.story p, .story.dark p { color: #a1a1a6; }
.story img { max-width: 980px; width: 100%; border-radius: 18px; margin: 48px auto 0; }
.story .svg-visual { margin: 48px auto 0; max-width: 760px; }

.grid-section { padding: 90px 22px; display: flex; justify-content: center; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  width: 100%;
}
.feature {
  background: #f5f5f7;
  border-radius: 18px;
  padding: 28px;
  text-align: start;
}
.dark .feature { background: #161617; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: #6e6e73; font-size: 0.95rem; }
.dark .feature p { color: #a1a1a6; }

/* ---------- detail checklist ---------- */
.detail-section { padding: 40px 22px 90px; display: flex; flex-direction: column; align-items: center; }
.detail-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 34px;
  text-align: center;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  max-width: 1100px;
  width: 100%;
}
.check {
  background: #f5f5f7;
  border-radius: 14px;
  padding: 15px 18px;
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: start;
}
.check::before { content: "✓"; color: #0071e3; font-weight: 700; flex-shrink: 0; }
.dark .check { background: #161617; }

/* ---------- teasers (homepage) ---------- */
.teaser-wrap { padding: 12px 12px 0; display: grid; gap: 12px; }
.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.teaser {
  border-radius: 18px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 58px 26px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.teaser > * { position: relative; }
.teaser.shade::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(8, 8, 12, 0.62), rgba(8, 8, 12, 0.25));
}
.teaser h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.015em; }
.teaser p { margin-top: 8px; color: #6e6e73; max-width: 30em; }
.teaser.on-dark { color: #f5f5f7; }
.teaser.on-dark p { color: #d5d5da; }
.teaser.plain { background-color: #f5f5f7; min-height: 300px; }
.teaser-link { margin-top: 14px; color: #2997ff; font-size: 1.05rem; }
.teaser-link:hover { text-decoration: underline; }

/* ---------- trust strip ---------- */
.trust { padding: 100px 22px; text-align: center; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 44px;
  max-width: 980px;
  margin: 56px auto 0;
}
.trust-grid h3 { font-size: 1.15rem; margin-top: 14px; }
.trust-grid p { color: #6e6e73; margin-top: 6px; font-size: 0.98rem; }

/* ---------- buttons / cta ---------- */
.btn {
  display: inline-block;
  background: #0071e3;
  color: #fff;
  border-radius: 980px;
  padding: 12px 24px;
  font-size: 1.02rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: #0077ed; }
.btn-small { padding: 6px 16px; font-size: 0.85rem; border-radius: 980px; background: #0071e3; color: #fff; }
.btn-small:hover { background: #0077ed; }
.cta { padding: 120px 22px; text-align: center; }
.cta h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 30px;
}

/* ---------- forms ---------- */
.form-wrap { max-width: 640px; margin: 0 auto; padding: 0 22px 110px; }
.form-wrap label { display: block; font-size: 0.9rem; font-weight: 600; margin: 18px 0 6px; text-align: start; }
.form-wrap input,
.form-wrap select,
.form-wrap textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: #fff;
  color: #1d1d1f;
}
.form-wrap textarea { min-height: 140px; resize: vertical; }
.form-wrap input:focus,
.form-wrap select:focus,
.form-wrap textarea:focus { outline: 2px solid #0071e3; outline-offset: 1px; border-color: transparent; }
.form-msg { margin-top: 20px; padding: 16px; border-radius: 12px; display: none; }
.form-msg.show { display: block; }
#form-ok { background: #e8f6ec; color: #1a7f37; }
#form-fail { background: #fdecec; color: #b3261e; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }

/* ---------- contact card ---------- */
.contact-card {
  max-width: 640px;
  margin: 0 auto 90px;
  background: #f5f5f7;
  border-radius: 18px;
  padding: 30px;
  text-align: start;
}
.contact-card p { margin: 6px 0; color: #333336; }

/* ---------- legal ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 130px 22px 110px; }
.legal h1 { font-size: 2.2rem; letter-spacing: -0.015em; margin-bottom: 30px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.legal p { color: #333336; margin: 10px 0; }
.legal .mark { background: #fff3cd; padding: 1px 6px; border-radius: 6px; font-weight: 600; }

/* ---------- footer ---------- */
.footer { background: #0b0b0f; color: #a1a1a6; padding: 60px 22px 40px; font-size: 0.88rem; }
.foot-inner {
  max-width: 1024px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
}
.foot-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.foot-col h4 { color: #f5f5f7; font-size: 0.92rem; margin-bottom: 4px; }
.foot-col a:hover { color: #f5f5f7; }
.foot-note { max-width: 1024px; margin: 44px auto 0; color: #6e6e73; border-top: 1px solid #26262a; padding-top: 22px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.on { opacity: 1; transform: none; }

/* ---------- rtl ---------- */
[dir="rtl"] .display, [dir="rtl"] .story h2 { letter-spacing: 0; }
[dir="rtl"] .menu-drop { inset-inline-start: auto; inset-inline-end: -16px; }

/* ---------- responsive ---------- */
@media (max-width: 740px) {
  .teaser-grid { grid-template-columns: 1fr; }
  .nav-inner { gap: 16px; }
  .nav-link { display: none; }
  .hero { min-height: 74vh; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; animation: none !important; }
}
