/* RepDup - Dark, confident, clear.
   Deep gradient base, muted cobalt glow, no decorative mono noise.
   ============================================================= */

:root {
  --bg:           #0A0B0F;
  --bg-2:         #11131B;
  --bg-3:         #161924;
  --bg-sunken:    #060709;
  --ink:          #F4F5F7;
  --ink-2:        #D6D8E0;
  --muted:        #A0A6B4;
  --dim:          #6B7080;
  --accent:       #6B82F0;
  --accent-deep:  #4A60D4;
  --accent-soft:  rgba(107,130,240,0.10);
  --accent-line:  rgba(107,130,240,0.32);
  --accent-glow:  rgba(107,130,240,0.45);
  --rule:         rgba(255,255,255,0.07);
  --rule-light:   rgba(255,255,255,0.04);
  --rule-strong:  rgba(255,255,255,0.14);
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:    0 6px 24px rgba(0,0,0,0.35);
  --shadow-lg:    0 24px 60px rgba(0,0,0,0.5);

  /* back-compat aliases */
  --amber:        var(--accent);
  --amber-warm:   var(--accent);
  --amber-deep:   var(--accent-deep);
  --navy:         var(--ink);
  --navy-2:       var(--ink-2);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(1100px 700px at 12% -10%, rgba(107,130,240,0.10), transparent 60%),
    radial-gradient(900px 600px at 95% 10%, rgba(107,130,240,0.06), transparent 60%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ── A11y: skip link, focus rings, motion ── */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 9999;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; outline: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible,
a.btn-primary:focus-visible,
a.btn-accent:focus-visible,
a.btn-dark:focus-visible,
a.btn-ghost:focus-visible {
  outline-offset: 4px;
  border-radius: 999px;
}

#content { scroll-margin-top: 80px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

/* Subtle grain - for dark surfaces */
.grain::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ── Layout ── */
.wrap   { max-width: 1200px; margin: 0 auto; padding: 0 40px; position: relative; }
.narrow { max-width: 720px; }
.center { text-align: center; }

/* ── Type ── */
h1, h2, h3, h4 {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

/* ── Keyframes ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,11,15,0.72);
  border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.mark {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.025em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mark::before {
  content: '';
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: rotate(45deg);
}

.nav-links { display: flex; gap: 30px; align-items: center; }

.header-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s;
  position: relative;
}
.header-link:hover { color: var(--ink); }
.header-link[aria-current="page"] { color: var(--ink); }
.header-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -22px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ── Buttons ── */
.btn-primary {
  background: var(--ink);
  color: #0A0B0F;
  padding: 12px 22px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  box-shadow: 0 8px 24px rgba(244,245,247,0.12);
}
.btn-primary:hover { background: #FFFFFF; transform: translateY(-1px); box-shadow: 0 12px 32px rgba(244,245,247,0.18); }
.btn-primary:active { transform: translateY(0); }
.btn-primary::after {
  content: '→';
  font-size: 14px;
  color: var(--accent-deep);
  font-weight: 600;
}

.btn-large { padding: 16px 30px; font-size: 15px; }

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
  padding: 12px 22px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-1px); }

.btn-dark {
  background: transparent;
  color: var(--ink);
  padding: 16px 30px;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  display: inline-block;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: border-color 0.18s, background 0.18s;
}
.btn-dark:hover { border-color: var(--ink); background: rgba(255,255,255,0.04); }

.btn-dark.btn-glow {
  border-color: color-mix(in oklab, var(--accent) 65%, var(--rule-strong));
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--accent) 20%, transparent),
    0 6px 22px color-mix(in oklab, var(--accent) 18%, transparent);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.25s, transform 0.12s;
}
.btn-dark.btn-glow:hover {
  border-color: color-mix(in oklab, var(--accent) 70%, var(--ink));
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--accent) 35%, transparent),
    0 10px 30px color-mix(in oklab, var(--accent) 28%, transparent);
  transform: translateY(-1px);
}

.btn-ghost {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  transition: color 0.18s, gap 0.2s;
}
.btn-ghost:hover { color: var(--ink); gap: 12px; }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 22px;
}

/* ── Cards ── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
}

/* ── Data rows (real data only - not decoration) ── */
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  gap: 16px;
}
.data-row:first-child { border-top: 1px solid var(--rule); }
.data-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.data-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}
.data-val em { font-style: normal; color: var(--accent); }

/* ── Sub-page head ── */
.page-head {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 80% 50%, rgba(107,130,240,0.10), transparent 70%);
  pointer-events: none;
}
.page-head .wrap { max-width: 1200px; }
.page-head h1 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-top: 0;
  color: var(--ink);
}
.page-head .lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.55;
  margin: 26px 0 0;
}

/* ── Footer ── */
footer {
  background: #050609;
  color: var(--muted);
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.footer-row a { color: var(--muted); transition: color 0.18s; }
.footer-row a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 24px; }

/* ── Policy content ── */
.policy-section { margin-bottom: 48px; }
.policy-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.policy-section p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 14px;
}
.policy-section p:last-child { margin-bottom: 0; }
.policy-section p strong { color: var(--ink); font-weight: 600; }
.policy-section a { color: var(--accent); transition: color 0.18s; }
.policy-section a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.policy-section ul { list-style: none; margin: 10px 0 14px; }
.policy-section ul li {
  font-size: 16px;
  color: var(--ink-2);
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 14px;
  line-height: 1.5;
}
.policy-section ul li:last-child { border-bottom: 1px solid var(--rule); }
.policy-section ul li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transform: translateY(8px);
}

.callout {
  padding: 24px 26px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  margin: 32px 0;
}
.callout p { font-size: 15px; color: var(--ink-2); margin: 0; line-height: 1.65; }

.page-updated {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.06em;
  margin-top: 16px;
  display: block;
  text-transform: uppercase;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .wrap { padding: 0 28px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 22px; }
  .page-head { padding: 64px 0 48px; }
  .nav-links { gap: 14px; }
  .nav-links .header-link { display: none; }
  .btn-large { padding: 14px 24px; font-size: 14px; }
}

/* ──────────────────────────────────────────────
   Phase 5 — Premium polish
   ────────────────────────────────────────────── */

/* Custom selection — cobalt on near-black */
::selection {
  background: color-mix(in oklab, var(--accent) 65%, transparent);
  color: #fff;
}

/* Subtle hover lift on cards */
.card,
.demo-card,
.work-card,
.price-card,
.tile {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  will-change: transform;
}
.card:hover,
.demo-card:hover,
.work-card:hover,
.price-card:hover,
.tile:hover {
  transform: translateY(-2px);
  border-color: var(--rule-strong);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

/* Button micro-press */
button:active,
.btn:active,
.btn-dark:active,
a.btn-large:active { transform: translateY(1px); }

/* Animated underline on inline links */
main a:not(.btn):not(.btn-dark):not(.btn-large):not(.btn-ghost):not(.mark):not(.header-link):not(.thanks-cta) {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .25s ease;
}
main a:not(.btn):not(.btn-dark):not(.btn-large):not(.btn-ghost):not(.mark):not(.header-link):not(.thanks-cta):hover {
  background-size: 100% 1px;
}

/* Scroll-driven reveals — CSS-only, with reduced-motion fallback */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal,
    main > section,
    .page-head {
      animation: rd-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    @keyframes rd-reveal {
      from { opacity: 0; transform: translateY(14px); }
      to   { opacity: 1; transform: translateY(0); }
    }
  }
}

/* Home hero headline single-pass reveal */
@media (prefers-reduced-motion: no-preference) {
  .page-head h1 {
    animation: rd-headline .8s cubic-bezier(.2,.7,.2,1) both;
  }
  @keyframes rd-headline {
    from { opacity: 0; transform: translateY(10px); letter-spacing: -0.02em; }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* Print styles — pricing & contact print cleanly */
@media print {
  :root {
    --bg: #fff; --bg-2: #fff; --bg-3: #fff; --bg-sunken: #fff;
    --ink: #000; --ink-2: #111; --muted: #333; --dim: #555;
    --rule: #ccc; --rule-strong: #999;
  }
  body { background: #fff; color: #000; }
  header, footer, .skip-link, iframe, .demo-ribbon { display: none !important; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
  .form-shell, .price-card, .card { border: 1px solid #999 !important; box-shadow: none !important; }
  button { display: none !important; }
}
