@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSansWeb_Medium.woff2') format('woff2'),
       url('../fonts/IRANSansWeb_Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: 'IRANSans', Tahoma, system-ui, sans-serif;
  --bg: #0b0618;
  --bg-2: #110a22;
  --card: #16102a;
  --text: #f5f3ff;
  --muted: #a09abb;
  --border: rgba(167, 139, 250, 0.12);
  --purple: #8b5cf6;
  --purple-2: #a78bfa;
  --purple-dark: #6d28d9;
  --glow: rgba(139, 92, 246, 0.35);
  --header-bg: rgba(11, 6, 24, 0.85);
  --radius: 16px;
  --radius-lg: 24px;
  --tr: 0.25s ease;
}

[data-theme="light"] {
  --bg: #f4f2fa;
  --bg-2: #ffffff;
  --card: #ffffff;
  --text: #1a1230;
  --muted: #6b6580;
  --border: rgba(109, 40, 217, 0.12);
  --glow: rgba(139, 92, 246, 0.2);
  --header-bg: rgba(244, 242, 250, 0.9);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--tr), color var(--tr);
}
img { max-width: 100%; display: block; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}
button { cursor: pointer; }
.hidden { display: none !important; }
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.grad {
  background: linear-gradient(90deg, #c4b5fd, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.label {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--purple-2);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  transition: all var(--tr);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  box-shadow: 0 4px 24px var(--glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow);
}
.btn--outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--purple);
  color: var(--purple-2);
}
.btn--ghost { color: var(--muted); }
.btn--ghost:hover { color: #fff; }
.btn--sm { padding: 0.5rem 1.15rem; font-size: 0.85rem; }
.btn--block { width: 100%; border-radius: 12px; }
.btn-link {
  display: block;
  text-align: center;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--purple-2);
}
.btn-link:hover { text-decoration: underline; }
.btn.is-loading { pointer-events: none; opacity: 0.65; }

/* Header */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: 72px;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--tr);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: all var(--tr);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--purple-2);
  border-color: var(--purple);
}
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo__img {
  height: 140px;
  width: auto;
  object-fit: contain;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav__link {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color var(--tr);
}
.nav__link:hover,
.nav__link.active { color: #fff; }
.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero__content h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1.15rem;
}
.hero__desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 440px;
  margin-bottom: 1.75rem;
  line-height: 1.8;
}
.hero__accept {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.hero__brands {
  display: flex;
  gap: 0.75rem;
}
.hero__brands span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.hero__visual {
  display: flex;
  justify-content: center;
}
.hero__img-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
}
.hero__img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  background: rgba(22, 16, 42, 0.95);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}
.float-card--bid {
  top: 12%;
  left: -20px;
}
.float-card--user {
  bottom: 14%;
  right: -16px;
}
.float-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}
.float-card small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}
.float-card strong {
  font-size: 0.9rem;
  font-weight: 500;
}
.float-card img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* About */
.about {
  padding: 80px 0;
  background: var(--bg-2);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about__gallery {
  position: relative;
  min-height: 360px;
}
.about__main {
  width: 70%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.about__main img {
  width: 100%;
  aspect-ratio: 3/4;
}
.about__side {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--bg-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.about__side img {
  width: 100%;
  height: 100%;
}
.about__side--1 { top: 8%; right: 5%; }
.about__side--2 { bottom: 18%; right: 8%; width: 100px; height: 100px; }
.about__side--3 { bottom: 5%; left: 8%; width: 80px; height: 80px; }

.about__text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 1rem;
}
.about__text p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 400px;
  line-height: 1.8;
}

/* Features */
.features {
  padding: 80px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 2.75rem;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.section-head p {
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform var(--tr), border-color var(--tr);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
}
.feature__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 4px 20px var(--glow);
}
.feature h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
}
.feature p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.feature__num {
  display: block;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(167, 139, 250, 0.35);
  font-weight: 500;
}

/* Plans */
.plans {
  padding: 80px 0;
  background: var(--bg-2);
}
.plans__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--tr);
}
.plan:hover { transform: translateY(-4px); }
.plan--hot {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.12);
}
.plan__badge {
  position: absolute;
  top: -11px;
  right: 1.25rem;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  font-size: 0.72rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.plan h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.plan__rate {
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.plan__rate strong {
  font-size: 1.85rem;
  color: var(--purple-2);
  font-weight: 500;
  margin-left: 0.25rem;
}
.plan ul {
  flex: 1;
  margin-bottom: 1.5rem;
}
.plan li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  padding-right: 1.15rem;
  position: relative;
}
.plan li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--purple-2);
}

/* Steps */
.steps {
  padding: 80px 0;
}
.steps__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.steps__list h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 2rem;
}
.step {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step__num {
  font-size: 0.8rem;
  color: var(--purple-2);
  margin-bottom: 0.35rem;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.step p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}
.steps__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.steps__visual img {
  width: 100%;
  aspect-ratio: 1;
}

/* CTA */
.cta {
  padding: 80px 0;
  background: var(--bg-2);
  text-align: center;
}
.cta__inner h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.cta__inner p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.cta__contact {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.cta__contact a {
  color: var(--muted);
  font-size: 0.9rem;
}
.cta__contact a:hover { color: var(--purple-2); }

/* Footer */
.footer {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.footer__logo img {
  height: 140px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 600px) {
  .footer__inner { flex-direction: column; text-align: center; }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}
.modal__panel {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.3s ease;
}
.modal.is-open .modal__panel { transform: none; }
.modal__close {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 1.5rem;
}
.auth-tab {
  flex: 1;
  padding: 0.55rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
  transition: all var(--tr);
}
.auth-tab.active {
  background: var(--bg);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.auth-view h3 {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.auth-desc {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.35rem;
}
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.form-group input[type="text"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: #fff;
}
.form-group input:focus { border-color: var(--purple); }
.input-phone {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.input-phone:focus-within { border-color: var(--purple); }
.input-phone .prefix {
  padding: 0.75rem 0.65rem;
  background: var(--card);
  color: var(--muted);
  font-size: 0.85rem;
  border-left: 1px solid var(--border);
}
.input-phone input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
}
.otp-inputs {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1rem;
  direction: ltr;
}
.otp-digit {
  width: 44px;
  height: 48px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: #fff;
}
.otp-digit:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.otp-timer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--card);
  border: 1px solid var(--border);
  color: #fff;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  z-index: 2000;
  font-size: 0.88rem;
  transition: transform 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 992px) {
  .hero__grid,
  .about__grid,
  .steps__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr 1fr; }
  .plans__grid { grid-template-columns: 1fr 1fr; }
  .hero__visual { order: -1; }
  .float-card--bid { left: 0; }
  .float-card--user { right: 0; }
}
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 0.85rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--tr);
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .burger { display: flex; }
  .header__actions .btn--sm { display: none; }
  .features__grid,
  .plans__grid { grid-template-columns: 1fr; }
  .about__gallery { min-height: 300px; }
}
