:root {
  --teal: #007f7c;
  --teal-dark: #063333;
  --teal-soft: #e8f4f1;
  --red: #93080b;
  --red-dark: #760407;
  --cream: #fbf7ef;
  --paper: rgba(255, 255, 255, 0.72);
  --ink: #092b2c;
  --muted: #5e696a;
  --line: rgba(8, 87, 84, 0.14);
  --shadow: 0 24px 70px rgba(0, 75, 72, 0.10);
  --radius-lg: clamp(26px, 3vw, 42px);
  --radius-md: clamp(18px, 2vw, 26px);
  --max: 1680px;
  --page-x: clamp(12px, 4vw, 80px);
  --header-h: clamp(72px, 7vw, 96px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 16%, rgba(0, 128, 128, 0.12), transparent 27%),
    radial-gradient(circle at 90% 74%, rgba(147, 8, 11, 0.055), transparent 31%),
    linear-gradient(135deg, #f4fbf7 0%, #fffaf2 56%, #fbf1e8 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(0, 75, 72, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 75, 72, 0.045) 1px, transparent 1px);
  background-size: clamp(32px, 3.3vw, 56px) clamp(32px, 3.3vw, 56px);
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

body::after {
  content: "";
  position: fixed;
  width: clamp(420px, 44vw, 820px);
  height: clamp(420px, 44vw, 820px);
  left: clamp(-230px, -8vw, -90px);
  bottom: clamp(-430px, -18vw, -250px);
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(147, 8, 11, 0.06);
  box-shadow:
    0 0 0 clamp(34px, 4vw, 60px) rgba(147, 8, 11, 0.025),
    0 0 0 clamp(78px, 8vw, 126px) rgba(147, 8, 11, 0.018),
    0 0 0 clamp(128px, 12vw, 204px) rgba(147, 8, 11, 0.012);
}

img,
picture {

  max-width: 100%;
}

img { height: auto; }

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

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - (var(--page-x) * 2)), var(--max));
  margin: clamp(10px, 2.2vw, 32px) auto 0;
}

.site-header {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, auto) minmax(150px, 1fr);
  align-items: center;
  gap: clamp(12px, 1.7vw, 28px);
  padding: clamp(10px, 1vw, 14px) clamp(12px, 1.5vw, 28px) clamp(10px, 1vw, 14px) clamp(14px, 1.6vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 18px 52px rgba(0, 67, 64, 0.10);
}

.brand {
  justify-self: start;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.brand-mark img {
  width: clamp(42px, 4.6vw, 56px);
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 900;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: clamp(11px, 0.9vw, 14px);
  direction: ltr;
  text-align: right;
  white-space: nowrap;
}

.main-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 56px);
}

.main-nav a {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #445454;
  text-decoration: none;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s ease, transform .2s ease;
}

.main-nav a:hover {
  color: var(--teal);
  transform: translateY(-1px);
}

.header-cta {
  justify-self: end;
  min-width: clamp(142px, 12vw, 178px);
  min-height: clamp(48px, 4.2vw, 58px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(18px, 2vw, 30px);
  color: #fff;
  text-decoration: none;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 900;
  white-space: nowrap;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  box-shadow: 0 16px 34px rgba(147, 8, 11, 0.20);
}

.hero {
  min-height: calc(100svh - var(--header-h) - clamp(28px, 4vw, 64px));
  display: block;
  padding: clamp(38px, 5vw, 88px) clamp(0px, 2.5vw, 40px) clamp(46px, 6vw, 92px);
}

.hero-copy {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(380px, 1fr);
  grid-template-rows: auto auto auto auto;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px) clamp(44px, 6.5vw, 126px);
  justify-self: auto;
  text-align: right;
}

.hero-copy > .eyebrow,
.hero-copy > h1,
.hero-copy > p,
.hero-copy > .hero-actions {
  grid-column: 1;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 clamp(8px, 1.3vw, 16px) auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: clamp(8px, 0.9vw, 10px) clamp(13px, 1.2vw, 18px);
  border: 1px solid rgba(0, 128, 128, 0.18);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(232, 244, 241, 0.82);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 900;
  line-height: 1.8;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.65);
}

.eyebrow span {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(147, 8, 11, 0.08);
}

h1 {
  margin: 0;
  color: var(--teal-dark);
  font-size: clamp(34px, 3.05vw, 56px);
  line-height: 1.42;
  letter-spacing: -0.065em;
  font-weight: 900;
  text-wrap: balance;
}

.hero-copy p {
  margin: clamp(4px, 0.9vw, 12px) 0 0;
  color: #5b6262;
  font-size: clamp(16px, 1.28vw, 23px);
  line-height: 2.1;
  font-weight: 500;
  max-width: 640px;
  text-wrap: pretty;
}

.hero-actions {
  margin-top: clamp(20px, 3vw, 42px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  min-width: 190px;
  min-height: 56px;
  height: clamp(56px, 4.8vw, 64px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 30px;
  border-radius: 999px;
  text-decoration: none;
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  box-shadow: 0 18px 36px rgba(147, 8, 11, 0.22);
}

.btn-secondary {
  color: var(--teal-dark);
  border: 1px solid rgba(0, 128, 128, 0.44);
  background: rgba(255, 255, 255, 0.44);
  box-shadow: 0 14px 28px rgba(0, 128, 128, 0.08);
}

.btn-secondary span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-1px);
}

.hero-visual {
  grid-column: 2;
  grid-row: 1 / span 4;
  justify-self: end;
  align-self: center;
  position: relative;
  width: min(100%, clamp(380px, 39vw, 720px));
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(18px, 3vw, 48px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.72), rgba(246, 253, 250, 0.68)),
    radial-gradient(circle at 30% 20%, rgba(0, 128, 128, 0.12), transparent 36%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 70px rgba(0, 75, 72, 0.075);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: clamp(12px, 1.6vw, 22px);
  border-radius: calc(var(--radius-lg) - 14px);
  border: 1px solid rgba(0, 128, 128, 0.06);
  pointer-events: none;
}

.hero-visual picture,
.hero-visual img {
}

.hero-visual img {
  filter: drop-shadow(0 24px 34px rgba(0, 65, 63, 0.13));
}

@media (min-width: 1800px) {
  :root { --max: 1760px; }

  .site-header {
    grid-template-columns: minmax(220px, 1fr) minmax(360px, auto) minmax(190px, 1fr);
  }

  .hero-copy {
    grid-template-columns: minmax(460px, 0.86fr) minmax(520px, 1fr);
  }
}

@media (max-width: 1280px) {
  :root { --page-x: clamp(16px, 3vw, 44px); }

  .site-header {
    grid-template-columns: minmax(170px, 1fr) minmax(230px, auto) minmax(140px, 1fr);
  }

  .hero-copy {
    grid-template-columns: minmax(330px, 0.9fr) minmax(360px, 1fr);
    gap: clamp(10px, 1.4vw, 20px) clamp(30px, 4.5vw, 70px);
  }
}

@media (max-width: 1100px) {
  :root { --page-x: clamp(14px, 3vw, 32px); }

  .site-header {
    min-height: auto;
    grid-template-columns: 1fr auto;
    border-radius: 34px;
    padding: 14px 16px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 0 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar { display: none; }

  .main-nav a {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(0, 128, 128, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    scroll-snap-align: start;
  }

  .header-cta {
    min-width: 148px;
    min-height: 50px;
  }

  .hero {
    min-height: auto;
    padding: clamp(34px, 6vw, 58px) clamp(0px, 1vw, 8px) clamp(56px, 8vw, 82px);
  }

  .hero-copy {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: clamp(14px, 2vw, 24px);
  }

  .hero-copy > .eyebrow,
  .hero-copy > h1,
  .hero-copy > p,
  .hero-copy > .hero-actions,
  .hero-visual {
    grid-column: 1;
  }

  .hero-visual {
    grid-row: auto;
    justify-self: center;
    width: min(100%, 640px);
    margin-top: clamp(14px, 2vw, 28px);
  }

  .eyebrow { margin-inline: auto; }
  .hero-copy p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
}

@media (max-width: 820px) {
  :root { --page-x: clamp(10px, 3vw, 22px); }

  .site-header {
    border-radius: 28px;
    gap: 10px 12px;
  }

  .brand-copy strong { font-size: 18px; }
  .brand-copy small { font-size: 12px; }

  h1 {
    font-size: clamp(30px, 6.2vw, 44px);
    line-height: 1.55;
  }

  .hero-copy p {
    font-size: clamp(15.5px, 2.5vw, 18px);
    line-height: 2.05;
    max-width: 620px;
  }

  .hero-visual {
    width: min(100%, 560px);
  }
}

@media (max-width: 640px) {
  :root { --page-x: 10px; }

  body::before { opacity: 0.32; }

  .page-shell {
    width: min(calc(100% - 20px), var(--max));
    margin-top: max(10px, env(safe-area-inset-top));
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: stretch;
    border-radius: 24px;
    padding: 12px;
  }

  .brand {
    justify-self: center;
    width: 100%;
    justify-content: center;
  }

  .brand-mark img { width: 48px; }

  .header-cta { display: none; }

  .main-nav {
    grid-column: 1;
    width: calc(100% + 8px);
    margin-inline: -4px;
    padding: 8px 2px 0;
  }

  .main-nav a {
    min-height: 38px;
    padding-inline: 13px;
    font-size: 13px;
  }

  .hero {
    padding: 30px 0 56px;
  }

  .hero-copy {
    gap: 14px;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.75;
    white-space: normal;
  }

  h1 {
    font-size: clamp(27px, 8.2vw, 36px);
    line-height: 1.62;
    letter-spacing: -0.06em;
  }

  .hero-copy p {
    font-size: 15.5px;
    line-height: 2.05;
  }

  .btn {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    font-size: 15px;
  }

  .hero-actions { width: 100%; }

  .hero-visual {
    width: min(100%, 460px);
    border-radius: 28px;
    padding: 16px;
  }

  .hero-visual picture,
  .hero-visual img {
    width: min(95%, 350px);
  }
}

@media (max-width: 430px) {
  .site-header { border-radius: 22px; }

  .brand-copy strong { font-size: 17px; }
  .brand-copy small { font-size: 11px; }

  .main-nav a {
    min-height: 36px;
    padding-inline: 12px;
  }

  h1 {
    font-size: clamp(25px, 8vw, 32px);
    line-height: 1.68;
  }

  .hero-copy p {
    font-size: 15px;
    line-height: 2;
  }

  .hero-visual {
    width: 100%;
    min-height: 260px;
  }
}

@media (max-width: 360px) {
  .brand-mark img { width: 42px; }

  .brand-copy strong { font-size: 16px; }

  .eyebrow {
    gap: 8px;
    padding-inline: 11px;
  }

  h1 { font-size: 24px; }
}

@media (max-height: 680px) and (min-width: 900px) {
  .page-shell { margin-top: 12px; }

  .hero {
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 42px;
  }

  .hero-visual {
    width: min(100%, clamp(340px, 32vw, 560px));
  }
}

@media (orientation: landscape) and (max-width: 900px) and (max-height: 520px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand { justify-self: start; width: auto; }
  .header-cta { display: inline-flex; }

  .hero {
    padding-top: 24px;
    padding-bottom: 36px;
  }

  .hero-copy {
    grid-template-columns: minmax(280px, 0.95fr) minmax(240px, 0.75fr);
    text-align: right;
    justify-items: stretch;
    gap: 16px 28px;
  }

  .hero-copy > .eyebrow,
  .hero-copy > h1,
  .hero-copy > p,
  .hero-copy > .hero-actions {
    grid-column: 1;
  }

  .hero-visual {
    grid-column: 2;
    grid-row: 1 / span 4;
    width: min(100%, 320px);
    margin-top: 0;
  }

  .eyebrow { margin-inline: 0 auto; }
  .hero-copy p { margin-inline: 0; }
}

@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;
  }
}

@media (forced-colors: active) {
  .site-header,
  .main-nav a,
  .hero-visual,
  .eyebrow,
  .btn-secondary {
    border: 1px solid CanvasText;
  }

  .header-cta,
  .btn-primary {
    forced-color-adjust: none;
    color: Canvas;
    background: CanvasText;
  }
}
