/* =================================================================
   LiveLink Solutions LLC — Design System
   Premium dark marketing + education site
   Aesthetic: Apple (new dark) × Anthropic (clay accent)
   ================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Surfaces */
  --bg: #0A0A0B;
  --surface: #111114;
  --elevated: #16161A;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --text: #F5F5F7;
  --muted: #9AA0B5;

  /* Accents */
  --accent: #CC785C;            /* Anthropic clay/coral */
  --accent-hover: #D98A6F;
  --accent-soft: rgba(204, 120, 92, 0.14);
  --accent-ring: rgba(204, 120, 92, 0.40);
  --secondary: #7B8194;         /* cool neutral secondary */
  --secondary-soft: rgba(123, 129, 148, 0.14);

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radii */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Spacing rhythm */
  --section-y: 96px;
  --container-max: 1120px;
  --container-pad: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.40);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 18px 50px rgba(0, 0, 0, 0.55);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.28s;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }

ul, ol { list-style: none; padding: 0; }

a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
a:hover { color: var(--accent); }

button { font-family: inherit; cursor: pointer; }

::selection {
  background: var(--accent);
  color: #0A0A0B;
}

:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.section {
  padding-block: var(--section-y);
}
.section--tight { padding-block: calc(var(--section-y) * 0.55); }

.divider {
  height: 1px;
  border: 0;
  background: var(--border);
  width: 100%;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

/* ---------- Typography ---------- */
.display {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 680;
}

h1, .h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 660;
}

h2, .h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 640;
}

h3, .h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 620;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

p { color: var(--text); }
p.muted, .muted { color: var(--muted); }

.small { font-size: 0.86rem; line-height: 1.5; }

.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.balance { text-wrap: balance; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.78em 1.4em;
  font-size: 0.96rem;
  font-weight: 560;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #0A0A0B;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #0A0A0B;
  transform: translateY(-1px) scale(1.015);
  box-shadow: 0 8px 24px rgba(204, 120, 92, 0.30);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--text);
  color: var(--text);
}

.btn-lg { padding: 0.95em 1.7em; font-size: 1.04rem; }
.btn-sm { padding: 0.6em 1.05em; font-size: 0.86rem; }
.btn-block { width: 100%; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.center .btn-group { justify-content: center; }

/* ---------- Badges / Pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.38em 0.85em;
  font-size: 0.76rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  background: var(--secondary-soft);
  color: var(--text);
  border: 1px solid var(--border);
}
.badge-accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-ring);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--elevated);
  box-shadow: var(--shadow-lift);
}

.card-feature .card-icon,
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 1.55rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  margin-bottom: 18px;
}
.card-feature h3 { margin-bottom: 8px; }
.card-feature p { color: var(--muted); }

/* ---------- Grid utilities ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Sticky blurred header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.brand {
  font-size: 1.16rem;
  font-weight: 660;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.brand:hover { color: var(--text); }
/* LiveLink logo — wireframe sphere with an accent "live link" node */
.brand-dot {
  width: 20px; height: 20px;
  flex: none;
  display: inline-block;
  background: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><circle cx='12' cy='12' r='9' stroke='%23F5F5F7' stroke-width='1.5'/><ellipse cx='12' cy='12' rx='3.6' ry='9' stroke='%23F5F5F7' stroke-width='1.3'/><path d='M3.2 9.2H20.8M3.2 14.8H20.8' stroke='%23F5F5F7' stroke-width='1.3'/><circle cx='12' cy='3' r='2.1' fill='%23CC785C'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Google Material Symbols inside the icon boxes */
.card-icon .material-symbols-outlined {
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 480;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { flex: none; }

/* Nav menu wrapper — inline on desktop, dropdown on mobile */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { border-color: var(--text); }
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(72px, 12vw, 140px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 110%);
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(204, 120, 92, 0.22) 0%,
    rgba(204, 120, 92, 0.08) 35%,
    transparent 70%
  );
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-inner { max-width: 820px; }
.hero-inner.center { margin-inline: auto; text-align: center; }
.hero .display { margin-bottom: 22px; }
.hero .lead { margin-bottom: 34px; max-width: 620px; }
.hero-inner.center .lead { margin-inline: auto; }
.hero .btn-group { margin-top: 4px; }
.hero-inner.center .btn-group { justify-content: center; }

/* ---------- Steps / Process ---------- */
.steps { display: grid; gap: 24px; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 28px 78px;
  transition: border-color var(--dur) var(--ease);
}
.step:hover { border-color: var(--border-strong); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 26px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  color: var(--accent);
  font-weight: 640;
  font-size: 1.02rem;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.tier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.tier:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lift);
}
.tier-featured {
  border-color: var(--accent-ring);
  background: linear-gradient(180deg, rgba(204, 120, 92, 0.07), var(--surface) 55%);
  box-shadow: 0 0 0 1px var(--accent-ring), var(--shadow);
}
.tier-featured .tier-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0A0A0B;
  font-size: 0.72rem;
  font-weight: 620;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4em 0.95em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.tier-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.tier-price {
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1;
}
.tier-price span {
  font-size: 0.92rem;
  font-weight: 440;
  color: var(--muted);
  letter-spacing: 0;
}
.tier-desc { color: var(--muted); font-size: 0.94rem; }
.tier-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block: 6px;
}
.tier-features li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}
.tier-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.tier .btn { margin-top: auto; }

/* ---------- FAQ (native details/summary accordion) ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin-inline: auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 560;
  font-size: 1.04rem;
  list-style: none;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
  margin-right: 4px;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
}
.faq-item summary:hover { color: var(--accent); }
.faq-item summary:hover::after {
  border-color: var(--accent);
}
.faq-answer {
  padding: 0 24px 22px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Forms ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field label {
  font-size: 0.88rem;
  font-weight: 540;
  color: var(--text);
}
.field .hint { font-size: 0.8rem; color: var(--muted); }

input, textarea, select {
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8em 0.95em;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--secondary); }
textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(1.1em + 2px),
    calc(100% - 14px) calc(1.1em + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.6em;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 64px 36px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-tagline { color: var(--muted); font-size: 0.94rem; max-width: 280px; }
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* ---------- Reveal (decorative, JS-optional) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible,
.reveal.in,
.no-js .reveal {
  opacity: 1;
  transform: none;
}
/* Fail-safe: if JS never runs, content remains visible */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn:active { transform: none; }
}
/* Without the .reveal-init flag (set by JS), never hide content */
html:not(.reveal-on) .reveal { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.maxw-640 { max-width: 640px; }
.maxw-720 { max-width: 720px; }
.center-x { margin-inline: auto; }

/* Legal / info pages — standardized full-width layout */
.legal-page .section-head { max-width: none; }
.legal-page .maxw-720 { max-width: none; }
.legal-page .center-x { margin-inline: 0; }

/* =================================================================
   Responsive — mobile-first overrides
   ================================================================= */
@media (max-width: 960px) {
  :root { --section-y: 76px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .tier-featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Collapse navigation into a hamburger menu */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--container-pad) 18px;
    background: rgba(12, 12, 14, 0.98);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-links a {
    padding: 14px 4px;
    font-size: 1.04rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .nav-cta {
    margin-top: 14px;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  :root { --section-y: 60px; --container-pad: 18px; }
  body { font-size: 16px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .btn-group { width: 100%; }
  .btn-group .btn { flex: 1 1 auto; }
  .section-head { margin-bottom: 36px; }
}

