/* Claude til Revit – website.
   Built on the Friis tactile system (raised / inset surfaces, spring motion),
   tuned for building: concrete-paper surfaces, blueprint lines, a brick/safety-orange accent. */

:root, [data-theme="light"] {
  --win: #ECEAE5;
  --text: #1B1C1E; --muted: #5C5F66; --faint: #8D9097;
  --accent: #DD6B3D; --accent-text: #B9501F;
  --ok: #2E9E5B; --blue: #2F6FB0; --gpt: #10A37F;
  --line: #D8D4CC; --divider: #E2DED7;
  --grid: rgba(47, 111, 176, .10); --grid-strong: rgba(47, 111, 176, .18);

  --raised-fill: linear-gradient(#FFFFFF, #F4F2EE);
  --raised-fill-hover: linear-gradient(#FFFFFF, #ECE9E3);
  --raised-edge: linear-gradient(#FFFFFF 0%, #E0DCD4 35%, #CEC9BF 80%, #A39D92 100%);
  --panel-fill: linear-gradient(#FDFCFA, #F7F5F1); --panel: #FDFCFA;
  --panel-edge: linear-gradient(#FFFFFF 0%, #E4E0D9 30%, #BDB7AC 100%);
  --inset-fill: #E5E2DB;
  --inset-edge: linear-gradient(#B5AFA4 0%, #DAD6CE 50%, #FFFFFF 100%);
  --accent-fill: linear-gradient(#EE7D4C, #D65E2C);
  --accent-fill-hover: linear-gradient(#F4895A, #DD6533);
  --accent-edge: linear-gradient(#FFAA88 0%, #D65E2C 40%, #9B3A14 100%);
  --knob: #FFFFFF; --knob-edge: #A9A398;
  --panel-shadow: 0 10px 30px rgba(60, 52, 40, .16);
  --soft-shadow: 0 3px 10px rgba(60, 52, 40, .18);
  color-scheme: light;
}

[data-theme="dark"] {
  --win: #0D0E0F;
  --text: #EDEDEB; --muted: #9A9893; --faint: #67655F;
  --accent: #F07443; --accent-text: #FF9467;
  --ok: #3DD68C; --blue: #5B9BE0; --gpt: #19C37D;
  --line: #24231F; --divider: #1E1D1A;
  --grid: rgba(91, 155, 224, .07); --grid-strong: rgba(91, 155, 224, .13);
  --raised-fill: linear-gradient(#26241F, #191815);
  --raised-fill-hover: linear-gradient(#2E2C26, #1E1D19);
  --raised-edge: linear-gradient(#59554C 0%, #2A2823 35%, #1C1B17 80%, #030303 100%);
  --panel-fill: linear-gradient(#181714, #131210); --panel: #181714;
  --panel-edge: linear-gradient(#2F2D28 0%, #1C1B18 30%, #050505 100%);
  --inset-fill: #0F0E0C;
  --inset-edge: linear-gradient(#030303 0%, #181714 50%, #2E2C27 100%);
  --accent-fill: linear-gradient(#F68456, #E0602D);
  --accent-fill-hover: linear-gradient(#FA9165, #E8693A);
  --accent-edge: linear-gradient(#FFAA88 0%, #DD5E2C 40%, #8A3010 100%);
  --knob: #CFCCC6; --knob-edge: #4D4A44;
  --panel-shadow: 0 10px 30px rgba(0, 0, 0, .6);
  --soft-shadow: 0 3px 10px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--win); color: var(--text);
  font: 15px/1.55 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* blueprint grid: fine 20 px, strong 100 px */
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px), linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: -1px -1px;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
.mono { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 650; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- surfaces */
.raised {
  border: 1px solid transparent; border-bottom-width: 3px;
  background: var(--raised-fill) padding-box, var(--raised-edge) border-box;
  border-radius: 14px;
}
.panel {
  border: 1px solid transparent;
  background: var(--panel-fill) padding-box, var(--panel-edge) border-box;
  border-radius: 16px; box-shadow: var(--panel-shadow);
}
.inset {
  border: 1px solid transparent; border-top-width: 2px;
  background: linear-gradient(var(--inset-fill), var(--inset-fill)) padding-box, var(--inset-edge) border-box;
  border-radius: 10px;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 18px; font: inherit; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; border-bottom-width: 4px; border-radius: 10px;
  white-space: nowrap; outline: none; color: var(--text); text-decoration: none !important;
  background: var(--raised-fill) padding-box, var(--raised-edge) border-box;
}
.btn:hover { background: var(--raised-fill-hover) padding-box, var(--raised-edge) border-box; }
.btn.accent { background: var(--accent-fill) padding-box, var(--accent-edge) border-box; color: #fff; font-weight: 650; box-shadow: var(--soft-shadow); }
.btn.accent:hover { background: var(--accent-fill-hover) padding-box, var(--accent-edge) border-box; }
.btn.big { height: 54px; padding: 0 24px; font-size: 16.5px; border-radius: 12px; border-bottom-width: 5px; }
.btn.small { height: 36px; padding: 0 13px; font-size: 13.5px; border-bottom-width: 3px; }
.btn.ghost { background: transparent; border-bottom-width: 3px; color: var(--muted); }
.btn.ghost:hover { background: var(--raised-fill) padding-box, var(--raised-edge) border-box; color: var(--text); }
.btn:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .sub { font-weight: 400; opacity: .85; font-size: 13px; }

/* ---------------------------------------------------------------- header */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--win) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 16px; text-decoration: none !important; }
.brand .mark { width: 34px; height: 34px; }
nav.links { display: flex; gap: 2px; margin-left: 14px; }
nav.links a { color: var(--muted); padding: 7px 11px; border-radius: 8px; font-size: 14px; text-decoration: none; }
nav.links a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.top .spacer { flex: 1; }
.theme-btn { width: 38px; padding: 0; }
@media (max-width: 860px) { nav.links { display: none; } }
.brand span { white-space: nowrap; }
@media (max-width: 420px) { .brand { font-size: 14.5px; } header.top .wrap { gap: 10px; } .brand .mark { width: 30px; height: 30px; } }

/* ---------------------------------------------------------------- hero */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 750; margin: 18px 0 16px; letter-spacing: -.02em; }
.hero h1 .hl { color: var(--accent-text); position: relative; white-space: nowrap; }
.hero h1 .hl svg { position: absolute; left: 0; right: 0; bottom: -6px; width: 100%; height: 12px; overflow: visible; }
.hero .lead { font-size: 18.5px; color: var(--muted); max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 13px; color: var(--faint); }
.dl-meta span { display: inline-flex; align-items: center; gap: 6px; }
.dl-meta svg { width: 14px; height: 14px; }
.works-with { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; align-items: center; }
.works-with .label { font-size: 13px; color: var(--faint); margin-right: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 60%, transparent);
}
.chip i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* blueprint drawing behind the hero */
.blueprint { position: absolute; right: -60px; top: 10px; width: 760px; height: 560px; pointer-events: none; opacity: .9; }
.blueprint path, .blueprint line, .blueprint rect, .blueprint polyline { fill: none; stroke: var(--blue); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.blueprint .dim { stroke-dasharray: 3 4; opacity: .55; }
.blueprint .draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: draw 2.6s cubic-bezier(.2,.65,.3,1) forwards; }
.blueprint text { fill: var(--blue); font: 11px "Cascadia Mono", Consolas, monospace; opacity: 0; animation: fadein .6s 2.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: .8; } }
@media (max-width: 960px) { .blueprint { opacity: .22; right: -240px; } }

/* ---------------------------------------------------------------- the panel mock */
.mock { position: relative; z-index: 1; max-width: 470px; justify-self: end; width: 100%; }
@media (max-width: 960px) { .mock { justify-self: center; } }
.mock .panel { padding: 0; overflow: hidden; }
.mock .titlebar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--divider); font-size: 12px; color: var(--faint); }
.mock .titlebar b { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.mock .titlebar span { margin-left: 6px; }
.mock .phead { display: flex; gap: 10px; padding: 14px 16px 8px; align-items: center; }
.mock .phead .mark { width: 26px; height: 26px; }
.mock .phead .proj { font-weight: 650; font-size: 14.5px; }
.mock .phead .view { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.mock .phead .view svg { width: 12px; height: 12px; color: var(--accent); }
.mock .usage { padding: 2px 16px 10px; display: grid; gap: 5px; }
.mock .urow { display: grid; grid-template-columns: 50px 1fr 72px; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.mock .urow .track { height: 8px; border-radius: 4px; padding: 0; position: relative; overflow: hidden; }
.mock .urow .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--ok); width: 0; transition: width 1.1s cubic-bezier(.3,.7,.3,1); }
.mock .urow .val { text-align: right; color: var(--text); }
.mock .tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 10px; border-bottom: 1px solid var(--divider); }
.mock .tabs div { text-align: center; padding: 7px 0; font-size: 12.5px; color: var(--muted); border-bottom: 2px solid transparent; }
.mock .tabs .on { color: var(--text); font-weight: 650; border-color: var(--accent); }
.mock .chat { height: 300px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.msg-user { align-self: flex-end; max-width: 82%; padding: 9px 13px; border-radius: 14px 14px 4px 14px; font-size: 13.5px; color: #fff; background: var(--accent-fill); }
.msg-ai { max-width: 92%; font-size: 13.5px; }
.tool { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.tool .spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.tool.done .spin { animation: none; border: 0; background: var(--ok); position: relative; }
.tool.done .spin::after { content: ""; position: absolute; left: 4px; top: 2px; width: 3px; height: 6px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { rotate: 360deg; } }
.mock .composer { margin: 0 12px 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--faint); }
.mock .composer .send { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-fill); display: grid; place-items: center; color: #fff; }
.mock .composer .send svg { width: 15px; height: 15px; }
.mock .typing::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.mock .tag {
  position: absolute; z-index: 2; padding: 7px 11px; border-radius: 10px; font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
.mock .tag svg { width: 15px; height: 15px; color: var(--accent); }
.mock .tag.t1 { left: -52px; top: 300px; }
.mock .tag.t2 { right: -26px; bottom: 70px; }
@media (max-width: 560px) { .mock .tag { display: none; } }

/* ---------------------------------------------------------------- sections */
section { padding: 72px 0; }
.section-head { max-width: 700px; margin-bottom: 34px; }
.section-head .kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.section-head .kicker::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head p { margin-top: 12px; font-size: 17px; color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 22px; position: relative; }
.step .num {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: 16px; color: #fff;
  background: var(--accent-fill) padding-box, var(--accent-edge) border-box; border: 1px solid transparent; border-bottom-width: 3px; margin-bottom: 14px;
}
.step p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.step .shot { margin-top: 16px; padding: 12px; font-size: 12.5px; }
.step .shot .row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.step .shot .ok { width: 16px; height: 16px; border-radius: 50%; background: var(--ok); flex: none; position: relative; }
.step .shot .ok::after { content: ""; position: absolute; left: 5px; top: 2.5px; width: 3.5px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mini-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-choice div { padding: 8px 10px; border-radius: 9px; font-weight: 650; font-size: 12.5px; display: flex; align-items: center; gap: 7px; }
.mini-choice div.on { outline: 2px solid var(--accent); }
.blogo { width: 18px; height: 18px; flex: none; color: var(--text); }
.chip .blogo { width: 14px; height: 14px; }
/* the Revit mark after "Revit" in the big title */
.hero h1 .rv { display: inline-block; width: .78em; height: .78em; margin: 0 .04em 0 .16em; vertical-align: -.06em; filter: drop-shadow(0 2px 4px rgba(24, 107, 255, .25)); }

/* feature tiles */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 22px; }
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  color: var(--accent-text); background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.feature .icon svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.feature .ex { margin-top: 12px; padding: 8px 11px; font-size: 13px; color: var(--text); font-style: italic; }
.feature .ex::before { content: "“"; color: var(--accent); font-weight: 800; margin-right: 2px; font-style: normal; }
.feature .ex::after { content: "”"; color: var(--accent); font-weight: 800; margin-left: 1px; font-style: normal; }

/* AI choice */
.ai { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .ai { grid-template-columns: 1fr; } }
.seg { position: relative; display: inline-flex; padding: 2px; border-radius: 12px; }
.seg-pill {
  position: absolute; top: 2px; bottom: 2px; left: 2px; width: 0; border-radius: 10px;
  border: 1px solid transparent; border-bottom-width: 3px;
  background: var(--raised-fill) padding-box, var(--raised-edge) border-box;
}
.seg button { position: relative; height: 42px; padding: 0 20px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; font: inherit; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.seg button.on { color: var(--text); font-weight: 650; }
.ai-card { padding: 24px; }
.ai-card .plans { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 16px; }
.ai-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ai-card li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; font-size: 14.5px; }
.ai-card li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--ok); }
.ai-card .note { margin-top: 16px; font-size: 13px; color: var(--faint); }

/* requirements + trust */
.req { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .req { grid-template-columns: repeat(2, 1fr); } }
.req .tile { padding: 20px 18px; text-align: center; }
.req .tile .well { width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; color: var(--accent-text); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.req .tile .well svg { width: 20px; height: 20px; }
.req .tile .v { font-size: 17px; font-weight: 700; }
.req .tile .l { font-size: 13px; color: var(--muted); margin-top: 2px; }
.trust { margin-top: 18px; padding: 20px 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }
.trust div { display: grid; grid-template-columns: 30px 1fr; gap: 8px; font-size: 14px; color: var(--muted); }
.trust b { color: var(--text); display: block; font-weight: 650; }
.trust svg { width: 22px; height: 22px; color: var(--ok); margin-top: 1px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { padding: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { margin-left: auto; width: 18px; height: 18px; color: var(--muted); transition: rotate .25s; flex: none; }
.faq details[open] summary .chev { rotate: 180deg; }
.faq .body { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }
.faq .body p + p { margin-top: 8px; }
.faq kbd { font: 12px "Cascadia Mono", Consolas, monospace; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); border-bottom-width: 2px; color: var(--text); }

/* final CTA */
.final { padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
@media (max-width: 760px) { .final { grid-template-columns: 1fr; padding: 28px; } }
.final h2 { font-size: clamp(24px, 3vw, 32px); }
.final p { color: var(--muted); margin-top: 8px; }
.final .orb { position: absolute; width: 260px; height: 260px; border-radius: 50%; filter: blur(40px); opacity: .35; pointer-events: none; }
.final .orb.a { background: var(--accent); right: -60px; top: -120px; animation: drift 10s ease-in-out infinite alternate; }
.final .orb.b { background: var(--blue); left: -80px; bottom: -160px; opacity: .2; animation: drift 11s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { translate: 40px 30px; } }
.final > *:not(.orb) { position: relative; }

footer { padding: 36px 0 48px; color: var(--faint); font-size: 13px; border-top: 1px solid var(--line); margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer a { color: var(--muted); }

/* scroll reveal: hidden until Motion brings it in (only when JS runs) */
.js .reveal { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; }
  .blueprint .draw { stroke-dashoffset: 0; }
}
