/* ============================================================
   Tenfold — brand site
   Navy canvas · teal accent · editorial serif display
   ============================================================ */

:root {
  --navy-900: #07101e;
  --navy-800: #0a1430;
  --navy-700: #0d1b3e;
  --navy-600: #111f47;
  --navy-500: #1a2d50;
  --panel:    rgba(255, 255, 255, 0.035);
  --panel-2:  rgba(255, 255, 255, 0.05);
  --hairline: rgba(168, 180, 204, 0.16);
  --hairline-2: rgba(168, 180, 204, 0.28);

  --teal:     #00c9a7;
  --teal-soft:#39e0c2;
  --teal-dim: #0a6e5d;
  --mint:     #d0f5ee;
  --coral:    #e05c5c;

  --ink:      #eef2fa;
  --ink-soft: #c8d2e6;
  --ink-mute: #8a9dc0;
  --ink-faint:#6b7a9f;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1120px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--navy-800);
  color: var(--ink-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(1100px 700px at 78% -8%, rgba(0, 201, 167, 0.10), transparent 60%),
    radial-gradient(900px 600px at 4% 8%, rgba(91, 94, 166, 0.10), transparent 55%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  background-attachment: fixed;
}

/* film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

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

em { font-style: italic; }

::selection { background: var(--teal); color: var(--navy-900); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 0.72em 1.5em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn-lg { font-size: 1.02rem; padding: 0.92em 1.9em; }

.btn-primary {
  background: var(--teal);
  color: #042019;
  box-shadow: 0 8px 30px -8px rgba(0, 201, 167, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--teal-soft); box-shadow: 0 14px 40px -10px rgba(0, 201, 167, 0.7); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-2);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--teal); color: var(--teal-soft); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 28px;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 16, 34, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
  padding: 12px 28px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wordmark .dot { color: var(--teal); }
.wordmark.small { font-size: 1.25rem; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-mute);
}
.nav-links a { position: relative; transition: color 0.2s; }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -5px;
  width: 0; height: 1.5px; background: var(--teal);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-left: 0; }

.menu-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  z-index: 99;
  width: min(82vw, 340px);
  height: 100vh;
  background: rgba(8, 16, 34, 0.96);
  backdrop-filter: blur(18px);
  border-left: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 96px 28px 28px;
  transform: translateX(105%);
  transition: transform 0.42s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-size: 1.1rem; padding: 12px 0; color: var(--ink-soft); border-bottom: 1px solid var(--hairline); }
.mobile-menu .btn { margin-top: 18px; border-bottom: none; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--teal);
  display: inline-block;
}

.section { padding: 118px 0; position: relative; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 18ch;
}
.section-title.big { max-width: 16ch; font-size: clamp(2.4rem, 5.6vw, 4rem); }
.section-title em { color: var(--teal); font-style: italic; }
.section-title .muted-line { color: var(--ink-mute); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-mute);
  max-width: 60ch;
  margin-top: 22px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.16), transparent 62%);
  filter: blur(20px);
  z-index: 1;
}
.hero-x {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 78vh;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 201, 167, 0.14);
  top: 50%; right: -4%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.hero-inner { display: flex; flex-direction: column; align-items: flex-start; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(3rem, 9.5vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 30px;
}
.hero-title em {
  color: var(--teal);
  font-style: italic;
  position: relative;
}
.hero-sub {
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-stat {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  width: 100%;
  max-width: 460px;
}
.hero-stat strong { color: var(--teal); font-weight: 500; font-size: 1.4rem; }

/* ---------- Cards ---------- */
.cards-3, .cards-4 { display: grid; gap: 22px; margin-top: 54px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s, box-shadow 0.35s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--hairline-2);
  background: var(--panel-2);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.7);
}
.card-ic {
  font-size: 1.7rem;
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  border-radius: 13px;
  margin-bottom: 22px;
}
.card-ic.accent { border-color: rgba(0, 201, 167, 0.4); box-shadow: 0 0 24px -6px rgba(0, 201, 167, 0.45); }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.32rem; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { font-size: 0.98rem; color: var(--ink-mute); }

/* ---------- Thesis ---------- */
.thesis { text-align: left; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.stat {
  border-top: 1px solid var(--hairline);
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.2rem, 7vw, 5rem);
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.stat-num.accent { color: var(--teal); }
.stat-label { font-size: 0.98rem; color: var(--ink-mute); max-width: 26ch; }

/* ---------- Method ---------- */
.method {
  list-style: none;
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.step {
  padding: 32px 22px 32px 0;
  border-right: 1px solid var(--hairline);
  position: relative;
}
.step:last-child { border-right: none; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--teal);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 18px;
}
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; color: var(--ink); margin-bottom: 12px; }
.step p { font-size: 0.93rem; color: var(--ink-mute); }

/* ---------- Suite ---------- */
.moat {
  margin-top: 48px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 70ch;
  padding: 26px 30px;
  background: linear-gradient(120deg, rgba(0, 201, 167, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(0, 201, 167, 0.22);
  border-radius: var(--radius);
}
.moat-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-right: 14px;
  vertical-align: middle;
}

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 54px;
  align-items: stretch;
}
.plan {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.plan:hover { transform: translateY(-5px); border-color: var(--hairline-2); }
.plan.featured {
  border-color: rgba(0, 201, 167, 0.5);
  background: linear-gradient(180deg, rgba(0, 201, 167, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: 0 26px 60px -30px rgba(0, 201, 167, 0.5);
}
.plan h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.28rem; color: var(--ink); margin-bottom: 14px; }
.price { color: var(--ink-mute); font-size: 0.92rem; margin-bottom: 18px; }
.price span { font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; color: var(--ink); letter-spacing: -0.02em; }
.plan.featured .price span { color: var(--teal); }
.plan-desc { font-size: 0.92rem; color: var(--ink-mute); }
.badge {
  position: absolute;
  top: -12px; left: 26px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--teal);
  color: #042019;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 500;
}
.alacarte {
  margin-top: 34px;
  font-size: 0.95rem;
  color: var(--ink-mute);
  text-align: center;
}
.alacarte strong { color: var(--ink-soft); font-weight: 600; }

/* ---------- CTA ---------- */
.cta { text-align: center; overflow: hidden; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-x {
  position: absolute;
  font-size: 90vh;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  -webkit-text-stroke: 1.5px rgba(0, 201, 167, 0.08);
  z-index: 0;
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 22px;
}
.cta p { font-size: 1.15rem; color: var(--ink-mute); max-width: 52ch; margin-bottom: 38px; }
.cta-email {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink-mute);
  margin-top: 26px;
  letter-spacing: 0.03em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.cta-email:hover { color: var(--teal); border-color: var(--teal); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-tag { font-family: var(--font-display); font-style: italic; color: var(--ink-mute); font-size: 1.05rem; }
.footer-copy { margin-left: auto; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-faint); letter-spacing: 0.02em; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards-4, .plans { grid-template-columns: repeat(2, 1fr); }
  .method { grid-template-columns: repeat(2, 1fr); border-top: none; }
  .step { border-right: none; border-top: 1px solid var(--hairline); padding: 28px 0; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .section { padding: 84px 0; }
  .cards-3, .cards-4, .plans, .stats { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 130px 0 80px; }
  .hero-x { font-size: 60vh; right: -20%; }
  .footer-copy { margin-left: 0; width: 100%; }
}

/* ---------- Footer legal links ---------- */
.footer-legal { display: flex; gap: 18px; font-size: 0.85rem; }
.footer-legal a { color: var(--ink-mute); transition: color 0.2s; }
.footer-legal a:hover { color: var(--teal); }

/* ============================================================
   Legal pages (privacy / terms)
   ============================================================ */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(8, 16, 34, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.legal-back {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.legal-back:hover { color: var(--teal); }

.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 28px 100px;
  position: relative;
  z-index: 2;
}
.legal-wrap h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
.legal-intro {
  font-size: 1.08rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--hairline);
  padding-top: 30px;
  margin-top: 30px;
}
.legal-wrap h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 46px 0 14px;
  scroll-margin-top: 90px;
}
.legal-wrap h2 .legal-no {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--teal);
  margin-right: 12px;
  font-weight: 400;
}
.legal-wrap h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin: 26px 0 8px;
}
.legal-wrap p { margin-bottom: 16px; color: var(--ink-mute); }
.legal-wrap ul, .legal-wrap ol { margin: 0 0 16px 1.1em; color: var(--ink-mute); }
.legal-wrap li { margin-bottom: 9px; }
.legal-wrap a { color: var(--teal); border-bottom: 1px solid rgba(0, 201, 167, 0.4); }
.legal-wrap a:hover { color: var(--teal-soft); }
.legal-wrap strong { color: var(--ink-soft); }

.legal-callout {
  background: linear-gradient(120deg, rgba(0, 201, 167, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(0, 201, 167, 0.22);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 26px 0;
}
.legal-callout p:last-child { margin-bottom: 0; }

.legal-toc {
  margin: 30px 0 10px;
  padding: 22px 26px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.legal-toc strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.legal-toc ol { columns: 2; gap: 28px; margin: 0; font-size: 0.92rem; }
.legal-toc a { border-bottom: none; color: var(--ink-mute); }
.legal-toc a:hover { color: var(--teal); }

@media (max-width: 620px) {
  .legal-toc ol { columns: 1; }
}
