/* ============================================================
   DESIGN TOKENS & RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Core tokens — kept in sync with aw.com/style.css */
  --bg:           #080d1a;
  --surface:      #0f1929;
  --surface-2:    #162038;
  --surface-3:    #1c2a48;
  --border:       #1e3052;
  --border-light: #2d4472;
  --text:         #ddeaff;
  --text-muted:   #6b8db8;
  --text-subtle:  #364e70;
  --accent:       #4080ff;
  --accent-hover: #6fa0ff;
  --accent-glow:  rgba(64, 128, 255, 0.12);
  --cyan:         #00d4e8;
  --green:        #00c48c;
  --orange:       #f59e0b;
  --red:          #ef4444;
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg:    0 8px 48px rgba(0, 0, 0, 0.5);
  --ease:         0.2s ease;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --max-w:        1200px;
  --nav-h:        64px;
  /* Aliases for iec62443-specific components */
  --teal:         #00d4e8;
  --amber:        #f59e0b;
  --purple:       #8b5cf6;
  --accent-lt:    #6fa0ff;
  --card-bg:      #0f1929;
  --card-hover:   #162038;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.85rem); }
h3 { font-size: 1.0625rem; }
h4 { font-size: 0.9375rem; }

p {
  color: #90aed4;
  line-height: 1.75;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover { color: var(--accent-hover); }

ul, ol { padding-left: 1.25rem; }

li {
  color: #90aed4;
  line-height: 1.75;
  margin-bottom: 0.4rem;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 72px 0; }

.divider {
  height: 1px;
  border: none;
  background: linear-gradient(to right, transparent, var(--border-light), transparent);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8, 13, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  gap: 16px;
}

/* Text-only brand (iec62443.au) */
.nav-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--cyan);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  transition: color var(--ease);
}
.nav-brand:hover { color: var(--text); }

/* Image + text logo (aw.com) */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 38px; width: auto; }
.nav-logo-text {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.15;
}
.nav-logo-text span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
}

.nav-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-2);
}

.nav-links .nav-cta a {
  background: var(--accent);
  color: #fff;
  margin-left: 6px;
  padding: 7px 16px;
}

.nav-links .nav-cta a:hover {
  background: var(--accent-hover);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  padding: 6px;
  line-height: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: calc(var(--nav-h) + 88px) 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(64, 128, 255, 0.11) 0%, transparent 70%),
    radial-gradient(ellipse 45% 40% at 82% 65%, rgba(0, 212, 232, 0.055) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 48, 82, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 48, 82, 0.22) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 20%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 212, 232, 0.07);
  border: 1px solid rgba(0, 212, 232, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 22px;
  background: linear-gradient(145deg, #e8f2ff 0%, #8ab8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero > p,
.hero-inner > p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

/* Hero CTAs (aw.com) */
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Credential badges (aw.com) */
.cred-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.cred-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
}

.cred-badge svg { color: var(--accent); flex-shrink: 0; }

/* ============================================================
   HERO BADGES (iec62443.au)
   ============================================================ */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid;
}

.badge-blue   { color: var(--accent-lt);  background: rgba(64,128,255,0.12);  border-color: rgba(64,128,255,0.3); }
.badge-teal   { color: var(--cyan);        background: rgba(0,212,232,0.1);   border-color: rgba(0,212,232,0.25); }
.badge-green  { color: var(--green);       background: rgba(0,196,140,0.1);   border-color: rgba(0,196,140,0.25); }
.badge-amber  { color: var(--amber);       background: rgba(245,158,11,0.1);  border-color: rgba(245,158,11,0.25); }
.badge-purple { color: var(--purple);      background: rgba(139,92,246,0.1);  border-color: rgba(139,92,246,0.25); }
.badge-red    { color: #f87171;            background: rgba(239,68,68,0.1);   border-color: rgba(239,68,68,0.25); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: var(--font);
  text-decoration: none;
  transition: all var(--ease);
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(64, 128, 255, 0.38);
}

.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); border-color: var(--accent); }
.btn-sm { font-size: 0.875rem; padding: 10px 20px; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-label.spaced {
  margin-top: 3rem;
}

.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 520px; margin: 0 auto; font-size: 1.0625rem; }

/* iec62443.au title/desc pattern */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

.section-desc {
  max-width: 680px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* ============================================================
   SERVICE CARDS (aw.com)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  border-color: rgba(64, 128, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(64, 128, 255, 0.12);
  color: inherit;
}

.service-icon {
  width: 46px; height: 46px;
  background: var(--accent-glow);
  border: 1px solid rgba(64, 128, 255, 0.22);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.service-card h3 { margin-bottom: 10px; font-size: 1.0625rem; color: var(--text); }
.service-card p  { font-size: 0.9375rem; flex: 1; margin-bottom: 22px; color: #7a9cc0; }

.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.875rem; font-weight: 600; color: var(--accent);
  margin-top: auto;
  transition: gap var(--ease), color var(--ease);
}

.service-card:hover .service-link { gap: 10px; color: var(--accent-hover); }

/* ============================================================
   ABOUT / STATS (aw.com)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-grid h2  { margin-bottom: 20px; }
.about-grid p   { margin-bottom: 16px; }
.about-grid p:last-of-type { margin-bottom: 0; }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 18px;
  text-align: center;
}

.stat-number { font-size: 2.1rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 7px; letter-spacing: -0.03em; }
.stat-label  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.35; }
.stat-number-sm { font-size: 1.4rem; }

/* ============================================================
   AVAILABILITY (aw.com)
   ============================================================ */
.availability-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}

.availability-status { display: flex; align-items: flex-start; gap: 16px; }

.status-dot {
  width: 12px; height: 12px;
  background: var(--green); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 196, 140, 0.18);
  flex-shrink: 0; margin-top: 4px;
  animation: pulse-dot 2.2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 196, 140, 0.18); }
  50%       { box-shadow: 0 0 0 9px rgba(0, 196, 140, 0.05); }
}

.status-label { font-weight: 700; font-size: 1.0625rem; color: var(--text); margin-bottom: 4px; }
.status-sub   { font-size: 0.875rem; color: var(--text-muted); }

/* ============================================================
   CONTACT CTA (aw.com)
   ============================================================ */
.contact-cta {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: -60%; left: 50%;
  transform: translateX(-50%);
  width: 640px; height: 320px;
  background: radial-gradient(ellipse, rgba(64, 128, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.contact-cta h2 { margin-bottom: 14px; }
.contact-cta > p { color: var(--text-muted); margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; }
.contact-methods { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   PAGE HERO — subpages (aw.com)
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 60px) 0 52px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 15% 50%, rgba(64, 128, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner { position: relative; z-index: 1; }

.breadcrumb {
  display: flex; width: fit-content;
  align-items: center; gap: 6px;
  font-size: 0.8125rem; color: var(--text-muted);
  margin-bottom: 28px;
  transition: color var(--ease);
}
.breadcrumb:hover { color: var(--text); }

.page-hero h1 { margin-bottom: 16px; text-align: left; max-width: 720px; }
.page-hero .hero-sub { text-align: left; margin: 0; max-width: 640px; font-size: 1.0625rem; }

/* ============================================================
   DETAIL ITEMS — subpages (aw.com)
   ============================================================ */
.content-body { padding: 72px 0; }
.content-block { margin-bottom: 48px; }
.content-block:last-child { margin-bottom: 0; }
.content-block h2 { font-size: 1.25rem; margin-bottom: 14px; }
.content-block p  { font-size: 0.9875rem; }
.content-block p + p { margin-top: 12px; }

.detail-items { display: flex; flex-direction: column; gap: 18px; }

.detail-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 24px 22px 26px;
}
.detail-item h3 { margin-bottom: 8px; font-size: 1rem; }
.detail-item p  { margin: 0; font-size: 0.9375rem; }

.cert-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; padding: 0; margin-top: 16px;
}
.cert-pills li { margin: 0; color: inherit; }
.cert-pills a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.875rem; font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 16px; border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color var(--ease), color var(--ease);
}
.cert-pills a::before { content: '✓'; color: var(--green); font-weight: 700; font-size: 0.8125rem; }
.cert-pills a:hover   { border-color: var(--accent); color: var(--accent); }

.contact-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-top: 64px;
}
.contact-strip h3 { margin-bottom: 6px; font-size: 1.125rem; }
.contact-strip p  { margin: 0; font-size: 0.9375rem; }
.contact-strip-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

p + .detail-items { margin-top: 20px; }
.detail-items-grid { display: grid; flex-direction: unset; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.about-cta { margin-top: 24px; }

/* ============================================================
   FOOTER (shared tokens, different structures)
   ============================================================ */
footer,
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* aw.com structured footer */
.footer { padding: 52px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
.footer-brand img { height: 38px; width: auto; margin-bottom: 14px; }
.footer-brand > p { font-size: 0.875rem; color: var(--text-muted); max-width: 250px; margin-bottom: 18px; }
.footer-contact-links { display: flex; flex-direction: column; gap: 8px; }
.footer-contact-links a { font-size: 0.875rem; color: var(--text-muted); }
.footer-contact-links a:hover { color: var(--accent); }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li { margin: 0; color: inherit; }
.footer-col ul a { font-size: 0.9rem; color: var(--text-muted); transition: color var(--ease); }
.footer-col ul a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-subtle); }

/* iec62443.au simple footer */
footer:not(.footer) { padding: 36px 0; }
footer:not(.footer) p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
footer:not(.footer) p + p { margin-top: 8px; }
footer:not(.footer) a { color: var(--text-muted); }
footer:not(.footer) a:hover { color: var(--text); }
.footer-brand { color: var(--text); }

/* ============================================================
   REALITY VIEW (iec62443.au)
   ============================================================ */
.reality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.reality-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.reality-owner  { border-top: 2px solid rgba(64, 128, 255, 0.55); }
.reality-integr { border-top: 2px solid rgba(0,  196, 140, 0.55); }
.reality-mfr    { border-top: 2px solid rgba(245,158,  11, 0.55); }

.reality-header {
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.reality-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.875rem;
}

.reality-header h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.reality-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.reality-list {
  list-style: none;
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.reality-list li {
  font-size: 0.875rem;
  color: #90aed4;
  line-height: 1.7;
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0;
}

.reality-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.reality-owner  .reality-list li::before { color: var(--accent-lt); }
.reality-integr .reality-list li::before { color: var(--green); }
.reality-mfr    .reality-list li::before { color: var(--amber); }

.reality-bottom-line {
  margin: 0 1.25rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.125rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.reality-bl-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.reality-owner  .reality-bl-label { color: var(--accent-lt); }
.reality-integr .reality-bl-label { color: var(--green); }
.reality-mfr    .reality-bl-label { color: var(--amber); }

/* ============================================================
   OVERVIEW GRID (iec62443.au)
   ============================================================ */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.intro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--ease), transform var(--ease);
}

.intro-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.intro-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.icon-teal   { background: rgba(0,  212, 232, 0.15); }
.icon-blue   { background: rgba(64, 128, 255, 0.15); }
.icon-green  { background: rgba(0,  196, 140, 0.15); }
.icon-amber  { background: rgba(245,158,  11, 0.15); }
.icon-purple { background: rgba(139, 92, 246, 0.15); }
.icon-red    { background: rgba(239, 68,  68, 0.15); }

.intro-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.intro-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   AUDIENCE BLOCKS (iec62443.au)
   ============================================================ */
.audience-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.audience-card { border-radius: var(--radius); padding: 1.5rem; border: 1px solid; }
.audience-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.audience-card p  { font-size: 0.875rem; line-height: 1.65; }

.aud-owner  { background: rgba(64,128,255,0.07);  border-color: rgba(64,128,255,0.25);  color: var(--accent-lt); }
.aud-owner  p { color: #93c5fd; }
.aud-integr { background: rgba(0,196,140,0.07);   border-color: rgba(0,196,140,0.25);   color: var(--green); }
.aud-integr p { color: #6ee7b7; }
.aud-mfr    { background: rgba(245,158,11,0.07);  border-color: rgba(245,158,11,0.25);  color: var(--amber); }
.aud-mfr    p { color: #fcd34d; }

/* ============================================================
   STANDARD SERIES (iec62443.au)
   ============================================================ */
.series-block { margin-bottom: 4rem; }

.series-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.series-badge {
  min-width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 800;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.s1 { background: rgba(0,  212, 232, 0.15); color: var(--teal); }
.s2 { background: rgba(64, 128, 255, 0.15); color: var(--accent-lt); }
.s3 { background: rgba(0,  196, 140, 0.15); color: var(--green); }
.s4 { background: rgba(245,158,  11, 0.15); color: var(--amber); }
.s6 { background: rgba(249,115,  22, 0.15); color: #fb923c; }

.series-header-text h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.series-header-text p  { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.15rem; }

.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1rem;
}

.part-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  transition: border-color var(--ease), transform var(--ease);
  position: relative;
}

.part-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.part-num {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.4rem; margin-top: 0.25rem;
}

.part-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.4; }
.part-card p  { font-size: 0.835rem; color: var(--text-muted); line-height: 1.65; }

.part-status {
  position: absolute; top: 1rem; right: 1rem;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.2rem 0.55rem; border-radius: 999px;
}

.status-pub      { background: rgba(0,  196, 140, 0.15); color: var(--green); }
.status-tr       { background: rgba(139, 92, 246, 0.15); color: var(--purple); }
.status-ts       { background: rgba(0,  212, 232, 0.15); color: var(--teal); }
.status-pas      { background: rgba(249,115,  22, 0.15); color: #fb923c; }
.status-dev      { background: rgba(245,158,  11, 0.15); color: var(--amber); }
.status-withdrawn{ background: rgba(239, 68,  68, 0.15); color: #f87171; }

/* Part number series colours */
.part-num-s1 { color: var(--teal); }
.part-num-s2 { color: var(--accent-lt); }
.part-num-s3 { color: var(--green); }
.part-num-s4 { color: var(--amber); }
.part-num-s6 { color: #fb923c; }

/* Part legend */
.part-legend {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 2rem; align-items: center;
}
.part-legend-label { font-size: 0.75rem; color: var(--text-muted); margin-right: 0.25rem; }
.part-legend .part-status { position: static; }

/* ============================================================
   SECURITY LEVELS (iec62443.au)
   ============================================================ */
.sl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.sl-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid;
  text-align: center;
}

.sl-card .sl-num { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.sl-card h3 { font-size: 0.85rem; font-weight: 700; margin: 0.5rem 0 0.4rem; }
.sl-card p  { font-size: 0.8rem; line-height: 1.55; }

.sl0 { background: rgba(107,141,184,0.07); border-color: rgba(107,141,184,0.2); color: var(--text-muted); }
.sl0 .sl-num { color: var(--text-muted); }
.sl1 { background: rgba(0,196,140,0.07);   border-color: rgba(0,196,140,0.25);  color: var(--green); }
.sl1 p { color: #6ee7b7; }
.sl2 { background: rgba(0,212,232,0.07);   border-color: rgba(0,212,232,0.25);  color: var(--cyan); }
.sl2 p { color: #7dd3fc; }
.sl3 { background: rgba(139,92,246,0.08);  border-color: rgba(139,92,246,0.3);  color: var(--purple); }
.sl3 p { color: #c4b5fd; }
.sl4 { background: rgba(239,68,68,0.07);   border-color: rgba(239,68,68,0.3);   color: #f87171; }
.sl4 p { color: #fca5a5; }

.sl-note {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.sl-note h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.75rem; color: var(--text); }
.sl-note p  { font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); margin: 0; }
.sl-note strong { color: var(--text); }

/* ============================================================
   LIFECYCLE (iec62443.au)
   ============================================================ */
.lifecycle-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  counter-reset: step;
  margin-top: 2rem;
}

.lifecycle-step {
  flex: 1 1 160px;
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: none;
  position: relative;
}

.lifecycle-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.lifecycle-step:last-child  { border-right: 1px solid var(--border); border-radius: 0 var(--radius) var(--radius) 0; }

.lifecycle-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 0.75rem; font-weight: 800;
  background: rgba(64, 128, 255, 0.2); color: var(--accent-lt);
  margin-bottom: 0.75rem;
}

.lifecycle-step h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.35rem; }
.lifecycle-step p  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; }

/* ============================================================
   CTA SECTION (iec62443.au)
   ============================================================ */
.cta-section { padding-top: 0; }

.cta-section .container {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section .container::before {
  content: '';
  position: absolute;
  top: -60%; left: 50%;
  transform: translateX(-50%);
  width: 540px; height: 280px;
  background: radial-gradient(ellipse, rgba(64, 128, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-text {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.cta-link {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.cta-link:hover { color: var(--accent-hover); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-grid    { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .footer-brand  { grid-column: 1 / -1; }
  .parts-grid    { grid-template-columns: 1fr; }
  .reality-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --nav-h: 56px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(8, 13, 26, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    gap: 2px;
  }

  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a  { display: block; padding: 10px 14px; width: 100%; }
  .nav-links .nav-cta a { margin-left: 0; margin-top: 6px; text-align: center; }
  .nav-toggle { display: flex; }

  .hero { padding: calc(var(--nav-h) + 60px) 0 52px; }

  section          { padding: 52px 0; }
  .hero-ctas       { flex-direction: column; align-items: center; }
  .about-stats     { grid-template-columns: 1fr 1fr; }
  .contact-cta     { padding: 40px 24px; }
  .contact-strip   { padding: 28px 24px; }
  .footer-inner    { grid-template-columns: 1fr; gap: 32px; }
  .content-body    { padding: 52px 0; }
  .cta-section .container { padding: 36px 24px; }

  .lifecycle-steps    { flex-direction: column; }
  .lifecycle-step     { border-right: 1px solid var(--border); border-bottom: none; border-radius: 0; }
  .lifecycle-step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .lifecycle-step:last-child  { border-bottom: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }

  footer:not(.footer) { padding: 28px 0; }
}
