/* ============================================================
   Tripwire Trading static one-pager styles
   Dependency-free. Hosts anywhere (S3+CloudFront, Pages, etc.)
   ============================================================ */

:root {
  --bg:        #0a0e14;
  --bg-alt:    #0e131c;
  --panel:     #121826;
  --panel-2:   #161d2c;
  --line:      #1f2838;
  --text:      #e6ebf2;
  --muted:     #8a96a8;
  --muted-2:   #5f6b7d;
  --accent:    #4fd1c5;   /* cyan, a speed-of-light cue */
  --accent-2:  #7aa2ff;
  --radius:    14px;
  --maxw:      1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #aef9f0, var(--accent) 60%, #1c8d83);
  box-shadow: 0 0 18px rgba(79, 209, 197, 0.55);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(79, 209, 197, 0.35); }
  50%      { box-shadow: 0 0 22px rgba(79, 209, 197, 0.85); }
}
.brand-text { font-weight: 700; letter-spacing: -0.2px; font-size: 1.05rem; }
.brand-light { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--accent); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 92px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero .container { position: relative; z-index: 2; text-align: center; }
.hero-glow {
  position: absolute;
  z-index: 0;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 95%;
  background: radial-gradient(ellipse at center, rgba(79, 209, 197, 0.15), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}

/* ---------- TRIPWIRE (animated tick-to-trade line) ---------- */
.tripwire {
  position: relative;
  height: 2px;
  width: min(460px, 100%);
  margin: 46px auto 0;
  border-radius: 2px;
  background: var(--line);
}
/* endpoint dots */
.tw-dot {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(79, 209, 197, 0.6);
}
.tw-dot-start { left: 0; }
.tw-dot-end {
  left: 100%;
  transform: translate(-100%, -50%);
  animation: trip-flash 1.5s ease-in-out infinite;
}
/* the pulse that streaks from the start dot to the end dot */
.tripwire::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 74px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 70%, #ffffff);
  box-shadow: 0 0 14px 2px rgba(79, 209, 197, 0.85);
  animation: trip 1.5s ease-in-out infinite;
}
@keyframes trip {
  0%   { left: 0;    transform: translate(0, -50%);     opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { left: 100%; transform: translate(-100%, -50%); opacity: 0; }
}
@keyframes trip-flash {
  0%, 72% { box-shadow: 0 0 10px rgba(79, 209, 197, 0.5); }
  86%     { box-shadow: 0 0 18px 5px rgba(79, 209, 197, 0.95); }
  100%    { box-shadow: 0 0 10px rgba(79, 209, 197, 0.5); }
}
.tripwire-label {
  position: absolute;
  top: 13px;
  left: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted-2);
}
.tripwire-label-end { left: auto; right: 0; }
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 72%);
  opacity: 0.5;
  animation: drift 24s linear infinite;
}
@keyframes drift {
  to { background-position: 56px 56px; }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  margin: 0 0 20px;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -1.8px;
  font-weight: 800;
  margin: 0 0 24px;
}
.hl {
  background: linear-gradient(100deg, var(--accent) 10%, #aef9f0 50%, var(--accent-2) 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: sheen 6s linear infinite;
}
@keyframes sheen {
  to { background-position: 200% center; }
}
.lede {
  max-width: 600px;
  font-size: 1.18rem;
  color: var(--muted);
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform .12s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #06201d; }
.btn-primary:hover { background: #6fe0d4; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- STRIP ---------- */
.strip { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
}
.stat {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat-k {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.3px;
}
.stat-v { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

/* ---------- BAND (accent statement) ---------- */
.band {
  padding: 110px 0;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(79, 209, 197, 0.08), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.band-lede {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.2rem;
}

/* ---------- SECTIONS ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.kicker {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  margin: 0 0 14px;
}
h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  letter-spacing: -0.8px;
  line-height: 1.12;
  margin: 0 0 20px;
  font-weight: 700;
}
.section-lede {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 48px;
}
.narrow { max-width: 760px; }
.center { text-align: center; margin: 0 auto; }
.center .section-lede { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

/* ---------- CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.card:hover {
  border-color: #2b3850;
  transform: translateY(-5px);
  box-shadow: 0 18px 40px -18px rgba(79, 209, 197, 0.35);
}
.card:hover::before { transform: scaleX(1); }
.card-num {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.card h3 { margin: 0 0 12px; font-size: 1.18rem; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- TECH GRID ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.tech-item { background: var(--bg-alt); padding: 34px 30px; }
.tech-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  color: var(--accent-2);
  font-weight: 500;
}
.tech-item h4 { margin: 12px 0 10px; font-size: 1.2rem; font-weight: 600; }
.tech-item p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- SPLIT ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}
.split-text p { color: var(--muted); }
.split-text p:first-of-type { color: var(--muted); }
.checklist { list-style: none; margin: 8px 0 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.98rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 20px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(79, 209, 197, 0.6);
}

/* ---------- CONTACT ---------- */
.email {
  display: inline-block;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.email:hover { border-color: var(--accent); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-alt); }
.footer-inner { display: flex; flex-direction: column; gap: 20px; }
.footer-tag { color: var(--muted); margin: 6px 0 0; font-size: 0.92rem; }
.disclaimer {
  color: var(--muted-2);
  font-size: 0.82rem;
  max-width: 760px;
  margin: 0;
  line-height: 1.7;
}
.copyright { color: var(--muted-2); font-size: 0.82rem; margin: 0; }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .cards { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 84px 0 72px; }
  .section { padding: 68px 0; }
}
@media (max-width: 480px) {
  .strip-inner { grid-template-columns: 1fr; }
  .stat { border-right: none; }
}
