/* ============================================================
   Ceryse Digital — "Blueprint 2.0" refresh layer
   Loaded AFTER each page's inline styles. Evolves the existing
   navy + gold system; no new brand assets, no build step.
   ============================================================ */

:root {
  /* deeper, cooler ink navy — more engineered, less generic */
  --color-primary: #0C1826;
  --color-primary-light: #16283E;
  --color-primary-dark: #070E18;
  --color-ink: #0A1420;

  /* gold refined: less yellow, more engraved brass */
  --color-accent: #CDA24B;
  --color-accent-hover: #B8903C;
  --color-accent-subtle: rgba(205, 162, 75, 0.09);

  /* surfaces cooler and crisper */
  --color-surface: #F5F7FA;
  --color-surface-elevated: #FFFFFF;
  --color-surface-tint: #EEF2F7;
  --color-border: #E1E6EE;
  --color-border-strong: #CDD5E1;

  --color-text: #131A2A;
  --color-text-secondary: #55607A;
  --color-text-tertiary: #8A93A8;

  /* tighter radii — precision over softness */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* layered, quieter shadows */
  --shadow-sm: 0 1px 2px rgba(10, 20, 32, 0.05);
  --shadow-md: 0 2px 6px rgba(10, 20, 32, 0.05), 0 8px 20px rgba(10, 20, 32, 0.06);
  --shadow-lg: 0 4px 10px rgba(10, 20, 32, 0.06), 0 18px 40px rgba(10, 20, 32, 0.10);
  --shadow-xl: 0 30px 60px rgba(10, 20, 32, 0.16);
  --shadow-accent: 0 8px 24px rgba(205, 162, 75, 0.22);

  /* fluid section rhythm */
  --section-pad: clamp(72px, 9vw, 120px);
  --content-max: 1160px;
}

/* ---------- typography ---------- */
body {
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hero__headline,
.section__title,
.display {
  font-size: clamp(2.6rem, 4.4vw + 1rem, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
}

.section__title {
  font-size: clamp(1.9rem, 2.4vw + 0.8rem, 2.9rem);
  letter-spacing: -0.02em;
}

.section__subtitle { font-size: 17.5px; line-height: 1.72; }

/* mono eyebrows get a gold tick rule */
.section__eyebrow,
.hero__eyebrow {
  letter-spacing: 0.16em;
  color: var(--color-accent-hover);
}

/* ---------- layout rhythm ---------- */
.container { max-width: var(--content-max); }

.section,
.page-hero + .section { padding: var(--section-pad) 0; }

.section__header { margin-bottom: clamp(40px, 5vw, 64px); }

/* signature: blueprint tick rule under every section header */
.section__header::after {
  content: '';
  display: block;
  height: 9px;
  margin-top: 22px;
  max-width: 240px;
  background:
    linear-gradient(to right, var(--color-border-strong), var(--color-border-strong)) 0 4px / 100% 1px no-repeat,
    repeating-linear-gradient(to right, var(--color-border-strong) 0 1px, transparent 1px 16px) 0 0 / 100% 9px no-repeat;
}

.section__header--center::after { margin-left: auto; margin-right: auto; }

/* ---------- nav ---------- */
.nav {
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(10, 20, 32, 0.07);
}

.nav__inner { height: 64px; }

.nav__name { font-size: 14px; letter-spacing: 0.08em; }
.nav__cn { font-size: 10.5px; letter-spacing: 0.16em; }

.nav__link {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--color-text-secondary);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1);
}

.nav__link:hover,
.nav__link:focus-visible { color: var(--color-primary); background: transparent; }
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }

/* ---------- buttons ---------- */
.btn {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), box-shadow 220ms ease,
              background-color 220ms ease, border-color 220ms ease;
}

.btn--primary {
  background: var(--color-primary);
  box-shadow: 0 1px 2px rgba(10,20,32,.10), 0 10px 24px rgba(10,20,32,.14);
}

.btn--primary:hover {
  background: #12233A;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(10,20,32,.12), 0 18px 38px rgba(10,20,32,.20),
              inset 0 0 0 1px rgba(205,162,75,.55);
}

.btn--secondary {
  border: 1px solid var(--color-border-strong);
  background: rgba(255,255,255,.6);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  background: #fff;
  transform: translateY(-1px);
}

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------- cards ---------- */
.service-card,
.feature-card,
.advantage-card,
.value-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), box-shadow 260ms ease,
              border-color 260ms ease;
}

.service-card:hover,
.feature-card:hover,
.advantage-card:hover,
.value-card:hover {
  transform: translateY(-3px);
  border-color: rgba(205, 162, 75, 0.55);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  border-radius: 9px;
  background: linear-gradient(160deg, rgba(205,162,75,.14), rgba(205,162,75,.05));
  color: var(--color-accent-hover);
}

.service-card__tag {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  border-radius: 999px;
}

/* ---------- footer ---------- */
.footer { background: var(--color-ink); }

.footer__link { color: rgba(255,255,255,0.55); }
.footer__link:hover { color: var(--color-accent); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: rgba(255,255,255,0.42);
}

/* ---------- hero entrance (CSS only, reduced-motion aware) ---------- */
@keyframes cd-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.hero__eyebrow, .hero__headline, .hero__sub, .hero__actions,
.page-hero__eyebrow, .page-hero__title, .page-hero__sub {
  animation: cd-rise 700ms cubic-bezier(.2,.7,.2,1) both;
}
.hero__headline, .page-hero__title { animation-delay: 90ms; }
.hero__sub, .hero__actions, .page-hero__sub { animation-delay: 170ms; }

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero__headline, .hero__sub, .hero__actions,
  .page-hero__eyebrow, .page-hero__title, .page-hero__sub { animation: none; }
  .btn, .service-card, .nav__link::after { transition: none; }
}

@media (max-width: 768px) {
  .nav__inner { height: 60px; }
  .section__header::after { max-width: 160px; }
}
