/* Vazirmatn — self-hosted (no font CDN) */
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Vazirmatn-400.woff2") format("woff2");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Vazirmatn-500.woff2") format("woff2");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Vazirmatn-700.woff2") format("woff2");
}

@font-face {
  font-family: "Pinar";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Pinar-VF-DSTY-KSHD-wght.woff2") format("woff2");
}

:root {
  --blue-950: #0c1929;
  --blue-900: #102a43;
  --blue-800: #243b53;
  --blue-700: #334e68;
  --blue-600: #486581;
  --blue-500: #627d98;
  --blue-400: #829ab1;
  --blue-300: #9fb3c8;
  --blue-200: #bcccdc;
  --blue-100: #d9e2ec;
  --blue-50: #f0f4f8;
  --accent: #1e6bb8;
  --accent-hover: #155a9e;
  --accent-soft: rgba(30, 107, 184, 0.12);
  --text: var(--blue-950);
  --muted: var(--blue-600);
  --surface: #ffffff;
  --surface-2: var(--blue-50);
  --border: var(--blue-200);
  --shadow-sm: 0 1px 2px rgba(12, 25, 41, 0.06);
  --shadow-md: 0 8px 24px rgba(12, 25, 41, 0.08);
  --shadow-lg: 0 20px 50px rgba(12, 25, 41, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --container: min(1160px, calc(100% - clamp(1.25rem, 4vw, 3rem)));
  --font: "Vazirmatn", system-ui, sans-serif;
  --font-heading: "Pinar", "Vazirmatn", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1,
h2 {
  font-family: var(--font-heading);
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue-900);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo__mark {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.logo:hover {
  color: var(--accent);
}

.logo:hover .logo__mark {
  filter: brightness(1.05);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 880px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  color: var(--blue-800);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  color: var(--blue-900);
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0 1.25rem;
  border-top: 1px solid var(--border);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: var(--blue-800);
  text-decoration: none;
  font-weight: 500;
}

.nav-mobile a:hover {
  background: var(--surface-2);
}

.nav-mobile a.btn--primary {
  color: #fff;
}

.nav-mobile a.btn--primary:hover {
  color: #fff;
  background: var(--accent-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--blue-800);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn--lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5.5rem);
  background: linear-gradient(160deg, var(--blue-50) 0%, #fff 45%, #fff 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -20%;
  inset-block-start: -30%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue-900);
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 38ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.hero__visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Sections */
.section {
  padding-block: clamp(3.5rem, 7vw, 5rem);
}

.section--alt {
  background: var(--surface-2);
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--blue-900);
}

.section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--blue-800);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Cards grid */
.cards-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cards-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-900);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Feature grid */
.features {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.feature .card__icon {
  margin-inline: auto;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-900);
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

.feature-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.feature-list li svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-top: 0.2rem;
}

.feature-list strong {
  display: block;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 0.25rem;
}

.feature-list span {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Split section */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.split__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.split__img img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
}

/* Trust strip */
.trust {
  text-align: center;
  padding-block: 2rem;
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.trust p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-600);
  letter-spacing: 0.02em;
}

/* CTA band */
.cta-band {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--blue-100);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  color: #fff;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 520px;
  color: var(--blue-200);
}

.cta-band .btn--primary {
  background: #fff;
  color: var(--blue-900);
}

.cta-band .btn--primary:hover {
  background: var(--blue-100);
  color: var(--blue-900);
}

/* Footer */
.site-footer {
  background: var(--blue-950);
  color: var(--blue-300);
  padding-block: 3rem 2rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--blue-200);
  text-decoration: none;
}

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

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.site-footer__brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--blue-800);
  font-size: 0.875rem;
  color: var(--blue-500);
  text-align: center;
}

.site-footer__version {
  font-size: 0.8125rem;
  color: var(--blue-600);
  opacity: 0.9;
  direction: ltr;
  unicode-bidi: isolate;
}

.site-footer__version:empty {
  display: none;
}

/* Page hero (inner) */
.page-hero {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--blue-900);
}

.page-hero p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 56ch;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.contact-card {
  padding: 1.5rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--blue-900);
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact-row svg {
  flex-shrink: 0;
  color: var(--accent);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-800);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #c53030;
  display: none;
}

.form-group.is-invalid .form-error {
  display: block;
}

.form-group.is-invalid input,
.form-group.is-invalid textarea {
  border-color: #c53030;
}

.form-success {
  display: none;
  padding: 1rem;
  background: #e6fffa;
  border: 1px solid #81e6d9;
  border-radius: var(--radius);
  color: #234e52;
  margin-bottom: 1rem;
}

.form-success.is-visible {
  display: block;
}

.form-success.form-success--error {
  background: #fff5f5;
  border-color: #feb2b2;
  color: #742a2a;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.collaborate-layout {
  max-width: 640px;
  margin-inline: auto;
}

.form-group--fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.25rem;
}

.form-group--fieldset legend {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-800);
  margin-bottom: 0.4rem;
  padding: 0;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  margin: 0;
}

.radio-group input[type="radio"] {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--accent);
}

.form-group--fieldset .form-error {
  margin-top: 0.5rem;
}

.form-group--fieldset.is-invalid .form-error {
  display: block;
}

.collab-panel {
  margin-bottom: 0.25rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal.is-visible {
    transition: none;
  }
}

.stagger-1 {
  transition-delay: 0.08s;
}
.stagger-2 {
  transition-delay: 0.16s;
}
.stagger-3 {
  transition-delay: 0.24s;
}
