/* ============================================================
   TONFTP LLC — marketing site / style.css
   Palette (shared with the CabinClarity site, derived from a
   deep-blue tech palette):
     navy    #06182A  (page background)
     brand   #04639A  (primary blue)
     cyan    #3EC6F0  (accent, gradients, links)
     ice     #BFE9FF  (subtle text/borders)
   No frameworks. No build step. Pure CSS.
   ============================================================ */

:root {
  --navy: #06182a;
  --navy-2: #0a2440;
  --brand: #04639a;
  --cyan: #3ec6f0;
  --ice: #bfe9ff;
  --text: #e8f4fc;
  --muted: #8fb3c9;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(191, 233, 255, 0.14);
  --ok: #4ade80;
  --warn: #ffc24b;
  --radius: 18px;
  --container: 1140px;
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

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

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

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

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cyan);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow {
  max-width: 780px;
}
.center {
  text-align: center;
}

/* ---------- background texture ---------- */
.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background:
    radial-gradient(
      1200px 600px at 80% -10%,
      rgba(4, 99, 154, 0.28),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at -10% 40%,
      rgba(62, 198, 240, 0.1),
      transparent 60%
    );
}

main {
  position: relative;
  z-index: 1;
}

/* ---------- typography ---------- */
h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.gradient-text {
  background: linear-gradient(92deg, var(--cyan), var(--ice) 55%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--muted);
  max-width: 62ch;
}
.lede.center {
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.eyebrow.center {
  display: flex;
  justify-content: center;
}

.micro {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 18px;
}
.micro.center {
  text-align: center;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(62, 198, 240, 0.6);
  animation: pulse 2.2s infinite;
  display: inline-block;
  flex: none;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(62, 198, 240, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(62, 198, 240, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(62, 198, 240, 0);
  }
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 24, 42, 0.72);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand b {
  color: var(--cyan);
  font-weight: 800;
}
.brand-icon {
  border-radius: 8px;
}
.nav nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav nav a:hover {
  color: var(--cyan);
}
@media (max-width: 720px) {
  .nav nav a:not(.nav-cta) {
    display: none;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #0a7dbf);
  color: #fff;
  box-shadow: 0 8px 28px rgba(4, 99, 154, 0.45);
}
.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(62, 198, 240, 0.35);
}
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--glass-border);
  background: var(--glass);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.cta-row.center {
  justify-content: center;
}

/* ---------- glass card base ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------- icon chips ----------
   Absolutely-positioned glass chips in each card's top-right corner,
   so titles run the full card width and no icon row eats vertical space. */
.risk-card,
.audience-card {
  position: relative;
}
.risk-icon,
.bento-icon {
  color: var(--cyan);
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(62, 198, 240, 0.08);
  border: 1px solid rgba(62, 198, 240, 0.25);
  box-shadow: 0 0 22px rgba(62, 198, 240, 0.12);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.risk-icon svg,
.bento-icon svg {
  width: 22px;
  height: 22px;
}
.risk-card:hover .risk-icon,
.bento-item:hover .bento-icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 28px rgba(62, 198, 240, 0.3);
}

/* ---------- sections ---------- */
.section {
  padding: 64px 0;
  position: relative;
}
@media (max-width: 640px) {
  .section {
    padding: 48px 0;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 88px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .code-wrap {
    justify-self: center;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 14s ease-in-out infinite alternate;
}
.orb-a {
  width: 480px;
  height: 480px;
  background: rgba(4, 99, 154, 0.55);
  top: -120px;
  right: -80px;
}
.orb-b {
  width: 380px;
  height: 380px;
  background: rgba(62, 198, 240, 0.26);
  bottom: -150px;
  left: -110px;
  animation-delay: -5s;
}
.orb-c {
  width: 260px;
  height: 260px;
  background: rgba(10, 125, 191, 0.32);
  top: 34%;
  left: 38%;
  animation-delay: -9s;
}
@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(40px, -30px, 0) scale(1.08);
  }
}

/* subtle blueprint grid */
.grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(
    70% 60% at 50% 40%,
    #000 20%,
    transparent 100%
  );
  background-image:
    linear-gradient(rgba(191, 233, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 233, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}
.hero-copy .lede {
  margin-top: 22px;
}

/* ---------- code window (pure CSS, decorative) ---------- */
.code-wrap {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 460px;
}
.code-glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(
    closest-side,
    rgba(62, 198, 240, 0.2),
    transparent
  );
  z-index: 0;
  filter: blur(30px);
}
.code-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(6, 24, 42, 0.55);
}
.code-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
}
.dot.r {
  background: #ff5f57;
}
.dot.y {
  background: #febc2e;
}
.dot.g {
  background: #28c840;
}
.code-file {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.code-body {
  padding: 18px 16px 20px;
  font-family: var(--mono);
  font-size: 0.79rem;
  line-height: 1.85;
  counter-reset: line;
  overflow-x: auto;
}
.code-lines {
  list-style: none;
}
.code-lines li {
  white-space: pre;
  color: var(--ice);
}
.code-lines li::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 1.9em;
  margin-right: 0.9em;
  color: rgba(143, 179, 201, 0.5);
  text-align: right;
}
.t-kw {
  color: #7dd3fc;
}
.t-fn {
  color: var(--cyan);
}
.t-str {
  color: #a5f3c4;
}
.t-com {
  color: rgba(143, 179, 201, 0.75);
}
.t-prop {
  color: #c7b9ff;
}
.code-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--glass-border);
  background: rgba(10, 36, 64, 0.45);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.code-status b {
  color: var(--ok);
  font-weight: 600;
}

/* ---------- focus strip ---------- */
.proof {
  border-block: 1px solid var(--glass-border);
  background: rgba(10, 36, 64, 0.35);
  padding: 22px 0;
}
.proof-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  font-size: 0.88rem;
  color: var(--muted);
}
.proof-inner strong {
  color: var(--ice);
  font-weight: 700;
}
.proof-inner span[aria-hidden] {
  color: rgba(62, 198, 240, 0.5);
}

/* ---------- bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.bento-item {
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}
.bento-item:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 198, 240, 0.45);
}
.bento-item h3 {
  margin-bottom: 8px;
  padding-right: 52px; /* clear the corner icon chip */
  color: var(--cyan);
}
.bento-item p {
  color: var(--muted);
  font-size: 0.93rem;
}
.bento-item.wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
}
.bento-item.wide > :last-child {
  margin-top: 32px;
}
@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .bento-item.wide {
    grid-column: span 2;
  }
}
@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento-item.wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .bento-item.wide > :last-child {
    margin-top: 0;
  }
}

.taglist {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.taglist li {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(191, 233, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--ice);
}

/* pipeline mock (wide card visual) */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(180deg, #0a2c48, #082138);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}
.pipeline span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ice);
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(62, 198, 240, 0.07);
  border: 1px solid rgba(62, 198, 240, 0.22);
}
.pipeline span::after {
  content: "";
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
}
.pipeline em {
  font-style: normal;
  color: var(--muted);
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 40px;
  counter-reset: step;
}
.step {
  padding: 28px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.step h3 {
  margin-bottom: 8px;
  color: var(--text);
}
.step p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.work-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.work-card h3 {
  color: var(--cyan);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.work-card p {
  color: var(--muted);
  font-size: 0.95rem;
}
.work-card .taglist {
  margin-top: 0;
}
.work-card .work-link {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- about / legal ---------- */
.about {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(4, 99, 154, 0.12),
    transparent
  );
}
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
.about p {
  color: var(--muted);
  margin-top: 18px;
  font-size: 1rem;
}
.about p b {
  color: var(--text);
}
.facts {
  padding: 28px;
}
.facts dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 18px;
  margin-top: 16px;
  font-size: 0.9rem;
}
.facts dt {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding-top: 3px;
}
.facts dd {
  color: var(--text);
}
.facts h3 {
  color: var(--cyan);
}

/* ---------- final CTA ---------- */
.final-cta {
  background:
    radial-gradient(
      600px 300px at 50% 110%,
      rgba(4, 99, 154, 0.5),
      transparent 70%
    ),
    rgba(10, 36, 64, 0.3);
  border-top: 1px solid var(--glass-border);
  text-align: center;
}
.final-cta h2 {
  margin-bottom: 14px;
}
.final-cta .lede {
  margin: 0 auto 8px;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 36px 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.footer-brand b {
  color: var(--cyan);
}
.footer-brand img {
  border-radius: 6px;
}
.footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}
.footer a:hover {
  color: var(--cyan);
}
.footer small {
  color: var(--muted);
  font-size: 0.8rem;
  width: 100%;
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* no-JS fallback: show everything */
.no-js .reveal {
  opacity: 1;
  transform: none;
}
