/* ============================================================
   CMS Design System — Full Visual Identity
   Extracted from Amvoir Landing Page (page.html)
   ============================================================ */

/* ── Google Fonts Import ────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

/* ── CSS Variables (:root) ──────────────────────────────── */
:root {
  --bg: #050816;
  --bg-soft: #0a1024;
  --panel: rgba(12, 18, 38, 0.74);
  --panel-strong: rgba(8, 12, 28, 0.94);
  --stroke: rgba(133, 173, 255, 0.16);
  --stroke-strong: rgba(143, 192, 255, 0.28);
  --text: #eef4ff;
  --muted: #a9b8d2;
  --muted-2: #6f7c99;
  --primary: #bbff4d;
  --primary-strong: #9ef01a;
  --cyan: #66d9ff;
  --blue: #4788ff;
  --violet: #a77cff;
  --amber: #ffb451;
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --gutter: clamp(18px, 3vw, 52px);

  /* CMS-specific aliases */
  --accent: #e74c3c;
  --success: #27ae60;
  --warning: #f39c12;
  --surface: rgba(12, 18, 38, 0.74);
  --border: rgba(133, 173, 255, 0.16);
  --radius: 8px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #071022 0%, #050816 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.menu-open {
  overflow: hidden;
}

/* Fixed grid pattern overlay with radial mask */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.98), transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.98), transparent 80%);
  opacity: 0.06;
  pointer-events: none;
  z-index: -2;
}

/* Fixed radial gradient overlay (blue, green, cyan) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(77, 136, 255, 0.12), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(187, 255, 77, 0.08), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(102, 217, 255, 0.08), transparent 22%);
  pointer-events: none;
  z-index: -1;
}

::selection {
  background: rgba(187, 255, 77, 0.28);
  color: #ffffff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #060a17;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue), var(--primary));
  border-radius: 999px;
  border: 3px solid #060a17;
}

/* Exclude .btn and .button from global anchor styles to preserve button text colors */
a:not(.btn):not(.button) {
  color: inherit;
  text-decoration: none;
}

a:not(.btn):not(.button):hover {
  color: var(--primary);
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: #60708f;
}

:focus-visible {
  outline: 2px solid rgba(187, 255, 77, 0.95);
  outline-offset: 3px;
}

/* ── Typography ─────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  margin: 0 0 0.8rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 6vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
}

h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

h4 {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
  text-wrap: pretty;
}

.gradient-text {
  background: linear-gradient(90deg, #dff5ff 0%, #9bdfff 42%, #bbff4d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: clamp(1.04rem, 1.25vw, 1.22rem);
  color: #c7d4ec;
  max-width: 44ch;
  margin-bottom: 22px;
}

/* ── Layout ─────────────────────────────────────────────── */
main,
.main-content {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
}

.container {
  width: calc(100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.container-narrow {
  width: calc(100% - (var(--gutter) * 2));
  max-width: 800px;
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(16px, 2vw, 24px) 0;
  scroll-margin-top: 70px;
}

.section-head {
  max-width: 780px;
  margin-bottom: 20px;
}

.section-head p {
  max-width: 680px;
  color: #c7d5eb;
}

/* ── Site Background / Aurora ───────────────────────────── */
.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.aurora.a1 {
  width: 600px;
  height: 600px;
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(71, 136, 255, 0.4), transparent 70%);
}

.aurora.a2 {
  width: 500px;
  height: 500px;
  top: 20%;
  right: -80px;
  background: radial-gradient(circle, rgba(187, 255, 77, 0.22), transparent 70%);
}

.aurora.a3 {
  width: 700px;
  height: 700px;
  bottom: -200px;
  left: 30%;
  background: radial-gradient(circle, rgba(102, 217, 255, 0.18), transparent 70%);
}

/* ── Scroll Progress Bar ────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--primary));
  box-shadow: 0 0 20px rgba(187, 255, 77, 0.45);
  z-index: 60;
}

/* ── Header & Navigation ────────────────────────────────── */
.header,
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  z-index: 50;
  padding: 14px 0;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    padding 0.35s ease;
}

.header.scrolled,
.site-header.scrolled {
  background: rgba(5, 8, 22, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(140, 180, 255, 0.12);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.18);
}

/* Push body content below fixed header */
body > main,
body > .main-content {
  padding-top: 60px;
}

.nav-shell,
.header-container {
  min-height: 62px;
  max-width: calc(100% - (var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ── Logo ───────────────────────────────────────────────── */
.logo,
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover,
.site-logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(28, 41, 77, 0.9), rgba(11, 17, 34, 0.9));
  border: 1px solid rgba(140, 192, 255, 0.22);
  box-shadow:
    inset 0 0 20px rgba(102, 217, 255, 0.15),
    0 0 30px rgba(80, 140, 255, 0.15);
  color: #eef7ff;
  flex: 0 0 auto;
}

.logo-mark svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 10px rgba(102, 217, 255, 0.3));
}

.logo-text {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
}

/* ── Desktop Navigation ─────────────────────────────────── */
.nav,
.desktop-nav,
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a,
.desktop-nav a,
.site-nav a {
  position: relative;
  color: #d8e5ff;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease;
}

/* Animated underline on hover */
.nav a::after,
.desktop-nav a::after,
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--primary));
  transition: transform 0.3s ease;
}

.nav a:hover::after,
.desktop-nav a:hover::after,
.site-nav a:hover::after,
.nav a.active::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.nav a:hover,
.desktop-nav a:hover,
.site-nav a:hover {
  color: #ffffff;
}

.nav a.active,
.site-nav a.active {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn,
.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

/* Gradient sheen overlay on hover */
.btn::before,
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before,
.button:hover::before {
  opacity: 1;
}

.btn.small,
.btn-sm {
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
}

.btn.wide,
.w-100 {
  width: 100%;
}

/* Primary */
.btn-primary,
.button-primary {
  background: linear-gradient(135deg, #d8ff7f 0%, #bbff4d 45%, #94e61d 100%);
  color: #071114;
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 12px 30px rgba(187, 255, 77, 0.26),
    0 0 45px rgba(187, 255, 77, 0.18);
}

.btn-primary:hover,
.button-primary:hover {
  transform: translateY(-2px);
  color: #071114;
  box-shadow:
    0 16px 36px rgba(187, 255, 77, 0.32),
    0 0 60px rgba(187, 255, 77, 0.22);
}

/* Secondary — glass-morphism */
.btn-secondary,
.button-secondary {
  background: rgba(12, 18, 38, 0.62);
  color: var(--text);
  border-color: rgba(132, 173, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover,
.button-secondary:hover {
  transform: translateY(-2px);
  color: var(--text);
  border-color: rgba(132, 173, 255, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(102, 217, 255, 0.12),
    0 16px 38px rgba(0, 0, 0, 0.22);
}

/* Danger */
.btn-danger,
.button-danger {
  background: rgba(231, 76, 60, 0.18);
  color: #ff8a80;
  border-color: rgba(231, 76, 60, 0.32);
}

.btn-danger:hover,
.button-danger:hover {
  transform: translateY(-2px);
  background: rgba(231, 76, 60, 0.28);
  border-color: rgba(231, 76, 60, 0.52);
  color: #ffbcb5;
}

/* Success */
.btn-success,
.button-success {
  background: rgba(39, 174, 96, 0.18);
  color: #6bffac;
  border-color: rgba(39, 174, 96, 0.32);
}

.btn-success:hover,
.button-success:hover {
  transform: translateY(-2px);
  background: rgba(39, 174, 96, 0.28);
  border-color: rgba(39, 174, 96, 0.52);
}

/* Warning */
.btn-warning,
.button-warning {
  background: rgba(255, 180, 81, 0.18);
  color: var(--amber);
  border-color: rgba(255, 180, 81, 0.32);
}

.btn-warning:hover,
.button-warning:hover {
  transform: translateY(-2px);
  background: rgba(255, 180, 81, 0.28);
  border-color: rgba(255, 180, 81, 0.52);
}

.btn-group,
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ── Mobile Menu Toggle ─────────────────────────────────── */
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(132, 173, 255, 0.2);
  background: rgba(12, 18, 38, 0.62);
  color: var(--text);
  padding: 0;
  place-items: center;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 99px;
  margin: 4px auto;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.menu-toggle span:nth-child(2) {
  width: 16px;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Mobile Menu Dropdown ───────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 82px;
  left: 50%;
  transform: translate(-50%, -12px);
  width: min(92vw, 520px);
  padding: 20px;
  border-radius: 22px;
  background: rgba(8, 12, 28, 0.94);
  border: 1px solid rgba(132, 173, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
  z-index: 45;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mobile-links {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.mobile-links a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #eaf2ff;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.mobile-links a:hover {
  border-color: rgba(132, 173, 255, 0.22);
  background: rgba(102, 217, 255, 0.04);
  color: #eaf2ff;
}

/* ── Hero Section ───────────────────────────────────────── */
.hero {
  padding-top: 20px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.hero-title {
  font-size: clamp(3.4rem, 5.8vw, 6.35rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 800;
}

.hero-title .line {
  display: block;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pillar grid (hero feature bullets) */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  margin: 22px 0;
  padding: 0;
}

.pillar-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 20, 43, 0.76), rgba(9, 13, 29, 0.92));
  border: 1px solid rgba(132, 173, 255, 0.14);
  font-size: 0.9rem;
  font-weight: 600;
  color: #d8e5ff;
}

.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(102, 217, 255, 0.14), rgba(71, 136, 255, 0.1));
  border: 1px solid rgba(102, 217, 255, 0.18);
  flex: 0 0 auto;
  color: var(--cyan);
}

/* ── Brain Panel / Graph Visualization ──────────────────── */
.brain-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 20, 43, 0.9), rgba(8, 12, 28, 0.96));
  border: 1px solid rgba(132, 173, 255, 0.18);
  box-shadow:
    var(--shadow),
    inset 0 0 40px rgba(71, 136, 255, 0.06);
  border-radius: 32px;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.brain-panel:hover {
  border-color: rgba(132, 173, 255, 0.32);
  box-shadow:
    var(--shadow),
    inset 0 0 60px rgba(71, 136, 255, 0.1),
    0 0 60px rgba(71, 136, 255, 0.1);
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 22px 14px;
}

.panel-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(12, 18, 38, 0.72);
  border: 1px solid rgba(132, 173, 255, 0.14);
  font-size: 0.8rem;
  font-weight: 600;
  color: #c7d4ec;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  box-shadow: 0 0 10px rgba(187, 255, 77, 0.55);
  flex: 0 0 auto;
}

.graph-stage {
  position: relative;
  height: clamp(460px, 41vw, 700px);
  overflow: hidden;
}

/* Repeating grid pattern inside graph stage */
.graph-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(132, 173, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 173, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Radial gradient fade at edges */
.graph-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(8, 12, 28, 0.92) 85%);
  pointer-events: none;
  z-index: 2;
}

#graphCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ── Glow Card ──────────────────────────────────────────── */
.glow-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.glow-card > * {
  position: relative;
  z-index: 1;
}

/* Radial glow that follows mouse via CSS custom properties --mx, --my */
.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 50%),
    rgba(102, 217, 255, 0.12),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* Gradient border mask effect */
.glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(124, 190, 255, 0.22),
    rgba(255, 255, 255, 0.04),
    rgba(187, 255, 77, 0.18)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

.glow-card:hover::before,
.glow-card:focus-within::before {
  opacity: 1;
}

/* ── Eyebrow / Section Kicker ───────────────────────────── */
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(10, 16, 36, 0.62);
  border: 1px solid rgba(132, 173, 255, 0.16);
  color: #dbe7ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.eyebrow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  box-shadow: 0 0 16px rgba(102, 217, 255, 0.55);
  flex: 0 0 auto;
}

/* ── Trust Strip ────────────────────────────────────────── */
.trust-strip {
  position: relative;
  padding: clamp(20px, 3vw, 30px) 0;
}

.trust-strip .container {
  background: rgba(8, 12, 28, 0.72);
  border: 1px solid rgba(132, 173, 255, 0.12);
  border-radius: 22px;
  padding: 28px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.trust-copy {
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 20px;
}

/* Marquee with gradient fade mask */
.marquee-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.9) 15%, rgba(0, 0, 0, 0.9) 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.9) 15%, rgba(0, 0, 0, 0.9) 85%, transparent);
}

.marquee-track {
  display: flex;
  gap: 16px;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(14, 20, 43, 0.76);
  border: 1px solid rgba(132, 173, 255, 0.14);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c7d4ec;
  white-space: nowrap;
}

/* ── Capabilities / Features Section ───────────────────── */
.capabilities-section {
  position: relative;
}

.capabilities-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(71, 136, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.usecase-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.usecase-pills span {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(10, 16, 36, 0.62);
  border: 1px solid rgba(132, 173, 255, 0.16);
  color: #c7d4ec;
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 4-column grid for features (responsive overrides below) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  position: relative;
  min-height: 250px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14, 20, 43, 0.76), rgba(9, 13, 29, 0.92));
  border: 1px solid rgba(132, 173, 255, 0.14);
  box-shadow: var(--shadow);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

/* Glow circle bottom-right */
.feature-card::before {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.22;
  background: var(--card-glow, rgba(102, 217, 255, 0.22));
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(149, 189, 255, 0.26);
}

.feature-card .icon-box {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card .icon-box svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  margin-bottom: 0;
  color: #c3d2ea;
}

/* Colour tones */
.feature-card.tone-blue {
  --card-glow: rgba(86, 152, 255, 0.28);
  border-color: rgba(86, 152, 255, 0.18);
}

.feature-card.tone-blue .icon-box {
  background: rgba(86, 152, 255, 0.12);
  color: #8ed6ff;
  box-shadow:
    inset 0 0 18px rgba(86, 152, 255, 0.16),
    0 0 24px rgba(86, 152, 255, 0.12);
}

.feature-card.tone-green {
  --card-glow: rgba(187, 255, 77, 0.24);
  border-color: rgba(187, 255, 77, 0.18);
}

.feature-card.tone-green .icon-box {
  background: rgba(187, 255, 77, 0.12);
  color: #e5ffb6;
  box-shadow:
    inset 0 0 18px rgba(187, 255, 77, 0.16),
    0 0 24px rgba(187, 255, 77, 0.12);
}

.feature-card.tone-violet {
  --card-glow: rgba(167, 124, 255, 0.24);
  border-color: rgba(167, 124, 255, 0.18);
}

.feature-card.tone-violet .icon-box {
  background: rgba(167, 124, 255, 0.12);
  color: #dfcfff;
  box-shadow:
    inset 0 0 18px rgba(167, 124, 255, 0.16),
    0 0 24px rgba(167, 124, 255, 0.12);
}

.feature-card.tone-amber {
  --card-glow: rgba(255, 180, 81, 0.22);
  border-color: rgba(255, 180, 81, 0.18);
}

.feature-card.tone-amber .icon-box {
  background: rgba(255, 180, 81, 0.12);
  color: #ffd79f;
  box-shadow:
    inset 0 0 18px rgba(255, 180, 81, 0.16),
    0 0 24px rgba(255, 180, 81, 0.12);
}

/* ── Implementation Section ─────────────────────────────── */
.implementation-shell {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.stages-list {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 20, 43, 0.76), rgba(9, 13, 29, 0.92));
  border: 1px solid rgba(132, 173, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Vertical gradient line on the left */
.stages-list::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 51px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(180deg, rgba(102, 217, 255, 0.0), rgba(102, 217, 255, 0.3), rgba(187, 255, 77, 0.3), rgba(187, 255, 77, 0.0));
  border-radius: 1px;
  pointer-events: none;
}

.stage-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(14, 20, 43, 0.5);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.stage-item:hover,
.stage-item.active {
  transform: translateX(4px);
  border-color: rgba(132, 173, 255, 0.2);
  background: rgba(102, 217, 255, 0.04);
}

.stage-item.active {
  border-color: rgba(102, 217, 255, 0.26);
  background: rgba(102, 217, 255, 0.06);
}

.stage-index {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(14, 20, 43, 0.9), rgba(9, 13, 29, 0.9));
  border: 1px solid rgba(132, 173, 255, 0.18);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.stage-item.active .stage-index {
  background: linear-gradient(135deg, rgba(102, 217, 255, 0.2), rgba(71, 136, 255, 0.12));
  border-color: rgba(102, 217, 255, 0.32);
  color: var(--cyan);
}

.stage-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.stage-text small {
  font-size: 0.82rem;
  color: var(--muted-2);
}

.stage-detail {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 20, 43, 0.76), rgba(9, 13, 29, 0.92));
  border: 1px solid rgba(132, 173, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 30px;
}

/* Radial gradient overlays inside detail panel */
.stage-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(102, 217, 255, 0.06), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(187, 255, 77, 0.06), transparent 40%);
  pointer-events: none;
}

.stage-detail.animate-in {
  animation: fadeSlide 0.4s ease forwards;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(102, 217, 255, 0.1);
  border: 1px solid rgba(102, 217, 255, 0.2);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.detail-block {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(132, 173, 255, 0.12);
  background: rgba(10, 16, 36, 0.5);
}

.detail-block strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c7d4ec;
  margin-bottom: 6px;
}

.detail-block p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* Bullet list with gradient dot */
.detail-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.detail-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
}

/* Training banner */
.training-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(187, 255, 77, 0.08), rgba(102, 217, 255, 0.06));
  border: 1px solid rgba(187, 255, 77, 0.16);
  margin-top: 20px;
}

.training-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(187, 255, 77, 0.16), rgba(102, 217, 255, 0.1));
  border: 1px solid rgba(187, 255, 77, 0.22);
  color: var(--primary);
  flex: 0 0 auto;
}

/* ── Advantages Section ─────────────────────────────────── */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.adv-card {
  padding: 24px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(14, 20, 43, 0.76), rgba(9, 13, 29, 0.92));
  border: 1px solid rgba(132, 173, 255, 0.14);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.adv-card:hover {
  transform: translateY(-6px);
}

.adv-card .icon-box {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Per-card gradient colour overrides */
.adv-card:nth-child(1) .icon-box {
  background: rgba(102, 217, 255, 0.12);
  color: var(--cyan);
}

.adv-card:nth-child(2) .icon-box {
  background: rgba(187, 255, 77, 0.12);
  color: var(--primary);
}

.adv-card:nth-child(3) .icon-box {
  background: rgba(167, 124, 255, 0.12);
  color: var(--violet);
}

.adv-card:nth-child(4) .icon-box {
  background: rgba(255, 180, 81, 0.12);
  color: var(--amber);
}

.adv-card:nth-child(5) .icon-box {
  background: rgba(71, 136, 255, 0.12);
  color: var(--blue);
}

.adv-card h3 {
  margin-bottom: 8px;
  color: var(--text);
}

.adv-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ── Pricing Section ────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(14, 20, 43, 0.76), rgba(9, 13, 29, 0.92));
  border: 1px solid rgba(132, 173, 255, 0.14);
  box-shadow: var(--shadow);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
}

/* Featured / highlighted pricing card */
.pricing-card.featured {
  background: linear-gradient(180deg, rgba(20, 30, 60, 0.9), rgba(10, 14, 34, 0.96));
  border-color: rgba(187, 255, 77, 0.28);
  box-shadow:
    var(--shadow),
    0 0 60px rgba(187, 255, 77, 0.1);
}

.pricing-card.featured:hover {
  border-color: rgba(187, 255, 77, 0.44);
  box-shadow:
    var(--shadow),
    0 0 80px rgba(187, 255, 77, 0.16);
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  align-self: flex-start;
}

.pricing-badge.badge-blue {
  background: rgba(71, 136, 255, 0.14);
  color: #8ec4ff;
  border: 1px solid rgba(71, 136, 255, 0.28);
}

.pricing-badge.badge-green {
  background: rgba(187, 255, 77, 0.14);
  color: var(--primary);
  border: 1px solid rgba(187, 255, 77, 0.28);
}

.pricing-badge.badge-violet {
  background: rgba(167, 124, 255, 0.14);
  color: #c9b3ff;
  border: 1px solid rgba(167, 124, 255, 0.28);
}

.price-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.price-line strong {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.price-line span {
  font-size: 0.85rem;
  color: var(--muted-2);
}

/* Bullet list with gradient dot */
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  color: var(--muted);
}

.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
}

/* ── CTA Section ────────────────────────────────────────── */
.cta-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
  background: linear-gradient(135deg, rgba(14, 20, 43, 0.9), rgba(8, 12, 28, 0.96));
  border: 1px solid rgba(132, 173, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}

/* Radial gradient overlays */
.cta-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(71, 136, 255, 0.1), transparent 40%),
    radial-gradient(circle at 90% 50%, rgba(187, 255, 77, 0.08), transparent 40%);
  pointer-events: none;
}

.cta-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.cta-points {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.cta-point {
  position: relative;
  padding: 14px 16px 14px 48px;
  border-radius: 14px;
  border: 1px solid rgba(132, 173, 255, 0.12);
  background: rgba(10, 16, 36, 0.5);
  font-size: 0.92rem;
  color: #c7d4ec;
}

/* Gradient circle on left edge */
.cta-point::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
}

/* Contact / Demo form */
.demo-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 22px;
  background: rgba(8, 12, 28, 0.72);
  border: 1px solid rgba(132, 173, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field {
  display: grid;
  gap: 10px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #c7d4ec;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(132, 173, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.95em;
  color: var(--text);
  background: rgba(12, 18, 38, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

/* Custom select arrow */
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a9b8d2' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(102, 217, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(102, 217, 255, 0.1);
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted-2);
  text-align: center;
}

.form-note.success {
  color: #6bffac;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer,
.site-footer {
  position: relative;
  padding: 28px 0 48px;
  z-index: 1;
}

.footer-shell,
.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px 28px;
  border-radius: 26px;
  background: rgba(8, 12, 28, 0.72);
  border: 1px solid rgba(132, 173, 255, 0.12);
  box-shadow: var(--shadow);
}

.footer .logo,
.site-footer .logo {
  margin-bottom: 14px;
}

.footer p,
.site-footer p {
  margin: 0;
  color: #96a8c8;
  max-width: 380px;
}

.footer-title {
  margin: 0 0 14px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fb0cb;
  line-height: normal;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #d4e4ff;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #f1f7ff;
}

.footer-copyright {
  margin: 0;
  color: #96a8c8;
  font-size: 0.9em;
}

/* Powered-by pills */
.powered {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.power-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(132, 173, 255, 0.18);
  background: rgba(12, 18, 38, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c7d4ec;
}

/* ── Reveal Animations (JS-enhanced) ────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Alerts & Flash Messages ────────────────────────────── */
.alert,
.flash-message {
  padding: 14px 18px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.95em;
  line-height: 1.5;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.alert-success,
.flash-success {
  background: rgba(39, 174, 96, 0.14);
  color: #6bffac;
  border-color: rgba(39, 174, 96, 0.28);
}

.alert-error,
.alert-danger,
.flash-error,
.flash-danger {
  background: rgba(231, 76, 60, 0.14);
  color: #ff8a80;
  border-color: rgba(231, 76, 60, 0.28);
}

.alert-warning,
.flash-warning {
  background: rgba(255, 180, 81, 0.14);
  color: var(--amber);
  border-color: rgba(255, 180, 81, 0.28);
}

.alert-info,
.flash-info {
  background: rgba(102, 217, 255, 0.1);
  color: var(--cyan);
  border-color: rgba(102, 217, 255, 0.24);
}

.error {
  background: rgba(231, 76, 60, 0.14);
  color: #ff8a80;
  border: 1px solid rgba(231, 76, 60, 0.28);
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
}

.flash-messages {
  margin-bottom: 20px;
}

/* ── Forms (global) ─────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  color: #c7d4ec;
  font-size: 0.95em;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="datetime-local"],
input[type="date"],
input[type="time"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(132, 173, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 1em;
  font-family: inherit;
  line-height: 1.5;
  color: var(--text);
  background: rgba(12, 18, 38, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(102, 217, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(102, 217, 255, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input[type="file"] {
  font-size: 0.95em;
  padding: 8px 0;
  color: var(--muted);
  background: transparent;
  border: none;
}

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a9b8d2' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 0.85em;
}

fieldset {
  border: 1px solid rgba(132, 173, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 22px;
  background: rgba(10, 16, 36, 0.4);
}

fieldset legend {
  font-weight: 700;
  color: #c7d4ec;
  padding: 0 10px;
  font-size: 1.05em;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

label.required::after,
.required label::after {
  content: " *";
  color: #ff8a80;
  font-weight: 700;
}

/* Validation states */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select,
input.is-invalid,
textarea.is-invalid,
select.is-invalid {
  border-color: rgba(231, 76, 60, 0.5);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.form-group.has-error .error-message {
  display: block;
  margin-top: 5px;
  color: #ff8a80;
  font-size: 0.85em;
}

.form-group.has-success input,
.form-group.has-success textarea,
.form-group.has-success select,
input.is-valid,
textarea.is-valid,
select.is-valid {
  border-color: rgba(39, 174, 96, 0.5);
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.12);
}

form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, #d8ff7f 0%, #bbff4d 45%, #94e61d 100%);
  color: #071114;
  border: none;
  border-radius: 16px;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 12px 30px rgba(187, 255, 77, 0.26);
}

form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px rgba(187, 255, 77, 0.32),
    0 0 60px rgba(187, 255, 77, 0.22);
}

form button[type="submit"]:focus {
  outline: 2px solid rgba(187, 255, 77, 0.95);
  outline-offset: 3px;
}

form button[type="submit"].btn-danger {
  background: rgba(231, 76, 60, 0.18);
  color: #ff8a80;
  border: 1px solid rgba(231, 76, 60, 0.32);
  box-shadow: none;
}

form button[type="submit"].btn-danger:hover {
  background: rgba(231, 76, 60, 0.28);
  box-shadow: 0 8px 24px rgba(231, 76, 60, 0.2);
}

/* ── Login / Auth Forms ─────────────────────────────────── */
.login-form,
.admin-login-container {
  max-width: 420px;
  margin: 80px auto 40px;
  padding: 36px;
  background: rgba(8, 12, 28, 0.82);
  border: 1px solid rgba(132, 173, 255, 0.16);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-form h2,
.admin-login-container h1 {
  margin-bottom: 24px;
  text-align: center;
  color: var(--text);
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.login-form button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #d8ff7f 0%, #bbff4d 45%, #94e61d 100%);
  color: #071114;
  border: none;
  border-radius: 16px;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(187, 255, 77, 0.32);
}

/* ── Admin Dashboard ────────────────────────────────────── */
.admin-dashboard-container {
  max-width: calc(100% - (var(--gutter) * 2));
  margin: 0 auto;
  padding: 30px 0;
}

.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(132, 173, 255, 0.14);
}

.dashboard-header h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text);
  margin: 0;
}

.dashboard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dashboard-nav a {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: rgba(12, 18, 38, 0.62);
  color: #d8e5ff;
  border: 1px solid rgba(132, 173, 255, 0.2);
  border-radius: 14px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 600;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dashboard-nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(132, 173, 255, 0.4);
  background: rgba(102, 217, 255, 0.06);
  color: #ffffff;
}

.dashboard-nav a[href*="logout"],
.dashboard-nav a[href*="delete"] {
  border-color: rgba(231, 76, 60, 0.28);
  color: #ff8a80;
  background: rgba(231, 76, 60, 0.1);
}

.dashboard-nav a[href*="logout"]:hover,
.dashboard-nav a[href*="delete"]:hover {
  background: rgba(231, 76, 60, 0.18);
  border-color: rgba(231, 76, 60, 0.48);
  color: #ffbcb5;
}

.dashboard-nav a[href*="cancel"],
.dashboard-nav a[href*="back"],
.dashboard-nav a[href*="Back"],
.dashboard-nav a[href*="Cancel"] {
  border-color: rgba(132, 173, 255, 0.14);
  color: var(--muted);
}

.dashboard,
.dashboard-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

.dashboard-section {
  background: linear-gradient(180deg, rgba(14, 20, 43, 0.76), rgba(9, 13, 29, 0.92));
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(132, 173, 255, 0.14);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.dashboard-section:hover {
  transform: translateY(-3px);
  border-color: rgba(149, 189, 255, 0.26);
}

.dashboard-section h2 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.3em);
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.dashboard-section p {
  color: var(--muted);
  margin-bottom: 14px;
}

/* ── Tables ─────────────────────────────────────────────── */
table,
.pages-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  background: rgba(10, 16, 36, 0.5);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.95em;
}

table thead,
.pages-table thead {
  background: rgba(8, 12, 28, 0.82);
  border-bottom: 1px solid rgba(132, 173, 255, 0.18);
}

table th,
.pages-table th {
  padding: 13px 16px;
  text-align: left;
  font-weight: 700;
  color: #c7d4ec;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  border-bottom: 1px solid rgba(132, 173, 255, 0.14);
  user-select: none;
}

table th.sortable {
  cursor: pointer;
}

table th.sortable:hover {
  color: #ffffff;
}

table th.sortable::after {
  content: " ↕";
  opacity: 0.4;
  font-size: 0.8em;
}

table th.sorted-asc::after {
  content: " ↑";
  opacity: 1;
  color: var(--primary);
}

table th.sorted-desc::after {
  content: " ↓";
  opacity: 1;
  color: var(--primary);
}

table td,
.pages-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(132, 173, 255, 0.07);
  color: var(--muted);
  vertical-align: middle;
}

table tbody tr:hover,
.pages-table tbody tr:hover {
  background: rgba(102, 217, 255, 0.04);
}

table tbody tr:nth-child(even),
.pages-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

table tbody tr:nth-child(even):hover,
.pages-table tbody tr:nth-child(even):hover {
  background: rgba(102, 217, 255, 0.04);
}

table td a,
.pages-table td a {
  color: var(--cyan);
  text-decoration: none;
  margin-right: 10px;
  font-weight: 500;
  font-size: 0.9em;
  transition: color 0.2s ease;
}

table td a:hover,
.pages-table td a:hover {
  color: #a0ecff;
  text-decoration: underline;
}

table td a[href*="delete"],
.pages-table td a[href*="delete"] {
  color: #ff8a80;
}

table td a[href*="delete"]:hover,
.pages-table td a[href*="delete"]:hover {
  color: #ffbcb5;
}

table td form {
  display: inline;
}

table td form button[type="submit"] {
  padding: 5px 12px;
  font-size: 0.85em;
  background: rgba(231, 76, 60, 0.18);
  color: #ff8a80;
  border: 1px solid rgba(231, 76, 60, 0.32);
  border-radius: 8px;
  box-shadow: none;
}

table td form button[type="submit"]:hover {
  background: rgba(231, 76, 60, 0.28);
  transform: none;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.78em;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-published {
  background: rgba(39, 174, 96, 0.18);
  color: #6bffac;
  border: 1px solid rgba(39, 174, 96, 0.28);
}

.badge-draft {
  background: rgba(255, 180, 81, 0.14);
  color: var(--amber);
  border: 1px solid rgba(255, 180, 81, 0.28);
}

.badge-primary {
  background: rgba(71, 136, 255, 0.18);
  color: var(--blue);
  border: 1px solid rgba(71, 136, 255, 0.28);
}

.badge-danger {
  background: rgba(231, 76, 60, 0.18);
  color: #ff8a80;
  border: 1px solid rgba(231, 76, 60, 0.28);
}

/* ── Blog ───────────────────────────────────────────────── */
.blog-container {
  max-width: calc(100% - (var(--gutter) * 2));
  margin: 0 auto;
  padding: 30px 0;
}

.blog-header {
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(132, 173, 255, 0.14);
  padding-bottom: 24px;
}

.blog-header h1 {
  margin: 0 0 22px 0;
  color: var(--text);
}

.blog-posts {
  margin-bottom: 40px;
}

.blog-post-item {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid rgba(132, 173, 255, 0.14);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(14, 20, 43, 0.76), rgba(9, 13, 29, 0.92));
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-item:hover {
  transform: translateY(-4px);
  border-color: rgba(149, 189, 255, 0.26);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
}

.blog-post-item h2 {
  margin: 0 0 10px 0;
}

.blog-post-item h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-post-item h2 a:hover {
  color: var(--primary);
}

.blog-post-meta {
  color: var(--muted-2);
  font-size: 0.9em;
  margin-bottom: 14px;
}

.blog-post-excerpt {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ── Search Form ────────────────────────────────────────── */
.search-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
}

.search-form input[type="text"] {
  flex: 1;
}

.search-form button {
  padding: 11px 22px;
  background: linear-gradient(135deg, #d8ff7f 0%, #bbff4d 45%, #94e61d 100%);
  color: #071114;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1em;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.search-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(187, 255, 77, 0.28);
}

/* ── Tags ───────────────────────────────────────────────── */
.blog-post-tags,
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag-link {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(71, 136, 255, 0.12);
  color: #a8c8ff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.83em;
  font-weight: 600;
  border: 1px solid rgba(71, 136, 255, 0.22);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tag-link:hover {
  background: rgba(71, 136, 255, 0.22);
  color: #d4e8ff;
  border-color: rgba(71, 136, 255, 0.4);
}

.tag-link.active {
  background: rgba(187, 255, 77, 0.16);
  color: var(--primary);
  border-color: rgba(187, 255, 77, 0.3);
}

/* ── Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 9px 14px;
  border: 1px solid rgba(132, 173, 255, 0.18);
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95em;
  background: rgba(12, 18, 38, 0.5);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination a:hover {
  background: rgba(102, 217, 255, 0.08);
  color: var(--text);
  border-color: rgba(102, 217, 255, 0.3);
}

.pagination .current-page {
  background: rgba(187, 255, 77, 0.14);
  color: var(--primary);
  border-color: rgba(187, 255, 77, 0.3);
  font-weight: 700;
}

.pagination .disabled {
  color: var(--muted-2);
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination .page-numbers {
  display: flex;
  gap: 5px;
}

/* ── Empty State ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted-2);
  font-size: 1.15em;
}

.empty-state a {
  color: var(--cyan);
}

/* ── Post / Page Content ─────────────────────────────────── */
.post-container,
.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 0;
}

.post-header,
.page-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(132, 173, 255, 0.14);
}

.post-header h1,
.page-header h1 {
  margin: 0 0 16px 0;
  color: var(--text);
  line-height: 1.1;
}

.post-meta {
  color: var(--muted-2);
  font-size: 0.95em;
  margin-bottom: 14px;
}

.post-content,
.page-content {
  line-height: 1.85;
  color: var(--muted);
  font-size: 1.05em;
  margin-bottom: 40px;
}

.post-content p,
.page-content p {
  margin-bottom: 1.1em;
  color: var(--muted);
}

.post-content.plaintext,
.page-content.plaintext {
  white-space: pre-wrap;
}

.post-content h2,
.page-content h2 {
  font-size: 1.8em;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  color: var(--text);
}

.post-content h3,
.page-content h3 {
  font-size: 1.4em;
  margin-top: 1.3em;
  margin-bottom: 0.6em;
  color: #c7d4ec;
}

.post-content h4,
.page-content h4 {
  font-size: 1.2em;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  color: #b0c2dc;
}

.post-content ul,
.post-content ol,
.page-content ul,
.page-content ol {
  margin-bottom: 1em;
  padding-left: 2em;
  color: var(--muted);
}

.post-content li,
.page-content li {
  margin-bottom: 0.5em;
}

.post-content a,
.page-content a {
  color: var(--cyan);
  text-decoration: none;
}

.post-content a:hover,
.page-content a:hover {
  text-decoration: underline;
  color: #a0ecff;
}

.post-content img,
.page-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(132, 173, 255, 0.14);
}

.post-content blockquote,
.page-content blockquote {
  border-left: 3px solid var(--cyan);
  padding: 14px 20px;
  margin: 0 0 1.2em 0;
  color: var(--muted);
  font-style: italic;
  background: rgba(102, 217, 255, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-content code,
.page-content code {
  background: rgba(10, 16, 36, 0.7);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.88em;
  color: var(--primary);
  border: 1px solid rgba(187, 255, 77, 0.16);
}

.post-content pre,
.page-content pre {
  background: rgba(5, 8, 22, 0.9);
  border: 1px solid rgba(132, 173, 255, 0.14);
  padding: 1.2em;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin-bottom: 1.2em;
  line-height: 1.6;
}

.post-content pre code,
.page-content pre code {
  background: transparent;
  padding: 0;
  color: #c7d4ec;
  border: none;
  font-size: 0.9em;
}

.post-content hr,
.page-content hr {
  border: none;
  border-top: 1px solid rgba(132, 173, 255, 0.14);
  margin: 2em 0;
}

/* ── Post Footer / Back Link ─────────────────────────────── */
.post-footer {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(132, 173, 255, 0.14);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: rgba(12, 18, 38, 0.62);
  color: var(--text);
  border: 1px solid rgba(132, 173, 255, 0.2);
  border-radius: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.back-link:hover {
  transform: translateY(-2px);
  border-color: rgba(132, 173, 255, 0.42);
  color: #ffffff;
}

.back-link::before {
  content: '←';
}

/* ── Error Pages ────────────────────────────────────────── */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: 5em;
  font-weight: 800;
  margin: 0;
  line-height: 1;
  background: linear-gradient(90deg, #dff5ff 0%, #9bdfff 42%, #bbff4d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.error-title {
  font-size: 1.5em;
  color: var(--text);
  margin: 12px 0 22px 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.error-message {
  font-size: 1.05em;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
  margin: 0 0 36px 0;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ── Logout Link ────────────────────────────────────────── */
.logout-link {
  display: inline-block;
  margin-top: 20px;
  color: #ff8a80;
  text-decoration: none;
  transition: color 0.2s ease;
}

.logout-link:hover {
  text-decoration: underline;
  color: #ffbcb5;
}

/* ── Post & Page Cards ──────────────────────────────────── */
.post-card,
.page-card {
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(132, 173, 255, 0.14);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(14, 20, 43, 0.76), rgba(9, 13, 29, 0.92));
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover,
.page-card:hover {
  transform: translateY(-4px);
  border-color: rgba(149, 189, 255, 0.26);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
}

.post-card h3,
.page-card h3 {
  margin: 0 0 8px 0;
}

.post-card h3 a,
.page-card h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card h3 a:hover,
.page-card h3 a:hover {
  color: var(--primary);
}

.post-excerpt,
.page-description {
  color: var(--muted);
  line-height: 1.7;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 11px 22px;
  background: linear-gradient(135deg, #d8ff7f 0%, #bbff4d 45%, #94e61d 100%);
  color: #071114;
  border-radius: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.view-all-link:hover {
  transform: translateY(-2px);
  color: #071114;
  box-shadow: 0 12px 32px rgba(187, 255, 77, 0.28);
}

/* ── Utility Classes ────────────────────────────────────── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-muted   { color: var(--muted); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.d-flex          { display: flex; }
.d-block         { display: block; }
.d-inline-block  { display: inline-block; }
.d-none          { display: none; }

.flex-wrap       { flex-wrap: wrap; }
.align-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* ── Keyframe Animations ────────────────────────────────── */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 10px rgba(187, 255, 77, 0.55); }
  50%       { box-shadow: 0 0 22px rgba(187, 255, 77, 0.9); }
}

.status-dot {
  animation: pulse-dot 2.4s ease-in-out infinite;
}

/* ── Responsive Breakpoints ─────────────────────────────── */

/* Large screens — prevent hero title wrapping */
@media (min-width: 1200px) {
  .hero-title .line {
    white-space: nowrap;
  }
}

/* Desktop: show dashboard grid, hide mobile menu entirely */
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }

  .dashboard,
  .dashboard-sections {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/* Wide but not full — collapse feature & advantage grids */
@media (max-width: 1480px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advantages-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Medium-large — collapse hero / implementation / cta to 1 col */
@media (max-width: 1180px) {
  .hero {
    padding-top: 60px;
    padding-bottom: 30px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-title .line {
    white-space: normal;
  }

  .implementation-shell {
    grid-template-columns: 1fr;
  }

  .cta-shell {
    grid-template-columns: 1fr;
  }
}

/* Medium — collapse pricing & footer to 1 col */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-shell,
  .footer-container {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet — hide desktop nav, show hamburger */
@media (max-width: 900px) {
  .desktop-nav,
  .nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .section {
    padding: clamp(16px, 2.5vw, 24px) 0;
  }

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

/* Small tablet */
@media (max-width: 760px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .footer-shell,
  .footer-container {
    padding: 22px;
  }

  .dashboard-section {
    overflow-x: auto;
  }

  table,
  .pages-table {
    font-size: 0.85em;
  }

  table th,
  .pages-table th,
  table td,
  .pages-table td {
    padding: 9px 10px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .container,
  .container-narrow {
    width: calc(100% - 24px);
  }

  /* Hide the CTA button in nav on very small screens */
  .nav-actions .btn.small {
    display: none;
  }

  .hero {
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .hero-title {
    font-size: clamp(2.75rem, 12vw, 4.65rem);
    line-height: 0.92;
  }

  /* Full-width buttons on mobile */
  .btn,
  .button {
    width: 100%;
  }

  /* Restore auto-width in contexts that should NOT be full-width */
  .btn-group .btn,
  .btn-group .button,
  .action-buttons .btn,
  .action-buttons .button,
  .dashboard-nav .btn,
  .dashboard-nav a,
  .nav-actions .btn,
  table .btn,
  .pagination .btn {
    width: auto;
  }

  .header-container,
  .nav-shell {
    flex-direction: row;
  }

  .footer-shell,
  .footer-container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-form {
    flex-direction: column;
    max-width: 100%;
  }

  .search-form button {
    width: 100%;
  }

  .error-code {
    font-size: 4em;
  }

  .error-title {
    font-size: 1.3em;
  }

  .cta-shell {
    padding: 24px;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 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;
  }

  .marquee-track {
    animation: none;
  }

  .status-dot {
    animation: none;
  }
}

/* ── Print Styles ───────────────────────────────────────── */
@media print {
  .site-header,
  .header,
  .site-footer,
  .footer,
  .dashboard-nav,
  .search-form,
  .pagination,
  .back-link,
  .btn,
  .button,
  .scroll-progress,
  .mobile-menu,
  .menu-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  body::before,
  body::after {
    display: none;
  }

  .post-content,
  .page-content {
    font-size: 12pt;
    color: black;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .post-content code,
  .page-content code {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
  }

  .post-content pre,
  .page-content pre {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
  }
}
/* === mobile-responsive-contact-fix === */
/*
 * Mobile-responsive fix for the two-column contact layout used in the
 * contact-us page content.  The inline grid
 *   grid-template-columns: 1fr 1.6fr
 * is great on desktop but needs to collapse on smaller viewports.
 *
 * Because the grid is set via an inline style attribute we override it
 * with a high-specificity rule inside a media query.
 */

/* Tablet – narrow the right column a bit */
@media (max-width: 900px) {
  /* two-column contact section */
  .container[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* card grid used in the info panel */
  .card-grid {
    grid-template-columns: 1fr !important;
  }

  /* hero headline on the contact page */
  .hero-section h1 {
    font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  /* full-width form inputs */
  .demo-form .field-grid,
  form .field-grid {
    grid-template-columns: 1fr !important;
  }

  /* glass cards: reduce internal padding */
  .glass-card {
    padding: 1.25rem !important;
  }

  /* submit button: full-width on mobile */
  form .btn,
  form .button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* office / info cards inside the left column */
  .card-grid {
    grid-template-columns: 1fr !important;
  }
}
/* === end mobile-responsive-contact-fix === */