/* ===========================================================
   Variables
   =========================================================== */
:root {
  /* Color Palette */
  --color-background: #050816;
  --color-surface: #0b1020;
  --color-surface-alt: #101528;
  --color-text: #f9fafb;
  --color-text-muted: #9ca3af;
  --color-border-subtle: #1f2933;

  --color-primary: #3b82f6; /* Brand-leaning blue for trust/tech */
  --color-primary-soft: rgba(59, 130, 246, 0.12);
  --color-primary-strong: #2563eb;

  --color-success: #22c55e;
  --color-warning: #facc15;
  --color-danger: #ef4444;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-md: 1.0625rem; /* 17px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing scale (0–96px) */
  --space-0: 0;
  --space-1: 0.125rem; /* 2px */
  --space-2: 0.25rem;  /* 4px */
  --space-3: 0.375rem; /* 6px */
  --space-4: 0.5rem;   /* 8px */
  --space-5: 0.625rem; /* 10px */
  --space-6: 0.75rem;  /* 12px */
  --space-8: 1rem;     /* 16px */
  --space-10: 1.25rem; /* 20px */
  --space-12: 1.5rem;  /* 24px */
  --space-16: 2rem;    /* 32px */
  --space-20: 2.5rem;  /* 40px */
  --space-24: 3rem;    /* 48px */
  --space-32: 4rem;    /* 64px */
  --space-40: 5rem;    /* 80px */
  --space-48: 6rem;    /* 96px */

  /* Radii */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 0.75rem;  /* 12px */
  --radius-xl: 1rem;     /* 16px */
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.24);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.32);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.6);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 180ms ease-out;
  --transition-slow: 260ms ease-out;
}

/* Respect prefers-reduced-motion by limiting transitions */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ===========================================================
   Reset / Normalize
   =========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
}

h1, h2, h3, h4, h5, h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

button {
  border: none;
  background: none;
  padding: 0;
}

textarea {
  resize: vertical;
}

:focus:not(:focus-visible) {
  outline: none;
}


/* ===========================================================
   Base Styles
   =========================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--gray-50);
}

h1 {
  font-size: var(--font-size-5xl);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-12);
}

h2 {
  font-size: var(--font-size-3xl);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-8);
}

h3 {
  font-size: var(--font-size-2xl);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
}

h4 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
}

h5 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-3);
}

h6 {
  font-size: var(--font-size-base);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-6);
  color: var(--color-text-muted);
}

strong {
  font-weight: 600;
}

code,
pre {
  font-family: var(--font-mono);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-16) 0;
}


/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-primary-strong);
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}


/* ===========================================================
   Accessibility Utilities
   =========================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}


/* ===========================================================
   Layout Utilities
   =========================================================== */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-8);
  padding-right: var(--space-8);
  max-width: 1100px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* Flex helpers */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

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

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

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* Grid helpers */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-10);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-12);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Spacing utilities (common) */
.section {
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
}

.section--tight {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.section--large {
  padding-top: var(--space-40);
  padding-bottom: var(--space-40);
}


/* ===========================================================
   Components
   =========================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #ffffff !important;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.7);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.8);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border-subtle);
}

.btn-outline:hover {
  background-color: var(--color-surface-alt);
  border-color: var(--color-primary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-muted);
}

.btn-ghost:hover {
  background-color: rgba(15, 23, 42, 0.7);
  color: var(--color-text);
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.btn[disabled],
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}


/* Form Inputs */
.input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(15, 23, 42, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

.input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-soft);
  outline: none;
}

.input[disabled],
textarea[disabled],
select[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

label {
  display: block;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.form-field {
  margin-bottom: var(--space-8);
}

.form-help {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.form-error {
  font-size: var(--font-size-xs);
  color: var(--color-danger);
  margin-top: var(--space-2);
}


/* Card */
.card {
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 55%),
              radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.14), transparent 55%),
              var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(148, 163, 184, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  margin-bottom: var(--space-8);
}

.card-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.card-body {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}


/* Tag / Pill (for case studies, workflows, etc.) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--color-text-muted);
  background-color: rgba(15, 23, 42, 0.8);
}

.tag--primary {
  border-color: rgba(59, 130, 246, 0.7);
  background-color: rgba(15, 23, 42, 0.9);
  color: rgba(191, 219, 254, 1);
}


/* Simple status badges for steps / releases */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.badge--success {
  background-color: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}

.badge--warning {
  background-color: rgba(250, 204, 21, 0.12);
  color: #fef3c7;
}

.badge--danger {
  background-color: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}


/* Simple list styles for process / workflows */
.list-steps {
  list-style: none;
  padding-left: 0;
  margin: 0;
  counter-reset: step;
}

.list-steps li {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: var(--space-8);
}

.list-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: 600;
  background: radial-gradient(circle at 30% 0, rgba(191, 219, 254, 0.4), transparent 60%),
              linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 10px 20px rgba(15, 23, 42, 0.8);
}


/* Callout / Highlight for insights */
.callout {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  padding: var(--space-12);
}

.callout-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-4);
}

.callout-body {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}


/* Simple responsive media wrapper (for app previews, etc.) */
.media-aspect {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: #020617;
}

.media-aspect > img,
.media-aspect > video,
.media-aspect > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Footer base (for consistent style across pages) */
.site-footer {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.site-footer a {
  color: var(--color-text-muted);
}

.site-footer a:hover {
  color: var(--color-primary);
}


/* Header base (suitable for a professional UK software company) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.75));
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-weight: 600;
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-logo-mark {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 1.1rem;
  background: radial-gradient(circle at 25% 15%, #e0f2fe, transparent 55%),
              radial-gradient(circle at 75% 85%, #22d3ee, transparent 55%),
              linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 10px 22px rgba(15, 23, 42, 1);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  padding: 0.25rem 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), #22d3ee);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--gray-50);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--active {
  color: var(--gray-50);
}

.nav-link--active::after {
  width: 100%;
}


/* Hero / Page header helpers */
.page-hero {
  padding-top: var(--space-40);
  padding-bottom: var(--space-32);
}

.page-hero-eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.page-hero-title {
  font-size: clamp(2.25rem, 3vw + 1.5rem, 3.25rem);
  line-height: var(--line-height-tight);
  letter-spacing: -0.04em;
  margin-bottom: var(--space-4);
}

.page-hero-subtitle {
  max-width: 40rem;
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
}


/* Basic responsive stack utility for layout sections */
.stack-md {
  display: flex;
  gap: var(--space-16);
}

.stack-md > * {
  flex: 1 1 0;
}

@media (max-width: 900px) {
  .stack-md {
    flex-direction: column;
  }
}


/* Table (for feature comparison or release details) */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.table th,
.table td {
  padding: 0.75rem 0.5rem;
  text-align: left;
}

.table thead th {
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border-subtle);
}

.table tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.6);
}

.table tbody tr:nth-child(odd) {
  background-color: rgba(15, 23, 42, 0.7);
}

.table tbody tr:hover {
  background-color: rgba(15, 23, 42, 0.9);
}


/* Small helper for contact details */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--font-size-sm);
}

.contact-list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.contact-label {
  min-width: 4.5rem;
  color: var(--color-text-muted);
}

.contact-value {
  color: var(--gray-50);
}


/* End of base.css */
