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

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

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

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

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

:root {
  --bg: #0b0b0f;
  --bg-2: #121218;
  --surface: #16161d;
  --gold: #c9a96e;
  --gold-deep: #b8935a;
  --gold-light: #e8d5a8;
  --text: #f3ede2;
  --muted: #a39e93;
  --line: rgba(201, 169, 110, 0.18);
  --danger: #f0b2a8;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font: Vazirmatn, Tahoma, sans-serif;
  color-scheme: dark;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  padding-bottom: 92px;
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(243, 237, 226, 0.18) 0.45px, transparent 0.5px),
    radial-gradient(ellipse 72% 48% at 100% -8%, rgba(201, 169, 110, 0.2), transparent 54%),
    radial-gradient(ellipse 42% 36% at 0% 12%, rgba(201, 169, 110, 0.09), transparent 52%),
    linear-gradient(rgba(201, 169, 110, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 110, 0.045) 1px, transparent 1px);
  background-size: 3px 3px, auto, auto, 56px 56px, 56px 56px;
}

@media (min-width: 960px) {
  body { background-attachment: fixed; }
}

img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
p, h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

::selection {
  background: rgba(201, 169, 110, 0.35);
  color: #fff;
}

:focus { outline: none; }

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  top: -48px;
  inset-inline-start: 16px;
  z-index: 80;
  background: var(--gold-light);
  color: #1a140c;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

@media (min-width: 720px) {
  .container { width: min(1180px, calc(100% - 48px)); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(11, 11, 15, 0.78);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 56px;
  min-width: 0;
}

.brand {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  font-size: clamp(0.68rem, 3.1vw, 1rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-timer { flex: 0 0 auto; }

.mini-countdown {
  display: flex;
  align-items: flex-start;
  gap: 0.1rem;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.mini-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 1.55rem;
}

.mini-unit b {
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--gold-light);
}

.mini-unit small {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 400;
  line-height: 1.15;
}

.mini-sep {
  color: rgba(201, 169, 110, 0.75);
  font-size: 0.68rem;
  line-height: 1;
  padding-top: 0.08rem;
}

.mini-live {
  margin: 0;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.4;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn-block { width: 100%; }

.btn-gold {
  color: #1a140c;
  background: linear-gradient(135deg, #b8935a 0%, #e8d5a8 46%, #c9a96e 100%);
  box-shadow: 0 10px 28px rgba(201, 169, 110, 0.22);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(201, 169, 110, 0.4);
}

.btn-ghost {
  color: var(--gold-light);
  background: transparent;
  border-color: rgba(201, 169, 110, 0.4);
}

.btn-ghost:hover {
  border-color: var(--gold-light);
  background: rgba(201, 169, 110, 0.08);
}

.btn:disabled {
  cursor: progress;
  transform: none;
  opacity: 0.85;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 2.2rem 0 3.2rem;
}

.hero-glow {
  position: absolute;
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  inset-inline-end: -8%;
  top: -12%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.22), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
  text-align: center;
}

.hero-copy { width: 100%; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 110, 0.4);
  background: rgba(201, 169, 110, 0.08);
  color: var(--gold-light);
  font-size: 0.86rem;
  font-weight: 500;
}

.pill-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 10px var(--gold-light);
}

h1 {
  font-size: clamp(2rem, 7.4vw, 4.15rem);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0;
}

.h1-line { display: block; }

.gold-text {
  background-image: linear-gradient(115deg, #b8935a 0%, #f4e7c8 42%, #c9a96e 70%, #e8d5a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.3rem;
}

.chips li { color: var(--gold-light); }

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.92rem;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fit-box {
  width: 100%;
  margin-top: 1.35rem;
  padding: 1.15rem 1.05rem 1.2rem;
  text-align: start;
  border-radius: 22px;
  background: rgba(22, 22, 29, 0.72);
  border: 1px solid rgba(201, 169, 110, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(232, 213, 168, 0.08),
    0 18px 50px rgba(0, 0, 0, 0.28),
    0 0 40px rgba(201, 169, 110, 0.08);
  backdrop-filter: blur(12px);
}

.fit-box h2 {
  text-align: center;
  font-size: clamp(1.15rem, 3.4vw, 1.5rem);
}

.fit-box h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin: 0.7rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.bullets {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.95rem;
}

.bullets li {
  position: relative;
  padding-inline-start: 1.05rem;
  color: var(--text);
  font-weight: 400;
  line-height: 1.8;
}

.bullets li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: linear-gradient(140deg, #e8d5a8, #b8935a);
  box-shadow: 0 0 8px rgba(201, 169, 110, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.price-hint {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
}

.price-hint s {
  color: rgba(232, 213, 168, 0.5);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.price-hint strong {
  color: var(--gold-light);
  font-weight: 700;
}

.section { padding: clamp(3.4rem, 7vw, 6rem) 0; }

.section-head {
  margin-bottom: 1.8rem;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
  color: var(--gold-light);
  font-size: 0.84rem;
  font-weight: 500;
}

.kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light));
}

h2 {
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.45;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin: 0.85rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.timeline { position: relative; }

.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 27px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201, 169, 110, 0.7), transparent);
}

.timeline li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding-bottom: 1.35rem;
}

.timeline h3 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.7;
}

.num {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1a140c;
  font-weight: 700;
  background: linear-gradient(140deg, #b8935a, #e8d5a8 55%, #c9a96e);
  box-shadow: 0 0 0 6px var(--bg);
  position: relative;
  z-index: 1;
}

.instructor-grid {
  display: grid;
  gap: 1.8rem;
  align-items: center;
}

.instructor-photo-wrap {
  width: min(100%, 320px);
  max-width: 320px;
  margin-inline: auto;
  justify-self: center;
}

.instructor-photo {
  display: block;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  height: auto;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 150px 150px 28px 28px;
  border: 1px solid rgba(201, 169, 110, 0.45);
  box-shadow: 14px 14px 0 rgba(201, 169, 110, 0.14), 0 20px 50px rgba(0, 0, 0, 0.35);
}

.prose {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 1.05rem;
}

.cred-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.8;
}

.cred-line strong {
  font-weight: 700;
  background-image: linear-gradient(120deg, #b8935a, #f4e7c8, #c9a96e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.cred-dot {
  margin-inline: 0.45rem 0.2rem;
  color: rgba(201, 169, 110, 0.55);
}

.register-card {
  position: relative;
  border-radius: 28px;
  padding: clamp(1.25rem, 4vw, 2.6rem);
  background: linear-gradient(180deg, rgba(24, 24, 31, 0.96), rgba(12, 12, 16, 0.96));
  border: 1px solid rgba(201, 169, 110, 0.5);
  box-shadow:
    0 0 0 1px rgba(201, 169, 110, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(201, 169, 110, 0.12);
}

.sub {
  margin-top: 0.7rem;
  color: var(--muted);
  font-weight: 300;
}

.price-card {
  margin: 0 0 1.15rem;
  padding: 1rem 0.9rem 0.95rem;
  text-align: center;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(201, 169, 110, 0.06);
}

.price-label {
  color: var(--muted);
  font-size: 0.86rem;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.65rem 0.85rem;
  margin-top: 0.2rem;
}

.price-row s {
  color: rgba(232, 213, 168, 0.5);
  font-size: 1.02rem;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.price-now {
  font-size: clamp(1.85rem, 5vw, 2.45rem);
  font-weight: 900;
  line-height: 1.15;
  background-image: linear-gradient(120deg, #b8935a, #f4e7c8, #c9a96e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.price-badge {
  display: inline-flex;
  margin-top: 0.55rem;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 110, 0.5);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 500;
}

.price-note {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.7;
}

.code-lock { position: relative; }

.code-icon {
  position: absolute;
  inset-inline-end: 0.85rem;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: var(--muted);
  pointer-events: none;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 300;
}

input[readonly] {
  color: var(--muted);
  background: #121218;
  border-style: dashed;
  cursor: default;
  pointer-events: none;
}

.form { margin-top: 0.4rem; text-align: right; }

.form-row,
.form { display: grid; gap: 0.85rem; }

.field { display: grid; gap: 0.35rem; }

label { font-weight: 500; }

.req { color: var(--gold-light); }
.opt { color: var(--muted); font-weight: 300; font-size: 0.86rem; }

input {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 169, 110, 0.24);
  background: #0e0e13;
  color: var(--text);
}

input::placeholder { color: #b7b0a4; }

input:focus-visible {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.18);
}

input[aria-invalid="true"] { border-color: rgba(224, 122, 106, 0.85); }

.field-error {
  min-height: 0;
  margin: 0;
  color: var(--danger);
  font-size: 0.84rem;
  line-height: 1.6;
}

.field-error:empty { display: none; }

.form-msg {
  margin: 0;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  line-height: 1.7;
}

.form-msg.is-error {
  color: #ffd8d2;
  background: rgba(140, 42, 32, 0.28);
  border: 1px solid rgba(224, 122, 106, 0.45);
}

.form-msg.is-info {
  color: #f3e6c8;
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid rgba(201, 169, 110, 0.5);
}

.spinner {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 2px solid rgba(26, 20, 12, 0.25);
  border-top-color: #1a140c;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.success {
  text-align: center;
  padding: 0.8rem 0 0.2rem;
}

.success h3 {
  margin: 0.8rem 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.success p { color: var(--muted); }

.check {
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 0 16px rgba(201, 169, 110, 0.35));
}

.check circle,
.check path {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check circle {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
}

.check path {
  stroke-dasharray: 64;
  stroke-dashoffset: 64;
}

.success.is-shown .check circle { animation: draw 0.7s ease forwards; }
.success.is-shown .check path { animation: draw 0.45s 0.4s ease forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.footer {
  position: relative;
  padding: 1.6rem 0 2rem;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.7), transparent);
}

.footer p {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.sticky-cta {
  display: flex;
  position: fixed;
  z-index: 45;
  left: 12px;
  right: 12px;
  bottom: 12px;
  width: min(520px, calc(100% - 24px));
  margin-inline: auto;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  color: #1a140c;
  background: linear-gradient(135deg, #b8935a, #e8d5a8 48%, #c9a96e);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 24px rgba(201, 169, 110, 0.28);
  transition: transform 0.3s ease;
}

.sticky-cta.is-hidden {
  transform: translateY(150%);
  pointer-events: none;
}

.fallback {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.fallback a { color: var(--gold-light); }

@media (min-width: 720px) {
  .hero-grid { width: min(760px, calc(100% - 48px)); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .mini-unit b { font-size: 0.95rem; }
  .mini-unit small { font-size: 0.68rem; }
  .topbar-inner { min-height: 64px; }
  .brand { font-size: 1rem; }
}

@media (min-width: 960px) {
  .hero { padding: 3.5rem 0 4.5rem; }
  .instructor-grid {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 3rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .stagger > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .js .reveal.is-in .stagger > * { opacity: 1; transform: none; }
  .js .reveal.is-in .stagger > *:nth-child(2) { transition-delay: 0.06s; }
  .js .reveal.is-in .stagger > *:nth-child(3) { transition-delay: 0.12s; }
  .js .reveal.is-in .stagger > *:nth-child(4) { transition-delay: 0.18s; }
  .js .reveal.is-in .stagger > *:nth-child(5) { transition-delay: 0.24s; }
  .js .reveal.is-in .stagger > *:nth-child(6) { transition-delay: 0.3s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-gold:hover { transform: none; }
  .sticky-cta { transition: none; }
  .spinner,
  .check circle,
  .check path { animation: none; }
  .check circle,
  .check path { stroke-dashoffset: 0; }
}

#register,
#topics,
#for-you,
#instructor { scroll-margin-top: 84px; }
