/* ============================================================
   security.html — page-scoped styles.
   This page previously depended on common.css (base theme) and a
   ruckosplatform.css link that no longer resolves to a file on disk
   (renamed to oldruckosplatform.css). index.css also has rules that
   target this page's markup directly (its .hero-layout comment even
   says "used by pages with no diagram column (e.g. security.html)"),
   but index.css's card/section theme colors are the old purple
   (#667eea/#764ba2/#f093fb) — superseded later in that same file by
   a blue/orange override for .service-card/.card-icon, matching the
   blue/orange theme used everywhere else already migrated (ruckos,
   gitops, observability). Built from oldcommon.css (base) +
   oldruckosplatform.css (hero, buttons, section head, card grid),
   trimmed to only what this page's markup uses.
   ============================================================ */

/* @font-face {
  font-family: Assistant-Regular;
  src: url('/assets/font/Assistant-Regular.ttf');
}

@font-face {
  font-family: Assistant-Bold;
  src: url('/assets/font/Assistant-Bold.ttf');
}

* {
  box-sizing: border-box;
  font-family: Assistant-Regular;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Assistant-Bold;
  font-variant-caps: all-small-caps;
} */

.sections {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0a0a0a;
  padding: 4rem 0;
}

/* body, html {
  margin: 0;
  padding: 0;
  background-color: black;
  color: snow;
  line-height: 1.2;
  overflow-x: hidden;
} */

/* Back-to-top button (rendered by the shared footer include on every
   page; styled here since this page no longer loads common.css). */
#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  width: 44px;
  height: 44px;
  border: none;
  outline: none;
  border-radius: 50%;
  background: #0ea5e9;
  color: #e5e7eb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: Assistant-Bold, Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
  font-size: 18px;
}

#myBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(3, 105, 161, 0.35);
  background: #0284c7;
}

#myBtn:active,
#myBtn:focus {
  background: #0369a1;
  color: #e5e7eb;
  outline: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

#myBtn i {
  display: none;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding: 4.2rem 0 4rem;
  background:
    radial-gradient(circle at 84% 82%, rgba(255, 115, 35, 0.16), transparent 18rem),
    radial-gradient(circle at 8% 74%, rgba(255, 115, 35, 0.07), transparent 18rem),
    linear-gradient(180deg, #020202 0%, #010101 68%, #050100 100%);
}

#hero:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
}

#hero .hero-text {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1;
  width: 100%;
  color: snow;
  text-align: left;
  transform: none;
}

/* Single-column hero layout (no diagram column on this page) */
.hero-layout {
  min-height: calc(100vh - 8.8rem);
  position: relative;
  align-items: flex-start !important;
  padding-top: 4.4rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  color: #4f9bd0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
}

.hero-kicker span {
  width: 2rem;
  height: 1px;
  background: #ff7a24;
}

.hero-title {
  margin: 0;
  color: #f7f3f0;
  font-size: 4rem;
  font-weight: 800;
  font-variant-caps: normal;
  line-height: 0.98;
  text-transform: none;
}

.hero-title span,
.hero-title strong {
  display: block;
}

.hero-title span {
  color: #d8d3d0;
  font-size: 3rem;
  font-weight: 300;
  font-variant-caps: normal;
  text-transform: none;
}

.hero-title strong {
  color: #ffffff;
  font-weight: 100;
  font-variant-caps: normal;
  text-transform: none;
}

.hero-title em {
  color: #ff7a24;
  font-style: normal;
}

.hero-copy {
  max-width: 34rem;
  margin: 2rem 0 0;
  color: #aaa4a0;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #4f9bd0, #ff7a24);
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(79, 155, 208, 0.4);
}

#hero .btn-primary {
  background: #ff7a24;
  border: 1px solid #ff7a24;
  box-shadow: 0 1rem 2.4rem rgba(255, 122, 36, 0.24);
  text-transform: uppercase;
  letter-spacing: 0.06rem;
}

#hero .btn-primary:hover {
  box-shadow: 0 1.2rem 2.8rem rgba(255, 122, 36, 0.34);
}

#hero .btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-transform: uppercase;
  letter-spacing: 0.06rem;
}

#hero .btn-secondary:hover {
  color: #ffffff;
  background: rgba(255, 122, 36, 0.12);
  border-color: rgba(255, 122, 36, 0.38);
  transform: translateY(-3px);
}

/* ------------------------------------------------------------
   Section shell + shared headings
   ------------------------------------------------------------ */
.sections {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0a0a0a;
  padding: 4rem 0;
}

.bg-accent {
  background: rgba(15, 15, 15, 0.8);
  position: relative;
  overflow: hidden;
}

.bg-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(79, 155, 208, 0.05) 0%, rgba(255, 122, 36, 0.05) 100%);
  z-index: 0;
}

.bg-accent > * {
  position: relative;
  z-index: 1;
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.section-head .portal-kicker {
  margin-bottom: 1.2rem;
}

.section-head .portal-headline {
  font-size: 2.6rem;
  margin-bottom: 1.2rem;
}

.section-head .portal-sub {
  margin: 0 auto;
}

.portal-kicker {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(79, 155, 208, 0.3);
  background: rgba(79, 155, 208, 0.1);
  border-radius: 50px;
  color: #4f9bd0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.portal-headline {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 1.5rem;
}

.portal-gradient {
  background: linear-gradient(135deg, #4f9bd0, #ff7a24 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portal-sub {
  max-width: 720px;
  color: #b8b8b8;
  font-size: 1.2rem;
  line-height: 1.75;
  margin: 0 0 3rem;
}

@media (max-width: 767px) {
  .portal-headline {
    font-size: 2.3rem;
  }

  .section-head .portal-headline {
    font-size: 2rem;
  }
}

/* ------------------------------------------------------------
   #security-detail — feature card grid
   ------------------------------------------------------------ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

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

@media (max-width: 767px) {
  .nytro-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: rgba(15, 15, 15, 0.6);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(79, 155, 208, 0.3);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #4f9bd0, #ff7a24);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f9bd0, #ff7a24);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 700;
}

/* ------------------------------------------------------------
   Ruckos brain diagram: Tetragon (eBPF security events), Prometheus
   (metrics), Loki (logs, collected via Alloy), and Hubble (Cilium/
   WireGuard network flow) all stream telemetry into Ruckos, which
   correlates it and pushes control signals back out across the
   stack. "ruckos-brain-" prefixed so it can't collide with anything
   else in this file.
   ------------------------------------------------------------ */
.ruckos-brain-head{
  max-width:780px;
  margin:0 auto 1.5rem;
  text-align:center;
}

.ruckos-brain-diagram{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(1rem, 4vw, 2.5rem);
  width:100%;
  max-width:64rem;
  margin:0 auto;
  padding:clamp(1.2rem, 3vw, 2rem);
}

/* Telemetry fan-in: independent sources (Tetragon, Prometheus, Loki
   via Alloy, Hubble/WireGuard) each stream into Ruckos in parallel --
   mirrors .ruckos-signal-fanout's visual language, but the connector
   dot travels the opposite direction (chip -> core, not core -> chip). */
.ruckos-telemetry-fanin{
  display:flex;
  flex-direction:column;
  gap:.85rem;
  flex:0 0 auto;
}

.ruckos-telemetry-chip{
  position:relative;
  display:flex;
  align-items:center;
  gap:.65rem;
  width:12.5rem;
  padding:.55rem .85rem;
  border-radius:12px;
  background:rgba(15,15,15,.6);
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
}

.ruckos-telemetry-chip::before{
  content:"";
  position:absolute;
  right:-1.2rem;
  top:50%;
  width:1.2rem;
  height:1px;
  background:rgba(79,155,208,.3);
}

.ruckos-telemetry-chip::after{
  content:"";
  position:absolute;
  right:0;
  top:50%;
  width:5px;
  height:5px;
  margin-top:-2.5px;
  border-radius:50%;
  background:#4f9bd0;
  box-shadow:0 0 6px 1px rgba(79,155,208,.75);
  opacity:0;
  animation:ruckos-telemetry-flow 2.8s linear infinite;
  animation-delay:var(--delay, 0s);
}

@keyframes ruckos-telemetry-flow{
  0%{right:0;opacity:0}
  10%{opacity:1}
  85%{opacity:1}
  100%{right:-1.2rem;opacity:0}
}

.ruckos-telemetry-chip i{
  flex:0 0 auto;
  color:#4f9bd0;
  font-size:1.05rem;
}

.ruckos-telemetry-chip span{
  color:#e5e2df;
  font-size:.78rem;
  font-weight:700;
  line-height:1.25;
}

/* Ruckos core: what the telemetry feeds, and what issues signals out. */
.ruckos-brain-core{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.35rem;
  flex:0 0 auto;
  width:7.5rem;
  height:7.5rem;
  border-radius:50%;
  background:radial-gradient(circle at 50% 35%, rgba(255,122,36,.16), rgba(10,10,10,.94));
  border:1px solid rgba(255,122,36,.34);
  box-shadow:0 0 0 6px rgba(255,255,255,.03), 0 1.5rem 3rem rgba(0,0,0,.5);
  animation:ruckos-brain-pulse 3.6s ease-in-out infinite;
}

.ruckos-brain-core i{
  color:#ff7a24;
  font-size:1.6rem;
  line-height:1;
}

.ruckos-brain-core span{
  color:#fff;
  font-weight:800;
  font-size:.82rem;
  letter-spacing:.04em;
}

@keyframes ruckos-brain-pulse{
  0%,100%{box-shadow:0 0 0 6px rgba(255,255,255,.03), 0 1.5rem 3rem rgba(0,0,0,.5), 0 0 0 0 rgba(255,122,36,.3)}
  50%{box-shadow:0 0 0 6px rgba(255,255,255,.05), 0 1.5rem 3rem rgba(0,0,0,.5), 0 0 2.6rem .3rem rgba(255,122,36,.45)}
}

/* Signal fan-out: Ruckos pushes control outward. Stacked chips
   linked by an animated connector, mirroring the fan-in on the
   left but running outbound instead of inbound. */
.ruckos-signal-fanout{
  display:flex;
  flex-direction:column;
  gap:.85rem;
  flex:0 0 auto;
}

.ruckos-signal-chip{
  position:relative;
  display:flex;
  align-items:center;
  gap:.65rem;
  width:11.5rem;
  padding:.55rem .85rem;
  border-radius:12px;
  background:rgba(15,15,15,.6);
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
}

.ruckos-signal-chip::before{
  content:"";
  position:absolute;
  left:-1.2rem;
  top:50%;
  width:1.2rem;
  height:1px;
  background:rgba(79,155,208,.3);
}

.ruckos-signal-chip::after{
  content:"";
  position:absolute;
  left:-1.2rem;
  top:50%;
  width:5px;
  height:5px;
  margin-top:-2.5px;
  border-radius:50%;
  background:#ff7a24;
  box-shadow:0 0 6px 1px rgba(255,122,36,.75);
  opacity:0;
  animation:ruckos-signal-flow 2.8s linear infinite;
  animation-delay:var(--delay, 0s);
}

@keyframes ruckos-signal-flow{
  0%{left:-1.2rem;opacity:0}
  10%{opacity:1}
  85%{opacity:1}
  100%{left:0;opacity:0}
}

.ruckos-signal-chip i{
  flex:0 0 auto;
  color:#4f9bd0;
  font-size:1.05rem;
}

.ruckos-signal-chip span{
  color:#e5e2df;
  font-size:.78rem;
  font-weight:700;
  line-height:1.25;
}

@media (prefers-reduced-motion: reduce){
  .ruckos-telemetry-chip::after{animation:none;opacity:0}
  .ruckos-signal-chip::after{animation:none;opacity:0}
  .ruckos-brain-core{animation:none}
}

@media (max-width: 760px){
  .ruckos-brain-diagram{
    flex-direction:column;
  }

  .ruckos-telemetry-fanin{
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:center;
  }

  .ruckos-signal-fanout{
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:center;
  }

  .ruckos-telemetry-chip,
  .ruckos-signal-chip{
    width:auto;
  }

  .ruckos-telemetry-chip::before,
  .ruckos-telemetry-chip::after,
  .ruckos-signal-chip::before,
  .ruckos-signal-chip::after{
    display:none;
  }
}

.card-content {
  color: #a0a0a0;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .hero-title span {
    font-size: 2.6rem;
  }

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

@media (max-width: 992px) {
  #hero {
    padding: 6rem 0 5rem;
  }

  .hero-layout {
    min-height: auto;
    gap: 3rem;
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  #hero {
    min-height: auto;
  }

  .hero-kicker {
    align-items: flex-start;
    font-size: 0.72rem;
    line-height: 1.5;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-title span {
    font-size: 2.15rem;
  }

  .hero-copy {
    font-size: 1rem;
  }
}

/* ------------------------------------------------------------
   Attack-scenario -> detection-layer mapping. Ties the Ruckos
   brain diagram above to concrete Kubernetes attack chain stages,
   showing which stack component (Tetragon, Hubble, Loki, Cilium,
   GitOps) surfaces each one.
   ------------------------------------------------------------ */
.ruckos-detect{
  margin-top: 3rem;
}

.ruckos-detect-head{
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.ruckos-detect-head h3{
  margin: 0 0 .75rem;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
}

.ruckos-detect-head p{
  margin: 0;
  color: #b9b4b0;
  font-size: 1rem;
  line-height: 1.7;
}

.ruckos-detect-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  max-width: 72rem;
  margin: 0 auto;
}

.ruckos-detect-item{
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: rgba(15, 15, 15, .6);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}

.ruckos-detect-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: .75rem;
  border-radius: 10px;
  background: rgba(255, 122, 36, .1);
  border: 1px solid rgba(255, 122, 36, .24);
  color: #ff7a24;
  font-size: 1.05rem;
}

.ruckos-detect-item h4{
  margin: 0 0 .55rem;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
}

.ruckos-detect-source{
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  padding-top: .6rem;
  color: #4f9bd0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.ruckos-detect-source i{
  font-size: .8rem;
}

.ruckos-validated{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  margin-top: 2.5rem;
}

.ruckos-validated-label{
  color: #8c8783;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ruckos-validated-badges{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}

.ruckos-validated-badges span{
  padding: .4rem .9rem;
  border-radius: 999px;
  background: rgba(79, 155, 208, .1);
  border: 1px solid rgba(79, 155, 208, .25);
  color: #d8ecfb;
  font-size: .78rem;
  font-weight: 700;
}

@media (max-width: 575px){
  .ruckos-detect-grid{
    grid-template-columns: 1fr;
  }
}
