/* ============================================================
   Techquity Codex — Landing Page
   Single accent: Techquity green. Single font family: Inter.
   ============================================================ */

:root {
  --ink: #0A0A0A;
  --bg: #FFFFFF;
  --surface-alt: #F5F5F4;
  --surface-alt-2: #FAFAF9;
  --body: #3F3F46;
  --muted: #71717A;
  --hairline: #E4E4E7;

  --accent: #2F9B52;          /* Techquity green */
  --accent-dark: #257B41;
  --accent-soft: #E7F4EC;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(10,10,10,0.08);
  --shadow-lg: 0 20px 48px rgba(10,10,10,0.12);

  --container: 1180px;
  --section-py-desktop: 64px;
  --section-py-mobile: 48px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: 'Inter', system-ui, sans-serif;
}

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow    { max-width: 720px;            margin: 0 auto; padding: 0 24px; }
.narrow-md { max-width: 880px;            margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: relative;
  z-index: 50;
  height: 72px;
  background: #FFFFFF;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--hairline); }
.header-inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-link {
  display: inline-flex;
  align-items: center;
}
.logo-image {
  height: 72px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .site-header { height: 56px; }
  .header-inner { padding: 0 20px; }
  .logo-image { height: 56px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
  min-height: 48px;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(10,10,10,0.18); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-block { display: flex; width: 100%; }
.cta-row { display: flex; justify-content: center; padding: 8px 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  isolation: isolate;
  background: #0A0A0A;
}
.hero-bg {
  position: absolute;
  inset: -10% 0 -10% 0;          /* extra height so parallax doesn't reveal edges */
  background-image:
    url('assets/hero-codebooks.png'),
    linear-gradient(90deg,
      #DC2626 0%, #EA580C 11%, #F59E0B 22%, #16A34A 33%,
      #0D9488 44%, #2563EB 55%, #1E40AF 66%, #7C3AED 77%,
      #C026D3 88%, #BE185D 100%);
  background-size: cover, cover;
  background-position: center center, center;
  background-repeat: no-repeat, no-repeat;
  will-change: transform;
  z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10,10,10,0.50) 0%,
    rgba(10,10,10,0.38) 50%,
    rgba(10,10,10,0.55) 100%);
  z-index: -1;
}
.hero-content {
  position: relative;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-title {
  color: #FFFFFF;
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent 0%, #FFFFFF 100%);
  pointer-events: none;
}
@media (max-width: 640px) { .hero { height: 280px; } .hero-fade { height: 60px; } }

/* ============================================================
   NARRATIVE
   ============================================================ */
.narrative { padding: var(--section-py-desktop) 0 32px; }
.eyebrow {
  text-align: center;
  font-size: 17px;
  color: var(--body);
  margin: 0 auto 28px;
  max-width: 680px;
  line-height: 1.5;
}
.section-title {
  text-align: center;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 40px;
  color: var(--ink);
}
.narrative-body p { margin: 0 0 20px; text-align: center; }
.narrative-body p:last-child { margin-bottom: 0; }
.narrative-body strong { color: var(--ink); font-weight: 600; }

@media (max-width: 640px) { .narrative { padding: var(--section-py-mobile) 0 24px; } }

/* ============================================================
   SECTION HEADINGS WITH RULES
   ============================================================ */
.section-heading {
  text-align: center;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  color: var(--ink);
}
.section-heading.with-rules {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.section-heading.with-rules::before,
.section-heading.with-rules::after {
  content: '';
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: var(--hairline);
}
@media (max-width: 640px) {
  .section-heading.with-rules { gap: 14px; }
  .section-heading.with-rules::before,
  .section-heading.with-rules::after { max-width: 60px; }
}

/* ---------- Banded sections ---------- */
.section-banded { background: var(--surface-alt); }

/* ============================================================
   IMPACT & VALUE GRIDS
   ============================================================ */
.impact, .value { padding: var(--section-py-desktop) 0; }
@media (max-width: 640px) {
  .impact, .value { padding: var(--section-py-mobile) 0; }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; gap: 48px; } }

.impact-card, .value-card { text-align: center; }
.impact-card h3, .value-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.impact-card p, .value-card p {
  margin: 0;
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

.card-media {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  background-color: var(--surface-alt);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ============================================================
   TRY IT — Sample Prompts
   ============================================================ */
.try-it { padding: var(--section-py-desktop) 0; }
@media (max-width: 640px) { .try-it { padding: var(--section-py-mobile) 0; } }

.try-lead {
  text-align: center;
  font-size: 17px;
  margin: 0 auto 40px;
  max-width: 680px;
  color: var(--body);
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 720px) { .prompt-grid { grid-template-columns: 1fr; } }

.prompt-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
  cursor: pointer;
  position: relative;
  user-select: none;
}
.prompt-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.prompt-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.prompt-emoji {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}
.prompt-text {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.prompt-icon {
  display: inline-flex;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}
.prompt-card:hover .prompt-icon,
.prompt-card:focus-visible .prompt-icon {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

/* ============================================================
   ROI
   ============================================================ */
.roi { padding: var(--section-py-desktop) 0; }
@media (max-width: 640px) { .roi { padding: var(--section-py-mobile) 0; } }
.roi-body p { margin: 0 0 20px; }
.roi-body strong { color: var(--ink); font-weight: 600; }

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 36px 0;
}
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--surface-alt);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
}
.stat-number {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 15px;
  color: var(--body);
  line-height: 1.4;
}
.stat-label span {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.process-intro { margin-top: 36px !important; text-align: center; }
.process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0 0;
  padding: 24px;
  background: var(--surface-alt);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}
.process-flow li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.process-flow li.arrow {
  color: var(--muted);
  font-weight: 400;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 720px) {
  .process-flow { flex-direction: column; align-items: flex-start; }
  .process-flow li.arrow { transform: rotate(90deg); align-self: center; }
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing { padding: var(--section-py-desktop) 0; }
@media (max-width: 640px) { .pricing { padding: var(--section-py-mobile) 0; } }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 36px; max-width: 480px; margin: 0 auto; }
}

.tier-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.tier-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.tier-featured {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(47, 155, 82, 0.16);
  border-width: 2px;
}
.tier-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(47,155,82,0.25);
}

.tier-image-wrap {
  width: 220px;
  height: 220px;
  margin: 0 auto 24px;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 28px rgba(15,23,42,0.12);
  background: #1E293B;
}
@media (max-width: 640px) { .tier-image-wrap { width: 170px; height: 170px; } }

.tier-image {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.tier-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--ink);
  line-height: 1.2;
}
.tier-price {
  display: inline-block;
  margin-left: 6px;
  color: var(--accent);
  font-weight: 800;
}

.tier-features {
  text-align: left;
  margin: 0 0 28px;
  flex: 1;
}
.tier-features li {
  position: relative;
  padding: 9px 0 9px 28px;
  font-size: 15px;
  color: var(--body);
  border-bottom: 1px dashed var(--hairline);
}
.tier-features li:last-child { border-bottom: none; }
.tier-features li::before {
  content: '';
  position: absolute;
  left: 2px; top: 12px;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--accent);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") no-repeat center / 70% 70%;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") no-repeat center / 70% 70%;
}

/* ============================================================
   CLOSING — Codex Care + Disclaimer
   ============================================================ */
.closing { padding: 64px 0 96px; }
.codex-care { margin: 0 0 24px; color: var(--body); }
.codex-care strong { color: var(--ink); font-weight: 600; }
.disclaimer { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
@media (max-width: 640px) { .closing { padding: 48px 0 64px; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0A0A0A;
  color: #E4E4E7;
  padding: 64px 0 32px;
}
.footer-inner { padding: 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand .footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo-image {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);   /* white version of the green logo */
  display: block;
}
.footer-tagline {
  margin: 0;
  color: #A1A1AA;
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-nav h4, .footer-connect h4 {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 16px;
}
.footer-nav ul li { margin-bottom: 10px; }
.footer-nav a {
  color: #D4D4D8;
  font-size: 15px;
  transition: color 160ms var(--ease);
}
.footer-nav a:hover { color: var(--accent); }

.social-links {
  display: flex; gap: 12px;
  margin-bottom: 18px;
}
.social-links a {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid #27272A;
  color: #D4D4D8;
  transition: border-color 160ms var(--ease), color 160ms var(--ease), background 160ms var(--ease);
}
.social-links a:hover { border-color: var(--accent); color: var(--accent); background: #0F1F15; }
.footer-location {
  margin: 0;
  font-size: 14px;
  color: #A1A1AA;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0 0;
  border-top: 1px solid #27272A;
  font-size: 13px;
  color: #71717A;
  max-width: var(--container);
  margin: 0 auto;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: #A1A1AA; transition: color 160ms var(--ease); }
.footer-legal a:hover { color: var(--accent); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 16px);
  background: #0A0A0A;
  color: #FAFAF9;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 14px 32px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
  z-index: 1000;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   SCROLL-REVEAL ENTRANCE
   ============================================================ */
.reveal-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 450ms ease-out, transform 450ms ease-out;
  will-change: opacity, transform;
}
.reveal-ready.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-ready { opacity: 1; transform: none; }
  .hero-bg { transform: none !important; }
}
