/* ============================================
   NIKIVYA SEMICONDUCTOR — Design System
   Inspired by: Anthropic + Google Marketing Platform
   Palette: Gold (#F8B527) / Charcoal (#1A1A1A) / White
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --gold: #F8B527;
  --gold-dark: #D49A1F;
  --gold-light: #FFF4D6;
  --charcoal: #1A1A1A;
  --charcoal-light: #2D2D2D;
  --slate: #4A4A4A;
  --grey-700: #555555;
  --grey-500: #888888;
  --grey-300: #C4C4C4;
  --grey-100: #F5F5F3;
  --white: #FFFFFF;
  --cream: #FAF9F6;
  --bg-section-alt: #F8F7F4;
  --border-light: #E8E6DC;
  --success: #2E7D32;
  --error: #D32F2F;

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes — fluid clamp */
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.77rem + 0.2vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.88rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.75rem);
  --text-4xl: clamp(2.25rem, 1.7rem + 2.2vw, 3.5rem);
  --text-5xl: clamp(2.75rem, 2rem + 3vw, 4.5rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;
  --site-margin: clamp(1.25rem, 3vw, 5rem);
  --section-padding: clamp(3rem, 6vw, 7rem);

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 50px rgba(0,0,0,0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); font-weight: 700; line-height: 1.08; }
h2 { font-size: var(--text-3xl); line-height: 1.15; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); font-weight: 500; }
h6 { font-size: var(--text-base); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--slate);
}

.text-lg { font-size: var(--text-lg); line-height: 1.6; }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }

.text-gold { color: var(--gold); }
.text-slate { color: var(--slate); }
.text-grey { color: var(--grey-500); }
.text-white { color: var(--white); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--site-margin);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--wide {
  max-width: var(--max-width-wide);
}

.section {
  padding: var(--section-padding) 0;
}

.section--alt {
  background-color: var(--bg-section-alt);
}

.section--dark {
  background-color: var(--charcoal);
  color: var(--white);
}

.section--dark p { color: var(--grey-300); }
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }

.section--gold {
  background-color: var(--gold);
  color: var(--charcoal);
}

/* --- Grid System --- */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

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

/* --- Flex Utilities --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--site-margin);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__logo-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--charcoal);
}

.nav__logo-sub {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--slate);
  transition: color var(--duration-fast) ease;
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--charcoal);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  margin-left: var(--space-lg);
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform var(--duration-normal) var(--ease-out), opacity var(--duration-fast) ease;
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: 100px var(--space-2xl) var(--space-2xl);
    background: var(--white);
    box-shadow: var(--shadow-xl);
    transition: right var(--duration-slow) var(--ease-out);
  }

  .nav__links.open { right: 0; }
  .nav__cta { margin-left: 0; margin-top: var(--space-lg); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(248, 181, 39, 0.35);
}

.btn--secondary {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn--secondary:hover {
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--dark {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

.btn--dark:hover {
  background: var(--charcoal-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 26, 26, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

.btn--ghost:hover {
  color: var(--gold-dark);
}

.btn--ghost .btn__arrow {
  transition: transform var(--duration-normal) var(--ease-out);
}

.btn--ghost:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-base);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
}

.btn--white {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card--flat {
  border: none;
  background: var(--bg-section-alt);
}

.card--flat:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--gold-light);
  color: var(--gold-dark);
  margin-bottom: var(--space-lg);
}

.card__icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--charcoal);
}

.card__text {
  font-size: var(--text-sm);
  color: var(--slate);
  line-height: 1.65;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--charcoal);
  transition: color var(--duration-fast) ease, gap var(--duration-normal) var(--ease-out);
}

.card__link:hover {
  color: var(--gold-dark);
  gap: var(--space-sm);
}

/* --- Hero Section --- */
.hero {
  padding-top: calc(72px + var(--section-padding));
  padding-bottom: var(--section-padding);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero__content {
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.375rem 1rem;
  background: var(--gold-light);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.02em;
}

.hero__title {
  margin-bottom: var(--space-xl);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* --- Section Headers --- */
.section-header {
  max-width: 640px;
  margin-bottom: var(--space-3xl);
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-bottom: var(--space-md);
}

.section-header__title {
  margin-bottom: var(--space-md);
}

.section-header__text {
  font-size: var(--text-lg);
  color: var(--slate);
  line-height: 1.6;
}

/* --- Steps / Process --- */
.steps {
  counter-reset: step-counter;
}

.step {
  display: flex;
  gap: var(--space-xl);
  counter-increment: step-counter;
  padding-bottom: var(--space-2xl);
  position: relative;
}

.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 56px;
  bottom: 0;
  width: 1px;
  background: var(--border-light);
}

.step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__number::before {
  content: counter(step-counter);
}

.step__content {
  padding-top: 0.5rem;
}

.step__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--charcoal);
}

.step__text {
  font-size: var(--text-base);
  color: var(--slate);
  line-height: 1.65;
}

/* --- Icon Boxes (Why Nikivya section) --- */
.icon-box {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.icon-box__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-light);
  border-radius: var(--radius-lg);
  color: var(--gold-dark);
}

.icon-box__icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.icon-box__title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.icon-box__text {
  font-size: var(--text-sm);
  color: var(--slate);
  line-height: 1.6;
}

/* --- Logo Marquee --- */
.logo-marquee {
  overflow: hidden;
  padding: var(--space-xl) 0;
  position: relative;
}

.logo-marquee::before,
.logo-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.logo-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

.logo-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

.section--alt .logo-marquee::before {
  background: linear-gradient(to right, var(--bg-section-alt), transparent);
}

.section--alt .logo-marquee::after {
  background: linear-gradient(to left, var(--bg-section-alt), transparent);
}

.logo-marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-4xl);
  width: max-content;
  animation: marquee 30s linear infinite;
}

.logo-marquee__track:hover {
  animation-play-state: paused;
}

.logo-marquee__item {
  flex-shrink: 0;
  height: 32px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity var(--duration-normal) ease, filter var(--duration-normal) ease;
}

.logo-marquee__item:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- CTA Band --- */
.cta-band {
  text-align: center;
  padding: var(--space-4xl) 0;
}

.cta-band__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.cta-band__text {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2xl);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Credential Badges --- */
.credentials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
  padding: var(--space-2xl) 0;
}

.credential {
  text-align: center;
}

.credential__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
}

.credential__icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.credential__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-500);
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(248, 181, 39, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-file {
  position: relative;
  padding: var(--space-2xl);
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.form-file:hover {
  border-color: var(--gold);
  background: var(--gold-light);
}

.form-file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.form-file__icon {
  margin: 0 auto var(--space-md);
  color: var(--grey-500);
}

.form-file__icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

.form-file__text {
  font-size: var(--text-sm);
  color: var(--slate);
}

.form-file__text strong {
  color: var(--gold-dark);
  font-weight: 600;
}

.form-file__hint {
  font-size: var(--text-xs);
  color: var(--grey-500);
  margin-top: var(--space-xs);
}

/* --- Footer --- */
.footer {
  background: var(--charcoal);
  color: var(--grey-300);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-4xl);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__brand-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--grey-500);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.footer__heading {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-500);
  margin-bottom: var(--space-lg);
}

.footer__link {
  display: block;
  font-size: var(--text-sm);
  color: var(--grey-300);
  padding: var(--space-xs) 0;
  transition: color var(--duration-fast) ease;
}

.footer__link:hover {
  color: var(--gold);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--text-xs);
  color: var(--grey-500);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__credentials {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  font-size: var(--text-xs);
  color: var(--grey-500);
}

/* --- Scroll Animations --- */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Page Header (for inner pages) --- */
.page-header {
  padding-top: calc(72px + var(--space-4xl));
  padding-bottom: var(--space-3xl);
  background: var(--bg-section-alt);
}

.page-header__title {
  margin-bottom: var(--space-md);
}

.page-header__text {
  font-size: var(--text-lg);
  color: var(--slate);
  max-width: 640px;
  line-height: 1.6;
}

.page-header__breadcrumb {
  font-size: var(--text-xs);
  color: var(--grey-500);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.page-header__breadcrumb a {
  color: var(--grey-500);
  transition: color var(--duration-fast) ease;
}

.page-header__breadcrumb a:hover { color: var(--charcoal); }

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--border-light);
  border: none;
}

/* --- Utility Spacers --- */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.text-center { text-align: center; }

/* --- Accessible Focus --- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Print --- */
@media print {
  .nav, .footer, .cta-band { display: none; }
  .hero { min-height: auto; padding-top: 2rem; }
  .section { padding: 1.5rem 0; }
  body { font-size: 12pt; }
}

/* --- Prefers Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .logo-marquee__track { animation: none; }
}

/* ==========================================
   CONTACT PAGE STYLES
   ========================================== */

.page-header__content {
  margin-bottom: var(--space-lg);
}

.page-header__subtitle {
  font-size: var(--text-lg);
  color: var(--slate);
  max-width: 680px;
  line-height: 1.6;
}

.breadcrumb {
  font-size: var(--text-sm);
  color: var(--grey-500);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--grey-500);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.breadcrumb a:hover {
  color: var(--charcoal);
}

.breadcrumb__sep {
  color: var(--grey-300);
}

.breadcrumb__current {
  color: var(--charcoal);
  font-weight: 500;
}

/* Contact Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

/* Contact Information Section */
.contact-info {
  padding: var(--space-3xl);
  background: var(--bg-section-alt);
  border-radius: var(--radius-lg);
}

.contact-info__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2xl);
  color: var(--charcoal);
}

.contact-item {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-light);
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-item__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.contact-item__value {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--charcoal);
  display: block;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.contact-item__value:hover {
  color: var(--gold-dark);
}

.contact-item__desc {
  font-size: var(--text-sm);
  color: var(--slate);
  line-height: 1.6;
}

/* Contact Form */
.contact-form-wrapper {
  padding: var(--space-3xl);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.contact-form-wrapper__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2xl);
  color: var(--charcoal);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

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

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.form-required {
  color: var(--error);
}

.form-label--optional {
  font-weight: 400;
  color: var(--grey-500);
  font-size: var(--text-xs);
}

.form-input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--charcoal);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(248, 181, 39, 0.1);
}

.form-input--textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--grey-500);
  margin-top: 0.375rem;
}

.form-message {
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.form-message.success {
  background: rgba(46, 125, 50, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
  display: block;
}

.form-message.error {
  background: rgba(211, 47, 47, 0.1);
  color: var(--error);
  border: 1px solid var(--error);
  display: block;
}

/* CTA Box */
.cta-box {
  padding: var(--space-3xl);
  background: var(--gold-light);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-box__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
  color: var(--charcoal);
}

.cta-box__text {
  font-size: var(--text-base);
  color: var(--slate);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  line-height: 1.6;
}

/* ==========================================
   BLOG PAGE STYLES
   ========================================== */

.blog-intro {
  margin-bottom: var(--space-2xl);
}

.blog-coming-soon__label {
  display: inline-block;
}

/* Article Cards */
.article-card {
  display: flex;
  flex-direction: column;
}

.article-card__image {
  width: 100%;
  min-height: 200px;
  background-color: var(--gold-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}

.article-card__tag {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-dark);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.article-card__title {
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--charcoal);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.article-card__excerpt {
  font-size: var(--text-sm);
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

/* Newsletter CTA */
.newsletter-cta {
  text-align: center;
}

/* Flex and Gap Utilities */
.flex {
  display: flex;
}

.gap-md {
  gap: var(--space-md);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-grey {
  color: var(--grey-500);
}

/* --- Brand constants (Phase A, 02-Jul-2026) --- */
.nav__logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.footer__tagline {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin: -8px 0 var(--space-md);
}

/* --- Content-page classes used by sub-pages (Phase B consistency, 02-Jul-2026) --- */
.content-block {
  max-width: 780px;
  margin: 0 auto var(--space-xl);
}

.content-block p {
  font-size: var(--text-base);
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.section-subheading {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  margin: var(--space-xl) auto var(--space-md);
  max-width: 780px;
}

.feature-list {
  list-style: none;
  max-width: 780px;
  margin: 0 auto var(--space-lg);
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: var(--space-sm);
  color: var(--slate);
  line-height: 1.6;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 2px solid var(--gold);
}

.prose {
  max-width: 780px;
  margin: 0 auto;
}

.prose p {
  font-size: var(--text-base);
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

/* --- Hero circuit backdrop (Phase E, 02-Jul-2026) --- */
@media (min-width: 900px) {
  .hero {
    position: relative;
    overflow: hidden;
  }
  .hero::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    width: 560px;
    height: 560px;
    background: url("/images/circuit-pattern.svg") no-repeat center / contain;
    pointer-events: none;
  }
  .hero .container { position: relative; z-index: 1; }
}
