@import "tailwindcss";

@theme {
  --color-navy: #162e52;
  --color-navy-deep: #07111f;
  --color-navy-mid: #1e3f6d;
  --color-gold: #cea963;
  --color-gold-deep: #a37a35;
  --color-teal: #1aa5a6;
  --color-mist: #eef2f7;
  --color-paper: #f7f9fc;
  --color-ink: #0d1726;
  --color-muted: #4a5b72;
  --color-line: #cfd8e6;
  --font-sans: var(--font-vazir), "Vazirmatn", sans-serif;
  --shadow-soft: 0 28px 70px rgb(7 17 31 / 14%);
  --shadow-lift: 0 18px 40px rgb(22 46 82 / 18%);
  --shadow-gold: 0 14px 36px rgb(206 169 99 / 35%);
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

@media (min-width: 1024px) {
  html {
    font-size: 19px;
  }
}

body {
  background:
    radial-gradient(ellipse 90% 50% at 100% 0%, rgb(26 165 166 / 6%), transparent 45%),
    radial-gradient(ellipse 70% 40% at 0% 30%, rgb(206 169 99 / 5%), transparent 40%),
    var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgb(206 169 99 / 40%);
  color: var(--color-navy-deep);
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.shell {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section-pad {
  padding-block: clamp(5rem, 9vw, 8.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-gold-deep);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-teal));
}

.display {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.lead {
  font-size: clamp(1.05rem, 0.9vw + 0.9rem, 1.2rem);
  line-height: 2.05;
  color: var(--color-muted);
}

.rule-gold {
  height: 3px;
  width: 4.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-teal));
}

/* ——— Buttons ——— */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.35rem;
  padding: 0.9rem 1.85rem;
  overflow: hidden;
  isolation: isolate;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms ease,
    background-color 240ms ease,
    border-color 240ms ease,
    color 240ms ease,
    filter 240ms ease;
}

.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgb(255 255 255 / 28%), transparent 46%);
  pointer-events: none;
}

.btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 18%, rgb(255 255 255 / 55%) 48%, transparent 78%);
  transform: translateX(130%);
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.btn:hover::after {
  transform: translateX(-130%);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: linear-gradient(160deg, #f0d7a2 0%, #cea963 42%, #a37a35 100%);
  color: var(--color-navy-deep);
  box-shadow:
    0 10px 24px rgb(206 169 99 / 32%),
    inset 0 1px 0 rgb(255 255 255 / 45%);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow:
    0 18px 36px rgb(206 169 99 / 48%),
    0 0 0 4px rgb(206 169 99 / 22%);
}

.btn-ghost {
  border: 1.5px solid rgb(255 255 255 / 55%);
  color: #fff;
  background: rgb(255 255 255 / 8%);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 16%);
  box-shadow:
    0 14px 30px rgb(0 0 0 / 28%),
    0 0 0 4px rgb(255 255 255 / 12%);
}

.btn-solid {
  background: linear-gradient(160deg, #2a5288 0%, #162e52 55%, #0e203c 100%);
  color: #fff;
  box-shadow:
    0 12px 26px rgb(22 46 82 / 28%),
    inset 0 1px 0 rgb(255 255 255 / 18%);
}

.btn-solid:hover {
  background: linear-gradient(160deg, #3566a4 0%, #1c3d6b 55%, #122848 100%);
  box-shadow:
    0 18px 36px rgb(22 46 82 / 34%),
    0 0 0 4px rgb(26 165 166 / 22%);
}

.btn-outline {
  border: 1.5px solid var(--color-navy);
  color: var(--color-navy);
  background: rgb(255 255 255 / 82%);
  box-shadow: inset 0 1px 0 #fff;
}

.btn-outline:hover {
  background: var(--color-navy);
  color: #fff;
  box-shadow:
    0 16px 32px rgb(22 46 82 / 24%),
    0 0 0 4px rgb(22 46 82 / 12%);
}

.btn .btn-chevron {
  display: inline-block;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover .btn-chevron {
  transform: translateX(-6px);
}

.field {
  width: 100%;
  min-height: 3.5rem;
  border: 1.5px solid rgb(207 216 230 / 95%);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #fff 0%, #f4f7fb 100%);
  padding: 1rem 1.1rem;
  font-size: 1rem;
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgb(13 23 38 / 4%),
    0 8px 18px rgb(13 23 38 / 6%);
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 200ms ease;
}

.field:hover {
  border-color: rgb(206 169 99 / 75%);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 #fff,
    0 12px 24px rgb(13 23 38 / 9%),
    0 0 0 3px rgb(206 169 99 / 14%);
}

.field:focus,
.field:focus-visible {
  border-color: var(--color-teal);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 #fff,
    0 14px 28px rgb(26 165 166 / 18%),
    0 0 0 4px rgb(26 165 166 / 20%);
  outline: none;
}

.choice-card {
  cursor: pointer;
  border-radius: 1rem;
  border: 1.5px solid var(--color-line);
  background: linear-gradient(180deg, #fff, #f6f8fc);
  padding: 1rem 1.05rem;
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 18px rgb(13 23 38 / 6%);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease, color 200ms ease;
}

.choice-card:hover {
  transform: translateY(-3px);
  border-color: rgb(206 169 99 / 70%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 14px 28px rgb(13 23 38 / 10%);
}

.choice-card.is-selected {
  border-color: transparent;
  background: linear-gradient(160deg, #2a5288, var(--color-navy) 58%, #0c1c33);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 22%),
    0 16px 30px rgb(22 46 82 / 28%);
}

.calendar-pop {
  border-radius: 1rem;
  border: 1px solid rgb(255 255 255 / 80%);
  background: linear-gradient(180deg, #fff, #f4f7fb);
  padding: 0.85rem;
  box-shadow:
    inset 0 1px 0 #fff,
    0 18px 40px rgb(13 23 38 / 16%);
}

.calendar-pop button {
  border-radius: 0.55rem;
}

.rich h2 {
  margin-top: 2.2rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
}

.rich p {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  line-height: 2.05;
  color: var(--color-muted);
}

.rich a {
  color: var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ——— Hero ——— */
.hero-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgb(26 165 166 / 28%), transparent 55%),
    radial-gradient(ellipse 55% 45% at 10% 85%, rgb(206 169 99 / 22%), transparent 50%),
    radial-gradient(circle at 50% 50%, rgb(30 63 109 / 40%), transparent 65%),
    linear-gradient(155deg, #050d18 0%, #0f213d 38%, #162e52 72%, #0b1528 100%);
  color: #fff;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 3.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3.5%) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.7;
  pointer-events: none;
}

.hero-mesh svg {
  width: 100%;
  height: 100%;
}

.mesh-line {
  stroke: rgb(255 255 255 / 18%);
  stroke-width: 1.2;
  fill: none;
}

.mesh-accent {
  stroke: rgb(26 165 166 / 55%);
  stroke-width: 1.6;
  fill: none;
}

.mesh-gold {
  stroke: rgb(206 169 99 / 50%);
  stroke-width: 1.4;
  fill: none;
}

.mesh-drift {
  animation: mesh-drift 16s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes mesh-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2.5%, 2%, 0) scale(1.05); }
}

.logo-glow {
  position: relative;
  filter: drop-shadow(0 0 40px rgb(26 165 166 / 35%)) drop-shadow(0 24px 50px rgb(0 0 0 / 35%));
  animation: logo-float 7s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.reveal {
  animation: reveal-up 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-delay-1 { animation-delay: 100ms; }
.reveal-delay-2 { animation-delay: 200ms; }
.reveal-delay-3 { animation-delay: 320ms; }
.reveal-delay-4 { animation-delay: 440ms; }

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ——— Surface panels ——— */
.panel,
.service-tile,
.form-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgb(255 255 255 / 70%);
  background:
    radial-gradient(90% 70% at 100% 0%, rgb(26 165 166 / 14%), transparent 46%),
    radial-gradient(70% 60% at 0% 100%, rgb(206 169 99 / 16%), transparent 50%),
    linear-gradient(180deg, #fff 0%, #f3f6fb 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 95%),
    0 1px 2px rgb(13 23 38 / 6%),
    0 14px 28px rgb(13 23 38 / 8%),
    0 36px 64px rgb(13 23 38 / 10%);
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms ease,
    border-color 280ms ease;
}

.panel::after,
.service-tile::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto -20% -40% auto;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgb(206 169 99 / 0%), transparent 68%);
  transition: background 280ms ease;
  pointer-events: none;
}

.panel > *,
.service-tile > *,
.form-shell > * {
  position: relative;
  z-index: 1;
}

.panel:hover,
.service-tile:hover {
  transform: translateY(-10px);
  border-color: rgb(206 169 99 / 55%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 2px 4px rgb(13 23 38 / 6%),
    0 22px 40px rgb(13 23 38 / 12%),
    0 48px 80px rgb(22 46 82 / 16%),
    0 0 0 1px rgb(206 169 99 / 35%);
}

.panel:hover::after,
.service-tile:hover::after {
  background: radial-gradient(circle, rgb(206 169 99 / 28%), transparent 68%);
}

.panel-accent {
  position: absolute;
  inset-inline-start: 0;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-gold), var(--color-teal));
  box-shadow: 0 0 16px rgb(206 169 99 / 55%);
}

.service-tile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.4rem;
  align-items: start;
  padding: 1.65rem 1.5rem;
}

.service-tile.featured {
  background:
    radial-gradient(90% 80% at 0% 0%, rgb(206 169 99 / 22%), transparent 50%),
    radial-gradient(70% 60% at 100% 100%, rgb(26 165 166 / 12%), transparent 48%),
    linear-gradient(180deg, #fff 0%, #f7f3ea 100%);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, #2a5288, var(--color-navy) 60%, #0c1c33);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 25%),
    0 10px 20px rgb(22 46 82 / 28%);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms ease;
}

.service-tile:hover .service-icon {
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 30%),
    0 16px 28px rgb(26 165 166 / 32%);
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 1.1rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--color-teal), var(--color-gold));
}

@media (min-width: 768px) {
  .timeline::before {
    inset-inline: 0.5rem;
    inset-block-start: 1.35rem;
    height: 2px;
    width: auto;
    bottom: auto;
  }
}

.step-badge {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: linear-gradient(160deg, #3d6eaa, var(--color-navy) 55%, #0c1c33);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 28%),
    0 10px 18px rgb(22 46 82 / 30%);
}

.problem-row {
  display: grid;
  gap: 1rem;
  margin: 0.65rem;
  padding: 1.35rem 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff, #f6f8fc);
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 18px rgb(13 23 38 / 6%);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.problem-row:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 #fff,
    0 14px 28px rgb(13 23 38 / 10%),
    0 0 0 1px rgb(26 165 166 / 28%);
}

@media (min-width: 768px) {
  .problem-row {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
  }
}

.header-glass {
  background: rgb(247 249 252 / 88%);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgb(207 216 230 / 85%);
  box-shadow: 0 8px 28px rgb(13 23 38 / 4%);
}

.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
  transition: color 160ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-teal));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-navy);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.section-band {
  position: relative;
  overflow: hidden;
}

.section-band::before {
  content: "";
  position: absolute;
  inset-inline-end: -8%;
  top: -20%;
  width: 38%;
  height: 70%;
  background: radial-gradient(circle, rgb(26 165 166 / 8%), transparent 70%);
  pointer-events: none;
}

.form-shell {
  overflow: visible;
  padding: 1.75rem;
}

.form-shell:focus-within {
  border-color: rgb(26 165 166 / 45%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 18px 36px rgb(13 23 38 / 10%),
    0 40px 70px rgb(26 165 166 / 12%),
    0 0 0 1px rgb(26 165 166 / 28%);
}

@media (min-width: 768px) {
  .form-shell {
    padding: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mesh-drift,
  .logo-glow,
  .reveal,
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3,
  .reveal-delay-4,
  .btn::after {
    animation: none !important;
    transition: none !important;
  }

  .btn:hover,
  .panel:hover,
  .service-tile:hover,
  .problem-row:hover,
  .field:hover,
  .field:focus,
  .choice-card:hover,
  .service-tile:hover .service-icon {
    transform: none;
  }
}
