:root {
  --ink: #08101d;
  --ink-2: #0d1728;
  --navy: #111f34;
  --gold: #c99a45;
  --gold-bright: #e0bd72;
  --ivory: #f8f1e3;
  --paper: #f3ead9;
  --paper-2: #fffaf0;
  --muted: #6f6657;
  --line: rgba(115, 91, 50, 0.2);
  --shadow: 0 26px 70px rgba(8, 16, 29, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: #1f2631;
  background: var(--paper);
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--ivory);
  background: linear-gradient(180deg, rgba(6, 11, 20, 0.94), rgba(6, 11, 20, 0.68));
  border-bottom: 1px solid rgba(224, 189, 114, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(224, 189, 114, 0.55);
  border-radius: 50%;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
  background:
    radial-gradient(circle at 38% 24%, rgba(255, 240, 184, 0.28), transparent 34%),
    rgba(201, 154, 69, 0.08);
  box-shadow: 0 0 30px rgba(201, 154, 69, 0.18);
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: rgba(248, 241, 227, 0.72);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  font-size: 0.85rem;
  color: rgba(248, 241, 227, 0.82);
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--gold-bright);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--ivory);
  background: var(--ink);
  padding: 122px clamp(22px, 6vw, 86px) 74px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 18, 0.94) 0%, rgba(5, 10, 18, 0.86) 35%, rgba(5, 10, 18, 0.25) 72%),
    linear-gradient(180deg, rgba(5, 10, 18, 0.2), rgba(5, 10, 18, 0.7)),
    url("assets/sagewrite-hero.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--paper));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #9a6e25;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(4rem, 9vw, 8.7rem);
  line-height: 0.92;
  color: #fff8e8;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 4.5vw, 4.75rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(248, 241, 227, 0.86);
  font-size: clamp(1.04rem, 1.7vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #171102;
  background: linear-gradient(135deg, #edcf87, #b9822b);
  box-shadow: 0 16px 34px rgba(201, 154, 69, 0.2);
}

.button-secondary {
  color: var(--ivory);
  border-color: rgba(224, 189, 114, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

.button-secondary:hover {
  border-color: rgba(224, 189, 114, 0.72);
  background: rgba(255, 255, 255, 0.1);
}

.section {
  padding: clamp(72px, 9vw, 132px) 0;
}

.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-band {
  position: relative;
  z-index: 2;
  background: var(--paper);
  padding: 34px 0 62px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.86fr) minmax(280px, 1.14fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.intro-grid h2 {
  max-width: 560px;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
}

.intro-grid p:last-child {
  margin-bottom: 0;
  color: #4b443c;
  font-size: 1.05rem;
}

.paper {
  background:
    linear-gradient(90deg, rgba(201, 154, 69, 0.05), transparent 28%, rgba(201, 154, 69, 0.07)),
    var(--paper);
}

.ivory {
  background: var(--paper-2);
}

.ink {
  color: var(--ivory);
  background:
    radial-gradient(circle at 86% 12%, rgba(201, 154, 69, 0.15), transparent 34%),
    linear-gradient(135deg, #09111f, #13243b 54%, #07101c);
}

.section-heading {
  max-width: 770px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.section-heading.narrow {
  max-width: 820px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.03rem;
}

.ink .section-heading p,
.ink p,
.trust p,
.final-cta p {
  color: rgba(248, 241, 227, 0.76);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.audience-list article,
.platform-row article,
.trust-grid article {
  border-radius: 12px;
  border: 1px solid rgba(115, 91, 50, 0.18);
  background: rgba(255, 250, 240, 0.72);
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 238px;
  padding: 26px;
}

.feature-card p,
.audience-list p,
.platform-row p,
.trust-grid p {
  margin-bottom: 0;
  color: #5e554b;
}

.card-index {
  display: block;
  margin-bottom: 24px;
  color: #9a6e25;
  font-family: var(--serif);
  font-size: 1.55rem;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(224, 189, 114, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.timeline span {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.1rem;
  border: 1px solid rgba(224, 189, 114, 0.45);
  background: rgba(201, 154, 69, 0.1);
}

.timeline p {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(34px, 7vw, 86px);
}

.sticky-heading {
  position: sticky;
  top: 118px;
  align-self: start;
}

.audience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.audience-list article {
  padding: 24px;
}

.language-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
}

.language-layout p {
  color: var(--muted);
  font-size: 1.04rem;
}

.language-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px;
  border-radius: 12px;
  border: 1px solid rgba(115, 91, 50, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(243, 234, 217, 0.72)),
    var(--paper);
  box-shadow: var(--shadow);
}

.language-cloud span,
.process-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  line-height: 1;
}

.language-cloud span {
  color: #3c3328;
  border: 1px solid rgba(154, 110, 37, 0.24);
  background: rgba(255, 250, 240, 0.78);
}

.visual-section {
  overflow: hidden;
}

.visual-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(34px, 6vw, 74px);
  align-items: center;
}

.cover-art {
  overflow: hidden;
  border: 1px solid rgba(224, 189, 114, 0.22);
  border-radius: 12px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
  background: #03070d;
}

.cover-art img {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
}

.process-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.process-chips span {
  color: var(--gold-bright);
  border: 1px solid rgba(224, 189, 114, 0.28);
  background: rgba(255, 255, 255, 0.055);
}

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

.platform-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.platform-row article {
  padding: 24px;
}

.trust {
  color: var(--ivory);
  background:
    linear-gradient(rgba(8, 16, 29, 0.9), rgba(8, 16, 29, 0.92)),
    url("assets/sagewrite-hero.png") center / cover no-repeat;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.trust-grid article {
  border-color: rgba(224, 189, 114, 0.2);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  padding: 24px;
}

.trust-grid h3 {
  color: var(--gold-bright);
}

.final-cta {
  padding: clamp(76px, 9vw, 132px) 0;
  color: var(--ivory);
  background:
    radial-gradient(circle at 20% 20%, rgba(224, 189, 114, 0.18), transparent 32%),
    linear-gradient(135deg, #08101d, #101d30);
}

.cta-inner {
  max-width: 900px;
  text-align: center;
}

.contact-email {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 28px;
  font-size: 1.02rem;
}

.contact-email a {
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(224, 189, 114, 0.42);
}

.cta-inner .hero-actions {
  justify-content: center;
}

.site-footer {
  color: rgba(248, 241, 227, 0.78);
  background: #050912;
  border-top: 1px solid rgba(224, 189, 114, 0.16);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-inner p {
  margin: 0;
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
}

@media (max-width: 1040px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 164px;
  }

  .capability-grid,
  .platform-row,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .site-header {
    position: absolute;
    padding: 16px 20px;
  }

  .nav-links {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .hero {
    min-height: 88vh;
    padding: 126px 20px 66px;
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(5, 10, 18, 0.96), rgba(5, 10, 18, 0.76)),
      linear-gradient(180deg, rgba(5, 10, 18, 0.1), rgba(5, 10, 18, 0.72)),
      url("assets/sagewrite-hero.png") 63% center / cover no-repeat;
  }

  h1 {
    font-size: clamp(3.5rem, 18vw, 5.3rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .intro-grid,
  .split,
  .language-layout,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .sticky-heading {
    position: static;
  }

  .timeline,
  .capability-grid,
  .audience-list,
  .platform-row,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 58px 1fr;
    gap: 14px;
    padding: 20px;
  }

  .timeline span {
    width: 48px;
    height: 48px;
    font-size: 0.98rem;
  }

  .cover-art img {
    min-height: 300px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .section-inner {
    width: min(100% - 28px, 1160px);
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .feature-card,
  .audience-list article,
  .platform-row article,
  .trust-grid article,
  .language-cloud {
    border-radius: 10px;
  }
}
