:root {
  --navy: #0B1F3A;
  --navy-2: #123055;
  --ink: #0E1A2B;
  --muted: #5B6B7F;
  --paper: #F7F4EF;
  --line: rgba(11, 31, 58, 0.12);
  --orange: #F26334;
  --orange-deep: #D84A1C;
  --teal: #1F6F78;
  --white: #FFFFFF;
  --shadow: 0 18px 50px rgba(11, 31, 58, 0.14);
  --radius: 18px;
  --font: "Vazirmatn", "IBM Plex Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(242, 99, 52, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(31, 111, 120, 0.12), transparent 50%),
    linear-gradient(180deg, #EDE8DF 0%, var(--paper) 35%, #F3F0EA 100%);
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 244, 239, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 244, 239, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.brand-en,
.brand-hero-en {
  font-family: "IBM Plex Sans", "Vazirmatn", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-fa,
.brand-hero-fa {
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  opacity: 0.82;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  opacity: 1;
  color: var(--orange-deep);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white) !important;
  opacity: 1 !important;
}

.nav-cta:hover {
  background: var(--orange) !important;
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(11, 31, 58, 0.92) 0%, rgba(18, 48, 85, 0.78) 48%, rgba(31, 111, 120, 0.55) 100%),
    linear-gradient(180deg, #0B1F3A 0%, #123055 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 70% 40%, black 20%, transparent 75%);
  animation: gridDrift 18s linear infinite;
}

.hero-glow {
  position: absolute;
  width: 48vw;
  height: 48vw;
  right: -8vw;
  top: -10vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 99, 52, 0.45), transparent 68%);
  filter: blur(10px);
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero-barcode {
  position: absolute;
  inset-inline: 0;
  bottom: -2rem;
  width: 100%;
  height: 42%;
  color: #fff;
  animation: barcodeRise 1.2s ease-out both;
}

.hero-content {
  position: relative;
  max-width: 760px;
  margin-inline: auto 0;
  animation: fadeUp 0.9s ease both;
}

.brand-hero {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1;
}

.brand-hero-link {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

.brand-hero-logo {
  width: clamp(56px, 9vw, 72px);
  height: clamp(56px, 9vw, 72px);
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.brand-hero-text {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.brand-hero-en {
  color: var(--orange);
}

.brand-hero-fa {
  color: rgba(255, 255, 255, 0.92);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  font-weight: 700;
  line-height: 1.35;
  max-width: 16ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-deep);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-block {
  width: 100%;
}

.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  color: var(--navy);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.services {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55) 20%, transparent);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
}

.service-item {
  padding: 1.75rem 0.25rem 0.5rem;
  border-top: 3px solid transparent;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.service-item:hover {
  border-top-color: var(--orange);
  transform: translateY(-4px);
}

.service-index {
  display: block;
  margin-bottom: 1rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.service-item h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  color: var(--navy);
}

.service-item p {
  margin: 0;
  color: var(--muted);
}

.process {
  background:
    linear-gradient(180deg, rgba(11, 31, 58, 0.03), transparent 40%),
    transparent;
}

.process-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

.process-track li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
  padding: 1.25rem 1.25rem 1.25rem 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
  animation: fadeUp 0.7s ease both;
}

.process-track li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  align-self: start;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal);
  min-width: 2.5rem;
}

.process-track strong {
  color: var(--navy);
  font-size: 1.1rem;
}

.process-track span {
  color: var(--muted);
}

.process-track li:nth-child(2) { animation-delay: 0.08s; }
.process-track li:nth-child(3) { animation-delay: 0.16s; }
.process-track li:nth-child(4) { animation-delay: 0.24s; }

.register {
  padding-block: 4.5rem 5.5rem;
}

.register-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.25rem;
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.7)),
    linear-gradient(180deg, #fff, #f4f1eb);
  border: 1px solid rgba(11, 31, 58, 0.08);
  box-shadow: var(--shadow);
}

.register-copy h2 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.register-copy > p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.register-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.register-points li {
  position: relative;
  padding-right: 1.35rem;
  color: var(--navy-2);
  font-weight: 500;
}

.register-points li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.7rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--orange);
}

.register-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(11, 31, 58, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(242, 99, 52, 0.55);
  box-shadow: 0 0 0 4px rgba(242, 99, 52, 0.12);
}

.form-row textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  min-height: 1.4em;
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: var(--teal);
}

.form-note.is-error {
  color: #B42318;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 760px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--navy);
  padding: 0.65rem 0;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: left;
  color: var(--orange);
  font-weight: 700;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list p {
  margin: 0;
  color: var(--muted);
  padding-bottom: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  background: rgba(11, 31, 58, 0.04);
}

.footer-inner {
  display: grid;
  gap: 0.65rem;
}

.footer-brand {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  font-size: 1.2rem;
  color: var(--navy);
  text-decoration: none;
  width: fit-content;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
}

.footer-brand-text {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
}

.footer-brand .brand-en {
  color: var(--orange);
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.footer-meta {
  font-size: 0.9rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes barcodeRise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-56px, 28px, 0); }
}

@media (max-width: 900px) {
  .service-list,
  .register-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .register-layout {
    padding: 1.5rem;
  }

  .nav {
    position: fixed;
    inset: 72px 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
  }

  .nav-cta {
    text-align: center;
  }

  .menu-toggle {
    display: inline-block;
  }

  .menu-toggle.is-open span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle.is-open span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .hero {
    min-height: 86vh;
    align-items: center;
    padding-top: 4rem;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
