@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --gp-blue: #262aff;
  --gp-blue-hover: #1418d9;
  --ink: #3d4b52;
  --ink-strong: #101828;
  --muted: #4a5565;
  --line: #e5e7eb;
  --line-strong: #d7dce1;
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --card: #ffffff;
  --badge-bg: #e6f0fb;
  --badge-ink: #1d4f91;
  --link: #262aff;
  --header-bg: #ffffff;
  --tab-bg: #f3f4f6;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}
html[data-theme="dark"] {
  --gp-blue: #262aff;
  --ink: #f1f2f4;
  --ink-strong: #f1f2f4;
  --muted: #c3c7d0;
  --line: #3a3d48;
  --line-strong: #5a5e6d;
  --bg: #25262d;
  --bg-alt: #212227;
  --card: #25262d;
  --badge-bg: #e6f0fb;
  --badge-ink: #1d4f91;
  --link: #85ccff;
  --header-bg: #2e3038;
  --tab-bg: #2e3038;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body {
  margin: 0; overflow-x: clip;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.mobile-only { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); }
.topbar {
  display: flex; align-items: center; gap: 16px; height: 72px; padding: 0 12px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 27px; width: auto; }
.brand .logo-dark { display: none; }
html[data-theme="dark"] .brand .logo-light { display: none; }
html[data-theme="dark"] .brand .logo-dark { display: block; }
.badge {
  font-size: 11px; line-height: 16px; padding: 2px 6px; border-radius: 2px;
  background: var(--badge-bg); color: var(--badge-ink); white-space: nowrap; border: 1px solid #c9dcf3;
}
.search {
  flex: 1; max-width: 440px; margin: 0 auto; display: flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 6px; height: 46px; background: var(--bg);
}
.search .scope {
  display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 14px; font-weight: 600;
  color: var(--ink-strong); border-right: 1px solid var(--line-strong); height: 28px; white-space: nowrap;
}
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px;
  color: var(--ink-strong); padding: 0 12px;
}
.search input::placeholder { color: #9aa1ad; }
.search button { border: 0; background: transparent; padding: 0 12px; color: #8a919c; cursor: pointer; height: 100%; }
.utility { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.utility a { display: flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-size: 14px; }
.utility a:hover { color: var(--gp-blue); }
html[data-theme="dark"] .utility a:hover { color: var(--link); }
.utility svg { width: 16px; height: 16px; }
.theme-toggle {
  width: 40px; height: 22px; border-radius: 999px; border: 2px solid var(--ink-strong); background: var(--ink-strong);
  position: relative; cursor: pointer; padding: 0;
}
.theme-toggle::after {
  content: ""; position: absolute; top: 1px; right: 1px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg);
  transition: transform .2s;
}
html[data-theme="dark"] .theme-toggle { background: #f1f2f4; border-color: #f1f2f4; }
html[data-theme="dark"] .theme-toggle::after { transform: translateX(-18px); background: #25262d; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 6px; background: var(--gp-blue); color: #fff !important; text-decoration: none;
  border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.btn-pill:hover { background: var(--gp-blue-hover); }
.btn-pill svg { width: 14px; height: 14px; }

.navbar { display: flex; align-items: stretch; height: 70px; border-bottom: 1px solid var(--line); }
.viewing {
  width: clamp(200px, 18vw, 314px); flex-shrink: 0; display: flex; align-items: center; padding: 0 24px; border-right: 1px solid var(--line);
  font-size: 14px; color: var(--ink);
}
.viewing span { background: transparent; padding: 4px 10px; border-radius: 4px; }
html[data-theme="dark"] .viewing span { background: #3a3d48; }
.viewing strong { color: var(--ink-strong); font-weight: 600; margin-left: 4px; }
.mainnav { display: flex; align-items: stretch; gap: 0; list-style: none; margin: 0; padding: 0; }
.mainnav > li { position: relative; display: flex; }
.mainnav > li > a, .mainnav > li > button {
  display: flex; align-items: center; gap: 6px; padding: 0 clamp(10px, 0.95vw, 20px); color: var(--ink); text-decoration: none; font: inherit;
  font-size: 15px; background: none; border: 0; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap;
}
.mainnav > li > a:hover, .mainnav > li > button:hover { color: var(--gp-blue); }
html[data-theme="dark"] .mainnav > li > a:hover, html[data-theme="dark"] .mainnav > li > button:hover { color: var(--link); }
.mainnav > li > a.active { border-bottom-color: var(--gp-blue); color: var(--gp-blue); }
.mainnav .new-pill {
  font-size: 10px; line-height: 14px; font-weight: 600; letter-spacing: .02em; color: #fff; background: var(--gp-blue);
  border-radius: 999px; padding: 1px 6px;
}
.chev { width: 14px; height: 14px; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 300px; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); padding: 8px; z-index: 60;
}
.mainnav > li.open .dropdown { display: block; }
@media (hover: hover) and (min-width: 1101px) { .mainnav > li:hover .dropdown { display: block; } }
.dropdown a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--ink-strong); }
.dropdown a:hover { background: var(--bg-alt); }
.dropdown a b { display: block; font-weight: 600; font-size: 15px; }
.dropdown a small { display: block; color: var(--muted); font-size: 13px; line-height: 18px; }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 72px; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 54px; font-weight: 700; color: var(--ink); margin: 0 0 32px; max-width: 520px; }
.hero p { margin: 0; max-width: 500px; }
.hero-art img { width: 100%; max-width: 520px; margin-left: auto; }
html[data-theme="dark"] .hero-art img { filter: brightness(.95); }

.api-callout {
  margin-top: 32px; max-width: 520px; border: 1px solid var(--line-strong); border-left: 4px solid var(--gp-blue); border-radius: 8px;
  padding: 16px 18px; background: var(--card);
}
.api-callout .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-blue); }
html[data-theme="dark"] .api-callout .eyebrow { color: var(--link); }
.api-callout p { font-size: 14px; line-height: 21px; margin: 4px 0 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 4px; font-size: 14px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--gp-blue); cursor: pointer; line-height: 20px;
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-primary { background: var(--gp-blue); color: #fff; }
.btn-primary:hover { background: var(--gp-blue-hover); }
.btn-outline { background: var(--card); color: var(--gp-blue); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--gp-blue); }
html[data-theme="dark"] .btn-outline { color: var(--link); }

/* ---------- start cards ---------- */
.alt { background: var(--bg-alt); }
.start { padding: 24px 0 48px; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 24px; box-shadow: var(--shadow);
}
.card .icon { width: 36px; height: 36px; border-radius: 50%; margin-bottom: 26px; object-fit: contain; }
.card h3 { font-size: 18px; line-height: 28px; font-weight: 600; color: var(--ink-strong); margin: 0 0 8px; }
.card .lede { font-size: 14px; line-height: 20px; color: var(--muted); margin: 0 0 20px; }
.card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.card ul a { display: inline-flex; align-items: center; gap: 8px; }
.ext { width: 18px; height: 18px; }

/* ---------- section heads ---------- */
.section { padding: 64px 0; }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .kicker { font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.sec-head h2 { font-size: 36px; line-height: 44px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.sec-head p { margin: 0 auto; max-width: 720px; }

/* ---------- integration tabs ---------- */
.tabs { display: flex; }
.tabs button {
  flex: 1; padding: 16px 20px; font: inherit; font-weight: 500; color: var(--gp-blue); background: var(--tab-bg);
  border: 1px solid var(--line-strong); margin-bottom: -1px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[data-theme="dark"] .tabs button { color: var(--link); }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink-strong); border-top: 3px solid var(--gp-blue); border-bottom-color: var(--card); }
.tab-panel { border: 1px solid var(--line-strong); padding: 56px 72px; display: none; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--card); }
.tab-panel.active { display: grid; }
.tab-panel .k { font-size: 15px; margin-bottom: 12px; }
.tab-panel h3 { font-size: 28px; line-height: 36px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.tab-panel p { margin: 0 0 24px; }
.tab-panel img { max-height: 280px; margin: 0 auto; }

/* ---------- use cases ---------- */
.usecases { border-top: 1px solid var(--line); }
.uc-intro { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink); background: var(--card);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #12b76a; }
.uc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.uc {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.uc-shot { display: block; position: relative; background: #0b1030; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.uc-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .3s; }
.uc-shot:hover img { transform: scale(1.02); }
.uc-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.uc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.uc h3 { font-size: 22px; line-height: 28px; margin: 0; color: var(--ink-strong); }
.vertical { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gp-blue); margin: 6px 0 10px; }
html[data-theme="dark"] .vertical { color: var(--link); }
.uc .desc { margin: 0 0 14px; font-size: 15px; line-height: 23px; }
.ops { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.ops b { color: var(--ink-strong); }
.groups { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.groups span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 16px; padding: 3px 7px; border-radius: 4px;
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-strong);
}
.built { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 18px; }
.built summary { cursor: pointer; padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--ink-strong); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.built summary::-webkit-details-marker { display: none; }
.built summary::after { content: "+"; font-weight: 400; font-size: 18px; color: var(--muted); }
.built[open] summary::after { content: "\2212"; }
.built ol { margin: 0; padding: 0 14px 14px 34px; font-size: 14px; line-height: 21px; }
.built li + li { margin-top: 4px; }
.built code { font-size: 12.5px; background: var(--bg-alt); padding: 1px 4px; border-radius: 3px; word-break: break-all; }
.uc .btn-row { margin-top: auto; }

/* crafted app previews (shown until a screenshot is available) */
.pv { position: absolute; inset: 0; display: grid; grid-template-columns: 22% 1fr; font-family: Inter, sans-serif; color: #dfe3f5; background: #0b1030; }
.pv-side { background: #101645; padding: 8% 8%; display: flex; flex-direction: column; gap: 7%; border-right: 1px solid #1d2560; }
.pv-logo { font-weight: 800; font-size: clamp(11px, 1.6vw, 17px); color: #fff; letter-spacing: -.02em; }
.pv-sub { font-size: clamp(6px, .7vw, 8px); color: #8e97c9; margin-top: -4%; }
.pv-nav { display: grid; gap: 5px; margin-top: 6%; }
.pv-nav span { font-size: clamp(6px, .75vw, 9px); padding: 4px 6px; border-radius: 4px; color: #b7bfe8; }
.pv-nav span.on { background: #222a6e; color: #a9aeff; }
.pv-main { padding: 5% 5% 0; display: flex; flex-direction: column; gap: 5%; min-width: 0; }
.pv-head { display: flex; justify-content: space-between; align-items: center; }
.pv-title { font-size: clamp(8px, 1vw, 11px); font-weight: 600; color: #fff; }
.pv-env { font-size: clamp(6px, .65vw, 8px); color: #f5b041; border: 1px solid #a3711f; border-radius: 3px; padding: 1px 5px; }
.pv-big { font-size: clamp(14px, 2.6vw, 30px); font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1; }
.pv-cap { font-size: clamp(6px, .7vw, 9px); color: #8e97c9; margin-top: 3px; }
.pv-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pv-tile { background: #121a52; border: 1px solid #1d2560; border-radius: 6px; padding: 7px; min-width: 0; }
.pv-tile b { display: block; font-size: clamp(8px, 1.1vw, 13px); color: #fff; }
.pv-tile i { display: block; font-style: normal; font-size: clamp(5px, .6vw, 8px); color: #8e97c9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-bars { display: grid; gap: 5px; }
.pv-bar { display: grid; grid-template-columns: 30% 1fr 18%; align-items: center; gap: 6px; font-size: clamp(5px, .65vw, 8px); color: #b7bfe8; }
.pv-bar s { display: block; height: 6px; border-radius: 3px; background: #8a8cff; text-decoration: none; }
.pv-bar u { text-decoration: none; text-align: right; font-family: ui-monospace, monospace; }
.pv-wire { position: absolute; left: 22%; right: 0; bottom: 0; height: 9%; background: #0e143e; border-top: 1px solid #1d2560; display: flex; align-items: center; gap: 8px; padding: 0 3%; font-size: clamp(6px, .7vw, 8px); color: #8e97c9; }
.pv-wire b { color: #fff; }

/* ---------- tools (plugin / mcp) ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.tool .ticon { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: #eef0ff; color: var(--gp-blue); margin-bottom: 18px; }
html[data-theme="dark"] .tool .ticon { background: #34366b; color: #c9caff; }
.tool .ticon svg { width: 22px; height: 22px; }
.tool h3 { margin: 0 0 8px; font-size: 18px; line-height: 26px; color: var(--ink-strong); }
.tool p { margin: 0 0 16px; font-size: 15px; line-height: 23px; }
.tool pre {
  margin: 0 0 18px; padding: 10px 12px; border-radius: 6px; background: #14162b; color: #d6d8ff; font-size: 12px; line-height: 18px;
  overflow-x: auto; white-space: pre; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.tool .btn-row { margin-top: auto; }

/* ---------- expand ---------- */
.expand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 880px; margin: 0 auto; }
.feat {
  display: flex; gap: 14px; align-items: center; padding: 20px 18px; min-height: 132px; border: 1px solid var(--line-strong); border-radius: 4px;
  background: var(--card); text-decoration: none; color: var(--ink);
}
.feat:hover { border-color: var(--gp-blue); }
.feat svg { width: 38px; height: 38px; flex-shrink: 0; color: var(--ink-strong); }
.feat b { display: block; color: var(--gp-blue); font-weight: 500; font-size: 16px; line-height: 20px; }
html[data-theme="dark"] .feat b { color: var(--link); }
.feat span { display: block; font-size: 14px; line-height: 20px; color: var(--ink-strong); }

/* ---------- get started ---------- */
.getstarted { text-align: center; padding: 64px 0; }
.getstarted h2 { font-size: 32px; line-height: 40px; color: var(--ink); margin: 0 0 24px; }
.getstarted p { margin: 0 0 32px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 24px; background: var(--bg); }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.foot .brand { margin-bottom: 40px; }
.foot .brand img { height: 27px; }
.foot .copy { font-size: 14px; color: var(--ink-strong); margin: 0 0 20px; }
.foot .legal { font-size: 14px; display: flex; gap: 10px; align-items: center; color: var(--ink-strong); }
.foot .legal a { color: var(--ink-strong); text-decoration: none; }
.foot h4 { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); font-size: 18px; font-weight: 700; color: var(--ink-strong); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--ink-strong); text-decoration: none; font-size: 14px; }
.foot a:hover { text-decoration: underline; }
.prototype { max-width: 1440px; margin: 40px auto 0; padding: 16px 48px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .utility .u-text { display: none; }
  .viewing { width: auto; }
}
@media (max-width: 1100px) {
  .topbar { height: 64px; }
  .search { display: none; }
  .utility { margin-left: auto; gap: 14px; }
  .utility .u-link { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line-strong);
    border-radius: 6px; background: var(--card); color: var(--ink-strong); cursor: pointer;
  }
  .navbar { display: none; height: auto; flex-direction: column; max-height: calc(100vh - 64px); overflow-y: auto; }
  .navbar.open { display: flex; }
  .viewing { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .mainnav { flex-direction: column; }
  .mainnav > li { flex-direction: column; }
  .mainnav > li > a, .mainnav > li > button { padding: 14px 16px; border-bottom: 1px solid var(--line); justify-content: space-between; width: 100%; text-align: left; }
  .mainnav > li > a.active { border-bottom-color: var(--line); border-left: 3px solid var(--gp-blue); }
  .dropdown { position: static; box-shadow: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; min-width: 0; padding: 4px 8px 8px 16px; }
  .mobile-only { display: flex !important; }
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 420px; margin: 0 auto; }
  .cards3, .tools-grid { grid-template-columns: 1fr; }
  .uc-grid { grid-template-columns: 1fr; }
  .expand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab-panel { padding: 32px 24px; grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .prototype { padding: 16px 16px 0; }
}
@media (max-width: 640px) {
  .brand .badge { display: none; }
  .utility .btn-pill .u-text-short { display: none; }
  .hero { padding: 32px 0 48px; }
  .hero h1 { font-size: 34px; line-height: 42px; margin-bottom: 20px; }
  .sec-head h2 { font-size: 28px; line-height: 36px; }
  .section { padding: 48px 0; }
  .tabs { flex-direction: column; }
  .tabs button { text-align: left; }
  .tabs button[aria-selected="true"] { border-top-width: 1px; border-left: 3px solid var(--gp-blue); border-bottom-color: var(--line-strong); }
  .expand-grid { grid-template-columns: 1fr; }
  .feat { min-height: 0; }
  .foot { grid-template-columns: 1fr; gap: 28px; }
  .uc-body { padding: 18px 16px 20px; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 1100px) {
  .hero .container > *, .uc, .tool, .card { min-width: 0; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 16px; gap: 10px; }
  .brand img { height: 22px; }
  .utility .api-pill { display: none; }
  .utility { gap: 10px; }
  .uc-grid, .cards3, .tools-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1101px) and (max-width: 1366px) {
  .viewing { display: none; }
  .mainnav { margin: 0 auto; }
}
