/* ===== Theme tokens ===== */
/* Brand: Thin Cad teal-green on charcoal (from the app icon) */
:root {
  --bg: #f6f8f7;
  --bg-alt: #ecf1ef;
  --surface: #ffffff;
  --text: #15191c;
  --muted: #56615e;
  --border: #d9e1de;
  --accent: #0e8a6a;
  --accent-2: #2ec4a0;
  --accent-soft: rgba(14, 138, 106, 0.1);
  --on-accent: #ffffff;
  --brand-dark: #1e2124;
  --line: #22292d;
  --dim: #c2410c;
  --grid: rgba(34, 41, 45, 0.07);
  --part-fill: rgba(46, 196, 160, 0.08);
  --part-top: #d6f2ea;
  --part-front: #a9e3d4;
  --part-side: #7fcfba;
  --chip: #e5ecea;
  --shadow: 0 20px 50px -20px rgba(21, 25, 28, 0.28);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141618; --bg-alt: #1a1d20; --surface: #212528; --text: #e9eeec; --muted: #9aa6a2;
    --border: #2f3539; --accent: #2ec4a0; --accent-2: #6fe0c4; --accent-soft: rgba(46, 196, 160, 0.14);
    --on-accent: #0d1f1a; --line: #d4dcd9; --dim: #ff9a5c; --grid: rgba(212, 220, 217, 0.06);
    --part-fill: rgba(46, 196, 160, 0.1); --part-top: #2b4a42; --part-front: #23403a; --part-side: #1c342f;
    --chip: #2a2f33; --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141618; --bg-alt: #1a1d20; --surface: #212528; --text: #e9eeec; --muted: #9aa6a2;
  --border: #2f3539; --accent: #2ec4a0; --accent-2: #6fe0c4; --accent-soft: rgba(46, 196, 160, 0.14);
  --on-accent: #0d1f1a; --line: #d4dcd9; --dim: #ff9a5c; --grid: rgba(212, 220, 217, 0.06);
  --part-fill: rgba(46, 196, 160, 0.1); --part-top: #2b4a42; --part-front: #23403a; --part-side: #1c342f;
  --chip: #2a2f33; --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }
.muted { color: var(--muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -8px var(--accent); }
.btn-primary:hover { box-shadow: 0 12px 26px -8px var(--accent); }
.btn-ghost { border-color: var(--border); background: var(--surface); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.logo b { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }

/* ===== Hero ===== */
.hero { position: relative; padding: 80px 0 60px; overflow: hidden; }
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 13px; margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(36px, 4.4vw, 54px); font-weight: 800; }
.accent-text { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 36px; }
.hero-stats { display: flex; gap: 36px; list-style: none; padding: 0; margin: 0; }
.hero-stats strong { display: block; font-size: 26px; font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: 13px; }

/* App mock */
.app-mock {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden; font-size: 12px;
}
.mock-titlebar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
.mock-title { margin-left: 10px; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.mock-body { display: grid; grid-template-columns: 44px 1fr 150px; min-height: 300px; }
.mock-toolbar { display: flex; flex-direction: column; gap: 6px; padding: 10px 6px; border-right: 1px solid var(--border); background: var(--bg-alt); }
.tool { display: grid; place-items: center; height: 30px; border-radius: 7px; color: var(--muted); font-size: 15px; }
.tool.active { background: var(--accent); color: var(--on-accent); }
.mock-canvas { background: var(--bg); position: relative; }
.drawing { width: 100%; height: 100%; display: block; }
.mock-panel { border-left: 1px solid var(--border); padding: 10px; background: var(--surface); }
.panel-h { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 4px 0 8px; }
.panel-h:not(:first-child) { margin-top: 16px; }
.prop { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--border); }
.prop span { color: var(--muted); }
.prop b { font-family: "IBM Plex Mono", monospace; font-weight: 500; }
.layer { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.layer i { width: 10px; height: 10px; border-radius: 3px; }
.mock-status { display: flex; justify-content: space-between; padding: 7px 14px; border-top: 1px solid var(--border); background: var(--bg-alt); color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 10.5px; }

/* drawing animation */
.draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s ease forwards .3s; }
.draw.d2 { animation-delay: 1.4s; }
.cursor { animation: pop .4s ease forwards 2.4s; opacity: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

/* ===== Trust ===== */
.trust { padding: 20px 0 10px; text-align: center; }
.trust p { color: var(--muted); font-size: 14px; font-weight: 500; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ===== Features ===== */
.feature-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.chip:hover { color: var(--text); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.feature-card.hidden { display: none; }
.f-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.f-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 17px; }
.feature-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ===== Explore ===== */
.explore { display: grid; grid-template-columns: 300px 1fr; gap: 28px; }
.explore-tabs { display: flex; flex-direction: column; gap: 10px; }
.ex-tab {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: all .15s;
}
.ex-tab b { display: block; font-size: 16px; }
.ex-tab small { color: var(--muted); font-size: 13px; }
.ex-num { font-family: "IBM Plex Mono", monospace; color: var(--muted); font-size: 13px; }
.ex-tab.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ex-tab.active .ex-num { color: var(--accent); }
.explore-panels { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.ex-panel { display: none; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.ex-panel.active { display: grid; animation: fade .35s ease; }
.ex-visual { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ex-visual svg { display: block; width: 100%; height: auto; }
.ex-copy h3 { font-size: 24px; }
.ex-copy p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 28px; margin: 10px 0; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%230e8a6a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===== Steps ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; }
.step-n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800;
}
.step h3 { font-size: 18px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ===== Specs ===== */
.specs-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.perf-bars, .spec-table { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.perf-bars h3, .spec-table h3 { font-size: 17px; margin-bottom: 16px; }
.perf-bars h3:not(:first-child) { margin-top: 26px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 60px; align-items: center; gap: 12px; margin: 10px 0; font-size: 14px; }
.bar-row span { color: var(--muted); }
.bar-row b { text-align: right; font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: 13px; }
.bar { height: 10px; background: var(--chip); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--muted); border-radius: 99px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); opacity: .55; }
.bar i.hl { background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: 1; }
.specs-wrap.in .bar i { width: var(--w); }
.note { color: var(--muted); font-size: 12px; margin: 18px 0 0; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 500; width: 110px; }
tr:last-child th, tr:last-child td { border-bottom: none; }

/* ===== Quotes ===== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.quote blockquote { margin: 0 0 20px; font-size: 16px; }
.quote figcaption b { display: block; }
.quote figcaption span { color: var(--muted); font-size: 14px; }

/* ===== FAQ ===== */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ===== CTA ===== */
.cta { padding: 96px 0; }
.cta-inner {
  text-align: center; border-radius: 24px; padding: 64px 32px; color: #fff;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.18), transparent 50%),
    linear-gradient(135deg, #1d4ed8, #0891b2);
}
.cta-inner h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.cta-inner p { opacity: .85; font-size: 17px; }
.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 190px)); justify-content: center; gap: 14px; margin-top: 32px; }
.platform {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; text-align: left;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); transition: background .15s, transform .15s;
}
.platform:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.platform svg { width: 26px; height: 26px; flex: none; }
.platform span { font-weight: 700; line-height: 1.2; }
.platform small { display: block; font-weight: 400; opacity: .8; font-size: 12px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 14px; margin-bottom: 12px; }
.footer-cols a { display: block; color: var(--muted); font-size: 14px; margin: 6px 0; }
.footer-cols a:hover { color: var(--text); }
.copyright { color: var(--muted); font-size: 13px; margin-top: 36px; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .draw { animation: none; stroke-dashoffset: 0; }
  .cursor { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .explore { grid-template-columns: 1fr; }
  .explore-tabs { flex-direction: row; overflow-x: auto; }
  .ex-tab { flex: 1 0 200px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .platforms { grid-template-columns: repeat(2, minmax(0, 220px)); }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .menu-btn { display: inline-grid; }
  .nav-actions .btn-sm { display: none; }
  .hero { padding: 48px 0 32px; }
  .hero-stats { gap: 22px; }
  .mock-body { grid-template-columns: 38px 1fr; }
  .mock-panel { display: none; }
  .section { padding: 64px 0; }
  .features-grid, .quotes, .specs-wrap { grid-template-columns: 1fr; }
  .ex-panel { grid-template-columns: 1fr; }
  .explore-panels { padding: 18px; }
  .ex-tab { flex: 1 0 170px; padding: 12px 14px; }
  .steps { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 110px 1fr 54px; font-size: 13px; }
  .cta-inner { padding: 44px 18px; }
  .platforms { grid-template-columns: 1fr 1fr; }
  .platform { padding: 12px; gap: 8px; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Thin Cad additions
   ========================================================= */
.logo img { border-radius: 8px; display: block; }
code { font-family: "IBM Plex Mono", monospace; font-size: .9em; background: var(--chip); padding: 1px 6px; border-radius: 5px; }
kbd {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 500; display: inline-block; min-width: 22px; text-align: center;
  padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border); border-bottom-width: 2px; background: var(--surface); color: var(--text);
}

/* App mock: ribbon, browser tree, view cube, dialog, history */
.ribbon { border-bottom: 1px solid var(--border); background: var(--surface); }
.ribbon-tabs { display: flex; gap: 2px; padding: 6px 10px 0; font-size: 11px; font-weight: 600; color: var(--muted); }
.ribbon-tabs span { padding: 5px 10px; border-radius: 6px 6px 0 0; }
.ribbon-tabs .active { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.ribbon-tools { display: flex; gap: 4px; padding: 6px 10px 8px; overflow: hidden; }
.rt { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 50px; padding: 4px 6px; border-radius: 7px; color: var(--muted); font-size: 10px; }
.rt i { font-style: normal; font-size: 16px; color: var(--text); }
.rt.active { background: var(--accent-soft); color: var(--accent); }
.rt.active i { color: var(--accent); }
.mock-body { grid-template-columns: 112px 1fr 150px; min-height: 270px; }
.mock-tree { border-right: 1px solid var(--border); padding: 10px 8px; background: var(--bg-alt); }
.tree-h { font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.node { padding: 3px 6px; border-radius: 5px; font-size: 11.5px; white-space: nowrap; }
.node.sub { padding-left: 18px; color: var(--muted); }
.node.sel { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mock-canvas { position: relative; }
.viewcube {
  position: absolute; top: 10px; right: 10px; width: 54px; height: 54px; display: grid;
  grid-template: "t t" 18px "f r" 1fr / 1fr 1fr; gap: 2px; font-family: "IBM Plex Mono", monospace; font-size: 7.5px; font-weight: 600;
}
.viewcube span { display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--muted); border-radius: 3px; }
.vc-top { grid-area: t; } .vc-front { grid-area: f; } .vc-right { grid-area: r; }
.viewcube .vc-front { background: var(--accent-soft); color: var(--accent); }
.panel-btns { display: flex; gap: 6px; margin-top: 14px; }
.panel-btns span { flex: 1; text-align: center; padding: 5px 0; border-radius: 6px; border: 1px solid var(--border); font-weight: 600; font-size: 11px; }
.panel-btns .ok { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.history { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-top: 1px solid var(--border); background: var(--bg-alt); font-size: 10.5px; overflow: hidden; }
.hist-label { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 4px; }
.hist-item { padding: 3px 8px; border-radius: 5px; background: var(--surface); border: 1px solid var(--border); font-family: "IBM Plex Mono", monospace; white-space: nowrap; }
.hist-item.on { border-color: var(--accent); color: var(--accent); }
.hist-end { width: 3px; height: 18px; border-radius: 2px; background: var(--accent); margin-left: 2px; }

/* Strip */
.trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; color: var(--muted); font-weight: 600; font-size: 15px; }
.trust-inner i { color: var(--accent); font-style: normal; }

/* Steps: 5 */
.steps { grid-template-columns: repeat(5, 1fr); }

/* Shortcuts */
.shortcuts { margin-top: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 28px; }
.shortcuts h3 { font-size: 17px; margin-bottom: 16px; }
.kbd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 24px; }
.kbd-grid div { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.kbd-grid span { color: var(--muted); margin-left: 4px; }

/* Files */
.specs-wrap { grid-template-columns: 1.3fr 1fr; }
.spec-table th { width: 170px; }
.spec-table th code { white-space: nowrap; }
.fmt-group { padding: 12px 0; border-bottom: 1px solid var(--border); }
.fmt-group:last-child { border-bottom: none; }
.fmt-label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.fmts { display: flex; flex-wrap: wrap; gap: 6px; }
.fmts span { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; padding: 4px 10px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }

/* Open source band */
.open-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 44px; }
.open-band h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.open-band p { color: var(--muted); margin: 0; }
.open-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.open-list li { padding: 16px 18px; border-radius: 12px; background: var(--bg-alt); border-left: 3px solid var(--accent); }
.open-list b { display: block; }
.open-list span { color: var(--muted); font-size: 14.5px; }

/* CTA in brand charcoal + green */
.cta-inner {
  background:
    radial-gradient(circle at 15% 0%, rgba(46,196,160,.28), transparent 55%),
    linear-gradient(160deg, #24282b, #17191b);
  border: 1px solid #2f3539;
}
.cta-icon { display: block; margin: 0 auto 18px; border-radius: 16px; }
.platforms { grid-template-columns: repeat(5, minmax(0, 200px)); }
.platform { background: rgba(46,196,160,.08); border-color: rgba(46,196,160,.3); }
.platform:hover { background: rgba(46,196,160,.18); }
.platform svg { color: #2ec4a0; }
.platform small { margin-top: 2px; }

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .platforms { grid-template-columns: repeat(3, minmax(0, 220px)); }
}
@media (max-width: 1024px) {
  .open-band { grid-template-columns: 1fr; padding: 32px; }
  .kbd-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .mock-body { grid-template-columns: 1fr; min-height: 220px; }
  .mock-tree, .mock-panel { display: none; }
  .ribbon-tabs span:nth-child(n+4) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .shortcuts { padding: 20px; }
  .kbd-grid { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .kbd-grid div { font-size: 13px; }
  .spec-table th, .spec-table td { display: block; width: auto; }
  .spec-table th { padding-bottom: 2px; border-bottom: none; }
  .open-band { padding: 22px; }
  .platforms { grid-template-columns: 1fr 1fr; }
  .perf-bars, .spec-table { padding: 20px; }
}

/* ===== Pricing ===== */
.billing { display: flex; justify-content: center; gap: 4px; width: max-content; margin: 0 auto 36px; padding: 4px; border-radius: 999px; background: var(--chip); }
.bill-opt { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: 8px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.bill-opt.active { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px -2px rgba(0,0,0,.15); }
.save { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 30px 28px; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; left: 28px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 20px; margin-bottom: 4px; }
.plan-for { color: var(--muted); font-size: 14.5px; min-height: 44px; }
.price { display: flex; align-items: baseline; gap: 2px; margin-top: 4px; }
.price .cur { font-size: 22px; font-weight: 600; align-self: flex-start; margin-top: 6px; }
.price .amt { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price .per { color: var(--muted); font-size: 15px; margin-left: 4px; }
.price.custom .amt { font-size: 40px; }
.billed { color: var(--muted); font-size: 13px; margin: 8px 0 20px; min-height: 20px; }
.plan-btn { width: 100%; margin-bottom: 24px; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.plan-list li { position: relative; padding-left: 26px; }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%230e8a6a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}
.plan-list li:has(b) { padding-left: 0; }
.plan-list li:has(b)::before { display: none; }
.plans-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }
@media (max-width: 1024px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } .plan-for { min-height: 0; } }

/* ===== Feature icon tiles (no descriptions, by design) ===== */
.features-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.feature-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px 14px; text-align: center; border-radius: 12px; }
.feature-card h3 { font-size: 13.5px; font-weight: 500; letter-spacing: 0; line-height: 1.3; margin: 0; }
.t-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: #f1f6f4; }
.t-icon img { display: block; width: 40px; height: 40px; }
@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); } }
@media (max-width: 760px) { .features-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } .feature-card { padding: 12px 4px; } }

/* ===== AI band ===== */
.ai-band { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; margin-top: 40px; padding: 32px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.ai-copy h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
.ai-copy > p { color: var(--muted); }
.ai-prompts { display: grid; gap: 10px; margin: 18px 0; }
.ai-prompt { font: inherit; font-size: 14.5px; line-height: 1.45; text-align: left; color: var(--text); padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ai-prompt span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.ai-prompt.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ai-prompt.active span { color: var(--accent); }
.ai-copy > .ai-note { font-size: 13px; margin: 0; }
.ai-result { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ai-view { display: none; width: 100%; height: auto; }
.ai-view.active { display: block; animation: fade .35s ease; }
@media (max-width: 1024px) { .ai-band { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .ai-band { padding: 20px; } }
