/* WebData24 — Blue corporate homepage redesign */

:root {
  --blue-950: #0a1628;
  --blue-900: #0c2340;
  --blue-800: #123a6b;
  --blue-700: #1a4f9c;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --white: #ffffff;
  --nav-h: 76px;
  --wrap: 1140px;
  --font: "Vazirmatn", Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  right: 1rem;
  top: -100px;
  z-index: 2000;
  background: var(--blue-900);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* Topbar */
.topbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s, color 0.35s;
  color: rgba(255, 255, 255, 0.92);
}

.topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  color: var(--ink);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
}

.logo-box {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.topbar.is-scrolled .logo-box {
  background: var(--blue-600);
  color: #fff;
}

.logo-text {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu a {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.88;
  transition: opacity 0.2s, color 0.2s;
}

.menu a:hover {
  opacity: 1;
}

.menu-cta {
  background: #fff;
  color: var(--blue-800) !important;
  opacity: 1 !important;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 700 !important;
}

.topbar.is-scrolled .menu-cta {
  background: var(--blue-600);
  color: #fff !important;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.topbar.is-open .menu-btn span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.topbar.is-open .menu-btn span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--blue-800);
}

.btn-white:hover {
  background: var(--blue-50);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-navy {
  background: var(--blue-900);
  color: #fff;
}

.btn-navy:hover {
  background: var(--blue-800);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  padding: calc(var(--nav-h) + 1rem) 0 4.5rem;
  text-align: center;
}

.hero-plane {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, #06101f 0%, #0c2340 38%, #15407a 72%, #2563eb 100%);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(147, 197, 253, 0.18), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.22), transparent 28%),
    radial-gradient(circle at 70% 80%, rgba(37, 99, 235, 0.35), transparent 40%);
}

.hero-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  animation: meshDrift 28s linear infinite;
}

.hero-orb {
  position: absolute;
  width: min(70vw, 640px);
  height: min(70vw, 640px);
  left: -8%;
  bottom: -25%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.35), transparent 68%);
  filter: blur(10px);
  animation: orbPulse 8s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-line {
  margin: 0 0 1.5rem;
  font-size: clamp(1.7rem, 4.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.96);
  max-width: 18ch;
  letter-spacing: -0.03em;
}

.hero-sub {
  margin: 0 auto 2.75rem;
  font-size: 1.05rem;
  color: rgba(219, 234, 254, 0.78);
  max-width: 40ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  z-index: 2;
}

.hero-scroll span {
  display: block;
  width: 4px;
  height: 8px;
  margin: 8px auto 0;
  border-radius: 4px;
  background: #fff;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes meshDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 72px 72px, 72px 72px; }
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Shared bands */
.band {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.band-head {
  max-width: 34rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.25rem);
}

.band-head h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-900);
}

.band-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Services */
.services {
  background: #fff;
}

.services .band-head {
  margin-inline: auto;
  text-align: center;
}

.svc-rail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.svc {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.svc:nth-child(odd) {
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.svc:nth-child(even) {
  padding-right: 2rem;
}

.svc b {
  font-size: 0.9rem;
  color: var(--blue-600);
  font-weight: 800;
  padding-top: 0.2rem;
}

.svc h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--blue-900);
}

.svc p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Portfolio — editorial list, not cards */
.portfolio {
  background:
    linear-gradient(180deg, var(--blue-50) 0%, var(--paper) 100%);
}

.work-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #c7d7ee;
}

.work {
  display: grid;
  grid-template-columns: 10rem 1.2fr 1.4fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.45rem 0;
  border-bottom: 1px solid #c7d7ee;
  transition: background 0.25s, padding 0.25s;
}

.work:hover {
  background: rgba(255, 255, 255, 0.7);
  padding-inline: 1rem;
}

.work-meta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-600);
}

.work strong {
  font-size: 1.05rem;
  color: var(--blue-900);
  line-height: 1.45;
}

.work-desc {
  color: var(--muted);
  font-size: 0.95rem;
}

.work-go {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-700);
  white-space: nowrap;
}

.work:hover .work-go {
  color: var(--blue-600);
}

/* Process */
.process {
  background: var(--blue-900);
  color: #fff;
}

.process .band-head h2 {
  color: #fff;
}

.process .band-head p {
  color: rgba(219, 234, 254, 0.72);
}

.process-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.steps li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.steps em {
  grid-row: 1 / span 2;
  font-style: normal;
  font-weight: 800;
  color: #93c5fd;
  padding-top: 0.15rem;
}

.steps strong {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.steps span {
  color: rgba(219, 234, 254, 0.7);
  font-size: 0.95rem;
}

/* Team */
.team {
  background: #fff;
}

.team-split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: stretch;
  max-width: 900px;
}

.team-aside {
  background:
    linear-gradient(160deg, var(--blue-800), var(--blue-600));
  border-radius: 20px;
  min-height: 240px;
  display: grid;
  place-items: center;
}

.team-initials {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.team-body h2 {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-600);
}

.team-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  color: var(--blue-900);
}

.team-role {
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--blue-700);
}

.team-body p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
}

/* Contact */
.contact {
  background:
    linear-gradient(145deg, #0c2340 0%, #15407a 55%, #2563eb 100%);
  color: #fff;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-copy h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.contact-copy > p {
  margin: 0 0 1.5rem;
  color: rgba(219, 234, 254, 0.8);
  max-width: 34ch;
}

.contact-copy > .btn-white {
  display: inline-flex;
  margin-bottom: 0;
}

.contact-copy > p.phone {
  margin: 2.75rem 0 0;
  color: rgba(219, 234, 254, 0.75);
  max-width: none;
}

.phone a {
  color: #fff;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
}

.contact-form span {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.45);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 0.25rem;
}

/* Footer */
.footer {
  background: var(--blue-950);
  color: rgba(219, 234, 254, 0.7);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand .logo-box {
  background: rgba(255, 255, 255, 0.1);
}

.footer-brand strong {
  display: block;
  color: #fff;
}

.footer-brand p,
.footer-inner > p {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
}

.footer-inner > p {
  margin: 0;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.18s; }
.delay-3 { transition-delay: 0.26s; }

/* ========== Inner / product pages ========== */
.product-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
}

.product-hero-plane {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #06101f 0%, #0c2340 40%, #15407a 72%, #2563eb 100%);
}

.product-hero-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 90%);
  pointer-events: none;
}

.product-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-inline: auto;
}

.product-crumb {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: rgba(219, 234, 254, 0.55);
}

.product-crumb a:hover {
  color: #93c5fd;
}

.product-tag {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
  font-weight: 700;
  color: #bfdbfe;
}

.product-hero h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.product-hero .lead {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 1.08rem;
  color: rgba(219, 234, 254, 0.8);
  line-height: 1.8;
}

.product-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.product-section.alt {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--paper) 100%);
}

.product-section .wrap {
  max-width: 860px;
}

.product-section .section-label {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-600);
  text-align: center;
}

.product-section h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--blue-900);
  text-align: center;
  letter-spacing: -0.02em;
}

.product-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
  text-align: center;
  max-width: 54ch;
  margin-inline: auto;
}

.feature-rail {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-item b {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--blue-600);
  padding-top: 0.15rem;
}

.feature-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  color: var(--blue-900);
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.audience-item {
  padding: 1.35rem 1.2rem;
  background: #fff;
  border: 1px solid #c7d7ee;
  border-radius: 14px;
}

.audience-item strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--blue-900);
  font-size: 1.02rem;
}

.audience-item span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 560px;
  margin-inline: auto;
}

.checklist li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 1.15rem;
  padding-right: 2.6rem;
  background: #fff;
  border: 1px solid #c7d7ee;
  border-radius: 12px;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--blue-600);
  transform: translateY(-50%);
}

.product-cta {
  background: linear-gradient(145deg, #0c2340 0%, #15407a 55%, #2563eb 100%);
  color: #fff;
  text-align: center;
}

.product-cta h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
}

.product-cta p {
  margin: 0 auto 1.75rem;
  max-width: 38ch;
  color: rgba(219, 234, 254, 0.8);
}

.product-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  background: var(--blue-600);
  color: #fff;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s;
}

.btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 700;
  background: transparent;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

.product-cta .btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* Responsive */
@media (max-width: 980px) {
  .svc-rail {
    grid-template-columns: 1fr;
  }

  .svc:nth-child(odd),
  .svc:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }

  .work {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding-block: 1.25rem;
  }

  .work-go {
    margin-top: 0.35rem;
  }

  .process-grid,
  .contact-split,
  .team-split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .team-aside {
    min-height: 160px;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .menu-btn {
    display: flex;
  }

  .menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.4rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }

  .topbar.is-open .menu {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .menu a {
    padding: 0.85rem 0.4rem;
    color: var(--ink);
  }

  .menu-cta {
    text-align: center;
    margin-top: 0.35rem;
  }

  .hero {
    padding-bottom: 4.5rem;
  }

  .product-hero {
    padding: calc(var(--nav-h) + 3rem) 0 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-lines,
  .hero-orb,
  .hero-scroll span { animation: none; }
  .btn:hover,
  .btn-primary:hover,
  .btn-ghost:hover { transform: none; }
}
