/* =====================================================
   CAIRN MEMORIES — Design System
   Brand: Navy / Amber / Cream
   Fonts: Playfair Display (display), Lora (body), DM Sans (UI)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

/* ── Variables ─────────────────────────────────────── */
:root {
  /* Brand palette */
  --navy:        #1B2A4A;
  --navy-deep:   #111D36;
  --navy-mid:    #243556;
  --navy-light:  #2D4066;
  --amber:       #D4954A;
  --amber-light: #E5A85E;
  --amber-pale:  #F5DDB5;
  --white:       #FAFAF8;
  --off-white:   #F0EDE6;
  --stone-100:   #EDE9E1;
  --stone-200:   #D8D0C2;
  --stone-400:   #A89E8E;
  --stone-600:   #6B6157;
  --stone-800:   #3D3730;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'DM Sans', system-ui, sans-serif;

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

  /* Brand accent */
  --sage:        #7A9B8A;

  /* Layout */
  --container:  1200px;
  --container-sm: 760px;
  --nav-height: 72px;

  /* Radii */
  --radius-sm:  3px;
  --radius-md:  4px;
  --radius-lg:  8px;

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(17, 29, 54, 0.12), 0 1px 2px rgba(17, 29, 54, 0.08);
  --shadow-md:  0 4px 16px rgba(17, 29, 54, 0.16), 0 2px 6px rgba(17, 29, 54, 0.10);
  --shadow-lg:  0 12px 40px rgba(17, 29, 54, 0.22), 0 4px 12px rgba(17, 29, 54, 0.14);
  --shadow-amber: 0 4px 20px rgba(212, 149, 74, 0.30);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--stone-800);
  background: var(--white);
  overflow-x: hidden;
}

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

/* ── Typography ───────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.18;
  color: var(--navy);
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem);   letter-spacing: -0.015em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); letter-spacing: -0.01em; }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
h5 { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-ui); font-weight: 600; }

p { color: var(--stone-600); max-width: 62ch; }
p.lead { font-size: 1.2rem; line-height: 1.6; color: var(--stone-600); }

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

/* ── Layout ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

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

section { padding-block: var(--space-5xl); }

/* ── Navigation ───────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.nav.scrolled {
  background: rgba(27, 42, 74, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--space-xl);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__logo-mark {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  align-items: center;
}

.nav__logo-mark span {
  display: block;
  border-radius: 50%;
  background: var(--white);
}

.nav__logo-mark span:nth-child(1) { width: 12px; height: 12px; opacity: 1; }
.nav__logo-mark span:nth-child(2) { width: 9px; height: 9px; opacity: 0.75; }
.nav__logo-mark span:nth-child(3) { width: 6px; height: 6px; opacity: 0.5; }

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

.nav__logo-text .wordmark-cairn {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.12em;
}

.nav__logo-text .wordmark-memories {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--stone-400);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

.nav__links a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}

.nav__links a:hover { color: var(--white); }

.nav__links a.active { color: var(--amber-light); }

.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.22s var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: var(--shadow-amber);
}

.btn--primary:hover {
  background: var(--amber-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(212, 149, 74, 0.40);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn--secondary:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--lg {
  font-size: 1rem;
  padding: 0.9rem 2rem;
}

.btn--sm {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-deep);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, rgba(27, 42, 74, 0.85) 0%, rgba(27, 42, 74, 0.75) 50%, rgba(27, 42, 74, 0.6) 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 50%, black 40%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  padding-top: var(--nav-height);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--space-lg);
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--amber);
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-xl);
}

.hero h1 em {
  font-style: italic;
  color: var(--amber-light);
}

.hero__lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-2xl);
  max-width: 52ch;
  margin-inline: auto;
}

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

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: var(--space-2xl);
  margin-top: -60px;
}

/* Cairn illustration */
.cairn-illustration {
  position: relative;
  width: 320px;
  height: 380px;
}

.cairn-illustration__rock {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--stone-200), var(--stone-400));
}

.cairn-illustration__rock--1 {
  width: 110px; height: 68px;
  bottom: 20px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(168,158,142,0.9), rgba(107,97,87,0.9));
}

.cairn-illustration__rock--2 {
  width: 85px; height: 52px;
  bottom: 80px; left: 50%; transform: translateX(-48%);
  background: linear-gradient(150deg, rgba(178,168,152,0.9), rgba(120,110,100,0.9));
}

.cairn-illustration__rock--3 {
  width: 68px; height: 42px;
  bottom: 125px; left: 50%; transform: translateX(-52%);
  background: linear-gradient(135deg, rgba(190,180,164,0.85), rgba(130,120,110,0.85));
}

.cairn-illustration__rock--4 {
  width: 50px; height: 32px;
  bottom: 160px; left: 50%; transform: translateX(-46%);
  background: linear-gradient(140deg, rgba(201,192,178,0.8), rgba(140,130,120,0.8));
}

.cairn-illustration__rock--5 {
  width: 38px; height: 24px;
  bottom: 186px; left: 50%; transform: translateX(-54%);
  background: linear-gradient(135deg, rgba(215,207,195,0.75), var(--stone-400));
}

.cairn-illustration__rock--6 {
  width: 26px; height: 17px;
  bottom: 205px; left: 50%; transform: translateX(-48%);
  background: linear-gradient(135deg, rgba(225,218,207,0.7), var(--stone-200));
}

.cairn-illustration__shadow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 18px;
  background: radial-gradient(ellipse, rgba(8,15,26,0.45) 0%, transparent 75%);
  border-radius: 50%;
}

.cairn-illustration__orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212, 149, 74, 0.18);
}

.cairn-illustration__orbit--1 {
  width: 280px; height: 280px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.cairn-illustration__orbit--2 {
  width: 200px; height: 200px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(212, 149, 74, 0.1);
}

.cairn-illustration__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(212, 149, 74, 0.6);
}

/* Orbit animation */
@keyframes orbit-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.cairn-illustration__orbit--1 {
  animation: orbit-slow 24s linear infinite;
  transform-origin: center;
  top: 50%; left: 50%;
}

/* ── Section Labels ───────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--space-lg);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--amber);
}

/* ── Cards ────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid rgba(168, 158, 142, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

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

.card--dark {
  background: var(--navy);
  border-color: rgba(255,255,255,0.08);
  color: var(--white);
}

.card--dark h3, .card--dark h4 { color: var(--white); }
.card--dark p { color: rgba(255,255,255,0.62); }

/* ── Cairn Type Cards ─────────────────────────────── */
.cairn-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.cairn-card {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.cairn-card__photo {
  width: calc(100% + var(--space-2xl) * 2);
  height: 200px;
  margin: calc(var(--space-2xl) * -1) calc(var(--space-2xl) * -1) var(--space-xl);
  background-size: cover;
  background-position: center;
  position: relative;
}

.cairn-card__photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--navy));
}

.cairn-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--amber);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.cairn-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(17, 29, 54, 0.35);
}

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

.cairn-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(212, 149, 74, 0.12);
  border: 1px solid rgba(212, 149, 74, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.cairn-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--amber);
}

.cairn-card h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
}

.cairn-card p {
  color: rgba(255,255,255,0.58);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.cairn-card__examples {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--space-xl);
}

.cairn-card__example {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cairn-card__example::before {
  content: '›';
  color: var(--amber);
  font-size: 1rem;
}

.cairn-card__link {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}

.cairn-card__link:hover { gap: 0.5rem; }

/* ── Features Grid ────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl) var(--space-lg);
}

.feature-item {
  padding: var(--space-xl);
  border: 1px solid var(--stone-100);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-item:hover {
  border-color: var(--amber-pale);
  box-shadow: 0 4px 24px rgba(212, 149, 74, 0.08);
}

.feature-item__icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
}

.feature-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--stone-600);
}

/* ── How It Works ─────────────────────────────────── */
.how-it-works {
  background: var(--navy-deep);
  color: var(--white);
}

.how-it-works h2 { color: var(--white); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(33.33% - 48px);
  right: calc(33.33% - 48px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0.4;
}

.step {
  text-align: center;
  padding: var(--space-xl);
}

.step__number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 149, 74, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
  position: relative;
  background: rgba(212, 149, 74, 0.06);
}

.step h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.step p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

/* ── Rocky Section ────────────────────────────────── */
.rocky-section {
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.rocky-section::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 149, 74, 0.05) 0%, transparent 70%);
}

.rocky-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.rocky-chat {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  max-width: 440px;
}

.rocky-chat__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.rocky-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.rocky-status {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
}

.rocky-status strong {
  display: block;
  font-size: 0.88rem;
  color: var(--white);
  font-weight: 500;
}

.rocky-messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.chat-bubble {
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 85%;
}

.chat-bubble--rocky {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
  border-radius: 12px 12px 12px 3px;
  align-self: flex-start;
}

.chat-bubble--user {
  background: var(--amber);
  color: var(--white);
  border-radius: 12px 12px 3px 12px;
  align-self: flex-end;
}

/* ── Keys Section ─────────────────────────────────── */
.keys-section {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.keys-section::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 0; right: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(212, 149, 74, 0.07) 0%, transparent 60%);
}

.keys-section h2 { color: var(--white); }
.keys-section > .container > p { color: rgba(255,255,255,0.6); }

.keys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.key-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: background 0.25s, border-color 0.25s;
}

.key-card:hover {
  background: rgba(212, 149, 74, 0.06);
  border-color: rgba(212, 149, 74, 0.25);
}

.key-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.key-card h4 { color: var(--white); margin-bottom: 0.5rem; font-size: 1.1rem; }
.key-card p { color: rgba(255,255,255,0.55); font-size: 0.9rem; }

/* ── Comparison Table ─────────────────────────────── */
.comparison {
  overflow-x: auto;
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.875rem;
}

.comparison th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--stone-100);
  white-space: nowrap;
}

.comparison th:first-child { color: var(--stone-400); font-weight: 500; }
.comparison th.highlight { color: var(--amber); }

.comparison td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--stone-100);
  color: var(--stone-600);
  vertical-align: top;
}

.comparison td.highlight {
  background: rgba(212, 149, 74, 0.04);
  color: var(--navy);
  font-weight: 500;
}

.comparison tr:last-child td { border-bottom: none; }

/* ── Testimonials / Pull Quotes ───────────────────── */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--navy);
  position: relative;
  padding-left: var(--space-xl);
}

.pull-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.2em;
  font-size: 4rem;
  color: var(--amber-pale);
  font-family: var(--font-display);
  line-height: 1;
}

/* ── Stats Bar ────────────────────────────────────── */
.stats-bar {
  background: var(--amber);
  padding: var(--space-xl) 0;
}

.stats-bar__inner {
  display: flex;
  justify-content: center;
  gap: var(--space-5xl);
  align-items: center;
}

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

.stat-item__value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: block;
}

.stat-item__label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-top: 0.25rem;
}

/* ── CTA Section ──────────────────────────────────── */
.cta-section {
  background: var(--navy-deep);
  text-align: center;
  padding-block: var(--space-5xl);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(212, 149, 74, 0.07) 0%, transparent 70%);
}

.cta-section h2 { color: var(--white); position: relative; }
.cta-section p  { color: rgba(255,255,255,0.58); position: relative; }
.cta-section .btn { position: relative; }

/* ── Footer ───────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

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

.footer__brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  margin-top: var(--space-md);
  max-width: 36ch;
}

.footer__col h5 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-lg);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__col a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--amber-light); }

.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-xl);
}

.footer__bottom-links a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}

.footer__bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ── Page Headers ─────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-height) + 5rem) 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 30% 50%, rgba(212, 149, 74, 0.07) 0%, transparent 60%);
}

.page-hero h1 { color: var(--white); position: relative; }
.page-hero .lead { color: rgba(255,255,255,0.62); position: relative; }
.page-hero .section-label { position: relative; }

/* ── Prose / Doc Content ──────────────────────────── */
.prose {
  font-size: 1.05rem;
  line-height: 1.78;
}

.prose h2 { margin-top: 2.5em; margin-bottom: 0.75em; }
.prose h3 { margin-top: 1.8em; margin-bottom: 0.5em; }
.prose p  { margin-bottom: 1.25em; color: var(--stone-600); }
.prose ul, .prose ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; color: var(--stone-600); }
.prose strong { color: var(--navy); font-weight: 600; }
.prose a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-left: 3px solid var(--amber);
  padding-left: var(--space-lg);
  margin: 2em 0;
  font-style: italic;
  color: var(--stone-600);
}
.prose code {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  background: var(--stone-100);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
}

/* ── Accordion / FAQ ──────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.faq-item {
  border: 1px solid var(--stone-100);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  transition: background 0.2s;
}

.faq-question:hover { background: var(--stone-100); }
.faq-question[aria-expanded="true"] { background: var(--navy); color: var(--white); }

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}

.faq-icon::before { width: 12px; height: 1.5px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 1.5px; height: 12px; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform 0.25s; }

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  display: none;
  padding: 1rem 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--stone-600);
  line-height: 1.7;
  border-top: 1px solid var(--stone-100);
}

.faq-answer.open { display: block; }

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

.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--stone-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(212, 149, 74, 0.12);
}

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

/* ── Blog List ────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl) var(--space-xl);
}

.post-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--stone-100);
}

.post-card__category {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.6rem;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.32;
  margin-bottom: 0.7rem;
  transition: color 0.25s var(--ease-out);
}

.post-card__title a {
  color: inherit;
  transition: color 0.25s var(--ease-out);
}

.post-card:hover .post-card__title,
.post-card:hover .post-card__title a { color: var(--amber); }

.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--stone-600);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--space-md);
}

.post-card__meta {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  color: var(--stone-400);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.post-card__meta::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--stone-200);
}

/* ── Featured Post ───────────────────────────────── */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.featured-post__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-deep);
}

.featured-post__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 70%, rgba(212, 149, 74, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(122, 155, 138, 0.1) 0%, transparent 60%);
  z-index: 1;
}

.featured-post__visual-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(212, 149, 74, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 60% 30%, rgba(255,255,255,0.08) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(122, 155, 138, 0.2) 1px, transparent 1px),
    radial-gradient(circle at 40% 50%, rgba(212, 149, 74, 0.15) 1px, transparent 1px);
  background-size: 120px 120px, 80px 80px, 100px 100px, 60px 60px;
  opacity: 0.7;
}

.featured-post__visual-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.featured-post__visual-icon svg {
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
  flex-shrink: 0;
  opacity: 0.25;
  color: var(--amber);
}

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

.featured-post__link {
  color: var(--navy);
  transition: color 0.25s var(--ease-out);
}

.featured-post__link:hover {
  color: var(--amber);
}

.featured-post__excerpt {
  font-size: 1rem;
  color: var(--stone-600);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

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

.featured-post__meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--stone-400);
}

/* ── Blog Visual Cards (decorative header per card) ── */
.post-card__visual {
  height: 140px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.post-card__visual--product {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
}
.post-card__visual--features {
  background: linear-gradient(135deg, var(--navy) 0%, rgba(122, 155, 138, 0.4) 100%);
}
.post-card__visual--use-cases {
  background: linear-gradient(135deg, var(--navy-deep) 0%, rgba(212, 149, 74, 0.3) 100%);
}
.post-card__visual--design {
  background: linear-gradient(150deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
}
.post-card__visual--technology {
  background: linear-gradient(135deg, var(--navy) 0%, rgba(45, 64, 102, 0.9) 100%);
}
.post-card__visual--vision {
  background: linear-gradient(135deg, var(--navy-deep) 0%, rgba(122, 155, 138, 0.25) 100%);
}

.post-card__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.post-card__visual-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0.5;
  color: var(--amber-pale);
  z-index: 1;
}

.post-card__img {
  background: var(--stone-100);
  height: 200px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

@media (max-width: 1024px) {
  .featured-post { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .featured-post__visual { max-height: 280px; }
}

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

/* ── Blog Article ─────────────────────────────────── */
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  position: relative;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb span[aria-hidden] { margin-inline: 0.4em; }
.breadcrumb span[aria-current] { color: rgba(255,255,255,0.7); }

.article-meta {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-lg);
  position: relative;
}
.article-meta__sep { margin-inline: 0.6em; }

.article-body {
  padding-block: var(--space-4xl);
}

.article-lede {
  font-size: 1.25rem;
  line-height: 1.68;
  color: var(--navy) !important;
  font-weight: 500;
  margin-bottom: 2em !important;
  padding-bottom: 2em;
  border-bottom: 1px solid var(--stone-100);
}

.article-lede::first-letter {
  font-family: var(--font-display);
  font-size: 3.6em;
  float: left;
  line-height: 0.8;
  margin-right: 0.08em;
  margin-top: 0.05em;
  color: var(--navy);
  font-weight: 700;
}

.prose h2 {
  position: relative;
  padding-top: 1em;
}

.prose h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--amber);
  border-radius: 1px;
}

.article-footer {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--stone-100);
}

.article-footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.article-footer__label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}

.article-related {
  margin-top: var(--space-3xl);
}

.article-related__heading {
  font-size: 1rem;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-400);
  margin-bottom: var(--space-xl);
}

.article-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.article-related__card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--space-lg);
  border: 1px solid var(--stone-100);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.article-related__card:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow-sm);
}

.article-related__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

@media (max-width: 768px) {
  .article-related__grid { grid-template-columns: 1fr; }
}

/* ── Dividers ─────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stone-100), transparent);
  margin-block: var(--space-3xl);
}

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

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

.bg-navy     { background: var(--navy); }
.bg-offwhite { background: var(--off-white); }
.bg-stone    { background: var(--stone-100); }

.text-amber { color: var(--amber); }
.text-white { color: var(--white); }
.text-muted { color: var(--stone-400); }

/* ── Quick Link Cards (support page) ─────────────── */
.quick-link {
  background: var(--white);
  border: 1px solid var(--stone-100);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: box-shadow 0.2s var(--ease-out);
  display: block;
}

.quick-link:hover {
  box-shadow: var(--shadow-md);
}

/* ── Scroll animations ────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ── Focus styles ────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ── Skip to content ─────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--amber);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ── Screen reader only ──────────────────────────── */
.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;
}

/* ── Back to top ─────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s, transform 0.3s var(--ease-out);
  z-index: 90;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
}

.back-to-top:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .cairn-types      { grid-template-columns: repeat(2, 1fr); }
  .features-grid    { grid-template-columns: repeat(2, 1fr); }
  .hero__content    { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .hero__visual     { display: none; }
  .rocky-content    { grid-template-columns: 1fr; }
  .footer__grid     { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
  .keys-grid        { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section           { padding-block: var(--space-4xl); }
  .cairn-types      { grid-template-columns: 1fr; }
  .features-grid    { grid-template-columns: 1fr; }
  .steps            { grid-template-columns: 1fr; }
  .steps::before    { display: none; }
  .keys-grid        { grid-template-columns: 1fr; }
  .nav__links       { display: none; }
  .stats-bar__inner { flex-wrap: wrap; gap: var(--space-xl); }
  .footer__grid     { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer__bottom   { flex-direction: column; gap: var(--space-md); text-align: center; }
  .comparison table { min-width: 520px; }
  .comparison       { font-size: 0.8rem; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  .hero__actions    { flex-direction: column; align-items: center; }
  .btn--lg          { width: 100%; justify-content: center; }
}

/* ── Mobile Nav Toggle ────────────────────────────── */
.nav__toggle {
  display: none;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--navy-deep);
  padding: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 99;
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--amber-light); }
