/*
Theme Name: CyberCrest
Theme URI: https://example.com/cybercrest
Description: A polished cybersecurity landing and marketing theme based on the CyberCrest design system.
Version: 1.0.0
Author: AI Assistant
Author URI: https://example.com
Text Domain: cybercrest
*/

:root {
  color-scheme: light;
  --navy: #001f4a;
  --cyan: #00a8e8;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #14213d;
  --muted: #64748b;
  --border: #dce6f3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(0, 168, 232, 0.55);
  outline-offset: 2px;
  border-radius: 10px;
}

.page-shell { max-width: 1200px; margin: 0 auto; padding: 24px; }
.top-nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 24px; gap: 16px; }
.brand { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.04em; }
.brand span { color: var(--cyan); }
.home-brand { font-size: clamp(2.2rem, 3vw, 3.4rem); line-height: 1.1; }
.nav-links { display: flex; gap: 18px; color: var(--muted); }
.nav-actions { display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 999px; font-weight: 700; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--cyan); color: white; }
.btn-secondary { background: white; color: var(--navy); border-color: var(--border); }
.btn-ghost { background: transparent; color: var(--navy); }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: center; padding: 22px 0 36px; }
.hero-copy h1 { font-size: clamp(2.2rem, 3vw, 3.4rem); line-height: 1.1; margin: 0 0 16px; }
.eyebrow { color: var(--cyan); text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700; font-size: 0.8rem; margin-bottom: 10px; }
.lead { color: var(--muted); font-size: 1.04rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; margin-top: 22px; }
.hero-panel { display: flex; justify-content: center; }
.hero-card { background: linear-gradient(135deg, #0b234a, #153768); color: white; border-radius: 24px; padding: 24px; width: min(100%, 460px); box-shadow: 0 24px 48px rgba(0, 31, 74, 0.18); }
.hero-card-top { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 18px; }
.status-indicator { width: 10px; height: 10px; border-radius: 50%; background: #10b981; display: inline-block; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metric-grid > div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px; }
.metric-label { font-size: 0.78rem; color: rgba(255,255,255,.72); margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.metric-value { margin: 0; font-size: 1.3rem; font-weight: 700; }
.section-card { background: var(--panel); border: 1px solid var(--border); border-radius: 24px; padding: 28px; margin-top: 20px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04); }
.section-card.dark { background: linear-gradient(135deg, var(--navy), #0f3b73); color: white; }
.section-heading h2 { margin: 0 0 8px; font-size: 1.6rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.feature-card { background: #f8fbff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: grid; gap: 10px; }
.feature-card h3 { margin-top: 0; margin-bottom: 8px; }
.feature-card p { color: var(--muted); line-height: 1.7; margin: 0; }
.feature-outcome {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #37557a;
  border-top: 1px dashed #c8d9ef;
  padding-top: 9px;
}
.outcomes-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  background: linear-gradient(135deg, #eff6ff, #f8fcff);
}
.outcomes-strip article {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.75);
}
.outcome-value {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
}
.outcome-label {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}
.report-showcase { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 20px; align-items: center; overflow: hidden; }
.report-copy h2 { margin: 6px 0 12px; font-size: clamp(1.7rem, 2.5vw, 2.35rem); line-height: 1.2; }
.workflow-menu-card {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcff, #f2f7ff);
  padding: 14px;
}
.workflow-menu-head h3 { margin: 6px 0 10px; font-size: 1.25rem; }
.workflow-menu-kicker { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; }
.workflow-nav { display: grid; gap: 6px; }
.workflow-link {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  border-bottom: 1px solid #d6deeb;
  background: #ffffff;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
  cursor: pointer;
}
.workflow-link:hover {
  transform: translateX(2px);
  border-color: #b8c7de;
  background: #f7fbff;
}
.workflow-link:focus-visible {
  outline: 3px solid rgba(0, 168, 232, 0.55);
  outline-offset: 2px;
}
.workflow-link.active {
  border-color: rgba(0, 168, 232, 0.45);
  border-bottom-color: rgba(0, 168, 232, 0.45);
  background: #ecf8ff;
}
.workflow-link-label { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.workflow-link-summary { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.platform-scene-card {
  background: linear-gradient(155deg, #03162f, #0a2b56);
  color: #eef6ff;
  border-radius: 20px;
  border: 1px solid rgba(0, 168, 232, 0.24);
  padding: 18px;
  box-shadow: 0 24px 46px rgba(2, 10, 24, 0.35);
}
.platform-image-panel {
  position: relative;
  background: #0d2a52;
  border-radius: 20px;
  border: 1px solid rgba(0, 168, 232, 0.24);
  padding: 14px;
  box-shadow: 0 24px 46px rgba(2, 10, 24, 0.35);
  overflow: hidden;
}
.platform-main-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}
.monitor-logo-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  width: min(36%, 220px);
  height: auto;
  z-index: 2;
  pointer-events: none;
  transform: scale(0.2);
  transform-origin: top left;
  opacity: 0.34;
  mix-blend-mode: screen;
}
.flow-overlay {
  position: absolute;
  inset: 14px;
  border-radius: 14px;
  pointer-events: none;
  z-index: 2;
}
.flow-line {
  position: absolute;
  opacity: 0.9;
}
.flow-h {
  height: 2px;
  background: linear-gradient(90deg, rgba(31, 183, 255, 0.1), rgba(142, 225, 255, 0.85));
}
.flow-h::after {
  content: '';
  position: absolute;
  right: -7px;
  top: -3px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid rgba(142, 225, 255, 0.9);
}
.flow-h::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #67d7ff;
  box-shadow: 0 0 10px rgba(103, 215, 255, 0.9);
  animation: flowDotX 2.4s linear infinite;
}
.flow-v {
  width: 2px;
  background: linear-gradient(180deg, rgba(31, 183, 255, 0.1), rgba(142, 225, 255, 0.85));
}
.flow-v::after {
  content: '';
  position: absolute;
  left: -3px;
  bottom: -7px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 7px solid rgba(142, 225, 255, 0.9);
}
.flow-v::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #67d7ff;
  box-shadow: 0 0 10px rgba(103, 215, 255, 0.9);
  animation: flowDotY 2.8s linear infinite;
}
.flow-1 { top: 18%; left: 12%; width: 36%; }
.flow-2 { top: 27%; left: 52%; width: 24%; }
.flow-3 { top: 50%; left: 26%; width: 34%; }
.flow-4 { top: 22%; left: 47%; height: 24%; }
.flow-5 { top: 52%; left: 72%; height: 18%; }
.scene-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 16px;
}
.report-scene-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stage-details {
  scroll-margin-top: 86px;
}
.stage-detail-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stage-detail-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #f8fbff;
  scroll-margin-top: 86px;
}
.stage-detail-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #204367;
}
.stage-detail-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}
.trust-band {
  margin-top: 20px;
  background: linear-gradient(150deg, #f5f9ff, #eef6ff);
}
.trust-pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.trust-pill-row span {
  background: #ffffff;
  border: 1px solid #cfdff4;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #204063;
}
.lead-on-dark { color: rgba(228, 237, 255, 0.9); }
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.engagement-grid article {
  border: 1px solid rgba(157, 201, 255, 0.3);
  border-radius: 14px;
  padding: 14px;
  background: rgba(10, 33, 68, 0.2);
}
.engagement-grid h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.engagement-grid p {
  margin: 0;
  color: rgba(228, 237, 255, 0.9);
  line-height: 1.6;
}
.contact-section {
  margin-top: 20px;
  background: linear-gradient(145deg, #f8fcff, #edf6ff);
}
.contact-form {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.contact-field {
  display: grid;
  gap: 6px;
}
.contact-field span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #24496d;
}
.contact-field input,
.contact-field textarea,
.contact-field select {
  width: 100%;
  border: 1px solid #c8d9ee;
  border-radius: 12px;
  padding: 11px 12px;
  background: #ffffff;
  color: var(--text);
}
.contact-field textarea {
  resize: vertical;
  min-height: 124px;
}
.contact-field-full {
  grid-column: 1 / -1;
}
.contact-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-destination {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.contact-status,
.contact-error {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9rem;
}
.contact-status { color: #10b981; }
.contact-error { color: #ef4444; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .outcomes-strip { grid-template-columns: 1fr; }
  .report-showcase { grid-template-columns: 1fr; }
  .stage-detail-grid { grid-template-columns: 1fr; }
  .engagement-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-shell { padding: 16px; }
  .top-nav { flex-direction: column; align-items: flex-start; }
  .nav-links { flex-wrap: wrap; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .nav-actions { width: auto; }
  .nav-actions .btn { width: auto; }
  .report-scene-actions { flex-direction: column; }
  .report-scene-actions .btn { width: 100%; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .flow-1 { top: 17%; left: 10%; width: 40%; }
  .flow-2 { top: 26%; left: 50%; width: 30%; }
  .flow-3 { top: 52%; left: 18%; width: 44%; }
  .flow-4 { top: 21%; left: 46%; height: 28%; }
  .flow-5 { top: 54%; left: 71%; height: 16%; }
  .monitor-logo-overlay { width: min(44%, 180px); top: 8px; left: 8px; }
  .platform-main-image {
    max-height: 240px;
    object-fit: cover;
    object-position: center;
  }
}

@keyframes flowDotX {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

@keyframes flowDotY {
  0% { top: 0; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { top: calc(100% - 8px); opacity: 0; }
}

/* Gutenberg editor support */
.entry-content > * + * { margin-top: 1.5rem; }
.entry-content .wp-block-group,
.entry-content .wp-block-columns,
.entry-content .wp-block-column {
  width: 100%;
}
.entry-content .wp-block-button__link {
  border-radius: 999px;
  background: var(--cyan);
  color: #fff;
  padding: 10px 16px;
}
.entry-content .is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
}

