/* main.css - custom design for "Roman | Cybersecurity" (v2: navy, cyan, lime).
   Loaded after theme.css (the adapted Tidy stylesheet); adds and overrides styles. */

:root {
  --bg: #0B1220;
  --bg-deep: #070D18;
  --panel: #111B2E;
  --panel-2: #0E1726;
  --panel-hover: #15223A;
  --line: #1E2B42;
  --line-strong: #2B3A55;
  --text-high: #F5F8FC;
  --text-mid: #B6C2D6;
  --text-low: #8492A8;
  --cyan: #38BDF8;
  --cyan-light: #7DD3FC;
  --lime: #A3E635;
  --amber: #FBBF24;
  --danger: #F87171;
  --on-cyan: #06121F;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 18px 40px rgba(2, 6, 16, 0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-mid);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(56, 189, 248, 0.10), transparent 60%),
    linear-gradient(rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  background-repeat: no-repeat, repeat, repeat;
}

::selection { background: var(--cyan); color: var(--on-cyan); }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 { font-family: var(--font-sans); font-weight: 800; color: var(--text-high); }
h1, .h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -0.035em; }
h2, .h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -0.03em; }
h3, .h3 { letter-spacing: -0.02em; }
h4, .h4 { font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }
p { color: var(--text-mid); }
.text-color-low { color: var(--text-low) !important; }
.text-color-error { color: var(--danger); }

a:not(.button) { color: var(--cyan); }
a:not(.button):hover { color: var(--cyan-light); }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10000;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--lime);
  color: var(--on-cyan) !important;
  font-weight: 700;
  text-decoration: none !important;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--cyan-light);
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(163, 230, 53, 0.8);
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid rgba(43, 58, 85, 0.5); }
.site-header .brand a,
.site-footer .brand a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-name {
  color: var(--text-high);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name span { color: var(--cyan); font-weight: 400; margin: 0 2px; }

.header-nav a:not(.button) {
  position: relative;
  padding: 0 14px;
  color: var(--text-mid);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}
.header-nav a:not(.button):hover { color: var(--text-high); }
.header-nav a[aria-current="page"]:not(.button) { color: var(--text-high); }
.header-nav a[aria-current="page"]:not(.button)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}
.header-nav a.button { margin-left: 16px; }
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after { background: var(--text-high) !important; }

@media (min-width: 641px) and (max-width: 880px) {
  .site-header .brand-name { display: none; }
  .header-nav a:not(.button) { padding: 0 10px; }
}
@media (max-width: 640px) {
  .header-nav-toggle + .header-nav { background: var(--panel-2); border-bottom: 1px solid var(--line); }
  .site-header .header-nav-toggle + .header-nav ul a:not(.button) { color: var(--text-mid); font-size: 17px; }
  .site-header .header-nav-toggle + .header-nav ul a[aria-current="page"]:not(.button) { color: var(--cyan); }
  .header-nav a[aria-current="page"]:not(.button)::after { display: none; }
  .header-nav a.button { margin-left: 0; }
}

/* ---------- Buttons ---------- */
.button {
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.button-primary { background-color: var(--cyan); color: var(--on-cyan) !important; }
.button-primary:hover { background-color: var(--cyan-light); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(56, 189, 248, 0.25); }
.button-ghost,
.button-dark {
  background: transparent;
  color: var(--text-high) !important;
  border: 1px solid var(--line-strong) !important;
}
.button-ghost:hover,
.button-dark:hover { background: var(--panel-hover); border-color: var(--cyan) !important; transform: translateY(-2px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}
.link-arrow::after { content: "\2192"; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Sections ---------- */
.has-top-divider::before { background: var(--line) !important; }
.section-header-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  text-align: left;
  padding-bottom: 48px;
}
.section-header-split > div { max-width: 640px; }

/* ---------- Home hero ---------- */
.hero.has-bg-color::before {
  -webkit-clip-path: none;
  clip-path: none;
  background:
    radial-gradient(700px 420px at 78% 45%, rgba(56, 189, 248, 0.14), transparent 70%),
    radial-gradient(500px 300px at 10% 90%, rgba(163, 230, 53, 0.05), transparent 70%),
    transparent;
  border-bottom: 1px solid var(--line);
}
.home-hero .hero-inner { padding-top: 72px; padding-bottom: 96px; }
.home-hero .split-item { align-items: center; }
.home-hero h1 .accent {
  display: block;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-light) 60%, var(--lime) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { font-size: 20px; line-height: 32px; color: var(--text-mid); max-width: 520px; }
.hero-figure img { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.hero-figure.split-item-image { min-width: 0 !important; }
.hero-figure img { box-shadow: none !important; border-radius: 0 !important; }
.hero-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.hero-topics li {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  line-height: 20px;
  color: var(--text-low);
}
@media (max-width: 640px) {
  .home-hero .hero-inner { padding-top: 40px; padding-bottom: 56px; }
  .hero-lead { font-size: 18px; line-height: 28px; margin-left: auto; margin-right: auto; }
  .hero-topics { justify-content: center; }
}

/* ---------- Inner page header ---------- */
.page-hero { overflow: hidden; }
.page-hero.has-bg-color::before {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(56, 189, 248, 0.16), transparent 70%),
    var(--bg-deep);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../images/network-pattern.svg") center / cover no-repeat;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.page-hero .hero-inner { padding-top: 72px; padding-bottom: 72px; }
.page-hero p { max-width: 640px; margin-left: auto; margin-right: auto; font-size: 19px; line-height: 30px; }

/* ---------- Cards (shared) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 13, 24, 0.55);
  color: var(--text-mid);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}
.badge-primary { color: var(--cyan-light); border-color: rgba(56, 189, 248, 0.4); background: rgba(56, 189, 248, 0.08); }
.badge-secondary { color: var(--lime); border-color: rgba(163, 230, 53, 0.4); background: rgba(163, 230, 53, 0.07); }
.badge-soon { background: rgba(7, 13, 24, 0.85); color: var(--text-high); }
.badge-soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.card-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.news::before { background: transparent !important; }
.news .tiles-item-inner,
.up-next .tiles-item-inner {
  padding: 0 !important;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}
.news .tiles-item:hover .tiles-item-inner,
.up-next .tiles-item:hover .tiles-item-inner {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: var(--shadow);
}
.news-item-image { position: relative; flex-shrink: 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--panel-2); }
.news-item-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.tiles-item:hover .news-item-image img { transform: scale(1.04); }
.news-item-image .badge { position: absolute; right: 12px; bottom: 12px; }
.news .news-item-content,
.up-next .news-item-content { padding: 20px 22px 18px !important; }
.news-item-title { font-size: 20px; line-height: 28px; }
.news-item-title a { color: var(--text-high) !important; text-decoration: none !important; }
.news-item-title a:hover { color: var(--cyan-light) !important; }
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-low);
}

/* ---------- Featured video ---------- */
.featured .section-inner { padding-bottom: 64px; }
.featured-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--panel) 0%, var(--panel-2) 100%);
  box-shadow: var(--shadow);
}
.featured-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; }
.featured-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.featured-media:hover img { transform: scale(1.03); }
.featured-media .badge { position: absolute; left: 16px; bottom: 16px; }
.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M8 5l14 8-14 8z' fill='%2306121F'/%3E%3C/svg%3E") no-repeat 56% 50%;
  box-shadow: 0 0 0 10px rgba(56, 189, 248, 0.15);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.featured-media:hover .play-badge { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(56, 189, 248, 0.12); }
.featured-body { padding: 32px 28px; }
.featured-body h3 { font-size: clamp(26px, 3vw, 34px); }
@media (min-width: 900px) {
  .featured-card { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
  .featured-media { align-self: stretch; display: grid; align-items: center; aspect-ratio: auto; background: #0D1A2E; }
  .featured-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .featured-body { padding: 48px 44px; }
}
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--text-high); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(163, 230, 53, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='%23A3E635' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}
.up-next { margin-top: 32px !important; }

/* ---------- Topic cards ---------- */
.topic-card {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  padding: 28px 26px !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text-mid) !important;
  text-decoration: none !important;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, background-color 0.25s ease;
}
.topic-card:hover { transform: translateY(-6px); border-color: rgba(56, 189, 248, 0.5); background: var(--panel-hover); }
.topic-card p { flex-grow: 1; }
.topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
}
.topic-more { margin-top: 18px; color: var(--cyan); font-weight: 700; font-size: 14px; }
.topic-more::after { content: " \2192"; display: inline-block; transition: transform 0.2s var(--ease); }
.topic-card:hover .topic-more::after { transform: translateX(4px); }
.topics .tiles-item { padding: 12px !important; }
.topics .tiles-wrap { margin: -12px !important; }

/* ---------- Format tabs ---------- */
.features-tabs-tab-image { background: var(--panel) !important; border: 1px solid var(--line-strong) !important; box-shadow: none !important; }
.features-tabs .tab { cursor: pointer; border-radius: var(--radius-sm); }
.features-tabs .tab.is-active .features-tabs-tab-image { border-color: var(--cyan) !important; box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.12) !important; }
.format-panel {
  display: grid;
  gap: 24px;
  max-width: 896px;
  margin: 0 auto;
  padding: 32px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}
.format-panel h3 { margin-top: 0; }
.format-panel ul { margin: 0; padding: 0; list-style: none; }
.format-panel li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--text-high); }
.format-panel li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); }
.format-meta { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 641px) { .format-panel { grid-template-columns: 1.3fr 1fr; padding: 40px; } }

/* ---------- Creator ---------- */
.creator-grid { display: grid; gap: 40px; align-items: center; }
.creator-media img { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (min-width: 821px) { .creator-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; } }
@media (max-width: 820px) { .creator-text { text-align: center; } .creator-text .button-group { justify-content: center; } }

/* ---------- Filter chips ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
}
.chip {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--text-mid);
  font: 600 14px/22px var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover { color: var(--text-high); border-color: var(--cyan); }
.chip.is-active { background: var(--cyan); border-color: var(--cyan); color: var(--on-cyan); }
.filter-count { width: 100%; margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--text-low); }
.is-filtered-out { display: none !important; }



/* ---------- Tips ---------- */
.tip-card .tiles-item-inner {
  padding: 26px 24px !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.25s var(--ease), border-color 0.25s ease;
}
.tip-card:hover .tiles-item-inner { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.45); }
.tip-number { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text-low); }
.tip-card h3 { font-size: 20px; line-height: 28px; margin: 6px 0 10px; }
.tip-card p { margin-bottom: 0; }
.tip-card .tip-do { margin-top: 18px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(163, 230, 53, 0.06); border: 1px solid rgba(163, 230, 53, 0.18); font-size: 14px; line-height: 22px; color: var(--text-high); }
.tip-card .tip-do strong { color: var(--lime); }

.checker {
  max-width: 668px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.checker-row { display: flex; gap: 8px; }
.checker-row .form-input { font-family: var(--font-mono); }
.checker-row .button { flex-shrink: 0; }
.strength-meter { height: 8px; margin: 20px 0 12px; border-radius: 4px; background: var(--line); overflow: hidden; }
.strength-meter-fill { height: 100%; width: 0; border-radius: 4px; transition: width 0.35s var(--ease), background-color 0.35s ease; }
.strength-label { font-weight: 700; font-size: 15px; color: var(--text-high); }
.strength-feedback { margin: 12px 0 0; padding-left: 20px; font-size: 14px; line-height: 22px; }
.privacy-note { font-size: 13px; line-height: 20px; color: var(--text-low); margin: 16px 0 0; }
.noscript-note { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.3); color: var(--text-high); font-size: 14px; }

.accordion-header { cursor: pointer; padding-top: 20px !important; padding-bottom: 20px !important; }
.accordion-header .text-color-high { font-size: 17px; }
.accordion-content p { color: var(--text-mid); font-size: 15px; line-height: 24px; }
.accordion-icon::before, .accordion-icon::after { background: var(--cyan) !important; }

/* ---------- About ---------- */
.split-item-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow) !important; }
.features-split .split-item-content h2,
.features-split .split-item-content h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
.principles { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.principles li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}
.principles li:hover { border-color: rgba(56, 189, 248, 0.45); transform: translateY(-3px); }
.principles strong { display: block; margin-bottom: 6px; color: var(--text-high); font-size: 17px; }
@media (min-width: 641px) { .principles { grid-template-columns: 1fr 1fr; } }
.timeline-item-header { color: var(--lime) !important; letter-spacing: 0.08em; }
.timeline-item-header::before { background: var(--cyan) !important; box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18); }
.timeline-item:not(:last-of-type)::before { background: var(--line-strong) !important; }
.timeline-item-content { color: var(--text-high); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 821px) { .contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}
.panel h2, .panel h3 { margin-top: 0; }
.panel .h3 { font-size: 26px; line-height: 34px; }
.form-input, .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--line-strong) !important;
  background-color: var(--panel-2) !important;
  color: var(--text-high);
}
.form-input:focus, .form-select:focus { border-color: var(--cyan) !important; }
.form-input.form-error { border-color: var(--danger) !important; }
.form-input::placeholder { color: var(--text-low); }
textarea.form-input { height: auto; min-height: 160px; resize: vertical; }
.form-label:not(.screen-reader) { display: block; margin-bottom: 6px; font-size: 14px; color: var(--text-mid); }
.form-select {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2338BDF8' stroke-width='2'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
}
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-low); }

.social-labels { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.social-labels a { display: inline-flex; align-items: center; gap: 10px; color: var(--text-high) !important; text-decoration: none !important; }
.social-labels a:hover { color: var(--cyan) !important; }
.social-labels svg { fill: var(--cyan); }
.social-empty { font-size: 14px; line-height: 22px; color: var(--text-low); }

/* ---------- CTA ---------- */
.cta .section-inner { position: relative; overflow: hidden; }
.cta-inner {
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  background:
    url("../images/network-pattern.svg") right center / 900px auto no-repeat,
    linear-gradient(120deg, #0C2A44 0%, var(--panel) 70%) !important;
}
.cta h3 { font-family: var(--font-sans); font-weight: 800; color: var(--text-high); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; }
.cta-action { flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer::before { background: var(--bg-deep) !important; border-top: 1px solid var(--line); }
.footer-nav a { color: var(--text-mid) !important; }
.footer-nav a:hover { color: var(--cyan) !important; }
.footer-social a svg { fill: var(--cyan); }
.footer-copyright { color: var(--text-low); }
.footer-credit { font-size: 12px; line-height: 18px; color: var(--text-low); }
.footer-credit a { color: var(--text-mid) !important; }

/* ---------- Video modal ---------- */
.modal-video .modal-inner { background: #000; border-radius: var(--radius); }
.modal-video .modal-close { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(7, 13, 24, 0.85); border-radius: 50%; }

/* ---------- Without JavaScript: keep everything visible and usable ---------- */
.no-js .accordion-content { max-height: none !important; }
.no-js .tab-panel { display: block !important; opacity: 1 !important; visibility: visible !important; margin-bottom: 24px; }
.no-js .features-tabs .tab-list { display: none; }
@media (max-width: 640px) {
  .no-js .header-nav-toggle { display: none; }
  .no-js .site-header-inner { flex-wrap: wrap; height: auto; padding: 16px 0; }
  .no-js .header-nav-toggle + .header-nav { position: static; max-height: none; opacity: 1; width: 100%; background: transparent; border: 0; }
  .no-js .header-nav-toggle + .header-nav .header-nav-inner { padding: 12px 0 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [class*=reveal-] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Step 3 content components ---------- */
.badge-planned { color: var(--lime); border-color: rgba(163, 230, 53, 0.45); background: rgba(163, 230, 53, 0.08); }
.badge-planned::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--lime); box-sizing: border-box; }

.status-note,
.demo-banner {
  margin-bottom: 32px;
  padding: 16px 20px;
  border: 1px solid rgba(163, 230, 53, 0.35);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius-sm);
  background: rgba(163, 230, 53, 0.06);
  color: var(--text-mid);
  font-size: 15px;
  line-height: 24px;
}
.status-note strong,
.demo-banner strong { display: block; color: var(--text-high); margin-bottom: 2px; }
.status-note { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.demo-banner { margin-bottom: 24px; }

.featured-label { margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-low); }
.featured-media { background: #0D1A2E; }

.topics-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 0 !important;
}
.topics-grid .tiles-item { max-width: none !important; padding: 0 !important; flex-basis: auto !important; }

.reason-list { display: grid; gap: 20px; }
@media (min-width: 821px) { .reason-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.reason {
  position: relative;
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-2) 100%);
  transition: transform 0.25s var(--ease), border-color 0.25s ease;
}
.reason:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.45); }
.reason-number {
  display: block;
  margin-bottom: 18px;
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.jump-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.jump-bar .chip { display: inline-block; text-decoration: none !important; color: var(--text-mid) !important; }
.jump-bar .chip:hover { color: var(--text-high) !important; }
.tip-jump { padding-top: 40px; }
.tip-group { scroll-margin-top: 24px; }
.tip-group .section-inner { padding-top: 48px; padding-bottom: 24px; }
.tip-group-header { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; }
.tip-group-header .topic-icon { flex-shrink: 0; margin-bottom: 0; }
.tip-group-header h2 { font-size: clamp(26px, 3vw, 34px); }
@media (max-width: 640px) { .tip-group-header { align-items: flex-start; } }

/* ---------- Step 4: interactive components ---------- */
[hidden] { display: none !important; }

/* Closed mobile menu must not be reachable with Tab */
@media (max-width: 640px) {
  .js .header-nav-toggle + .header-nav:not(.is-active) { visibility: hidden; }
}
.footer-nav a[aria-current="page"] { color: var(--text-high) !important; text-decoration: underline !important; text-underline-offset: 4px; }

.button[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: rgba(14, 23, 38, 0.92);
  color: var(--cyan) !important;
  box-shadow: var(--shadow);
  text-decoration: none !important;
}
.back-to-top.has-transition { transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0.25s, background-color 0.2s ease; }
.back-to-top:hover { background: var(--cyan); color: var(--on-cyan) !important; }
.back-to-top.is-enhanced:not(.is-visible) { opacity: 0; visibility: hidden; transform: translateY(12px); }

/* Video library controls */
.library-controls {
  display: grid;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto 40px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}
.library-controls .filter-bar { justify-content: flex-start; margin-bottom: 0; }
.search-field .form-input {
  padding-left: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%238492A8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M12.5 12.5L17 17'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 16px center !important;
}
.library-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.library-summary .filter-count { width: auto; text-align: left; font-size: 14px; color: var(--text-mid); }
.empty-state {
  max-width: 560px;
  margin: 8px auto 0;
  padding: 40px 32px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--panel-2);
}
.video-action { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.video-status { margin: 0; font-size: 13px; line-height: 20px; color: var(--text-low); }
.badge-published { color: var(--on-cyan); background: var(--cyan); border-color: var(--cyan); }

/* Tips toolbar and disclosures */
.tip-toolbar { display: grid; gap: 16px; justify-items: center; }
.tip-toolbar .library-summary { justify-content: center; }
.tip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font: 700 14px/22px var(--font-sans);
  cursor: pointer;
}
.tip-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.tip-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.tip-toggle:hover { color: var(--cyan-light); }
.tip-details { margin-top: 12px; }
.no-js .tip-details, .tip-details { animation: tipIn 0.25s var(--ease); }
@keyframes tipIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.tip-details-label { color: var(--text-high); font-weight: 700; }
.tip-card .tip-do { margin-top: 4px; }

/* Contact form validation and demo result */
.field-error {
  display: flex;
  gap: 6px;
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.field-error::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: var(--on-cyan); font-size: 12px; font-weight: 800; }
.field-hint { margin: 6px 0 0; font-size: 13px; line-height: 20px; color: var(--text-low); }
.form-input[aria-invalid="true"] { border-color: var(--danger) !important; }
.demo-result {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(163, 230, 53, 0.4);
  border-radius: var(--radius);
  background: rgba(163, 230, 53, 0.05);
}
.demo-result:focus { outline: 3px solid var(--lime); outline-offset: 3px; }
.demo-result-title { margin: 0 0 6px; color: var(--lime); font-weight: 800; font-size: 18px; }
.message-preview {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 16px 0 24px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 22px;
}
.message-preview dt { color: var(--text-low); font-weight: 700; }
.message-preview dd { margin: 0; color: var(--text-high); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .message-preview { grid-template-columns: 1fr; }
  .message-preview dd { margin-bottom: 8px; }
}

/* ---------- Step 5 (QA): visible focus on form fields ----------
   theme.css removes the outline on .form-input:focus, so keyboard focus on
   inputs was only shown by a border colour change. */
.form-input:focus-visible,
.form-select:focus-visible,
textarea.form-input:focus-visible {
  outline: 3px solid var(--lime) !important;
  outline-offset: 2px;
}
