/* گوLearn — صفحه «به‌زودی» | golearners.ir */

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ink: #38332c;
  --ink-soft: #6f675c;
  --card: #fbfaf7;
  --line: rgba(56, 51, 44, 0.14);
  --accent: #f0964a;
  --accent-deep: #d9742a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: radial-gradient(130% 110% at 50% 24%, #f1f0ec 0%, #e2dfd9 62%, #cfccc4 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

::selection { background: rgba(240, 150, 74, 0.3); }

:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 8px; }

/* هاله‌های شناور پس‌زمینه */
.orbs { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

.orb { position: absolute; border-radius: 50%; filter: blur(80px); }

.orb--a {
  width: 46vmax; height: 46vmax;
  top: -18vmax; inset-inline-start: -12vmax;
  background: radial-gradient(circle, rgba(242, 168, 100, 0.38), transparent 65%);
  animation: drift-a 26s var(--ease-in-out) infinite alternate;
}

.orb--b {
  width: 40vmax; height: 40vmax;
  bottom: -16vmax; inset-inline-end: -10vmax;
  background: radial-gradient(circle, rgba(148, 158, 190, 0.28), transparent 65%);
  animation: drift-b 32s var(--ease-in-out) infinite alternate;
}

@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6vmax, 4vmax) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate(0, 0) scale(1.06); }
  to { transform: translate(-5vmax, -3vmax) scale(0.94); }
}

/* کارت اصلی */
.card {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  min-height: min(68vh, 620px);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 1px rgba(56, 51, 44, 0.05),
    0 24px 48px -18px rgba(46, 40, 32, 0.26),
    0 70px 120px -40px rgba(46, 40, 32, 0.32);
  animation: card-in 0.7s var(--ease-out) both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* نوار بالا */
.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 30px;
  animation: fade-up 0.6s var(--ease-out) 0.1s both;
}

.logo { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 700; }

.logo__text { display: inline-flex; align-items: baseline; }
.logo__en { font-weight: 500; }

.logo__mark { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

.logo__mark::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: ring 3.4s ease-out infinite 1s;
}

@keyframes ring {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

.nav { grid-column: 2; display: flex; gap: 30px; }

.nav__link { position: relative; padding-block: 4px; font-size: 14.5px; color: var(--ink-soft); transition: color 0.2s ease; }

.nav__link::after {
  content: "";
  position: absolute; inset-inline: 0; bottom: 0;
  height: 1.5px; border-radius: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
}

.bar__actions { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 16px; }

.btn-talk { font-size: 14.5px; border-bottom: 1px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }

.btn-close { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid transparent; transition: border-color 0.2s ease, background-color 0.2s ease; }

.btn-close svg { width: 15px; height: 15px; color: var(--ink-soft); transition: color 0.2s ease, transform 0.3s var(--ease-out); }

/* قهرمان */
.hero {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 380px;
  padding: 16px 24px;
}

.hero__content { position: relative; z-index: 1; text-align: center; display: grid; gap: 14px; }

.hero__title { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 900; line-height: 1.2; animation: fade-up 0.7s var(--ease-out) 0.25s both; }

.hero__sub { font-size: clamp(0.95rem, 1.6vw, 1.05rem); font-weight: 300; color: var(--ink-soft); animation: fade-up 0.7s var(--ease-out) 0.33s both; }

/* گنبد خورشید */
.dome {
  position: absolute;
  top: 42%;
  left: 50%;
  width: min(600px, 92%);
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: dome-in 0.9s var(--ease-out) 0.15s both;
}

@keyframes dome-in {
  from { opacity: 0; transform: translate(-50%, -40%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.dome__glow {
  position: absolute;
  inset-inline: 20%;
  top: -14%;
  height: 55%;
  background: radial-gradient(50% 58% at 50% 58%, rgba(241, 148, 66, 0.7), rgba(241, 148, 66, 0) 72%);
  filter: blur(16px);
  animation: breathe 6.5s var(--ease-in-out) infinite alternate;
}

@keyframes breathe {
  from { opacity: 0.65; transform: translateY(1%) scale(0.97); }
  to { opacity: 1; transform: translateY(-2%) scale(1.06); }
}

.dome__body {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(95% 150% at 50% 0%,
    rgba(238, 146, 66, 0.95) 0%,
    rgba(242, 168, 100, 0.6) 15%,
    rgba(247, 210, 165, 0.36) 32%,
    rgba(250, 236, 216, 0.18) 50%,
    rgba(251, 250, 247, 0) 70%);
}

/* دنبال کنید */
.follow { position: relative; z-index: 1; text-align: center; padding: 0 24px; }

.follow__text { font-size: 14.5px; font-weight: 500; animation: fade-up 0.7s var(--ease-out) 0.41s both; }

.social { margin-top: 18px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.social__btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.25s var(--ease-out);
  animation: pop-in 0.5s var(--ease-out) both;
}

.social__btn svg { width: 16px; height: 16px; }

.social__btn:nth-child(1) { animation-delay: 0.5s; }
.social__btn:nth-child(2) { animation-delay: 0.57s; }
.social__btn:nth-child(3) { animation-delay: 0.64s; }
.social__btn:nth-child(4) { animation-delay: 0.71s; }
.social__btn:nth-child(5) { animation-delay: 0.78s; }
.social__btn:nth-child(6) { animation-delay: 0.85s; }

@keyframes pop-in {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* بازگشت */
.foot { padding: 26px 30px 30px; animation: fade-up 0.7s var(--ease-out) 0.6s both; }

.back { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); transition: color 0.2s ease; }

.back__arrow { transition: transform 0.25s var(--ease-out); }

/* هاور فقط با اشاره‌گر دقیق */
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--ink); }
  .nav__link:hover::after { transform: scaleX(1); }
  .btn-talk:hover { border-color: var(--ink); }
  .btn-close:hover { border-color: var(--line); background: #fff; }
  .btn-close:hover svg { color: var(--ink); transform: rotate(90deg); }
  .social__btn:hover { color: var(--accent-deep); border-color: rgba(240, 150, 74, 0.55); background: #fff; transform: translateY(-3px); }
  .back:hover { color: var(--ink); }
  .back:hover .back__arrow { transform: translateX(4px); }
}

/* کاهش حرکت: ورود نرم بدون جابه‌جایی */
@media (prefers-reduced-motion: reduce) {
  .card, .bar, .dome, .hero__title, .hero__sub, .follow__text, .social__btn, .foot {
    animation-name: fade-only;
    animation-duration: 0.3s;
    animation-delay: 0s;
  }
  .social__btn, .social__btn:nth-child(n) { animation-delay: 0s; }
  .orb, .dome__glow, .logo__mark::after { animation: none; }
  .btn-close svg, .back__arrow, .social__btn, .nav__link::after { transition-duration: 0.15s; }
}

@keyframes fade-only {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* واکنش‌گرایی */
@media (max-width: 900px) {
  .nav { gap: 18px; }
  .bar { padding: 18px 22px; }
}

@media (max-width: 680px) {
  .nav { display: none; }
  .card { border-radius: 20px; min-height: min(92svh, 720px); }
  .hero { min-height: 300px; }
  .dome { width: 110%; }
  .social { gap: 10px; }
  .social__btn { width: 36px; height: 36px; }
  .foot { padding: 20px 22px 24px; }
}
