/* BlockIntelligenceAI — light theme matching the reference design tokens.
   Page: warm off-white #e7e5e0. Ink #1b1b1e. Primary blue #0069bd / #008efa.
   Cards white with 1px #e7e5e0 ring. Discount green #0c844b / #2fd07f.
   Fonts: Inter (text), JetBrains Mono (code/mono). */
:root {
  --bg: #e7e5e0;
  --surface: #ffffff;
  --surface-row: #fafaf9;
  --surface-raised: #eceae6;
  --surface-seg: #f0f0f3;
  --surface-btn: #e7e5e0;
  --surface-btn-hover: #dddcd5;
  --ink: #1b1b1e;
  --ink-bright: #26262b;
  --ink-secondary: #43424a;
  --ink-muted: #5f5d66;
  --ink-faint: #67666d;
  --primary: #0069bd;
  --primary-hover: #0074d4;
  --action: #0077d2;
  --action-hover: #1aa0ff;
  --blue: #008efa;
  --blue-soft: rgba(0, 105, 189, 0.08);
  --success: #0c844b;
  --money: #0a7241;
  --success-soft: rgba(12, 132, 75, 0.1);
  --risk: #b42a34;
  --divider: #e0ded8;
  --divider-subtle: #e7e5e0;
  --divider-strong: #d3d1ca;
  --link: #0b62a8;
  --codebg: #0f1014;
  --codeink: #b4b2bd;
  --codebright: #f4f4f5;
  --radius-control: 8px;
  --radius-card: 13px;
  --radius-button: 14px;
  --radius-circle: 9999px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 26px;
}
h1 { font-size: 54px; line-height: 1.06; font-weight: 500; margin: 0 0 20px; letter-spacing: -0.035em; }
h2 { font-size: 36px; line-height: 1.15; font-weight: 500; margin: 0 0 16px; letter-spacing: -0.045em; }
h3 { font-size: 20px; line-height: 28px; font-weight: 600; margin: 0 0 10px; }
p { margin: 0 0 16px; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono, code { font-family: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.eyebrow {
  font-size: 12px; line-height: 20px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px;
}
.sectionlede { font-size: 20px; line-height: 30px; color: var(--ink-muted); max-width: 720px; }
.visuallyhidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons — primary is the reference 3D blue, secondary the 3D neutral */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius-button);
  font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer;
  border: 0; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btnprimary {
  background: linear-gradient(180deg, #5294fc, #337ef8 48%, #2270f1); color: #fff;
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.34), inset 0 -1px 0 rgba(8, 75, 190, 0.22), 0 2px 0 #0f53c6, 0 8px 18px rgba(28, 105, 225, 0.2);
}
.btnsecondary {
  background: linear-gradient(180deg, #fff, #f4f3f1 48%, #e6e4e0); color: var(--ink);
  border: 1px solid var(--divider);
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.9), 0 2px 0 #b1aea8;
}
.btnlarge { height: 48px; padding: 0 24px; font-size: 16px; }
.btnblock { width: 100%; }
.btnx {
  height: 40px; padding: 0 16px; font-size: 14px; color: var(--ink);
  background: linear-gradient(180deg, #fff, #f4f3f1 48%, #e6e4e0);
  border: 1px solid var(--divider);
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.9), 0 2px 0 #b1aea8;
}
.xicon { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

/* Logo — square app icon, black background kept */
.logoimg {
  width: 32px; height: 32px; border-radius: 8px; object-fit: cover; display: block; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(27, 27, 30, 0.12), 0 1px 2px rgba(27, 27, 30, 0.08);
}

/* Nav — floating pill */
.nav {
  position: sticky; top: 12px; z-index: 50;
  width: calc(100% - 24px); max-width: 1200px; margin: 12px auto 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--divider-subtle); border-radius: 33px;
  box-shadow: 0 8px 28px rgba(27, 27, 30, 0.06);
}
.navinner { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brandname { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.navlinks { display: flex; gap: 28px; margin-left: auto; }
.navlinks a { color: var(--ink-muted); font-weight: 500; }
.navlinks a:hover { color: var(--ink); text-decoration: none; }
.navactions { display: flex; gap: 10px; align-items: center; }
.navactions .btn { height: 40px; padding: 0 16px; font-size: 14px; }

/* Hero */
.hero { padding: 96px 0 80px; }
.heroinner { text-align: center; max-width: 860px; }
.heroinner .sectionlede, .hero .lede { margin-left: auto; margin-right: auto; }
.lede { font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 600px; }
.heroactions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 28px 0 40px; }

/* Hero price card — mirrors the reference card */
.pricecard {
  max-width: 540px; margin: 0 auto; text-align: left;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--divider-subtle); border-radius: var(--radius-card);
  box-shadow: 0 0 0 1px #e7e5e0, 0 16px 40px rgba(27, 27, 30, 0.1);
  padding: 20px 28px 28px;
}
.pricetop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.modelchip { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--ink); }
.modelchipimg { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; display: block; box-shadow: 0 0 0 1px rgba(27, 27, 30, 0.12); }
.trendbadge {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--money); background: var(--success-soft); padding: 4px 8px; border-radius: var(--radius-control);
}
.pricegrid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.pricecol { min-width: 0; }
.pricecolmarket { text-align: right; }
.pricelabel { font-size: 10px; line-height: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-faint); margin: 0 0 4px; }
.pricevalue { font-size: 30px; line-height: 1.2; font-weight: 500; letter-spacing: -0.05em; margin: 0; color: var(--ink); }
.pricevalue.market { color: var(--success); }
.priceunit { font-size: 10px; line-height: 16px; color: var(--ink-faint); margin: 4px 0 0; }
.pricearrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-circle);
  background: var(--action); color: #fff; font-size: 18px; line-height: 1; flex-shrink: 0;
}
.saverow {
  margin: 24px 0 20px; padding: 12px 16px; text-align: center;
  background: rgba(12, 132, 75, 0.08); color: var(--money);
  font-size: 14px; line-height: 22px; border-radius: var(--radius-control);
}
.proofrow { margin-top: 24px; color: var(--ink-muted); font-size: 15px; line-height: 24px; text-align: center; }

/* Providers */
.providers { padding-top: 0; }
.providers h2, .providers .sectionlede { text-align: center; margin-left: auto; margin-right: auto; }
.providerwall {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.providerwall li {
  padding: 10px 18px; border: 1px solid var(--divider-subtle); border-radius: var(--radius-circle);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px;
  box-shadow: 0 1px 2px rgba(27, 27, 30, 0.04);
}

/* Integration */
.integrate { background: var(--surface); border-top: 1px solid var(--divider-subtle); border-bottom: 1px solid var(--divider-subtle); }
.threecards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0; }
.card {
  background: var(--surface); border: 1px solid var(--divider-subtle); border-radius: var(--radius-card); padding: 24px;
  box-shadow: 0 0 0 1px #e7e5e0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #e7e5e0, 0 16px 40px rgba(27, 27, 30, 0.1); }
.integrate .card { background: var(--surface-row); }
.card p { color: var(--ink-muted); margin-bottom: 0; }
.codepanel { background: var(--codebg); border: 1px solid #1f2024; border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 18px 40px rgba(27, 27, 30, 0.12); }
.codetabs { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: #1e1e1e; }
.codetab {
  background: transparent; border: 0; color: rgba(255, 255, 255, 0.55); font: inherit; font-size: 15px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--radius-control); cursor: pointer;
}
.codetab:hover { color: #fff; }
.codetab.active { background: rgba(255, 255, 255, 0.1); color: #fff; }
.copybtn {
  margin-left: auto; background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); color: #fff;
  font: inherit; font-size: 14px; font-weight: 600; padding: 7px 16px; border-radius: var(--radius-circle); cursor: pointer;
}
.copybtn:hover { border-color: var(--blue); color: #5abeff; }
.codeblock { margin: 0; padding: 24px; overflow-x: auto; font-size: 14px; line-height: 22px; }
.codeblock code { color: var(--codebright); white-space: pre; }
.codeblock .k { color: #9cdcfe; }
.codeblock .s { color: #7ee787; }
.codeblock .c { color: #6a9955; }
.codenote { margin: 0; padding: 0 24px 20px; color: #8b8a93; font-size: 14px; line-height: 22px; }
.codenote code { color: #5abeff; font-size: 13px; }
.socialproof { text-align: center; color: var(--ink-muted); margin: 32px 0 0; font-size: 17px; }

/* Calculator */
.calcgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.calcinputs, .calcresults { background: var(--surface); }
.fieldlabel { display: block; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.select {
  width: 100%; height: 48px; padding: 0 14px; margin-bottom: 24px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--divider-strong);
  border-radius: var(--radius-control); font: inherit; font-size: 15px; cursor: pointer;
}
.select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 105, 189, 0.28); }
.selectsmall { width: auto; min-width: 200px; margin-bottom: 0; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: var(--radius-control); background: #c9c7c1; outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%; background: var(--surface);
  border: 0; box-shadow: 0 0 0 2px var(--primary), 0 1px 3px rgba(0, 105, 189, 0.28); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--surface);
  border: 0; box-shadow: 0 0 0 2px var(--primary), 0 1px 3px rgba(0, 105, 189, 0.28); cursor: grab;
}
.slidervalue { color: var(--ink); font-weight: 600; margin: 10px 0 24px; }
.resultrow {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--divider-subtle); font-size: 16px;
}
.resultrow span { color: var(--ink-muted); }
.resultrow strong { font-size: 20px; font-weight: 600; text-align: right; color: var(--ink); }
.resultrow.highlight span { color: var(--ink); }
.resultrow.highlight strong { color: var(--success); font-size: 24px; }
.savepct { color: var(--success); font-weight: 700; font-size: 18px; margin: 18px 0 22px; }
.barrow { display: grid; grid-template-columns: 64px 1fr 110px; gap: 12px; align-items: center; margin-bottom: 12px; }
.barlabel { color: var(--ink-muted); font-size: 14px; }
.bartrack { height: 14px; background: var(--surface-raised); border-radius: 7px; overflow: hidden; }
.barfill { height: 100%; border-radius: 7px; transition: width 0.15s ease; }
.bardirect { background: linear-gradient(90deg, #2e8fd9, #0069bd); }
.barmarket { background: linear-gradient(90deg, #35b478, #0b7a47); }
.barvalue { font-size: 14px; text-align: right; color: var(--ink); }
.calcnote { color: var(--ink-muted); font-size: 14px; line-height: 22px; margin: 24px 0 0; max-width: 720px; }

/* Marketplace */
.marketplace { background: var(--surface); border-top: 1px solid var(--divider-subtle); border-bottom: 1px solid var(--divider-subtle); }
.marketcontrols { display: flex; gap: 16px; flex-wrap: wrap; margin: 32px 0 24px; }
.modelgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.modelcard { background: var(--surface); display: flex; flex-direction: column; }
.modelhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.modelhead h3 { margin: 0; }
.provider { color: var(--ink-muted); font-size: 13px; font-weight: 600; margin: 2px 0 0; }
.badge {
  flex-shrink: 0; padding: 5px 12px; border-radius: var(--radius-circle);
  background: var(--success-soft); color: var(--money);
  font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 13px; font-weight: 600;
}
.modelmeta { display: flex; gap: 20px; color: var(--ink-muted); font-size: 14px; margin-bottom: 16px; }
.modelmeta span b { color: var(--ink); font-weight: 600; }
.pricerows { border-top: 1px solid var(--divider-subtle); padding-top: 14px; margin-top: auto; }
.pricerow { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 3px 0; }
.pricerow span { color: var(--ink-muted); }
.pricerow .list { text-decoration: line-through; color: var(--ink-faint); }
.pricerow .market { color: var(--success); font-weight: 700; }
.center { text-align: center; margin-top: 40px; }

/* How it works */
.stepnum {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-soft); color: var(--primary);
  font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.stepexample { color: var(--primary) !important; font-size: 14px; line-height: 22px; margin-top: 14px !important; }

/* Sellers */
.sellers { padding-top: 0; }
.sellercard {
  background: var(--surface); border: 1px solid var(--divider-subtle); border-radius: 16px;
  padding: 56px 40px; text-align: center;
  box-shadow: 0 0 0 1px #e7e5e0, 0 12px 32px rgba(27, 27, 30, 0.06);
}
.sellercard .sectionlede { margin-left: auto; margin-right: auto; }
.sellerpoints { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 8px 0 32px; }
.sellerpoints span {
  padding: 10px 18px; border: 1px solid var(--divider-subtle); border-radius: var(--radius-circle);
  background: #f4f3f1; font-weight: 600; font-size: 15px; color: var(--ink);
}

/* Closing */
.closing { text-align: center; padding-top: 0; }
.closing h2 { font-size: 48px; line-height: 56px; }
.closing .sectionlede { margin-left: auto; margin-right: auto; }

/* Footer — rounded shell like the reference */
.footer {
  margin: 0 12px 12px; padding: 64px 48px 32px;
  background: linear-gradient(180deg, #eff0f2, #e2e4e7);
  border-radius: 64px; box-shadow: 0 18px 50px rgba(27, 27, 30, 0.08);
}
.footergrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footerbrand p { color: var(--ink-muted); margin-top: 16px; max-width: 280px; }
.footerbrand .btnx { margin-top: 8px; }
.footer h3 { font-size: 14px; line-height: 20px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer li a { color: var(--ink-muted); }
.footer li a:hover { color: var(--ink); text-decoration: none; }
.footerbottom { color: var(--ink-muted); font-size: 13px; line-height: 20px; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--divider-strong); }

/* Responsive */
@media (min-width: 640px) {
  h1 { font-size: 72px; }
  h2 { font-size: 48px; }
  .pricevalue { font-size: 36px; }
  .pricegrid { gap: 16px; }
}
@media (max-width: 960px) {
  .threecards { grid-template-columns: 1fr; gap: 16px; }
  .calcgrid { grid-template-columns: 1fr; }
  .modelgrid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footergrid { grid-template-columns: 1fr 1fr; }
  .footer { border-radius: 48px; padding: 48px 32px 24px; }
  .navlinks { display: none; }
  .navinner { gap: 10px; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  h1 { font-size: 40px; line-height: 48px; }
  h2 { font-size: 28px; line-height: 36px; }
  .closing h2 { font-size: 36px; line-height: 44px; }
  .navinner { gap: 6px; }
  .nav .container { padding: 0 6px; }
  .navactions { gap: 6px; }
  .navactions .btn { padding: 0 10px; }
  .navactions .btnsecondary { display: none; }
  .navactions .btnx { display: none; }
  .navactions .btnx span { display: none; }
  .btnx { padding: 0 8px; }
  .nav .brand { gap: 8px; }
  .nav .brand .logoimg { width: 28px; height: 28px; }
  .brandname { font-size: 13px; }
  .pricecard { padding: 20px 16px 24px; }
  .pricevalue { font-size: 24px; }
  .pricearrow { width: 32px; height: 32px; font-size: 16px; }
  .modelgrid { grid-template-columns: 1fr; }
  .footergrid { grid-template-columns: 1fr; }
  .footer { border-radius: 36px; padding: 48px 24px 24px; }
  .barrow { grid-template-columns: 52px 1fr 96px; gap: 8px; }
  .barvalue { font-size: 12px; }
  .sellercard { padding: 40px 20px; }
  .selectsmall { width: 100%; }
}

/* Hamburger button + mobile menu — mobile only (≤960px) */
.hambtn {
  display: none;
  width: 40px; height: 40px; padding: 0; flex-shrink: 0;
  border: 1px solid var(--divider); border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f4f3f1 48%, #e6e4e0);
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.9), 0 2px 0 #b1aea8;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hambtn span {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.hambtn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hambtn.open span:nth-child(2) { opacity: 0; }
.hambtn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobilemenu { display: none; }
@media (max-width: 960px) {
  .hambtn { display: inline-flex; }
  .mobilemenu {
    display: none;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
    background: var(--surface); border: 1px solid var(--divider-subtle); border-radius: 16px;
    box-shadow: 0 16px 40px rgba(27, 27, 30, 0.14);
    padding: 12px;
  }
  .mobilemenu.open { display: block; }
  .mobilemenu nav { display: flex; flex-direction: column; }
  .mobilemenu nav a {
    padding: 12px 14px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 16px;
  }
  .mobilemenu nav a:hover { background: var(--surface-row); text-decoration: none; }
  .mobileactions {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--divider-subtle);
  }
  .mobileactions .btn { width: 100%; height: 44px; }
  .mobilemenu .mobileactions .btnx span { display: inline; }
}
/* Very small screens: logo only in the header so the nav always fits */
@media (max-width: 360px) {
  .nav .brandname { display: none; }
}
