@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Rajdhani:wght@500;600;700&display=swap');

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

:root {
  --deep-blue: #0a1436;
  --deep-blue-2: #10205c;
  --electric-blue: #2f5bff;
  --fiery-orange: #ff5b1f;
  --fiery-orange-2: #ff8a3d;
  --text-main: #f4f6ff;
  --text-muted: #b9c2e0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background: radial-gradient(ellipse at top, #0d1a45 0%, #060b23 55%, #04061a 100%);
  color: var(--text-main);
  font-family: 'Rajdhani', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
}

h1, h2, h3, .wordmark {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

a {
  text-decoration: none;
}

/* ===== Background canvas layer ===== */
#beastCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.bg-static {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 60%, rgba(255, 91, 31, 0.05) 100%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 60px);
}

/* ===== Content sections sit above the fixed background layers ===== */
.hero,
.cards-section,
.cta-section,
.cta,
.signal-line {
  position: relative;
  z-index: 2;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5%;
  background: rgba(6, 10, 30, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.wordmark {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 2px;
}

.wordmark span.delta {
  color: var(--electric-blue);
  position: relative;
}

.wordmark span.beast {
  color: var(--fiery-orange);
  font-style: italic;
  transform: skewX(-8deg);
  display: inline-block;
}

.nav-link {
  background: linear-gradient(135deg, var(--fiery-orange), var(--fiery-orange-2));
  color: #0a0e1f;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 4px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 18px rgba(255, 91, 31, 0.35);
  border: none;
  display: inline-block;
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 26px rgba(255, 91, 31, 0.55);
  filter: brightness(1.08);
  outline: none;
}

.nav-link:focus-visible {
  outline: 2px solid var(--text-main);
  outline-offset: 3px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14vh 6% 8vh;
}

.hero-tag {
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--fiery-orange-2);
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.12;
  max-width: 1100px;
  background: linear-gradient(100deg, #ffffff 20%, #ffd9b8 45%, #ff8a3d 60%, #6f9bff 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 30px rgba(255, 91, 31, 0.25));
}

.hero p {
  margin-top: 28px;
  max-width: 680px;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.6;
}

.hero-cta-row {
  margin-top: 46px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  padding: 16px 36px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--fiery-orange), var(--fiery-orange-2));
  color: #0a0e1f;
  box-shadow: 0 6px 24px rgba(255, 91, 31, 0.4);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(255, 91, 31, 0.6);
  filter: brightness(1.08);
  outline: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--electric-blue);
  background: rgba(47, 91, 255, 0.12);
  transform: translateY(-3px);
  outline: none;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid var(--text-main);
  outline-offset: 3px;
}

/* ===== CARDS ===== */
.cards-section {
  padding: 6vh 6% 10vh;
}

.section-heading {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 12px;
  color: var(--text-main);
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 50px;
  font-size: 1.05rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: linear-gradient(160deg, rgba(20, 30, 70, 0.75), rgba(10, 14, 35, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 38px 35px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--fiery-orange), var(--electric-blue));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 91, 31, 0.25);
  border-color: rgba(255, 91, 31, 0.3);
}

.card:hover::before {
  transform: scaleY(1);
}

.card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, var(--fiery-orange), var(--electric-blue));
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
}

/* ===== CTA ===== */
.cta-section {
  padding: 10vh 6% 14vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signal-status {
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--fiery-orange-2);
  font-weight: 700;
  margin-bottom: 26px;
  display: block;
}

.signal-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--fiery-orange), var(--fiery-orange-2));
  color: #0a0e1f;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 20px 52px;
  border-radius: 4px;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  box-shadow: 0 10px 34px rgba(255, 91, 31, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  margin-bottom: 22px;
}

.signal-cta:hover,
.signal-cta:focus-visible {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 44px rgba(255, 91, 31, 0.65);
  filter: brightness(1.08);
  outline: none;
}

.signal-cta:focus-visible {
  outline: 2px solid var(--text-main);
  outline-offset: 3px;
}

.signal-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===== Footer ===== */
/* Footer markup itself is injected via SSI and shouldn't be edited per-domain -
   visibility/contrast rules live here so the footer reads clearly over the
   fixed canvas/background layers. */
footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 30px 6% 30px;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: rgba(4, 6, 26, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

footer a {
  color: var(--fiery-orange-2);
}

footer a:hover {
  color: var(--text-main);
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
  nav {
    padding: 14px 5%;
  }

  .nav-link {
    padding: 9px 16px;
    font-size: 0.8rem;
  }

  .hero {
    padding: 12vh 6% 6vh;
  }

  .hero-cta-row {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

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

  .card {
    padding: 28px 24px;
  }

  .signal-cta {
    padding: 16px 32px;
    font-size: 1rem;
    width: 100%;
  }
}
