/* Breeze IDE landing page. Tokens, fonts and components follow the app's own design system (breeze.css). */
:root {
  color-scheme: dark;
  --blue: #005EFF;
  --blue-2: #1a6dff;
  --blue-soft: rgba(0, 94, 255, .14);
  --bg: #000;
  --bg-1: #0b0b0d;
  --bg-2: #131316;
  --bg-3: #1c1c21;
  --line: #26262c;
  --line-2: #3a3a42;
  --text: #f5f5f7;
  --text-2: #a1a1aa;
  --text-3: #6b6b75;
  --ok: #22c55e;
  --c-planner: #a78bfa;
  --c-builder: #38bdf8;
  --font-ui: Inter, system-ui, sans-serif;
  --font-display: Unbounded, var(--font-ui);
  --font-code: "B612 Mono", Consolas, monospace;
  --r: 10px;
  --r-lg: 18px;
  --glass: rgba(28, 28, 34, .6);
  --glass-line: rgba(255, 255, 255, .1);
  --glass-blur: blur(22px) saturate(160%);
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-ui); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--blue); color: #fff; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons, pills, chips (as in the app) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--bg-3);
  color: var(--text); border-radius: var(--r); padding: 9px 16px; font: 500 14px var(--font-ui); text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s var(--ease), box-shadow .2s;
}
.btn:hover { border-color: var(--line-2); background: #24242a; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 30px rgba(0, 94, 255, .28); }
.btn-primary:hover { background: var(--blue-2); border-color: var(--blue-2); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; box-shadow: none; }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 12px; }
.ico, .card-ico svg, .copy svg, .zoom-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico .fill { fill: currentColor; stroke: none; }
.pill { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--bg-3); color: var(--text-2); border: 1px solid var(--line); }
.pill.blue { color: #7aa9ff; border-color: rgba(0, 94, 255, .45); background: var(--blue-soft); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-1); color: var(--text-2); font-size: 13px; }
.chip img { width: 18px; height: 18px; border-radius: 5px; object-fit: contain; }

/* ---------- Top bar with the four-step timeline ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 60px; padding-inline: var(--gutter);
  background: rgba(0, 0, 0, .55); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); background: rgba(8, 8, 10, .72); }
.brand { flex-shrink: 0; }
.brand img { height: 22px; width: auto; }
.steps { position: relative; display: flex; gap: 4px; margin-inline: auto; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-1); }
.steps a { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; color: var(--text-3); font-size: 13px; font-weight: 500; text-decoration: none; transition: color .2s; }
.steps a:hover { color: var(--text-2); }
.steps a.on { color: var(--text); }
.steps .n, .kicker .n { font: 11px var(--font-code); color: var(--text-3); }
.steps a.on .n { color: #7aa9ff; }
.steps-ink { position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line-2);
  transition: transform .45s var(--ease), width .45s var(--ease); pointer-events: none; }

/* ---------- 01 · Introduction ---------- */
.hero { position: relative; padding: clamp(56px, 10vw, 112px) 0 clamp(64px, 8vw, 96px); text-align: center; isolation: isolate; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -60px 0 auto; height: 760px; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 460px at 50% 0%, rgba(0, 94, 255, .34), transparent 70%);
  animation: glowDrift 12s ease-in-out infinite alternate;
}
@keyframes glowDrift { to { transform: translateX(4%) scale(1.06); opacity: .85; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(34px, 6.4vw, 72px); max-width: 15ch; margin-inline: auto; }
.grad { background: linear-gradient(100deg, #7aa9ff 0%, #005EFF 45%, #a78bfa 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 640px; margin: 22px auto 0; color: var(--text-2); font-size: clamp(16px, 1.6vw, 19px); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.works { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; }
.works-label { color: var(--text-3); font-size: 13px; margin-right: 4px; }
/* .wrap centres it; .shot alone would reset the side margins to 0. */
.shot.hero-shot { margin: clamp(48px, 7vw, 80px) auto 0; }
/* The hero window pins to the middle of the screen (site.js sets --pin-top from its height) and grows
   to full size while pinned; the extra height of .hero-pin is how long it stays. */
/* A sticky box only travels inside its parent's content, so the scroll room is a real block, not padding. */
.hero-pin { position: relative; }
.hero-pin::after { content: ""; display: block; height: 45vh; }
.hero-pin .hero-shot { position: sticky; top: var(--pin-top, 80px); }
.hero-pin .frame { transform: scale(var(--pin-scale, 1)); transform-origin: 50% 50%; will-change: transform; }
@media (max-width: 860px), (max-height: 560px) {
  .hero-pin::after { content: none; }
  .hero-pin .hero-shot { position: static; }
  .hero-pin .frame { transform: none; }
}

/* ---------- Screenshots in an app-window frame ---------- */
.shot { margin: 0; }
.frame {
  position: relative; border: 1px solid var(--glass-line); border-radius: 14px; overflow: hidden; background: var(--bg-1);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .6);
}
.hero-shot .frame { box-shadow: 0 40px 140px rgba(0, 94, 255, .22), 0 30px 90px rgba(0, 0, 0, .7); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-1); color: var(--text-3); font-size: 12px; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-3); }
.frame-bar span { margin-inline: auto; padding-right: 51px; }
.frame img { width: 100%; cursor: zoom-in; }
.shot figcaption { margin-top: 14px; color: var(--text-3); font-size: 13px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--bg-2); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; color: #7aa9ff; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.section h2 { font-size: clamp(26px, 4vw, 44px); }
.sub { margin-top: 16px; color: var(--text-2); font-size: clamp(15px, 1.4vw, 17px); }

/* ---------- 02 · Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); transition: border-color .2s, transform .3s var(--ease); }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: #7aa9ff; border: 1px solid rgba(0, 94, 255, .35); margin-bottom: 18px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 14.5px; }
.why-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(56px, 8vw, 96px); }
.why-split h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 14px; }
.why-split p { color: var(--text-2); }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(34, 197, 94, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* ---------- 03 · Features ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 120px); }
.feature.flip .feature-copy { order: 2; }
.feature h3 { font-size: clamp(22px, 2.6vw, 32px); margin: 14px 0 12px; }
.feature p { color: var(--text-2); }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.planner { color: var(--c-planner); border-color: rgba(167, 139, 250, .4); background: rgba(167, 139, 250, .1); }
.tag.git { color: #73c991; border-color: rgba(115, 201, 145, .4); background: rgba(115, 201, 145, .1); }
.tag.box { color: var(--c-builder); border-color: rgba(56, 189, 248, .4); background: rgba(56, 189, 248, .1); }
.tag.vibe { color: #ff6b8a; border-color: rgba(255, 107, 138, .4); background: rgba(255, 107, 138, .1); }
.also-title { margin: clamp(72px, 10vw, 120px) 0 20px; font-size: 20px; text-align: center; }
.also-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); }
.mini b { font-size: 15px; }
.mini span { color: var(--text-2); font-size: 14px; }

/* ---------- 04 · Download ---------- */
.download { position: relative; isolation: isolate; }
.download::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(700px 380px at 50% 40%, rgba(0, 94, 255, .2), transparent 70%); }
.download-card { max-width: 760px; margin-inline: auto; padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 56px); text-align: center; border: 1px solid var(--glass-line); border-radius: 28px; background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.download-icon { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 22px; box-shadow: 0 16px 40px rgba(0, 94, 255, .4); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.download h2 { font-size: clamp(30px, 5vw, 48px); }
.note { margin-top: 18px; color: var(--text-3); font-size: 13.5px; }
.note b { color: var(--text-2); font-weight: 600; }
.source { margin-top: 36px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); overflow: hidden; }
.source-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); font-size: 13px; font-weight: 600; }
.source pre { margin: 0; padding: 16px; overflow-x: auto; font: 13px/1.7 var(--font-code); color: var(--text); }
.source .note { margin: 0; padding: 0 16px 14px; }
.copy { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-3); color: var(--text-2); font: 500 12px var(--font-ui); cursor: pointer; transition: color .15s, border-color .15s; }
.copy:hover { color: var(--text); border-color: var(--line-2); }
.copy svg { width: 14px; height: 14px; }
.copy.done { color: var(--ok); border-color: rgba(34, 197, 94, .4); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--bg-2); padding: 28px 0 36px; color: var(--text-3); font-size: 13px; }
.footer-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-in img { height: 18px; width: auto; opacity: .8; }
.footer-in a { margin-left: auto; color: var(--text-2); text-decoration: none; }
.footer-in a:hover { color: var(--text); }

/* ---------- Screenshot zoom ---------- */
.zoom { width: min(1400px, 96vw); max-height: 94vh; padding: 0; border: 1px solid var(--glass-line); border-radius: 16px; background: var(--bg-1); overflow: hidden; }
.zoom::backdrop { background: rgba(0, 0, 0, .75); backdrop-filter: blur(6px); }
.zoom[open] { animation: zoomIn .25s var(--ease); }
@keyframes zoomIn { from { opacity: 0; transform: scale(.97); } }
.zoom img { width: 100%; max-height: 94vh; object-fit: contain; }
.zoom-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--glass-line); border-radius: 50%; background: var(--glass); color: var(--text); cursor: pointer; backdrop-filter: var(--glass-blur); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before, .download-icon { animation: none; }
  .steps-ink { transition: none; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 1020px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .also-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps .label-long { display: none; }
}
@media (max-width: 860px) {
  .steps { display: none; }
  .topbar .btn { margin-left: auto; }
  .why-split, .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 0; }
  .frame-bar span { display: none; }
}
@media (max-width: 560px) {
  .why-grid, .also-grid { grid-template-columns: minmax(0, 1fr); }
  .cta .btn { width: 100%; }
  .works-label { width: 100%; margin: 0 0 2px; }
  .footer-in a { margin-left: 0; }
}
