/* =========================================================
   Optentia landing pages — shared utilities
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: var(--color-bg); }
body {
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
em { font-family: var(--font-display); font-style: italic; color: var(--color-text); font-weight: 500; }
ul, ol, li { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--color-brand-teal); color: var(--color-text-strong); }

/* Container */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.wrap-wide { max-width: 1360px; margin: 0 auto; padding: 0 48px; }

@media (max-width: 640px) {
  .wrap, .wrap-wide { padding: 0 24px; }
}

/* =========================================================
   PRIMITIVES
   ========================================================= */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--color-brand-teal-light);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 28px; height: 1px; background: currentColor;
}
.eyebrow.muted { color: var(--color-text-muted); }

.cta {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--color-brand-teal-light), var(--color-brand-teal));
  color: var(--color-text-strong);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--color-brand-teal-light) 50%, transparent);
  box-shadow: 0 8px 24px rgba(58,154,170,0.18);
  transition: box-shadow 320ms var(--ease-standard), transform 320ms var(--ease-emphasized);
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
}
.cta:hover {
  box-shadow: 0 0 36px var(--color-brand-teal-light);
  transform: translateY(-1px);
}
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25), transparent 70%);
  transform: translateX(-120%);
  transition: transform 800ms var(--ease-emphasized);
  z-index: -1;
}
.cta:hover::after { transform: translateX(120%); }
.cta .key {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em;
  padding: 3px 8px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
}
.cta.ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
  box-shadow: none;
}
.cta.ghost:hover { border-color: var(--color-brand-teal-light); box-shadow: none; }

.link-arrow {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--dur-fast);
}
.link-arrow:hover { color: var(--color-text); }
.link-arrow::after { content: " →"; transition: transform var(--dur-base) var(--ease-standard); display: inline-block; }
.link-arrow:hover::after { transform: translateX(4px); }

.gold-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(224,197,106,0.35);
  color: var(--color-brand-gold-light);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.gold-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: 0.85;
}

/* Logo lockup */
.lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--color-text); }
.lockup .mark { width: 26px; height: 26px; color: var(--color-brand-teal-light); display: inline-flex; }
.lockup .mark svg { width: 100%; height: 100%; }
.lockup .word { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.lockup .word .dot { color: var(--color-brand-teal-light); }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0;
}
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--color-text-muted); }
.nav-links a { transition: color var(--dur-fast); }
.nav-links a:hover { color: var(--color-text); }
.nav-actions { display: flex; align-items: center; gap: 20px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-actions .link-arrow { display: none; }
}

/* =========================================================
   ANIMATION PRIMITIVES
   ========================================================= */
[data-reveal] {
  transition: opacity 800ms var(--ease-decelerate), transform 800ms var(--ease-decelerate);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal="mask"] {
  transition: clip-path 1100ms var(--ease-emphasized);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal="lift"] {
  transition: opacity 900ms var(--ease-decelerate), transform 900ms var(--ease-decelerate);
  transition-delay: var(--reveal-delay, 0ms);
}

.lines > span {
  display: block;
  overflow: hidden;
  line-height: 1.05;
}
.lines > span > span {
  display: inline-block;
  transition: transform 900ms var(--ease-emphasized);
  transition-delay: var(--line-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .lines > span > span { transform: none !important; }
}

/* =========================================================
   SHARED FOOTER
   ========================================================= */
.site-foot {
  border-top: 1px solid var(--color-border);
  padding: 56px 0 32px;
  margin-top: 96px;
}
.site-foot .row1 {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 32px;
}
.site-foot .tagline {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.site-foot .tagline strong { color: var(--color-brand-teal-light); font-weight: 500; }
.site-foot .meta {
  display: flex; justify-content: space-between;
  padding-top: 28px; border-top: 1px dashed var(--color-border);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .site-foot .row1 { flex-direction: column; gap: 16px; align-items: flex-start; }
  .site-foot .meta { flex-direction: column; gap: 8px; }
}

/* =========================================================
   Section header pattern
   ========================================================= */
.s-head { display: flex; align-items: end; justify-content: space-between; gap: 64px; margin-bottom: 56px; }
.s-head h2 {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 700;
  line-height: 1.08; letter-spacing: -0.018em;
  color: var(--color-text);
  max-width: 22ch;
}
.s-head h2 em.accent { color: var(--color-brand-teal-light); font-style: italic; }

/* =========================================================
   BRAND LOGO — needle-sweep
   ========================================================= */
@keyframes om-needle-sweep {
  0%   { transform: rotate(-262deg); }
  85%  { transform: rotate(3deg); }
  89%  { transform: rotate(-7deg); }
  93%  { transform: rotate(4deg); }
  96%  { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}
.lockup .needle, .cv-core .needle {
  transform-box: view-box;
  transform-origin: 199px 521px;
  animation: om-needle-sweep 4s cubic-bezier(0.1, 0, 0.3, 1) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .lockup .needle, .cv-core .needle { animation: none; }
}
