/* iCode product site, direction A "product first, light" (chosen 2026-11-19).
   Satoshi for text (never italic), system monospace for code, IOTA blue #0066FF.
   Fonts and the IOTA cursor logo are self-hosted: the site makes no third-party requests,
   the same as the product. */

@font-face { font-family: Satoshi; src: url('fonts/Satoshi-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Satoshi; src: url('fonts/Satoshi-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Satoshi; src: url('fonts/Satoshi-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --blue: #0066ff;
  --blue-dark: #0047b3;
  --blue-soft: #e8efff;
  --ink: #0d1117;
  --ink-2: #4a5363;
  --ink-3: #6b7383;
  --line: #e2e6ec;
  --line-2: #cfd5df;
  --bg: #f6f7f9;
  --card: #ffffff;
  --ok: #22a05a;
  --code-bg: #0d1117;
  --code-ink: #e6edf7;
  --radius: 12px;
  --max: 1180px;
  --sans: Satoshi, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
em, i, cite { font-style: normal; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-2); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--mono); font-size: 0.84em; }
pre {
  background: var(--code-bg); color: var(--code-ink);
  padding: 16px 18px; border-radius: var(--radius);
  overflow-x: auto; line-height: 1.6; margin: 0 0 1.2em;
}
:not(pre) > code { background: var(--blue-soft); color: var(--ink); padding: 1px 6px; border-radius: 5px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.2rem; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand small { font-weight: 400; color: var(--ink-3); font-size: 0.85rem; }
.nav nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav nav a { color: var(--ink); font-size: 0.95rem; font-weight: 500; }
.nav nav a.current { color: var(--blue); }
.nav nav a.btn { color: #fff; }
@media (max-width: 760px) { .nav nav a.hide-sm { display: none; } .nav nav { gap: 14px; } .brand small { display: none; } .nav .wrap { height: 64px; } }

/* Buttons: dark pill primary, outlined pill secondary. */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; white-space: nowrap;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
}
.btn:hover { background: #232a36; border-color: #232a36; text-decoration: none; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); background: var(--card); }
.btn.sm { padding: 9px 18px; font-size: 0.95rem; }
.btn:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.badge {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 0.82rem; color: var(--ink-2); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 680px; }
.eyebrow { color: var(--blue); font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }

.hero { padding: 64px 0 56px; }
.hero h1 { max-width: 900px; }
.hero h1 span { color: var(--blue); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .fine { margin-top: 18px; font-size: 0.95rem; color: var(--ink-3); }

/* Home hero: centred, with the product window below. */
.hero.home { text-align: center; padding: 56px 0 0; }
.hero.home h1 { margin: 20px auto 16px; max-width: 15ch; }
.hero.home .lead { margin: 0 auto; max-width: 60ch; }
.hero.home .actions { justify-content: center; }
.tag { display: inline-flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.tag b { color: var(--blue); }

.stage { margin-top: 48px; border-radius: 20px 20px 0 0; background: linear-gradient(160deg, #dfe8ff 0%, #eef1f6 45%, #e9ecf2 100%); padding: 40px 40px 0; }
.app { background: var(--card); border-radius: 12px 12px 0 0; border: 1px solid #d9dee7; border-bottom: 0; display: grid; grid-template-columns: 180px minmax(0, 1fr) 310px; min-height: 340px; overflow: hidden; font-size: 13px; text-align: left; box-shadow: 0 30px 60px -40px rgba(10, 20, 40, 0.45); }
.app .files { background: #f8f9fb; border-right: 1px solid #e6e9ef; padding: 14px; color: var(--ink-2); }
.app .files div { padding: 3px 6px; border-radius: 5px; }
.app .files .on { background: var(--blue-soft); color: #0b3fa8; }
.app .code { padding: 14px 16px; font-family: var(--mono); font-size: 12px; line-height: 1.8; color: #2a3140; overflow: hidden; white-space: pre; }
.app .code .add { background: #e7f6ec; display: block; margin: 0 -16px; padding: 0 16px; }
.app .code .del { background: #fdecec; display: block; margin: 0 -16px; padding: 0 16px; color: #8a2a2a; }
.app .agent { border-left: 1px solid #e6e9ef; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.app .bubble { background: #f3f5f8; border-radius: 10px; padding: 10px 12px; }
.app .step { display: flex; gap: 8px; align-items: center; color: var(--ink-2); }
.app .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.app .done { border: 1px solid #bfe3cc; background: #f1fbf5; border-radius: 10px; padding: 10px 12px; color: #155c33; font-weight: 500; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 20px 20px; overflow: hidden; }
.row3 div { background: var(--card); padding: 26px 28px; text-align: left; }
.row3 h3 { font-size: 1.05rem; margin-bottom: 6px; }
.row3 p { margin: 0; font-size: 0.95rem; }
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app .files { display: none; }
  .app .code { font-size: 11px; border-bottom: 1px solid #e6e9ef; }
  .app .agent { border-left: 0; }
  .row3 { grid-template-columns: 1fr; }
  .stage { padding: 16px 16px 0; margin-top: 32px; }
}

.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 56px; }
.proof div { background: var(--card); padding: 20px 22px; }
.proof b { display: block; font-size: 1.02rem; }
.proof span { color: var(--ink-3); font-size: 0.93rem; }
@media (max-width: 860px) { .proof { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .proof { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid, .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
section.alt .card { background: var(--bg); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.97rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 20px; height: 20px; }

/* Architecture strip */
.flow { display: grid; grid-template-columns: 1fr auto 1.3fr auto 1fr; align-items: stretch; gap: 14px; margin-top: 18px; }
.flow .box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--card); }
.flow .box.core { border: 2px solid var(--blue); }
.flow .box h4 { margin-bottom: 8px; }
.flow .box ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 0.96rem; }
.flow .arrow { align-self: center; color: var(--blue); font-size: 1.6rem; font-weight: 700; }
.fence { margin-top: 36px; border: 1.5px dashed var(--line-2); border-radius: 20px; padding: 20px; background: color-mix(in srgb, var(--card) 50%, transparent); }
.fence > .label { font-size: 0.85rem; font-weight: 700; color: var(--ink-3); }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } .flow .arrow { transform: rotate(90deg); justify-self: center; } }

/* Closing band */
.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #a9b2c3; }
.cta-band img { height: 56px; width: auto; margin-bottom: 18px; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn:hover { background: #e9edf4; }
.cta-band .btn.ghost { background: transparent; color: #fff; border-color: #3a4352; }
.cta-band .btn.ghost:hover { border-color: #fff; }

/* Downloads */
.dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; }
.dl .meta { color: var(--ink-3); font-size: 0.95rem; }
.dl code { word-break: break-all; }
@media (max-width: 600px) { .dl { grid-template-columns: 1fr; } }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 18px 52px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff;
  font-weight: 700; display: grid; place-items: center;
}
.steps h3 { margin-top: 5px; }

.note { border: 1px solid #c9daff; background: var(--blue-soft); padding: 14px 18px; border-radius: var(--radius); margin: 0 0 1.2em; color: var(--ink); }
.note p { color: var(--ink); margin: 0; }

.prose > * { max-width: 780px; }
.prose > h2:first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; font-size: 1.7rem; }
.prose ul { padding-left: 22px; color: var(--ink-2); }
.prose li { margin-bottom: 6px; }

.toc { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 0; }

/* Forms */
input, select, textarea { font: inherit; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-3); font-size: 0.93rem; background: var(--card); }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer a { color: var(--ink-2); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- Announcement bar, phone menu ---- */
.announce { background: var(--ink); color: #c9d1de; font-size: 0.88rem; }
.announce .wrap { padding-top: 9px; padding-bottom: 9px; text-align: center; }
.announce b { color: #fff; background: var(--blue); border-radius: 999px; padding: 1px 8px; margin-right: 6px; font-size: 0.78rem; }
.announce a { color: #fff; font-weight: 700; margin-left: 4px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; font-size: 1.1rem; width: 40px; height: 38px; cursor: pointer; color: var(--ink); }
.mnav { display: grid; padding: 8px 16px 16px; border-top: 1px solid var(--line); background: var(--bg); }
.mnav[hidden] { display: none; }
.mnav a { padding: 10px 4px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .menu-btn { display: inline-block; } .nav nav a.btn.sm { padding: 8px 14px; } }

/* ---- Footer columns ---- */
.fcols { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; width: 100%; }
.fcols h4 { font-size: 0.85rem; color: var(--ink); margin-bottom: 10px; }
.fcols a { display: block; padding: 3px 0; }
.fbrand p { margin: 10px 0; font-size: 0.92rem; max-width: 30ch; }
.pill { display: inline-block; font-size: 0.78rem; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); }
.fbase { width: 100%; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; }
@media (max-width: 860px) { .fcols { grid-template-columns: 1fr 1fr; } .fbrand { grid-column: 1 / -1; } }

/* ---- Section heads, logos of trust, stats ---- */
.head { max-width: 760px; margin-bottom: 8px; }
.head.center { margin: 0 auto 8px; text-align: center; }
.head.center .lead { margin: 0 auto; }
.trustbar { display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: center; margin-top: 28px; }
.trustbar span { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 0.9rem; font-weight: 500; }
.trustbar span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 36px; }
.stats div { background: var(--card); padding: 24px; }
.stats b { display: block; font-size: 2rem; letter-spacing: -0.03em; }
.stats span { color: var(--ink-3); font-size: 0.93rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---- Tabs ---- */
.tablist { display: inline-flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 28px 0 0; flex-wrap: wrap; }
.tablist [role=tab] { font: inherit; font-weight: 500; font-size: 0.95rem; border: 0; background: none; color: var(--ink-2); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.tablist [role=tab][aria-selected=true] { background: var(--ink); color: #fff; }
.center-tabs { text-align: center; }

/* ---- Terminal / IDE panels used in demos ---- */
.term { background: #0d1117; color: #d7dde8; border-radius: 14px; padding: 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.75; text-align: left; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(10, 20, 40, 0.6); }
.term .bar { display: flex; gap: 6px; margin-bottom: 12px; }
.term .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c3442; }
.term .p { color: #7fa9ff; }
.term .ok { color: #5fd39a; }
.term .warn { color: #ffb547; }
.term .dim { color: #7d889c; }
.term .ln { display: block; white-space: pre-wrap; }
.replay .ln { opacity: 0; animation: lnin 0.35s ease forwards; }
.replay .ln:nth-child(2) { animation-delay: .3s } .replay .ln:nth-child(3) { animation-delay: .8s } .replay .ln:nth-child(4) { animation-delay: 1.3s }
.replay .ln:nth-child(5) { animation-delay: 1.8s } .replay .ln:nth-child(6) { animation-delay: 2.3s } .replay .ln:nth-child(7) { animation-delay: 2.8s }
.replay .ln:nth-child(8) { animation-delay: 3.3s } .replay .ln:nth-child(9) { animation-delay: 3.8s } .replay .ln:nth-child(10) { animation-delay: 4.3s }
@keyframes lnin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .replay .ln { animation: none; opacity: 1; } }

/* ---- Split feature rows ---- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding: 40px 0; }
.split.rev > :first-child { order: 2; }
.split ul { padding-left: 20px; color: var(--ink-2); }
.split li { margin-bottom: 6px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } .split.rev > :first-child { order: 0; } }

/* UI mock card */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; font-size: 0.9rem; box-shadow: 0 30px 60px -45px rgba(10, 20, 40, 0.45); }
.mock .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.mock .row:first-of-type { border-top: 0; }
.mock .t { font-weight: 700; margin-bottom: 8px; }
.switch { width: 34px; height: 20px; border-radius: 999px; background: var(--blue); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.switch.off { background: #c9cfd9; } .switch.off::after { right: auto; left: 3px; }
.chip { font-size: 0.78rem; border-radius: 999px; padding: 2px 9px; background: var(--blue-soft); color: #0b3fa8; white-space: nowrap; }
.chip.ok { background: #e7f6ec; color: #155c33; } .chip.lock { background: #f1f3f6; color: var(--ink-2); }

/* ---- Plans ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; }
.plan.hot { border: 2px solid var(--ink); }
.plan .price { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 4px; }
.plan ul { padding-left: 20px; color: var(--ink-2); margin: 16px 0 24px; flex: 1; }
.plan li { margin-bottom: 6px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
table.compare { width: 100%; border-collapse: collapse; margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 0.95rem; }
table.compare th, table.compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
table.compare thead th { background: var(--bg); }
table.compare td:not(:first-child), table.compare th:not(:first-child) { text-align: center; }
table.compare tr.cat td { background: var(--bg); font-weight: 700; }
.tablewrap { overflow-x: auto; }

/* ---- FAQ ---- */
.faq { max-width: 820px; margin-top: 28px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; }

/* ---- Compliance frameworks ---- */
.fw { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.fw .card h3 { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
@media (max-width: 760px) { .fw { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--ink-2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

[hidden] { display: none !important; }
