/* Prodefence Command Center — aligned with TSCM palette */

@font-face {
  font-family: "Gilroy";
  font-weight: 300;
  font-style: normal;
  src: url("/assets/fonts/Gilroy-Light.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  font-weight: 400;
  font-style: normal;
  src: url("/assets/fonts/Gilroy-Regular.woff") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  font-weight: 500;
  font-style: normal;
  src: url("/assets/fonts/Gilroy-Medium.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  font-weight: 600;
  font-style: normal;
  src: url("/assets/fonts/Gilroy-Semibold.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  font-weight: 700;
  font-style: normal;
  src: url("/assets/fonts/Gilroy-Bold.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --bg-elevated: #0e0e0e;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-hover: rgba(255, 255, 255, 0.07);
  --border: #292929;
  --border-soft: rgba(41, 41, 41, 0.55);
  --red: #ef1a33;
  --red-dark: #c50c1f;
  --red-glow: rgba(239, 26, 51, 0.35);
  --red-glow-soft: rgba(239, 26, 51, 0.12);
  --text: #ffffff;
  --muted: #a5a5a5;
  --muted-dim: #687373;
  --radius: 8px;
  --radius-lg: 12px;
  --font: "Gilroy", "Segoe UI", system-ui, sans-serif;
  --container: min(1200px, calc(100% - 48px));
  --header-h: 72px;
  --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);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  letter-spacing: -0.02em;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.header img,
.pd-footer img {
  max-width: none;
}

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

button {
  font: inherit;
  cursor: pointer;
}

.pd-container {
  width: var(--container);
  margin-inline: auto;
}

/* —— Ambient background —— */
.pd-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.pd-bg__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(197, 12, 31, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(239, 26, 51, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(80, 0, 0, 0.15), transparent 55%),
    var(--bg);
}

.pd-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 75%);
  opacity: 0.5;
}

.pd-bg__noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.pd-bg__scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  opacity: 0.15;
  animation: scan 12s linear infinite;
}

@keyframes scan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(48px);
  }
}

/* Header: see /css/tscm-header.css (1:1 з TSCM) */

/* —— Buttons —— */
.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s,
    border-color 0.2s;
}

.pd-btn--primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--text);
  box-shadow: 0 0 24px var(--red-glow-soft);
}

.pd-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px var(--red-glow);
}

.pd-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.pd-btn--ghost:hover {
  border-color: rgba(239, 26, 51, 0.45);
  background: var(--panel-hover);
}

/* —— Hero —— */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 120px);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.hero__title {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  margin: 0 0 28px;
  max-width: 36rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  color: var(--muted);
}

.hero__status {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--panel);
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.status-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-pill--active .status-pill__dot {
  background: #3dd68c;
  box-shadow: 0 0 8px rgba(61, 214, 140, 0.6);
}

.status-pill--monitor .status-pill__dot {
  background: #f5b942;
  box-shadow: 0 0 8px rgba(245, 185, 66, 0.5);
  animation: pulse 1.5s ease-in-out infinite;
}

.status-pill--ready .status-pill__dot {
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
}

.status-pill__tag {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

.status-pill__text {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-console {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(14, 14, 14, 0.85);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(239, 26, 51, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-console__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.5);
}

.hero-console__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}

.hero-console__bar span:nth-child(1) {
  background: #ef1a33;
}
.hero-console__bar span:nth-child(2) {
  background: #555;
}
.hero-console__bar span:nth-child(3) {
  background: #555;
}

.hero-console__bar p {
  margin: 0 0 0 auto;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted-dim);
}

.hero-console__body {
  padding: 20px 18px 24px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
}

.hero-console__body .ok {
  color: #3dd68c;
}
.hero-console__body .warn {
  color: #f5b942;
}
.hero-console__body .dim {
  color: var(--muted-dim);
}

/* —— Sections —— */
.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.section__title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
}

.section__title--sm {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

#operations .section__title--sm {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.section__lead {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.65;
}

.section__head {
  margin-bottom: 40px;
}

.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

/* —— Module grid —— */
.modules__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(12px);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    background 0.28s var(--ease);
}

.module-card__glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 120px;
  background: radial-gradient(ellipse, var(--red-glow-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.module-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(239, 26, 51, 0.45);
  background: var(--panel-hover);
  box-shadow:
    0 0 40px var(--red-glow-soft),
    0 20px 48px rgba(0, 0, 0, 0.4);
}

.module-card:hover .module-card__glow {
  opacity: 1;
}

.module-card--soon {
  cursor: pointer;
  opacity: 0.92;
}

.module-card--soon:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.module-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.module-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(239, 26, 51, 0.08);
  color: var(--red);
}

.pd-icon {
  width: 22px;
  height: 22px;
}

.module-card__label {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted-dim);
  align-self: center;
}

.module-card__title {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  padding-right: 48px;
}

.module-card__desc {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.module-card__cta {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
}

.module-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* —— Operations capability matrix —— */
.operations__strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 22px);
  padding-bottom: 8px;
  align-items: stretch;
}

.op-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  min-width: 0;
  width: 100%;
  min-height: 56px;
  max-height: 56px;
  box-sizing: border-box;
  transition:
    border-color 0.22s var(--ease, ease),
    background 0.22s var(--ease, ease),
    box-shadow 0.22s var(--ease, ease),
    transform 0.22s var(--ease, ease);
}

.op-chip:hover {
  border-color: rgba(239, 26, 51, 0.48);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 6px 22px rgba(239, 26, 51, 0.12);
  transform: translateY(-2px);
}

.op-chip__icon {
  color: var(--red);
  display: flex;
  flex-shrink: 0;
}

.op-chip__icon .pd-icon {
  width: 24px;
  height: 24px;
}

.op-chip__text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.32;
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Infinity capability slot — symbol only */
.op-chip--infinity {
  justify-content: center;
  align-items: center;
}

.op-chip--infinity .op-chip__infinity {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  line-height: 1;
  color: var(--red);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 1024px) {
  .operations__strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
  }
}

@media (max-width: 640px) {
  .operations__strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .op-chip {
    padding: 0 12px;
    min-height: 52px;
    max-height: 52px;
    gap: 9px;
  }

  .op-chip__text {
    font-size: 12px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }

  .op-chip__icon .pd-icon {
    width: 22px;
    height: 22px;
  }

  .op-chip--infinity .op-chip__infinity {
    font-size: clamp(19px, 7.5vw, 26px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .op-chip {
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  }

  .op-chip:hover {
    transform: none;
  }

}

/* —— Latest news —— */
.latest-news {
  padding-top: clamp(28px, 4vw, 44px);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.news-card {
  position: relative;
  display: block;
  min-height: 260px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0c0c0c;
  text-decoration: none;
  color: var(--text);
  transition:
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.news-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.76) 78%),
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(239, 26, 51, 0.3), transparent 65%);
}

.news-card__category {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  font-size: 12px;
  font-weight: 600;
}

.news-card__bottom {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.news-card__title {
  margin: 0;
  font-size: clamp(1.15rem, 1.9vw, 1.85rem);
  line-height: 1.15;
  max-width: 85%;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.news-card__arrow {
  font-size: 30px;
  line-height: 1;
  color: var(--red);
  transition: transform 0.25s var(--ease);
}

.news-card:hover {
  border-color: rgba(239, 26, 51, 0.45);
  box-shadow:
    0 0 40px var(--red-glow-soft),
    0 14px 36px rgba(0, 0, 0, 0.45);
  transform: translateY(-3px);
}

.news-card:hover .news-card__arrow {
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .news-card {
    min-height: 220px;
  }
}

/* —— Why —— */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.why-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.why-card:hover {
  border-color: rgba(239, 26, 51, 0.3);
  transform: translateY(-2px);
}

.why-card__index {
  display: block;
  margin-bottom: 12px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.1em;
}

.why-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.why-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* —— CTA —— */
.cta__panel {
  padding: clamp(40px, 6vw, 64px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(239, 26, 51, 0.25);
  background:
    linear-gradient(135deg, rgba(239, 26, 51, 0.12) 0%, transparent 50%),
    var(--panel);
  text-align: center;
  box-shadow: 0 0 80px var(--red-glow-soft);
}

.cta__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
}

.cta__text {
  margin: 0 auto 28px;
  max-width: 32rem;
  color: var(--muted);
  line-height: 1.65;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
    max-width: 480px;
  }

  .modules__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 768px) {
  :root {
    --container: calc(100% - 32px);
  }

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

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

  .module-card__title {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
