/* ============================================================
   RIFT — offensive security for fintech
   Brand palette v2 (May 2026):
   Midnight Black #05070D · Deep Navy #0A1220 · Graphite #323843
   Silver White #D9DEE7 · Pure White #FFFFFF · Electric Cyan #00D8FF
   ============================================================ */

:root {
  --ink:       #05070D;   /* midnight black — base */
  --navy:      #0A1220;   /* deep navy — alt sections */
  --panel:     #0B1422;   /* card surface */
  --panel-2:   #0F1B2E;   /* lifted surface */
  --graphite:  #323843;   /* graphite gray */
  --line:      #1B2433;   /* hairline borders */
  --line-soft: #141C2A;

  --cyan:      #00D8FF;   /* electric cyan — single accent */
  --cyan-dim:  #00A6C7;
  --cyan-deep: #0077A0;

  --white:     #FFFFFF;   /* headings */
  --text:      #D9DEE7;   /* silver white — body */
  --muted:     #8B97A8;
  --faint:     #5A6678;

  --maxw: 1160px;
  --r: 14px;

  --display: 'Space Grotesk', 'Arial Black', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.mono { font-family: var(--mono); letter-spacing: 0; }

.accent { color: var(--cyan); }

/* ───────── ambient layers ───────── */
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: .55;
}
.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 0; pointer-events: none;
  width: 560px; height: 560px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0,216,255,.10) 0%, rgba(0,216,255,.04) 38%, transparent 70%);
  transition: opacity .4s; opacity: 0;
}
.scanline {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(transparent 0 3px, rgba(255,255,255,.012) 3px 4px);
  mix-blend-mode: overlay;
}

.nav, main, .footer { position: relative; z-index: 2; }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  letter-spacing: .02em;
  padding: 13px 22px; border-radius: 10px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn--solid {
  background: var(--cyan); color: var(--ink);
  box-shadow: 0 0 0 0 rgba(0,216,255,.5);
}
.btn--solid:hover {
  background: #4fe6ff; transform: translateY(-2px);
  box-shadow: 0 12px 34px -8px rgba(0,216,255,.55);
}
.btn--ghost {
  background: rgba(255,255,255,.02); color: var(--text);
  border-color: var(--graphite);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

/* ───────── NAV ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.is-stuck {
  background: rgba(5,7,13,.8);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--white); }
.brand__mark { height: 28px; width: auto; display: block; }
.brand__word {
  font-family: var(--display); font-weight: 700; font-size: 22px;
  letter-spacing: .14em; padding-left: .14em; color: var(--white);
}

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-family: var(--mono); font-size: 13.5px; color: var(--muted);
  text-decoration: none; letter-spacing: .02em; position: relative;
  transition: color .2s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--cyan); transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 34px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.nav__burger span { width: 22px; height: 2px; background: var(--white); transition: transform .25s, opacity .25s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ───────── HERO ───────── */
.hero { padding: clamp(70px, 12vh, 140px) 0 80px; position: relative; }
.hero__inner { max-width: 920px; }

.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: .14em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 16px; margin-bottom: 30px;
  background: rgba(255,255,255,.015);
}
.hero__tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero__title {
  font-family: var(--display); font-weight: 700; color: var(--white);
  font-size: clamp(40px, 7vw, 80px); line-height: 1.03;
  letter-spacing: -0.03em; margin-bottom: 28px;
}
.hero__sub { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 680px; margin-bottom: 26px; }
.hero__sub strong { color: var(--text); font-weight: 600; }

.hero__rift {
  font-size: 13px; letter-spacing: .26em; color: var(--faint);
  border-left: 2px solid var(--cyan); padding-left: 14px; margin-bottom: 36px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 60px; }

/* terminal */
.terminal {
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, #0a1322, var(--ink));
  overflow: hidden; max-width: 720px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.85);
}
.terminal__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.015);
}
.terminal__dots { display: flex; gap: 7px; }
.terminal__dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a3445; }
.terminal__dots i:first-child { background: var(--cyan); }
.terminal__path { font-size: 12.5px; color: var(--faint); }
.terminal__body {
  padding: 22px; font-size: 13.5px; line-height: 1.85;
  white-space: pre-wrap; word-break: break-word; color: var(--text);
}
.c-cyan { color: var(--cyan); } .c-hit { color: var(--white); font-weight: 700; } .c-mute { color: var(--faint); }
.cursor-blink { color: var(--cyan); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ───────── MARQUEE ───────── */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--navy);
  overflow: hidden; padding: 16px 0; position: relative; z-index: 2;
}
.marquee__track {
  display: flex; align-items: center; gap: 26px; width: max-content;
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--muted);
  animation: marquee 40s linear infinite;
}
.marquee__track .sep { color: var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── SECTION SHELL ───────── */
.section { padding: clamp(70px, 11vh, 130px) 0; position: relative; }
.section--alt { background: var(--navy); border-block: 1px solid var(--line-soft); }

.section__head { max-width: 740px; margin-bottom: 56px; }
.kicker {
  display: inline-block; font-size: 13px; letter-spacing: .14em;
  color: var(--cyan); margin-bottom: 16px;
}
.section__title {
  font-family: var(--display); font-weight: 600; color: var(--white);
  font-size: clamp(28px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.025em;
}
.section__lead { color: var(--muted); font-size: 19px; margin-top: 16px; }

.source { color: var(--faint); font-size: 12.5px; margin-top: 26px; letter-spacing: .02em; line-height: 1.7; }

/* ───────── PROBLEM STATS ───────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px;
  background: var(--panel); position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease);
}
.stat::before { content:''; position:absolute; top:0; left:0; height:3px; width:0; background: var(--cyan); transition: width .5s var(--ease); }
.stat:hover { border-color: var(--graphite); transform: translateY(-4px); }
.stat:hover::before { width: 100%; }
.stat__num {
  font-family: var(--display); font-weight: 700; color: var(--white);
  font-size: clamp(32px, 4.2vw, 48px); letter-spacing: -0.03em; line-height: 1;
  display: flex; align-items: baseline; gap: 2px;
}
.stat__num.accent { color: var(--cyan); }
.stat__unit { font-size: .52em; color: var(--faint); margin-left: 2px; }
.stat__label { color: var(--muted); font-size: 14.5px; margin-top: 14px; line-height: 1.45; }

/* ───────── SERVICES / CARDS GRID ───────── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: var(--r); padding: 30px;
  background: var(--panel); transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--cyan); background: var(--panel-2); }
.card__icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(0,216,255,.08); border: 1px solid rgba(0,216,255,.22); margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.8; }
.card__idx { color: var(--cyan); font-size: 13px; letter-spacing: .1em; }
.card h3 { font-family: var(--display); font-weight: 600; color: var(--white); font-size: 21px; margin: 6px 0 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.card__tags span { font-family: var(--mono); font-size: 11px; color: var(--faint); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }

/* ───────── LAYERS (WHY RIFT) ───────── */
.layers { display: flex; flex-direction: column; }
.layer {
  display: grid; grid-template-columns: 90px 1fr; gap: 30px; align-items: start;
  padding: 32px 0; border-top: 1px solid var(--line-soft);
  transition: padding-left .35s var(--ease);
}
.layer:last-child { border-bottom: 1px solid var(--line-soft); }
.layer:hover { padding-left: 14px; }
.layer__num { font-family: var(--display); font-weight: 700; font-size: 40px; color: var(--line); transition: color .3s; letter-spacing: -0.02em; }
.layer:hover .layer__num { color: var(--cyan); }
.layer__body h3 { font-family: var(--display); font-weight: 600; color: var(--white); font-size: clamp(21px,2.6vw,27px); margin-bottom: 8px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.layer__body p { color: var(--muted); font-size: 16px; max-width: 760px; }
.tag-moat { font-size: 11px; letter-spacing: .14em; color: var(--cyan); border: 1px solid var(--cyan-deep); border-radius: 6px; padding: 3px 8px; }

/* ───────── COMPARISON TABLE ───────── */
.table { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.table__row { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 20px; padding: 22px 26px; border-bottom: 1px solid var(--line-soft); align-items: center; }
.table__row:last-child { border-bottom: 0; }
.table__row--head { background: var(--panel); color: var(--faint); font-size: 12.5px; letter-spacing: .12em; padding-block: 16px; }
.table__row--head .col-rift { color: var(--cyan); }
.table__row > span:first-child { color: var(--white); font-weight: 600; font-family: var(--display); font-size: 16px; }
.table__row > span:nth-child(2) { color: var(--muted); font-size: 14.5px; }
.table__row .col-rift { color: var(--text); font-size: 14.5px; }
.table__row .col-rift::before { content: '→ '; color: var(--cyan); font-weight: 700; }

/* ───────── PRICING ───────── */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price {
  border: 1px solid var(--line); border-radius: var(--r); padding: 34px 30px;
  background: var(--panel); position: relative; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s;
}
.price:hover { transform: translateY(-6px); border-color: var(--cyan); }
.price--feat { border-color: var(--cyan); background: linear-gradient(180deg, rgba(0,216,255,.07), var(--panel)); }
.price--feat:hover { border-color: var(--cyan); }
.price__flag { position: absolute; top: -11px; left: 30px; background: var(--cyan); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 4px 12px; border-radius: 6px; }
.price__name { font-size: 13px; letter-spacing: .14em; color: var(--cyan); }
.price__desc { color: var(--faint); font-size: 14px; margin-top: 4px; }
.price__amount { font-family: var(--display); font-weight: 700; color: var(--white); font-size: clamp(28px,3.4vw,38px); letter-spacing: -0.03em; margin: 22px 0 4px; }
.price__amount span { font-size: 14px; color: var(--faint); font-weight: 400; letter-spacing: 0; }
.price__time { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.price__copy { color: var(--muted); font-size: 14.5px; border-top: 1px solid var(--line-soft); padding-top: 18px; }
.price__list { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.price__list li { color: var(--text); font-size: 14px; padding-left: 22px; position: relative; }
.price__list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--cyan); }
.price__foot { margin-top: auto; padding-top: 22px; }

.retainer {
  margin-top: 18px; border: 1px dashed var(--graphite); border-radius: var(--r);
  padding: 26px 30px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; background: rgba(0,216,255,.03);
}
.retainer__tag { font-size: 12px; letter-spacing: .12em; color: var(--cyan); }
.retainer__copy { color: var(--text); font-size: 16px; margin-top: 6px; }
.retainer__price { font-family: var(--display); font-weight: 700; color: var(--white); font-size: clamp(22px,2.8vw,30px); letter-spacing: -0.02em; }
.retainer__price span { font-size: 14px; color: var(--faint); font-weight: 400; letter-spacing: 0; }

/* ───────── PROCESS FLOW ───────── */
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.flow__step {
  border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px;
  background: var(--panel); position: relative;
  transition: transform .3s var(--ease), border-color .3s;
}
.flow__step:hover { transform: translateY(-5px); border-color: var(--cyan); }
.flow__n {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(0,216,255,.1); color: var(--cyan); font-weight: 700; font-size: 16px;
  border: 1px solid rgba(0,216,255,.28); margin-bottom: 18px;
}
.flow__step h3 { font-family: var(--display); font-weight: 600; color: var(--white); font-size: 19px; margin-bottom: 8px; letter-spacing: -0.01em; }
.flow__step p { color: var(--muted); font-size: 14.5px; }
.flow__when { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--cyan); margin-top: 14px; letter-spacing: .06em; }

/* ───────── COMPLIANCE BAND ───────── */
.compliance { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.compliance__copy h3 { font-family: var(--display); font-weight: 600; color: var(--white); font-size: clamp(22px,3vw,30px); letter-spacing: -0.02em; margin-bottom: 16px; }
.compliance__copy p { color: var(--muted); font-size: 16px; margin-bottom: 12px; }
.frameworks { display: flex; flex-wrap: wrap; gap: 12px; }
.frameworks span {
  font-family: var(--mono); font-size: 13px; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 16px;
  background: var(--panel); transition: border-color .3s, color .3s;
}
.frameworks span:hover { border-color: var(--cyan); color: var(--cyan); }
.deliverables { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.deliverables li { color: var(--text); font-size: 15.5px; padding-left: 30px; position: relative; }
.deliverables li::before {
  content: '✓'; position: absolute; left: 0; top: -1px; color: var(--cyan); font-weight: 700;
  width: 20px; height: 20px; display: grid; place-items: center; font-size: 13px;
  border: 1px solid var(--cyan-deep); border-radius: 6px;
}

/* ───────── CTA ───────── */
.cta { padding: clamp(90px, 16vh, 170px) 0; text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,216,255,.1), transparent 70%);
}
.cta__inner { max-width: 760px; margin: 0 auto; }
.cta__kicker { color: var(--cyan); letter-spacing: .2em; font-size: 13px; margin-bottom: 22px; }
.cta__title { font-family: var(--display); font-weight: 700; color: var(--white); font-size: clamp(32px, 5.2vw, 58px); line-height: 1.06; letter-spacing: -0.03em; }
.cta__sub { font-size: clamp(18px,2.3vw,24px); color: var(--muted); margin-top: 22px; }
.cta__form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.cta__form input {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; color: var(--white); font-family: var(--mono); font-size: 14px;
  min-width: 280px; transition: border-color .2s;
}
.cta__form input:focus { outline: none; border-color: var(--cyan); }
.cta__form input::placeholder { color: var(--faint); }
.cta__note { color: var(--faint); font-size: 12.5px; margin-top: 22px; letter-spacing: .04em; }
.cta__note.ok { color: var(--cyan); }

/* ───────── FOOTER ───────── */
.footer { border-top: 1px solid var(--line); background: var(--navy); }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding: 56px 28px 40px; }
.footer__logo { height: 76px; width: auto; display: block; margin-bottom: 16px; }
.footer__brand p { color: var(--faint); font-size: 12px; letter-spacing: .18em; }
.footer__meta { display: flex; flex-direction: column; gap: 8px; text-align: right; color: var(--muted); font-size: 13px; }
.footer__meta span:last-child { color: var(--cyan); }
.footer__bar { text-align: center; color: var(--faint); font-size: 12px; padding: 20px; border-top: 1px solid var(--line-soft); letter-spacing: .04em; }

/* ───────── REVEAL ANIMATION ───────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }

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

/* ───────── RESPONSIVE ───────── */
@media (max-width: 980px) {
  .stats, .cards-grid, .pricing { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .compliance { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(5,7,13,.97); backdrop-filter: blur(14px);
    padding: 24px 28px; gap: 22px; border-bottom: 1px solid var(--line);
  }
  .nav__actions .btn--ghost { display: none; }

  .stats, .cards-grid, .pricing, .flow { grid-template-columns: 1fr; }

  /* stacked table → cards */
  .table { border: 0; }
  .table__row--head { display: none; }
  .table__row {
    grid-template-columns: 1fr; gap: 6px;
    border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px;
    padding: 20px 22px;
  }
  .table__row > span:nth-child(2)::before { content: 'Tradicional'; display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--faint); margin: 8px 0 2px; }
  .table__row > span.col-rift::before { content: 'RIFT'; }
  .table__row .col-rift { color: var(--text); }
  .table__row .col-rift > br { display: none; }

  .layer { grid-template-columns: 56px 1fr; gap: 18px; }
  .layer__num { font-size: 28px; }
  .footer__inner { flex-direction: column; }
  .footer__meta { text-align: left; }
}
