:root{
  --ink:#22252a;
  --ink-soft:#4b4f57;
  --paper:#f2f3f5;
  --panel:#e7e9ed;
  --blue:#1d4fd8;
  --blue-deep:#12318f;
  --blue-pale:#dfe7fb;
  --line:rgba(34,37,42,0.14);
  --max:1080px;
}

.actions-wrapper {
  display: flex;         /* Places items on the same row */
  align-items: center;   /* Aligns them vertically in the center */
  gap: 15px;             /* Adds clean spacing between the button and toggle */
}


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

html{
  scroll-behavior:smooth;
  overflow-x:clip;
  width:100%;
}

body{
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:clip;
  width:100%;
  touch-action:pan-y;
  overscroll-behavior-x:none;
}

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 28px;
}

a{color:inherit;}

.mono{
  font-family:'IBM Plex Mono',monospace;
  letter-spacing:.04em;
  font-size:16px;
}

.display{
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
}

header.top{
  border-bottom:1px solid var(--ink);
  padding:18px 0;
  position:sticky;
  top:0;
  background:var(--paper);
  z-index:100;
}

.top-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none; /* Keeps your underline removal organized here */
  color: inherit;        /* Keeps your text color normal */
}

.brand{
  display:flex;
  align-items:center;
  margin:auto 0; 
  gap:10px;
}

.brand .node{
  width:20px;
  height:20px;
  background:var(--blue);
  border-radius:2px;
  position:relative;
}

.brand img{
  width:25px;
  height:25px;
}

.brand span{
  font-weight:700;
  letter-spacing:.04em;
  font-family:'Space Grotesk',sans-serif;
}

nav.mono{
  display:flex;
  align-items:center;
}

nav.mono a{
  margin-left:26px;
  text-decoration:none;
  color:var(--ink);
  border-bottom:1px solid transparent;
  transition:border-color .2s ease,color .2s ease;
}

nav.mono .theme-toggle{
  margin-left:26px;
}

nav.mono a:hover{
  border-color:var(--blue);
  color:var(--blue);
}

/* Hero */

.hero{
  padding:96px 0 82px;
  position:relative;
}

.hero .tag{
  color:var(--blue-deep);
  font-weight:600;
  margin-bottom:22px;
  display:inline-block;
  border:1px solid var(--blue);
  background:var(--blue-pale);
  padding:6px 11px;
  border-radius:3px;
}

h1{
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  font-size:clamp(44px,7.4vw,88px);
  line-height:1;
  letter-spacing:-.025em;
  max-width:920px;
}

h1 .accent{
  color:var(--blue);
}

.hero-sub{
  max-width:650px;
  margin-top:30px;
  font-size:20px;
  line-height:1.6;
  color:var(--ink-soft);
}

.hero-cta{
  margin-top:40px;
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  align-items:center;
}

.btn{
  display:inline-block;
  font-family:'IBM Plex Mono',monospace;
  font-size:16px;
  letter-spacing:.03em;
  padding:15px 24px;
  text-decoration:none;
  border:2px solid var(--ink);
  color:var(--ink);
  transition:all .18s ease;
  border-radius:2px;
}

.btn.primary{
  background:var(--blue);
  border-color:var(--blue);
  color:#fff;
  position:relative;
  overflow:hidden; /* keeps the sweep contained inside the button */
  isolation:isolate; /* keeps the ::before above the background, below the text */
}

.btn.primary::before{
  content:"";
  position:absolute;
  top:0;
  left:-150%;
  width:60%;
  height:100%;
  background:linear-gradient(
    100deg,
    transparent 0%,
    rgba(255,255,255,0) 20%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0) 80%,
    transparent 100%
  );
  transform:skewX(-20deg);
  animation:btn-sweep 4.8s ease-in-out infinite;
  animation-delay:1.5s;
  pointer-events:none;
}

@keyframes btn-sweep{
  0%   { left:-150%; }
  35%  { left:150%; }
  100% { left:150%; }
}

.btn.primary:hover{
  transform:translateY(-1px);
  filter:brightness(1.06);
}

/* respect users who've asked for less motion */
@media (prefers-reduced-motion: reduce){
  .btn.primary::before{
    animation:none;
  }
}

.btn.primary:hover{
  background:var(--blue-deep);
  border-color:var(--blue-deep);
}

.btn.ghost:hover{
  background:var(--ink);
  color:var(--paper);
}

/* Ticker */

.ticker-outer{
  border-top:1px solid var(--ink);
  border-bottom:1px solid var(--ink);
  background:var(--ink);
  color:var(--paper);
  padding:12px 0;
  overflow:hidden;
  white-space:nowrap;
}

.ticker-track{
  display:inline-block;
  animation:scroll 30s linear infinite;
  font-family:'IBM Plex Mono',monospace;
  font-size:16px;
  letter-spacing:.05em;
}

.ticker-track span{
  margin:0 28px;
  opacity:.9;
}

.ticker-track span.hl{
  color:#8fb0f7;
}

@keyframes scroll{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}

@media(prefers-reduced-motion:reduce){
  .ticker-track{animation:none;}
}

/* Sections */

.section{
  padding:96px 0;
}

.section.tight{
  padding:76px 0;
}

.eyebrow{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:34px;
}

.eyebrow .num{
  color:var(--blue-deep);
  border:1px solid var(--blue);
  padding:5px 9px;
  border-radius:3px;
}

.eyebrow .rule{
  flex:1;
  height:1px;
  background:var(--line);
}

h2{
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  font-size:clamp(30px,3.6vw,44px);
  letter-spacing:-.02em;
  margin-bottom:12px;
}

.section-intro{
  max-width:680px;
  color:var(--ink-soft);
  font-size:18px;
  margin-bottom:52px;
}

/* About */

.about-grid{
  display:grid;
  grid-template-columns:1fr 1.3fr;
  gap:64px;
  align-items:start;
}

.about-grid .lede{
  font-size:24px;
  font-weight:600;
  line-height:1.45;
}

.about-grid .lede em{
  font-style:normal;
  color:var(--blue-deep);
  background:var(--blue-pale);
  padding:0 4px;
}

.credentials{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:26px 32px;
  margin-top:38px;
}

.credentials .cred b{
  display:block;
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  font-size:18px;
  margin-bottom:5px;
}

.credentials .cred p{
  font-size:16px;
  color:var(--ink-soft);
  line-height:1.5;
}

.about-body p{
  margin-bottom:20px;
  color:var(--ink);
  font-size:16px;
}

.about-body p:last-child{
  margin-bottom:0;
}

/* Transformation */

.transform{
  background:var(--panel);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.ba-grid{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:0;
  align-items:stretch;
  border:2px solid var(--ink);
  background:var(--ink);
}

.ba-col{
  background:var(--paper);
  padding:34px 30px;
}

.ba-col.after{
  background:var(--blue-pale);
}

.ba-label{
  font-family:'IBM Plex Mono',monospace;
  font-size:16px;
  letter-spacing:.05em;
  margin-bottom:22px;
  display:flex;
  align-items:center;
  gap:8px;
}

.ba-col.before .ba-label{
  color:var(--ink-soft);
}

.ba-col.after .ba-label{
  color:var(--blue-deep);
}

.ba-label .dot{
  width:12px;
  height:12px;
  border-radius:50%;
  background:currentColor;
}

.ba-item{
  display:flex;
  gap:12px;
  padding:13px 0;
  border-top:1px solid var(--line);
  font-size:15px;
}

.ba-item:first-of-type{
  border-top:none;
}

.ba-col.before .ba-item::before{
  content:"×";
  color:#a04040;
  font-weight:700;
  width:16px;
}

.ba-col.after .ba-item::before{
  content:"✓";
  color:var(--blue);
  font-weight:700;
  width:16px;
}

.ba-arrow{
  background:var(--ink);
  color:var(--paper);
  display:flex;
  align-items:center;
  justify-content:center;
  align-self:center;
  padding:16px 22px;
  font-family:'Space Grotesk',sans-serif;
  font-size:22px;
}

/* Benefits */

.panels{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2px;
  background:var(--ink);
  border:2px solid var(--ink);
}

.panel{
  background:var(--paper);
  padding:32px 26px 30px;
  position:relative;
  min-height:250px;
  display:flex;
  flex-direction:column;
}

.panel .take{
  color:var(--blue-deep);
  margin-bottom:18px;
}

.panel h3{
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  font-size:20px;
  margin-bottom:12px;
  line-height:1.15;
}

.panel p{
  font-size:15px;
  color:var(--ink-soft);
  line-height:1.55;
}

.panel .corner{
  position:absolute;
  top:14px;
  right:14px;
  width:8px;
  height:8px;
  background:var(--blue);
  opacity:.7;
}

/* Questions */

.questions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  border:2px solid var(--ink);
}

.question{
  padding:28px 26px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.question:nth-child(2n){
  border-right:none;
}

.question:nth-last-child(-n+2){
  border-bottom:none;
}

.question h3{
  font-family:'Space Grotesk',sans-serif;
  font-size:19px;
  margin-bottom:8px;
}

.question p{
  font-size:17px;
  color:var(--ink-soft);
}

/* Track record */

.strip{
  display:flex;
  gap:0;
  border:2px solid var(--ink);
  overflow-x:auto;
}

.frame{
  min-width:230px;
  border-right:2px dashed var(--line);
  padding:28px 22px;
  flex-shrink:0;
}

.frame:last-child{
  border-right:none;
}

.frame .yr{
  color:var(--blue-deep);
  margin-bottom:10px;
}

.frame h4{
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  font-size:17px;
  margin-bottom:8px;
}

.frame p{
  font-size:16px;
  color:var(--ink-soft);
  line-height:1.5;
}

/* CTA */

.contact{
  background:var(--ink);
  color:var(--paper);
  padding:110px 0;
  text-align:center;
}

.contact h2{
  color:var(--paper);
}

.contact .section-intro{
  color:#b9bdc6;
  margin-left:auto;
  margin-right:auto;
}

.contact .btn.primary{
  background:var(--blue);
  border-color:var(--blue);
}

.contact .btn.primary:hover{
  background:#fff;
  color:var(--ink);
  border-color:#fff;
}

.contact .btn.ghost{
  border-color:var(--paper);
  color:var(--paper);
}

.contact .btn.ghost:hover{
  background:var(--paper);
  color:var(--ink);
}

.contact-links{
  margin-top:16px;
  font-family:'IBM Plex Mono',monospace;
  font-size:16px;
  color:#9aa0ab;
}

.contact-links a{
  text-decoration:underline;
  text-underline-offset:3px;
  color:#8fb0f7;
}

footer{
  padding:26px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-family:'IBM Plex Mono',monospace;
  font-size:16px;
  color:#7a7e86;
}

:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:2px;
}

/* Responsive */

@media(max-width:860px){

  .about-grid{
    grid-template-columns:1fr;
    gap:36px;
  }

  .panels{
    grid-template-columns:1fr;
  }

  .credentials{
    grid-template-columns:1fr;
  }

  nav.mono a{
    margin-left:14px;
  }

  .ba-grid{
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto;
  }

  .ba-arrow{
    width:fit-content;
    margin:0 auto;
    padding:10px 16px;
    font-size:0;
  }

  .ba-arrow::before{
    content:"↓";
    font-size:22px;
  }

  .questions{
    grid-template-columns:1fr;
  }

  .question,
  .question:nth-child(2n){
    border-right:none;
  }

  .question:nth-last-child(-n+2){
    border-bottom:1px solid var(--line);
  }

  .question:last-child{
    border-bottom:none;
  }
}

@media(max-width:600px){

  .hero{
    padding:70px 0 64px;
  }

  .hero-sub{
    font-size:18px;
  }

  .section{
    padding:72px 0;
  }

  nav.mono a{
    display:none;
  }

  h1{
    font-size:clamp(42px,13vw,68px);
  }
}

/* Theme Toggle */

.theme-toggle{
  background:none;
  border:none;
  font-size:20px;
  cursor:pointer;
  padding:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--ink);
  transition:color .2s ease;
}

.theme-toggle:hover{
  color:var(--blue);
}

/* Dark Mode */

html.dark-mode{
  --ink:#f2f3f5;
  --ink-soft:#e0e4eb;
  --paper:#1a1d22;
  --panel:#2a2e35;
  --blue-deep:#5b7ef5;
  --blue-pale:#1e3a8a;
  --line:rgba(242,243,245,0.14);
}

html.dark-mode .ticker-outer{
  background:var(--paper);
  color:var(--ink);
}

html.dark-mode .ticker-track span.hl{
  color:#5b7ef5;
}

html.dark-mode .ba-col{
  background:var(--panel);
}

html.dark-mode .ba-col.after{
  background:#1e3a8a;
}

html.dark-mode .ba-col.before .ba-label{
  color:var(--ink-soft);
}

html.dark-mode .ba-col.after .ba-label{
  color:#8fb0f7;
}

html.dark-mode .hero .tag{
  background:var(--blue-pale);
  border-color:var(--blue);
  color:#8fb0f7;
}