/* =========================================================
   DEASYBUILDSOLUTION — design tokens
   ========================================================= */
:root{
  --ink:        #14202B;   /* primary dark / hero bg */
  --ink-2:      #1E2E3F;   /* panel on dark */
  --steel:      #2C4A63;   /* secondary blue */
  --steel-line: #33506B;
  --orange:     #E8632C;   /* site / hi-vis accent */
  --orange-dark:#C74F1F;
  --green:      #3F8556;
  --red:        #C4442E;
  --paper:      #F4F2EB;   /* light section bg */
  --paper-2:    #ECE8DC;
  --card:       #FFFFFF;
  --grey-700:   #4A5560;
  --grey-500:   #74808B;
  --grey-300:   #C7CDD2;
  --line:       #DDD7C8;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --container: 1160px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

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

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3{ font-family: var(--font-display); margin:0; font-weight:700; letter-spacing:-0.01em; }
p{ margin:0; }
button{ font-family: inherit; }

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

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-family: var(--font-body);
  font-weight:600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn-primary{ background: var(--orange); color:#fff; }
.btn-primary:hover{ background: var(--orange-dark); }

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

.btn-outline{ background: transparent; border-color: rgba(20,32,43,0.22); color: var(--ink); }
.btn-outline:hover{ border-color: var(--ink); }

.btn-lg{ padding: 14px 28px; font-size: 1rem; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(244,242,235,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 72px;
}
.logo{ display:flex; align-items:center; gap:10px; }
.logo-mark{
  width:26px; height:26px;
  background: var(--ink);
  border-radius: 5px;
  position:relative;
  flex: none;
}
.logo-mark::before{
  content:"";
  position:absolute; inset: 6px;
  border: 2px solid var(--orange);
  border-right:none; border-bottom:none;
}
.logo-text{
  font-family: var(--font-display);
  font-weight:700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-accent{ color: var(--orange); }

.main-nav{ display:flex; gap: 32px; }
.main-nav a{
  font-size: 0.94rem; font-weight:500; color: var(--grey-700);
  transition: color .15s var(--ease);
}
.main-nav a:hover{ color: var(--ink); }

.header-cta{ display:flex; align-items:center; gap: 10px; }

.nav-toggle{
  display:none;
  flex-direction:column; justify-content:center; gap:5px;
  width: 40px; height:40px;
  background:none; border:none; cursor:pointer;
}
.nav-toggle span{
  width:22px; height:2px; background: var(--ink); display:block; margin:0 auto;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity:0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal{
  opacity:0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible{ opacity:1; transform: translateY(0); }

/* =========================================================
   EYEBROW / SECTION HEAD
   ========================================================= */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 16px;
}
.eyebrow-dot{
  width:7px; height:7px; border-radius:50%;
  background: var(--orange);
  flex:none;
}
.eyebrow-light{ color: #9FB3C4; }

.section-head{ max-width: 620px; margin-bottom: 48px; }
.section-head h2{ font-size: clamp(1.7rem, 3.2vw, 2.35rem); margin-bottom: 14px; }
.section-sub{ color: var(--grey-700); font-size: 1.02rem; }
h2.on-dark{ color:#fff; }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  background: var(--ink);
  color: #fff;
  padding: 72px 0 96px;
  overflow: hidden;
  position: relative;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events:none;
}
.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items:center;
}
.hero h1{
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  line-height: 1.04;
  color:#fff;
  margin-bottom: 22px;
}
.hero-sub{
  font-size: 1.08rem;
  color: #C6CFD7;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 18px; }
.hero .btn-outline{ border-color: rgba(255,255,255,0.28); color:#fff; }
.hero .btn-outline:hover{ border-color:#fff; }
.hero-trust{ font-family: var(--font-mono); font-size: 0.8rem; color: #8FA0AE; }

/* ---- ledger mockup (signature element) ---- */
.hero-visual{ position:relative; }
.ledger-card{
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
  overflow:hidden;
  transform: rotate(0.6deg);
}
.ledger-card-head{
  display:flex; align-items:center; gap:10px;
  padding: 14px 18px;
  background: var(--ink-2);
}
.ledger-dots{ display:flex; gap:6px; }
.ledger-dots span{ width:9px; height:9px; border-radius:50%; background: rgba(255,255,255,0.25); }
.ledger-title{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #B9C4CC;
  margin-left: 4px;
}
.ledger-body{ display:flex; min-height: 300px; }

.ledger-tabs{
  display:flex; flex-direction:column;
  background: var(--paper-2);
  border-right: 1px solid var(--line);
  flex: none;
  width: 128px;
}
.ledger-tab{
  display:flex; flex-direction:column; align-items:flex-start; gap:2px;
  background:none; border:none; cursor:pointer;
  padding: 13px 14px;
  border-left: 3px solid transparent;
  text-align:left;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.ledger-tab .tab-code{
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em;
  color: var(--grey-500);
}
.ledger-tab .tab-label{ font-size: 0.82rem; font-weight:600; color: var(--grey-700); }
.ledger-tab:hover{ background: rgba(232,99,44,0.08); }
.ledger-tab.is-active{
  background: var(--card);
  border-left-color: var(--orange);
}
.ledger-tab.is-active .tab-code{ color: var(--orange); }
.ledger-tab.is-active .tab-label{ color: var(--ink); }

.ledger-panels{ position:relative; flex:1; background: var(--card); }
.ledger-panel{
  display:none;
  padding: 20px 22px;
  animation: fadeIn .25s var(--ease);
}
.ledger-panel.is-active{ display:block; }
@keyframes fadeIn{ from{ opacity:0; transform: translateY(4px);} to{ opacity:1; transform:translateY(0);} }

.mini-table{ width:100%; border-collapse:collapse; font-size: 0.85rem; }
.mini-table th{
  text-align:left; font-family: var(--font-mono); font-weight:500;
  font-size: 0.7rem; text-transform:uppercase; letter-spacing: 0.04em;
  color: var(--grey-500); padding-bottom:10px; border-bottom: 1px solid var(--line);
}
.mini-table td{ padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--grey-700); }
.mini-table tr:last-child td{ border-bottom:none; }

.pill{
  display:inline-block; font-family: var(--font-mono); font-size: 0.68rem;
  padding: 3px 9px; border-radius: 100px; font-weight:500;
}
.pill-ok{ background: rgba(63,133,86,0.12); color: var(--green); }
.pill-low{ background: rgba(196,68,46,0.1); color: var(--red); }
.pill-off{ background: rgba(196,68,46,0.1); color: var(--red); }

.att-summary{ display:flex; gap:22px; margin-bottom:18px; }
.att-summary div{ display:flex; flex-direction:column; }
.att-summary strong{ font-family: var(--font-display); font-size: 1.4rem; }
.att-summary span{ font-size: 0.72rem; color: var(--grey-500); text-transform:uppercase; letter-spacing:0.04em; }
.att-list li{
  display:flex; justify-content:space-between; align-items:center;
  padding: 9px 0; border-bottom:1px solid var(--line); font-size: 0.85rem; color: var(--grey-700);
}
.att-list li:last-child{ border-bottom:none; }

.pl-bars{ display:flex; flex-direction:column; gap: 14px; margin-bottom: 18px; }
.pl-row{ display:grid; grid-template-columns: 64px 1fr 70px; align-items:center; gap:10px; }
.pl-label{ font-size: 0.78rem; color: var(--grey-500); }
.pl-track{ height:8px; background: var(--paper-2); border-radius: 100px; overflow:hidden; }
.pl-fill{ height:100%; width: var(--w); border-radius: 100px; }
.pl-fill-in{ background: var(--green); }
.pl-fill-out{ background: var(--orange); }
.pl-val{ font-family: var(--font-mono); font-size: 0.78rem; text-align:right; }
.pl-net{
  display:flex; justify-content:space-between; align-items:center;
  padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 0.85rem; color: var(--grey-700);
}
.pl-net strong{ font-family: var(--font-display); font-size: 1.15rem; color: var(--green); }

.doc-list li{
  display:grid; grid-template-columns: 22px 1fr auto; align-items:center; gap:10px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--grey-700);
}
.doc-list li:last-child{ border-bottom:none; }
.doc-ico{ color: var(--steel); font-size: 1rem; }
.doc-meta{ font-family: var(--font-mono); font-size: 0.72rem; color: var(--grey-500); }

.corner-mark{
  position:absolute; width:34px; height:34px;
  border: 2px solid rgba(232,99,44,0.55);
  pointer-events:none;
}
.corner-mark-tl{ top:-14px; left:-14px; border-right:none; border-bottom:none; }
.corner-mark-br{ bottom:-14px; right:-14px; border-left:none; border-top:none; }

/* =========================================================
   PAIN POINTS
   ========================================================= */
.pain{ padding: 72px 0; border-bottom: 1px solid var(--line); }
.pain-heading{
  font-family: var(--font-display); font-weight:600;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  max-width: 560px; margin-bottom: 36px;
}
.pain-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  font-size: 0.95rem;
  color: var(--grey-700);
}

/* =========================================================
   FEATURES
   ========================================================= */
.features{ padding: 96px 0; }
.feature-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.feature-card:hover{ transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(20,32,43,0.25); }
.feature-tag{
  display:inline-block;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight:600;
  letter-spacing: 0.04em;
  color: var(--orange);
  background: rgba(232,99,44,0.1);
  padding: 4px 9px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.feature-card h3{ font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p{ color: var(--grey-700); font-size: 0.92rem; }

.feature-card-cta{
  background: var(--ink);
  color:#fff;
  display:flex; flex-direction:column; justify-content:center; gap:12px;
}
.feature-card-cta h3{ color:#fff; }
.feature-card-cta p{ color:#B9C4CC; margin-bottom: 6px; }
.feature-card-cta .btn{ align-self:flex-start; }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how{ background: var(--ink); color:#fff; padding: 96px 0; }
.steps{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step{
  border-top: 1px solid var(--steel-line);
  padding-top: 22px;
}
.step-num{
  display:block;
  font-family: var(--font-mono);
  color: var(--orange);
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.step h3{ color:#fff; font-size: 1.2rem; margin-bottom: 10px; }
.step p{ color: #B9C4CC; font-size: 0.94rem; }

/* =========================================================
   WHO IT'S FOR
   ========================================================= */
.who{ padding: 96px 0; }
.who-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.who-card{
  background: var(--paper-2);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.who-card h3{ font-size: 1.1rem; margin-bottom: 10px; }
.who-card p{ color: var(--grey-700); font-size: 0.92rem; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner{
  background: var(--orange);
  color:#fff;
  padding: 88px 0;
}
.cta-inner{ max-width: 640px; text-align:center; margin: 0 auto; }
.cta-inner h2{ color:#fff; font-size: clamp(1.8rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.cta-inner p{ color: rgba(255,255,255,0.92); margin-bottom: 30px; font-size: 1.02rem; }
.cta-form{
  display:flex; gap:10px; flex-wrap:wrap; justify-content:center;
  margin-bottom: 14px;
}
.cta-form input{
  flex:1; min-width: 240px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.cta-banner .btn-primary{ background: var(--ink); }
.cta-banner .btn-primary:hover{ background: #0D161E; }
.cta-note{ font-family: var(--font-mono); font-size: 0.78rem; color: rgba(255,255,255,0.85); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background: var(--ink-2); color: #B9C4CC; padding: 56px 0 0; }
.footer-inner{
  display:grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid var(--steel-line);
}
.footer-brand p{ margin-top: 12px; max-width: 320px; font-size: 0.9rem; }
.footer-brand .logo-text{ color:#fff; }
.footer-col h4{ font-family: var(--font-mono); font-size: 0.76rem; text-transform:uppercase; letter-spacing:0.05em; color:#8FA0AE; margin-bottom: 14px; }
.footer-col a{ display:block; font-size: 0.9rem; margin-bottom: 10px; color:#C6CFD7; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{
  padding: 20px 24px;
  font-size: 0.8rem;
  color: #7C8B96;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ order:-1; }
  .feature-grid, .pain-grid, .who-grid{ grid-template-columns: repeat(2,1fr); }
  .steps{ grid-template-columns: repeat(3,1fr); gap: 20px; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px){
  .main-nav, .header-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .site-header.nav-open .main-nav{
    display:flex; flex-direction:column; gap:0;
    position:absolute; top:72px; left:0; right:0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .site-header.nav-open .main-nav a{ padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-header.nav-open .header-cta{
    display:flex; position:absolute; top: 100%; left:0; right:0;
    background: var(--paper); padding: 0 24px 20px; gap:10px;
  }
  .site-header.nav-open .header-cta .btn{ flex:1; }

  .ledger-body{ flex-direction:column; }
  .ledger-tabs{ flex-direction:row; width:100%; overflow-x:auto; border-right:none; border-bottom:1px solid var(--line); }
  .ledger-tab{ border-left:none; border-bottom: 3px solid transparent; flex: none; }
  .ledger-tab.is-active{ border-left:none; border-bottom-color: var(--orange); }

  .feature-grid, .pain-grid, .who-grid, .steps{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
  .pl-row{ grid-template-columns: 56px 1fr 60px; }
}
