/*
 * SLC V7 - Signal Cabin Glass
 * Promotes the selected V1 Hero direction into the bilingual main site.
 */

:root {
  --v7-navy: #06152b;
  --v7-cyan: #25b8ff;
  --v7-blue: #1677ff;
  --v7-amber: #ffb44a;
  --v7-text: #f3f8fc;
  --v7-muted: #b9ccda;
}

/* Dark photographic stage with local rail light, not a full-surface gradient. */

.hero {
  --v7-shift-near-x: 0px;
  --v7-shift-near-y: 0px;
  background: var(--v7-navy);
}

.hero-media img {
  object-position: 45% center;
  filter: saturate(1.12) contrast(1.08) brightness(0.75);
}

.hero-media::after,
[dir="rtl"] .hero-media::after {
  background: transparent;
}

.hero-shade,
[dir="rtl"] .hero-shade {
  background: rgb(3 14 30 / 0.42);
}

.hero::before {
  background: transparent;
  -webkit-mask-image: none;
  mask-image: none;
}

.hero::after {
  display: none;
}

/* The panel occupies the reading side while the switchyard remains exposed. */

.hero-stage {
  grid-template-columns: minmax(22rem, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4vw, 5rem);
  padding-block: calc(var(--header-height) + 1rem) 4.5rem;
}

[dir="rtl"] .hero-stage {
  grid-template-columns: minmax(0, 7fr) minmax(22rem, 5fr);
}

[dir="ltr"] .hero-copy {
  grid-column: 1 / -1;
  justify-self: stretch;
  margin-right: auto;
  margin-left: 0;
}

[dir="rtl"] .hero-copy {
  grid-column: 1 / -1;
  justify-self: stretch;
  margin-right: 0;
  margin-left: auto;
}

.hero-copy {
  isolation: isolate;
  width: min(55vw, 68rem);
  max-width: 68rem;
  padding: clamp(2rem, 4.2vw, 4.35rem);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.58);
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.18), rgb(255 255 255 / 0.07) 48%, rgb(37 184 255 / 0.08)),
    rgb(5 22 43 / 0.08);
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.72),
    inset 1px 0 0 rgb(255 255 255 / 0.3),
    inset 0 -1px 0 rgb(37 184 255 / 0.24),
    inset 0 0 34px rgb(255 255 255 / 0.08),
    0 28px 70px rgb(0 8 23 / 0.24),
    0 0 44px rgb(37 184 255 / 0.08);
  backdrop-filter: blur(16px) saturate(175%) brightness(1.1) contrast(1.03);
  -webkit-backdrop-filter: blur(16px) saturate(175%) brightness(1.1) contrast(1.03);
}

.hero-copy::before,
.hero-copy::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.hero-copy::before {
  inset: 0 12% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.88), transparent);
}

.hero-copy::after {
  inset: 10% auto 10% 0;
  width: 1px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.82), transparent 58%, rgb(37 184 255 / 0.4));
}

.hero-copy > * {
  position: relative;
  z-index: 2;
}

.v7-glass-refraction {
  position: absolute;
  z-index: 0;
  inset: 1px;
  display: block;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: calc(2rem - 1px);
  background: transparent;
  box-shadow:
    inset 16px 0 18px -20px rgb(37 184 255 / 0.72),
    inset -12px 0 16px -20px rgb(255 180 74 / 0.38),
    inset 0 10px 12px -13px rgb(255 255 255 / 0.76),
    inset 0 -10px 14px -16px rgb(22 119 255 / 0.48);
  pointer-events: none;
}

[dir="rtl"] .v7-glass-refraction {
  box-shadow:
    inset -16px 0 18px -20px rgb(37 184 255 / 0.72),
    inset 12px 0 16px -20px rgb(255 180 74 / 0.38),
    inset 0 10px 12px -13px rgb(255 255 255 / 0.76),
    inset 0 -10px 14px -16px rgb(22 119 255 / 0.48);
}

.hero .kicker {
  margin: 0 0 1.25rem;
  color: var(--v7-cyan);
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  font-weight: 700;
}

.hero h1,
html[lang="fa"] .hero h1 {
  max-width: 17ch;
  margin: 0;
  color: var(--v7-text);
  font-family: "IRANYekanX", "IRANSansX", sans-serif;
  font-size: clamp(2.75rem, 4.2vw, 4.35rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.055em;
  text-shadow: 0 16px 44px rgb(0 8 22 / 0.34);
}

html[lang="en"] .hero h1 {
  max-width: 14ch;
  font-family: "IRANSansX", sans-serif;
  font-size: clamp(2.8rem, 4.15vw, 4.45rem);
  line-height: 1.03;
}

.hero-lead {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--v7-muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 2;
}

html[lang="en"] .hero-lead {
  line-height: 1.7;
}

.operation-promise,
.journey-callout,
.material-callout {
  padding: 1rem 1.25rem;
  border-inline-start: 3px solid var(--v7-cyan);
  background: rgb(37 184 255 / 0.08);
}

.operation-promise {
  max-width: 38rem;
  color: var(--v7-text);
}

.journey-callout {
  margin-top: 2rem;
  color: #0a3152;
}

.material-callout {
  color: #0a3152;
  font-size: 0.95rem;
  line-height: 2;
}

.hero-actions {
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero .button {
  min-height: 3.4rem;
  padding-inline: 1.55rem;
  border-radius: 0.9rem;
}

.hero .button-primary {
  border-color: rgb(37 184 255 / 0.46);
  background: #0c72c9;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.26),
    0 14px 34px rgb(22 119 255 / 0.26);
  color: #f7fbff;
}

.hero .button:disabled {
  filter: saturate(0.82);
}

.hero .button-quiet {
  border-color: rgb(255 255 255 / 0.24);
  background: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.13);
  color: var(--v7-text);
}

.hero .button-quiet:is(:hover, :focus-visible) {
  border-color: rgb(37 184 255 / 0.52);
  background: rgb(37 184 255 / 0.12);
}

/* A single railway signal remains as the only illustrative rail motif. */

.v7-rail-lighting {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.v7-signal-mast {
  position: absolute;
  bottom: 24%;
  left: 11%;
  display: grid;
  gap: 0.6rem;
  width: 2.5rem;
  padding: 0.5rem;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 1.2rem;
  background: rgb(4 18 35 / 0.7);
  box-shadow: 0 18px 34px rgb(0 7 18 / 0.42);
  transform: translate3d(var(--v7-shift-near-x), var(--v7-shift-near-y), 0);
}

.v7-signal-lamp {
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
}

.v7-signal-lamp-cyan {
  background: var(--v7-cyan);
  box-shadow: 0 0 20px var(--v7-cyan);
}

.v7-signal-lamp-amber {
  background: var(--v7-amber);
  box-shadow: 0 0 20px var(--v7-amber);
}

[dir="ltr"] .v7-signal-mast {
  right: 11%;
  left: auto;
}

.v7-visual-caption {
  position: absolute;
  bottom: 1.7rem;
  left: 0;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  direction: rtl;
  color: rgb(243 248 252 / 0.52);
  font-size: 0.75rem;
}

[dir="ltr"] .v7-visual-caption {
  right: 0;
  left: auto;
  direction: ltr;
}

.v7-visual-caption i {
  width: 2.8rem;
  height: 1px;
  background: rgb(37 184 255 / 0.56);
}

.hero-baseline {
  background: rgb(37 184 255 / 0.09);
}

.hero-baseline-active {
  background: var(--v7-cyan);
  box-shadow: 0 0 16px rgb(37 184 255 / 0.42);
}

html[lang="fa"] .countdown-grid {
  direction: ltr;
}

@media (max-width: 64rem) {
  .hero-stage,
  [dir="rtl"] .hero-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    width: min(82vw, 48rem);
  }

  [dir="ltr"] .hero-copy,
  [dir="rtl"] .hero-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 47.99rem) {
  .hero,
  .hero-stage,
  [dir="rtl"] .hero-stage {
    min-height: 100dvh;
  }

  .hero-media img {
    object-position: 42% center;
    filter: saturate(1.1) contrast(1.08) brightness(0.68);
  }

  .hero-shade,
  [dir="rtl"] .hero-shade {
    background: rgb(3 14 30 / 0.42);
  }

  .hero-stage,
  [dir="rtl"] .hero-stage {
    align-items: end;
    padding-block: calc(var(--header-height) + 1rem) 2.5rem;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding: 1.5rem;
    border-radius: 1.4rem;
    background:
      linear-gradient(135deg, rgb(255 255 255 / 0.17), rgb(255 255 255 / 0.06)),
      rgb(6 24 47 / 0.1);
    backdrop-filter: blur(16px) saturate(170%) brightness(1.08);
    -webkit-backdrop-filter: blur(16px) saturate(170%) brightness(1.08);
  }

  .v7-glass-refraction {
    border-radius: calc(1.4rem - 1px);
  }

  .hero h1,
  html[lang="fa"] .hero h1,
  html[lang="en"] .hero h1 {
    font-size: clamp(2.65rem, 12.2vw, 3.75rem);
  }

  html[lang="fa"] .hero h1 {
    max-width: 18ch;
    font-size: clamp(2.2rem, 9.8vw, 3rem);
  }

  .hero-lead {
    margin-top: 1.15rem;
    font-size: 0.96rem;
    line-height: 1.9;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 1.5rem;
  }

  .hero .button {
    min-width: 0;
    padding-inline: 0.8rem;
  }

  .v7-signal-mast {
    top: 15%;
    bottom: auto;
    left: 7%;
  }

  [dir="ltr"] .v7-signal-mast {
    right: 7%;
    left: auto;
  }

  .v7-visual-caption {
    display: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .hero-copy {
    background: #0a2847;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v7-signal-mast {
    transform: none !important;
  }
}
