:root {
  --ink: #0d0d0d;
  --muted: #666b68;
  --line: #e4e6e5;
  --soft: #f5f6f5;
  --green: #0f8a68;
  --green-soft: #dff3ec;
  --violet: #7057d9;
  --orange: #f0a45b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.home-header { position: sticky; top: 0; z-index: 50; height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(18px, 3vw, 44px); border-bottom: 1px solid rgba(13,13,13,.08); background: rgba(255,255,255,.88); backdrop-filter: blur(18px); }
.home-brand { display: inline-flex; align-items: center; gap: 9px; width: fit-content; text-decoration: none; }
.home-brand > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: white; background: var(--ink); font-size: 10px; font-weight: 800; }
.home-brand strong { font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.home-nav { display: flex; align-items: center; justify-content: center; gap: 2px; }
.home-nav a, .developer-link, .sign-in-link { min-height: 36px; display: inline-flex; align-items: center; padding: 0 11px; border-radius: 7px; color: #4f5451; text-decoration: none; font-size: 12px; font-weight: 520; }
.home-nav a:hover, .developer-link:hover, .sign-in-link:hover { color: var(--ink); background: var(--soft); }
.home-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.header-cta { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 8px; color: white; background: var(--ink); text-decoration: none; font-size: 11px; font-weight: 650; }
.header-cta:hover { background: #000; }

.home-hero { position: relative; min-height: 850px; display: grid; grid-template-columns: minmax(390px, .78fr) minmax(560px, 1.22fr); align-items: center; gap: clamp(40px, 6vw, 96px); padding: 90px max(28px, calc((100vw - 1380px) / 2)) 110px; overflow: hidden; background: radial-gradient(circle at 14% 14%, #f0f7f4 0, transparent 34%), linear-gradient(180deg, #fff 0%, #f8faf9 100%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.orb-one { width: 400px; height: 400px; top: 80px; left: -270px; border: 1px solid rgba(15,138,104,.12); box-shadow: 0 0 120px rgba(15,138,104,.08) inset; }
.orb-two { width: 300px; height: 300px; right: -220px; bottom: 20px; border: 1px solid rgba(112,87,217,.10); }
.hero-copy { position: relative; z-index: 2; }
.home-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; color: #5c625f; font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.home-kicker > span { width: 22px; height: 1px; background: var(--green); }
.home-kicker.light { color: #aaa; }
.home-kicker.light > span { background: #56c5a2; }
.hero-copy h1 { margin: 0; font-size: clamp(58px, 7.2vw, 104px); line-height: .91; font-weight: 620; letter-spacing: -.072em; }
.hero-copy h1 em { color: #79807c; font-style: normal; font-weight: 430; }
.hero-lede { max-width: 590px; margin: 30px 0 0; color: var(--muted); font-size: clamp(15px, 1.35vw, 19px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 32px; }
.button-dark, .button-light { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 20px; border-radius: 8px; text-decoration: none; font-size: 12px; font-weight: 650; }
.button-dark { color: white; background: var(--ink); }
.button-dark:hover { background: #000; transform: translateY(-1px); }
.button-light { border: 1px solid #d7d9d8; background: white; }
.button-light:hover { background: var(--soft); }
.hero-note { margin: 14px 0 0; color: #8b908d; font-size: 10px; }

.workspace-preview { position: relative; z-index: 2; min-width: 0; border: 1px solid #dfe2e0; border-radius: 14px; background: white; box-shadow: 0 28px 90px rgba(33,47,41,.14), 0 2px 8px rgba(0,0,0,.04); overflow: hidden; transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); transform-origin: center; }
.preview-topbar { height: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 13px; border-bottom: 1px solid var(--line); background: #fcfcfc; }
.preview-brand { display: flex; align-items: center; gap: 7px; font-size: 10px; }
.preview-brand > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; color: white; background: var(--ink); font-size: 7px; font-weight: 750; }
.preview-model { height: 27px; display: flex; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; color: #535956; background: white; font-size: 8px; }
.preview-model i { width: 6px; height: 6px; border-radius: 50%; background: #20a273; }
.preview-user { width: 24px; height: 24px; display: grid; place-items: center; justify-self: end; border-radius: 50%; color: white; background: #7457b7; font-size: 8px; font-weight: 700; }
.preview-body { min-height: 510px; display: grid; grid-template-columns: 160px minmax(0, 1fr); }
.preview-sidebar { position: relative; display: flex; flex-direction: column; padding: 12px 9px; border-right: 1px solid var(--line); background: #fafafa; }
.preview-sidebar button { height: 31px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #d7d9d8; border-radius: 6px; color: #363a38; background: white; font-size: 8px; text-align: left; }
.preview-sidebar p { margin: 17px 8px 6px; color: #999e9b; font-size: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.preview-sidebar > span { padding: 7px 8px; border-radius: 5px; color: #747976; font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-sidebar > span.active { color: #303432; background: #eceeec; }
.preview-sidebar-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding: 9px 7px; border-top: 1px solid var(--line); color: #858a87; }
.preview-sidebar-foot i { width: 5px; height: 5px; border-radius: 50%; background: #20a273; }
.preview-sidebar-foot small { font-size: 6px; }
.preview-chat { min-width: 0; display: flex; flex-direction: column; background: #fff; }
.preview-chat-head { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #efefef; font-size: 8px; font-weight: 600; }
.preview-chat-head small { color: #8a8f8c; font-size: 7px; font-weight: 500; }
.preview-thread { max-width: 540px; width: 100%; display: grid; gap: 22px; margin: 0 auto; padding: 38px 34px 20px; }
.preview-message { font-size: 9px; line-height: 1.55; }
.user-message { width: fit-content; max-width: 76%; justify-self: end; padding: 10px 12px; border-radius: 12px 12px 3px 12px; color: #3f4542; background: #f0f1f0; }
.ai-message { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; color: #4c524f; }
.ai-mark { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; color: white; background: var(--ink); font-size: 7px; font-weight: 750; }
.ai-message strong { display: block; margin: 3px 0 11px; color: #242826; font-size: 9px; }
.ai-message p { margin: 0 0 11px; }
.preview-artifact { height: 37px; display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #fafafa; font-size: 7px; }
.preview-artifact button { border: 0; color: #27745b; background: transparent; font-size: 7px; font-weight: 650; }
.preview-composer { width: calc(100% - 48px); height: 52px; display: flex; align-items: center; justify-content: space-between; margin: auto 24px 20px; padding: 0 9px 0 14px; border: 1px solid #d8dbd9; border-radius: 11px; color: #a0a4a1; background: white; box-shadow: 0 5px 20px rgba(0,0,0,.04); font-size: 8px; }
.preview-composer button { width: 29px; height: 29px; display: grid; place-items: center; border: 0; border-radius: 7px; color: white; background: var(--ink); }

.model-band { min-height: 170px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 70px; padding: 34px max(28px, calc((100vw - 1240px) / 2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.model-band > p { margin: 0; color: #848986; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .09em; }
.model-band > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; }
.model-band > div > span { display: flex; align-items: center; justify-content: center; gap: 9px; color: #555b58; font-size: 15px; font-weight: 600; }
.model-band i { width: 21px; height: 21px; display: inline-block; position: relative; }
.provider-openai { border: 2px solid #555b58; border-radius: 50%; }
.provider-openai::after { content: ""; position: absolute; inset: 4px; border: 1px solid #555b58; border-radius: 50%; }
.provider-anthropic::before, .provider-anthropic::after { content: ""; position: absolute; bottom: 1px; width: 8px; background: #555b58; }
.provider-anthropic::before { left: 3px; height: 18px; transform: skew(-15deg); }
.provider-anthropic::after { right: 3px; height: 14px; transform: skew(15deg); }
.provider-gemini { background: linear-gradient(135deg, #5c83e6, #b55bc2); clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%); }
.provider-nd { display: grid !important; place-items: center; border-radius: 5px; color: white; background: #555b58; }
.provider-nd::after { content: "ND"; font-size: 6px; font-style: normal; font-weight: 800; }

.platform-section { padding: 130px max(28px, calc((100vw - 1240px) / 2)); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .55fr); column-gap: 80px; align-items: end; margin-bottom: 58px; }
.section-intro .home-kicker { grid-column: 1 / -1; }
.section-intro h2, .developer-copy h2, .closing-section h2 { margin: 0; font-size: clamp(43px, 5vw, 72px); line-height: 1.02; font-weight: 580; letter-spacing: -.055em; }
.section-intro > p:last-child { margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature-card { min-height: 610px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); overflow: hidden; }
.feature-chat { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(320px, .7fr) minmax(480px, 1.3fr); min-height: 530px; }
.feature-copy { padding: 38px; }
.feature-number { display: block; margin-bottom: 66px; color: #989d9a; font-size: 9px; font-weight: 650; }
.feature-copy h3 { max-width: 450px; margin: 0; font-size: clamp(30px, 3.5vw, 48px); line-height: 1.05; font-weight: 580; letter-spacing: -.045em; }
.feature-copy p { max-width: 440px; margin: 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.feature-copy a { display: inline-flex; align-items: center; gap: 22px; margin-top: 28px; color: var(--ink); text-decoration: none; font-size: 11px; font-weight: 650; }
.feature-copy a:hover span { transform: translateX(3px); }
.mini-chat { align-self: end; min-height: 390px; margin: 50px 42px 0 0; padding: 38px; border: 1px solid var(--line); border-bottom: 0; border-radius: 13px 13px 0 0; background: white; box-shadow: 0 24px 70px rgba(0,0,0,.07); }
.mini-prompt { width: fit-content; max-width: 76%; margin-left: auto; padding: 12px 14px; border-radius: 12px 12px 3px 12px; color: #474d4a; background: #f0f1f0; font-size: 11px; }
.mini-answer { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 28px; color: #4e5451; font-size: 11px; line-height: 1.55; }
.mini-answer i { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: white; background: var(--ink); font-size: 7px; font-style: normal; font-weight: 700; }
.mini-models { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 52px; padding-top: 18px; border-top: 1px solid var(--line); }
.mini-models span, .mini-models b { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: #797e7b; font-size: 8px; font-weight: 550; }
.mini-models b { border-color: var(--ink); color: white; background: var(--ink); }
.feature-api { background: #111; color: white; }
.feature-api .feature-number, .feature-api .feature-copy p { color: #9b9b9b; }
.feature-api .feature-copy a { color: white; }
.api-window { margin: auto 22px 0; border: 1px solid #343434; border-bottom: 0; border-radius: 11px 11px 0 0; background: #181818; overflow: hidden; }
.api-window-bar { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; border-bottom: 1px solid #303030; color: #ccc; font-size: 9px; }
.api-window-bar small { color: #777; }
.api-window pre { min-height: 310px; margin: 0; padding: 22px; overflow: auto; color: #d7d7d7; font-size: 10px; line-height: 1.75; }
.feature-usage { background: linear-gradient(150deg, #f3f7f5, #e8f0ec); }
.usage-visual { margin: auto 25px 25px; padding: 24px; border: 1px solid rgba(60,85,74,.13); border-radius: 11px; background: rgba(255,255,255,.78); box-shadow: 0 18px 50px rgba(41,76,62,.08); }
.usage-total span, .usage-total strong, .usage-total small { display: block; }
.usage-total span { color: #777d79; font-size: 9px; }
.usage-total strong { margin-top: 9px; font-size: 32px; font-weight: 600; letter-spacing: -.04em; }
.usage-total small { margin-top: 3px; color: #929793; font-size: 8px; }
.usage-chart { height: 150px; display: flex; align-items: end; gap: 7px; margin-top: 26px; border-bottom: 1px solid #d9e1dd; }
.usage-chart i { flex: 1; min-width: 4px; border-radius: 3px 3px 0 0; background: #729b8b; }
.usage-chart i:nth-child(3n) { background: #b8cec5; }
.usage-legend { display: flex; gap: 18px; margin-top: 14px; color: #7d837f; font-size: 8px; }
.usage-legend span { display: flex; align-items: center; gap: 6px; }
.usage-legend i { width: 7px; height: 7px; border-radius: 2px; background: #729b8b; }
.usage-legend span:last-child i { background: #b8cec5; }

.developer-section { display: grid; grid-template-columns: minmax(350px, .7fr) minmax(0, 1.3fr); gap: 90px; align-items: center; padding: 130px max(28px, calc((100vw - 1240px) / 2)); color: white; background: #101010; }
.developer-copy > p:not(.home-kicker) { max-width: 470px; margin: 26px 0 0; color: #a8a8a8; font-size: 14px; line-height: 1.7; }
.developer-actions { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.developer-actions a { color: #aaa; text-decoration: none; font-size: 11px; font-weight: 600; }
.developer-actions a:first-child { color: white; }
.developer-actions a span { margin-left: 14px; }
.developer-code { min-width: 0; border: 1px solid #303030; border-radius: 13px; background: #171717; box-shadow: 0 30px 80px rgba(0,0,0,.25); overflow: hidden; }
.developer-code-tabs { height: 48px; display: flex; align-items: center; gap: 4px; padding: 0 12px; border-bottom: 1px solid #2d2d2d; }
.developer-code-tabs > span { padding: 7px 9px; border-radius: 5px; color: #777; font-size: 9px; }
.developer-code-tabs > span.active { color: white; background: #292929; }
.developer-code-tabs button { margin-left: auto; border: 0; color: #888; background: transparent; font-size: 9px; }
.developer-code pre { min-height: 430px; margin: 0; padding: 26px; overflow: auto; color: #ddd; font-size: 11px; line-height: 1.78; }
.code-purple { color: #c7a0ff; }
.code-green { color: #8cd9b9; }

.closing-section { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .55fr); gap: 90px; align-items: end; padding: 130px max(28px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid var(--line); background: #fbfbfb; }
.closing-section > div:last-child { padding-bottom: 7px; }
.closing-section > div:last-child p { margin: 0 0 26px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.home-footer { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; padding: 70px max(28px, calc((100vw - 1240px) / 2)) 26px; }
.footer-brand p { margin: 16px 0 0; color: #888d8a; font-size: 11px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-links > div { display: grid; align-content: start; gap: 11px; }
.footer-links strong { margin-bottom: 5px; font-size: 10px; }
.footer-links a { width: fit-content; color: #737875; text-decoration: none; font-size: 10px; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line); color: #939895; font-size: 9px; }
.footer-bottom span:last-child { display: flex; align-items: center; gap: 7px; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }
.footer-bottom i { width: 6px; height: 6px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 3px #e1f3eb; }

@media (max-width: 1040px) {
  .home-hero { grid-template-columns: 1fr; padding-top: 80px; }
  .hero-copy { max-width: 760px; }
  .workspace-preview { width: min(900px, 100%); }
  .feature-chat { grid-template-columns: 1fr; }
  .mini-chat { width: calc(100% - 80px); justify-self: end; }
  .developer-section { grid-template-columns: 1fr; }
  .developer-copy { max-width: 700px; }
}

@media (max-width: 760px) {
  .home-header { grid-template-columns: 1fr auto; }
  .home-nav { display: none; }
  .home-header-actions { grid-column: 2; }
  .developer-link, .sign-in-link { display: none; }
  .home-hero { min-height: auto; padding: 64px 18px 70px; }
  .hero-copy h1 { font-size: clamp(54px, 16vw, 78px); }
  .workspace-preview { transform: none; }
  .preview-body { grid-template-columns: 1fr; min-height: 470px; }
  .preview-sidebar { display: none; }
  .model-band { grid-template-columns: 1fr; gap: 28px; padding: 40px 18px; }
  .model-band > div { grid-template-columns: 1fr 1fr; gap: 25px; }
  .model-band > div > span { justify-content: flex-start; }
  .platform-section, .developer-section, .closing-section { padding: 90px 18px; }
  .section-intro, .closing-section { grid-template-columns: 1fr; gap: 25px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-chat { grid-column: auto; }
  .feature-card { min-height: 560px; }
  .feature-copy { padding: 28px; }
  .feature-number { margin-bottom: 45px; }
  .mini-chat { width: calc(100% - 28px); margin-right: 0; }
  .home-footer { grid-template-columns: 1fr; padding: 55px 18px 24px; }
}

@media (max-width: 500px) {
  .home-header { height: 62px; padding: 0 13px; }
  .header-cta { min-height: 34px; padding: 0 11px; }
  .home-brand strong { font-size: 13px; }
  .hero-actions { display: grid; }
  .button-dark, .button-light { width: 100%; }
  .preview-topbar { grid-template-columns: 1fr auto; }
  .preview-model { display: none; }
  .preview-thread { padding: 28px 18px 16px; }
  .preview-composer { width: calc(100% - 28px); margin-inline: 14px; }
  .model-band > div { grid-template-columns: 1fr; }
  .feature-card { min-height: 520px; }
  .feature-copy h3 { font-size: 34px; }
  .mini-chat { padding: 24px 18px; }
  .api-window { margin-inline: 12px; }
  .api-window pre { font-size: 9px; }
  .developer-code pre { min-height: 390px; padding: 18px; font-size: 9px; }
  .footer-links { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 14px; }
}

/* Premium SaaS homepage direction */
.home-header { height:74px; border-bottom-color:rgba(255,255,255,.1); background:rgba(17,24,39,.82); }
.home-brand strong,.home-nav a,.developer-link,.sign-in-link { color:#eef2ff; }
.home-brand>span { background:linear-gradient(135deg,#7c72ff,#5046d8); }
.home-nav a:hover,.developer-link:hover,.sign-in-link:hover { color:#fff; background:rgba(255,255,255,.08); }
.header-cta { border-radius:10px; background:linear-gradient(135deg,#7169ff,#5046d8); box-shadow:0 8px 20px rgba(80,70,216,.24); }
.home-hero { min-height:820px; color:#f7f8ff; background:radial-gradient(circle at 80% 10%,rgba(99,91,255,.27),transparent 32%),radial-gradient(circle at 15% 85%,rgba(22,184,166,.13),transparent 32%),linear-gradient(135deg,#0d1424,#151d31 62%,#101827); }
.home-kicker { color:#aeb9d0; }
.hero-copy h1 { color:#fff; }
.hero-copy h1 em { color:#aeb9d0; }
.hero-lede { color:#aeb9d0; }
.button-dark { border-radius:10px; background:linear-gradient(135deg,#7169ff,#5046d8); box-shadow:0 12px 25px rgba(80,70,216,.28); }
.button-light { border-color:rgba(255,255,255,.18); border-radius:10px; color:#eef2ff; background:rgba(255,255,255,.07); }
.button-light:hover { background:rgba(255,255,255,.12); }
.hero-note { color:#8491aa; }
.workspace-preview { border-color:rgba(255,255,255,.15); box-shadow:0 35px 100px rgba(0,0,0,.34); }
.model-band { color:#eef2ff; border-color:rgba(255,255,255,.1); background:#111827; }
.model-band>p,.model-band>div>span { color:#aeb9d0; }
.platform-section,.closing-section { background:#f4f6fb; }
.feature-card { border-color:#e3e8f1; border-radius:18px; box-shadow:0 14px 40px rgba(35,45,75,.06); }
.feature-chat,.feature-usage { background:#fff; }
.feature-api { background:linear-gradient(145deg,#111827,#1d2941); }
.developer-section { background:#0f1728; }
.developer-code { border-color:rgba(255,255,255,.12); background:#111827; }
.closing-section { border-color:#e3e8f1; }
.home-brand > span, .ai-mark, .mini-answer i { background-image:url('/nodedistro-logo.png'); background-repeat:no-repeat; background-position:center 4%; background-size:190% auto; color:transparent; }
