/* =========================================================================
   Pacewave Communications — modern static site
   ========================================================================= */

:root {
  /* Surfaces */
  --bg-0: #07080b;
  --bg-1: #0d0f14;
  --bg-2: #12151c;
  --bg-3: #181c26;
  --bg-4: #202533;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Brand */
  --primary: #0ea5e9;
  --primary-600: #0284c7;
  --accent: #06b6d4;
  --teal: #14b8a6;
  --gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
  --gradient-soft: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(20,184,166,0.05));

  /* Text */
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  /* Type */
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1200px;
  --container-wide: 1400px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-med: 300ms;
  --t-slow: 600ms;
}

/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; }

::selection { background: var(--primary); color: white; }

/* ----- layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}
.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.75rem 0;
  background: transparent;
  transition: background var(--t-med), backdrop-filter var(--t-med),
              border-color var(--t-med), padding var(--t-med);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(7, 8, 11, 0.72);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom-color: var(--border);
  padding: 0.5rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand { flex-shrink: 0; display: inline-flex; }
.nav-logo {
  height: 44px;
  width: auto;
  max-width: 220px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.navbar.scrolled .nav-logo { opacity: 1; transform: none; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}
.nav-link.btn-contact {
  margin-left: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--gradient);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: transform var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
}
.nav-link.btn-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(14, 165, 233, 0.55);
  color: white;
}
.nav-link.btn-contact::after { display: none; }

/* hamburger */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-fast), top var(--t-med);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--bg-0);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 80%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
  animation: floatGlow 14s ease-in-out infinite;
}
.glow-a {
  width: 520px; height: 520px;
  top: -120px; left: -140px;
  background: radial-gradient(circle, rgba(14,165,233,0.55), transparent 70%);
}
.glow-b {
  width: 600px; height: 600px;
  bottom: -180px; right: -160px;
  background: radial-gradient(circle, rgba(20,184,166,0.45), transparent 70%);
  animation-delay: -6s;
}
@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}
.hero-waves {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 240px;
  opacity: 0.7;
}
.wave { stroke-linecap: round; animation: waveShift 10s linear infinite; }
.wave-2 { animation-duration: 14s; animation-direction: reverse; }
.wave-3 { animation-duration: 18s; }
@keyframes waveShift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s var(--ease) both;
}
.hero-logo {
  width: 100%;
  max-width: 520px;
  height: auto;
}
.hero-content {
  max-width: 820px;
  animation: fadeUp 0.9s var(--ease) 0.15s both;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.5rem 1rem;
  background: rgba(14,165,233,0.08);
  border: 1px solid rgba(14,165,233,0.25);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem;
}
.hero-cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
}
.stat { text-align: center; min-width: 120px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}
.stat-div {
  width: 1px; height: 28px;
  background: var(--border);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast),
              background var(--t-fast), border-color var(--t-fast),
              color var(--t-fast);
  white-space: nowrap;
}
.btn .material-icons-outlined { font-size: 1.1rem; }
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 8px 24px -10px rgba(14,165,233,0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(14,165,233,0.65);
  color: white;
}
.btn-outline {
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--primary);
  color: white;
}
.btn-block { width: 100%; }

/* ==========================================================================
   SECTION PRIMITIVES
   ========================================================================== */
.section {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.9rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 1rem auto 0;
}
.section-head-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.section-head-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 900px) {
  .section-head-split { grid-template-columns: 5fr 7fr; align-items: end; }
}
.lead-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.section-about { background: var(--bg-0); }

.feature-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--t-med) var(--ease),
              border-color var(--t-med), box-shadow var(--t-med);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(14,165,233,0.35), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t-med);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14,165,233,0.25);
}
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: rgba(14,165,233,0.10);
  border: 1px solid rgba(14,165,233,0.22);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  color: var(--primary);
}
.feature-icon .material-icons-outlined { font-size: 28px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   ADVANTAGE
   ========================================================================== */
.section-advantage {
  background: var(--bg-1);
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(14,165,233,0.08), transparent 70%);
}

.advantage-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med);
}
.advantage-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.advantage-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14,165,233,0.25);
}
.advantage-card:hover::before { transform: scaleX(1); }

.advantage-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(14,165,233,0.10);
  border: 1px solid rgba(14,165,233,0.22);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  color: var(--primary);
}
.advantage-metric {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.advantage-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.advantage-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* ==========================================================================
   SOLUTIONS — lifecycle timeline
   ========================================================================== */
.section-solutions { background: var(--bg-0); }

.lifecycle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.lifecycle-line {
  display: none;
}
@media (min-width: 1000px) {
  .lifecycle { grid-template-columns: repeat(4, 1fr); }
  .lifecycle-line {
    display: block;
    position: absolute;
    top: 44px;
    left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(14,165,233,0.4), rgba(20,184,166,0.4), transparent);
  }
}
.lifecycle-step {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  transition: transform var(--t-med), border-color var(--t-med);
}
.lifecycle-step:hover {
  transform: translateY(-3px);
  border-color: rgba(14,165,233,0.3);
}
.lifecycle-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.15em;
  margin-bottom: 0.9rem;
}
.lifecycle-step .material-icons-outlined {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.lifecycle-step h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.lifecycle-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TOPOLOGY
   ========================================================================== */
.section-topology {
  background: var(--bg-1);
}
.topology-image-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-2);
  padding: 1rem;
  box-shadow: 0 30px 80px -40px rgba(14,165,233,0.35);
}
.topology-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   PRODUCTS
   ========================================================================== */
.section-products { background: var(--bg-0); }

.products-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1000px) {
  .products-layout { grid-template-columns: 5fr 7fr; align-items: start; }
  .products-intro { position: sticky; top: 100px; }
}
.products-intro p {
  color: var(--text-muted);
  margin: 1rem 0 1.5rem;
}
.tech-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(14,165,233,0.08);
  border: 1px solid rgba(14,165,233,0.22);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.product-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform var(--t-med), border-color var(--t-med), background var(--t-med);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14,165,233,0.35);
}
.product-card--highlight {
  background:
    linear-gradient(180deg, rgba(14,165,233,0.08), rgba(20,184,166,0.04)),
    var(--bg-2);
  border-color: rgba(14,165,233,0.35);
}
.product-card--wide { grid-column: 1 / -1; }

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.product-type {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.product-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}
.product-datasheet-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(6,182,212,0.4);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.product-datasheet-btn:hover {
  background: rgba(6,182,212,0.1);
  color: #7ee3f1;
}
.product-datasheet-btn .material-icons-outlined { font-size: 1rem; }

.product-coming-soon {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

/* ==========================================================================
   INDUSTRIES
   ========================================================================== */
.section-industries {
  background: var(--bg-1);
  background-image: radial-gradient(ellipse 60% 40% at 80% 100%, rgba(20,184,166,0.08), transparent 70%);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.industry-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform var(--t-med), border-color var(--t-med);
}
.industry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14,165,233,0.28);
}
.industry-card .material-icons-outlined {
  font-size: 38px;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.industry-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.industry-stat {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.75rem;
}
.industry-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.section-contact { background: var(--bg-0); }

.contact-wrapper {
  background:
    linear-gradient(180deg, rgba(14,165,233,0.06), rgba(20,184,166,0.02)),
    var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.contact-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(14,165,233,0.18), transparent 60%);
  pointer-events: none;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.contact-copy .section-tag { margin-bottom: 0.6rem; }
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.contact-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.contact-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.contact-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
}
.contact-benefits .material-icons-outlined {
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-direct {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.contact-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 500;
  transition: color var(--t-fast);
}
.contact-direct-link:hover { color: var(--primary); }
.contact-direct-link .material-icons-outlined { color: var(--primary); font-size: 20px; }

/* form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field-full { grid-column: 1 / -1; }
.field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.contact-form textarea { resize: vertical; min-height: 110px; font-family: inherit; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-subtle); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-3);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.18);
}
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.25rem;
}
.contact-form .btn { grid-column: 1 / -1; }
.form-note {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--text-subtle);
  text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 700px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1.2fr 1.2fr; }
}
.footer-brand .footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 0.85rem;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 360px;
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 0.9rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
}
.footer-copy, .footer-meta {
  color: var(--text-subtle);
  font-size: 0.82rem;
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-on-scroll { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: rgba(7,8,11,0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t-med) var(--ease), opacity var(--t-med);
  }
  .nav-menu.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  .nav-link.btn-contact { margin-left: 0; margin-top: 0.25rem; text-align: center; }
  .nav-toggle { display: block; }
  .navbar .nav-logo { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .hero { padding-top: 100px; }
  .hero-cta { flex-direction: column; width: 100%; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .stat-div { display: none; }
  .contact-form { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SUBPAGES (PSTI · Security Advisories)
   ========================================================================== */

.subpage {
  padding-top: 120px;
  padding-bottom: clamp(3rem, 6vw, 6rem);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}
.subpage::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  background:
    radial-gradient(ellipse 70% 60% at 30% 0%, rgba(14,165,233,0.14), transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(20,184,166,0.08), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
/* Subtle grid mesh, mirroring hero on landing page */
.subpage::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 2rem;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--t-fast);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--text-subtle); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* Subpage hero */
.subpage-hero {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.subpage-hero .hero-tag { margin-bottom: 1.25rem; }
/* Suppress the glowing dot pseudo when an icon is provided inline */
.subpage-hero .hero-tag::before { display: none; }
.subpage-hero .hero-tag .tag-icon {
  font-size: 14px;
  color: var(--primary);
}
.subpage-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 820px;
}
.subpage-hero .lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.65;
}

/* Content primitives */
.subpage h2.sub-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  margin: 3rem 0 1.25rem;
  letter-spacing: -0.015em;
  color: var(--text);
}
.subpage h2.sub-h2:first-of-type { margin-top: 0; }
/* Small utility for inline material icons (replaces inline style attrs) */
.icon-xs { font-size: 12px !important; }
.icon-sm { font-size: 14px !important; }
.icon-md { font-size: 16px !important; }
.icon-lg { font-size: 20px !important; }
.subpage p.sub-body {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 860px;
  margin-bottom: 1rem;
}
.subpage p.sub-body strong { color: var(--text); font-weight: 600; }
.subpage a.inline-link {
  color: var(--primary);
  border-bottom: 1px solid rgba(14,165,233,0.35);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.subpage a.inline-link:hover { color: #7dd3fc; border-bottom-color: var(--primary); }

.sub-divider {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* Callout banner */
.callout {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--gradient-soft);
  border: 1px solid rgba(14,165,233,0.22);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}
.callout-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: grid;
  place-items: center;
}
.callout-icon .material-icons-outlined { font-size: 20px; }
.callout p {
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout p.ref {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Numbered requirement list */
.req-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 0;
}
.req-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med);
}
.req-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14,165,233,0.28);
}
.req-num {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(14,165,233,0.12);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.req-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.req-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Signatory grid */
.sig-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 1rem;
}
.sig-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.sig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.sig-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  margin-bottom: 0.25rem;
}
.sig-field p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* PDF placeholder card */
.pdf-card {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1rem;
}
@media (max-width: 600px) {
  .pdf-card { grid-template-columns: 1fr; text-align: center; }
}
.pdf-thumb {
  width: 60px; height: 76px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  position: relative;
}
.pdf-thumb::before {
  content: 'PDF';
  position: absolute;
  top: 6px; left: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.1em;
}
.pdf-thumb span {
  display: block;
  height: 2px;
  background: var(--border-strong);
  border-radius: 2px;
}
.pdf-thumb span:nth-child(2) { width: 80%; }
.pdf-thumb span:nth-child(3) { width: 60%; }
.pdf-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.pdf-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  line-height: 1.5;
}
.pdf-filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-subtle);
}
.pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-3);
  color: var(--text-subtle);
  cursor: not-allowed;
}
.pdf-download-btn.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.pdf-download-btn.active:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px rgba(14,165,233,0.6);
}

/* CTA box */
.cta-box {
  background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(20,184,166,0.05));
  border: 1px solid rgba(14,165,233,0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.cta-box-text { flex: 1 1 320px; }
.cta-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.cta-box p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
  margin-bottom: 0;
}

/* Related card */
.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1rem;
  transition: transform var(--t-med), border-color var(--t-med);
}
.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14,165,233,0.3);
  color: inherit;
}
.related-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.related-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}
.related-arrow {
  color: var(--primary);
  font-size: 1.5rem;
  transition: transform var(--t-fast);
}
.related-card:hover .related-arrow { transform: translateX(4px); }
.coming-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Contact info table (advisory page) */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.5rem 0;
}
.info-table td {
  padding: 1.1rem 1.25rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.6;
}
.info-table tr:last-child td { border-bottom: 0; }
.info-table td:first-child {
  width: 180px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
}
.info-table td:last-child { color: var(--text); }
.info-table td strong { color: var(--text); }
.info-table .note {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-top: 0.4rem;
}
@media (max-width: 640px) {
  .info-table, .info-table tbody, .info-table tr, .info-table td {
    display: block;
    width: 100%;
  }
  .info-table td:first-child {
    width: auto;
    padding-bottom: 0.25rem;
    border-bottom: 0;
    background: transparent;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }
  .info-table td:last-child { padding-top: 0; }
}
.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 500;
  border-bottom: 1px dashed rgba(14,165,233,0.35);
  transition: color var(--t-fast);
}
.email-link:hover { color: #7dd3fc; }
.email-link .material-icons-outlined { font-size: 18px; }

/* Process flow (advisory) */
.process-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.process-step {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  position: relative;
  transition: border-color var(--t-med), transform var(--t-med);
}
.process-step:hover {
  border-color: rgba(14,165,233,0.3);
  transform: translateY(-2px);
}
.process-step-num {
  width: 36px; height: 36px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.process-step p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.process-ref {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.process-ref a {
  color: var(--primary);
  border-bottom: 1px dashed rgba(14,165,233,0.35);
}

/* Detail grid (2-col cards) */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.detail-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med);
}
.detail-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14,165,233,0.28);
}
.detail-card h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.detail-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}
.detail-card strong { color: var(--text); }

/* Guideline list */
.guideline-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.guideline-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
  align-items: start;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  transition: border-color var(--t-med);
}
.guideline-item:hover { border-color: rgba(14,165,233,0.28); }
.guideline-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(14,165,233,0.12);
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}
.guideline-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  padding-top: 2px;
}
.guideline-item strong { color: var(--text); }

