@import url("https://cdn.jsdelivr.net/npm/@fontsource/vazirmatn@5.2.8/400.css");
@import url("https://cdn.jsdelivr.net/npm/@fontsource/vazirmatn@5.2.8/600.css");
@import url("https://cdn.jsdelivr.net/npm/@fontsource/vazirmatn@5.2.8/700.css");
@import url("https://cdn.jsdelivr.net/npm/@fontsource/vazirmatn@5.2.8/800.css");

:root {
  --brand: #1e3a8a;
  --energy: #f97316;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: "Vazirmatn", system-ui, sans-serif;
  color: #fff;
  background: #0f1f4d;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pn {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.stage {
  background:
    radial-gradient(ellipse 1200px 700px at 90% 0%, rgba(249, 115, 22, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 900px 700px at 10% 100%, rgba(56, 189, 248, 0.18) 0%, transparent 55%),
    linear-gradient(165deg, rgba(15, 31, 77, 0.82) 0%, rgba(30, 58, 138, 0.72) 40%, rgba(22, 44, 104, 0.82) 75%, rgba(10, 22, 56, 0.92) 100%),
    url("../assets/sports-bg.jpg") center/cover no-repeat;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.075) 1px, transparent 0);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 88%, transparent 100%);
  pointer-events: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.pulse-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--energy);
}

.pulse-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: inherit;
  animation: pulseRing 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes logoBreathe {
  0%,
  100% {
    filter:
      drop-shadow(0 0 18px rgba(249, 115, 22, 0.55))
      drop-shadow(0 0 40px rgba(249, 115, 22, 0.35))
      drop-shadow(0 0 80px rgba(249, 115, 22, 0.18))
      drop-shadow(0 14px 28px rgba(15, 31, 77, 0.5));
  }
  50% {
    filter:
      drop-shadow(0 0 28px rgba(249, 115, 22, 0.8))
      drop-shadow(0 0 60px rgba(249, 115, 22, 0.5))
      drop-shadow(0 0 110px rgba(249, 115, 22, 0.28))
      drop-shadow(0 14px 28px rgba(15, 31, 77, 0.5));
  }
}

.logo-glow {
  animation: logoBreathe 4.5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.logo-float {
  animation: logoFloat 6s ease-in-out infinite;
}

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

.ring-spin {
  animation: spin 30s linear infinite;
}

.ring-spin-r {
  animation: spin 40s linear infinite reverse;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.text-shimmer {
  background: linear-gradient(90deg, #fb923c 0%, #ffffff 30%, #ffffff 70%, #fb923c 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* Layout */
.site-header,
.site-footer {
  position: relative;
  z-index: 10;
  padding: 1.5rem 1.5rem;
}

@media (min-width: 768px) {
  .site-header {
    padding: 2rem 2.5rem 1.5rem;
  }
  .site-footer {
    padding: 1.25rem 2.5rem;
  }
}

.container {
  max-width: 80rem;
  margin: 0 auto;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.secure-badge svg {
  color: #34d399;
}

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

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  cursor: default;
}

.site-main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

@media (min-width: 768px) {
  .site-main {
    padding: 3.5rem 1.5rem;
  }
}

.hero {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.logo-halo-outer,
.logo-halo-inner,
.ring-spin,
.ring-spin-r {
  position: absolute;
  pointer-events: none;
}

.logo-halo-outer {
  inset: 0;
  margin: -5rem;
}

.logo-halo-inner {
  inset: 0;
  margin: -2rem;
}

.logo-halo-outer > div,
.logo-halo-inner > div {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.logo-halo-outer > div {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.45) 0%, rgba(249, 115, 22, 0.15) 35%, transparent 65%);
  filter: blur(28px);
}

.logo-halo-inner > div {
  background: radial-gradient(circle, rgba(255, 237, 213, 0.18) 0%, transparent 60%);
  filter: blur(14px);
}

.ring-spin {
  inset: 0;
  margin: -4rem;
}

.ring-spin-r {
  inset: 0;
  margin: -2.5rem;
}

@media (min-width: 768px) {
  .ring-spin {
    margin: -5rem;
  }
  .ring-spin-r {
    margin: -3rem;
  }
}

.ring-spin svg,
.ring-spin-r svg {
  width: 100%;
  height: 100%;
}

.logo-ifsa {
  width: 11rem;
  height: 11rem;
  background-image: url("../assets/logo-ifsa.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

@media (min-width: 768px) {
  .logo-ifsa {
    width: 13rem;
    height: 13rem;
  }
}

.hero h1 {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }
}

.hero .subtitle-en {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .hero .subtitle-en {
    font-size: 0.875rem;
  }
}

.hero .subtitle-fa {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-bottom: 2.25rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .hero .subtitle-fa {
    font-size: 1rem;
  }
}

.cta-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-card {
  position: relative;
  border-radius: 20px;
  padding: 22px 24px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: right;
  width: 100%;
  text-decoration: none;
}

.cta-energy {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
  color: white;
  box-shadow:
    0 0 0 1px rgba(194, 65, 12, 0.15),
    0 16px 40px -10px rgba(249, 115, 22, 0.55),
    0 6px 12px -6px rgba(249, 115, 22, 0.4);
}

.cta-energy:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 24px 48px -12px rgba(249, 115, 22, 0.65),
    0 8px 16px -8px rgba(249, 115, 22, 0.5);
}

.cta-glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  box-shadow:
    0 0 0 1px rgba(15, 31, 77, 0.2),
    0 16px 36px -10px rgba(15, 31, 77, 0.6),
    0 4px 8px -4px rgba(0, 0, 0, 0.3);
}

.cta-glass:hover {
  transform: translateY(-4px) scale(1.01);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.cta-energy .cta-icon {
  background: rgba(255, 255, 255, 0.22);
}

.cta-glass .cta-icon {
  background: linear-gradient(135deg, #fb923c, #f97316);
}

.cta-card:hover .cta-icon {
  transform: scale(1.08) rotate(-4deg);
}

.cta-body {
  flex: 1;
  position: relative;
  z-index: 1;
}

.cta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.cta-glass .cta-label {
  color: #fb923c;
  opacity: 1;
}

.cta-title {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 1.25rem;
  }
}

.cta-desc {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.cta-glass .cta-desc {
  color: #cbd5e1;
  opacity: 1;
}

.cta-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-energy .cta-arrow {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-glass .cta-arrow {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-card:hover .cta-arrow {
  transform: translateX(-6px);
}

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-top: 1.75rem;
  margin-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-divider {
  width: 1px;
  height: 2.25rem;
  background: rgba(255, 255, 255, 0.1);
}

.trust-value {
  font-size: 1.25rem;
  font-weight: 800;
}

@media (min-width: 768px) {
  .trust-value {
    font-size: 1.5rem;
  }
}

.trust-value.orange {
  color: #fb923c;
}

.trust-value.green {
  color: #34d399;
}

.trust-label {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 0.125rem;
}

@media (min-width: 768px) {
  .trust-label {
    font-size: 0.75rem;
  }
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 640px) {
  .site-footer .container {
    flex-direction: row;
  }
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

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

.hidden-sm {
  display: none;
}

@media (min-width: 640px) {
  .hidden-sm {
    display: inline;
  }
}
