/* ============================================================
   YGIT.NET — shared stylesheet
   Tokens sourced from UI_V2_DESIGN_SYSTEM_FREEZE.md
   ============================================================ */

:root{
  --bg: #030712;
  --surface: #111827;
  --elevated: #1A2333;
  --input: #070D18;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);

  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --accent: #38BDF8;

  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-faint: #64748B;
  --text-inverse: #FFFFFF;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-card: 12px;
  --radius-control: 10px;

  --shadow-default: 0 1px 2px rgba(0,0,0,.15);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.20);

  --ease: cubic-bezier(.4,0,.2,1);

  /* third-party brand references + Cloudflare secondary accent */
  --gh-color: #F1F5F9;
  --gl-color: #FC6D26;
  --cf-color: #F38020;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg);
  color:var(--text-primary);
  font-family:var(--font-sans);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; }
img{ display:block; max-width:100%; }

:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
  border-radius:4px;
}

.container{ max-width:1120px; margin:0 auto; padding:0 24px; }
.container-narrow{ max-width:440px; margin:0 auto; padding:0 24px; }
code, .mono{ font-family:var(--font-mono); }

/* ---------- Header ---------- */
header.site-header{
  position:sticky; top:0; z-index:100; height:64px;
  display:flex; align-items:center;
  background:rgba(3,7,18,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; width:100%; }
.logo{ display:flex; align-items:center; gap:9px; }
.logo img{ height:22px; width:auto; }
nav.main-nav{ display:flex; align-items:center; gap:28px; }
nav.main-nav a.nav-link{ font-size:14px; font-weight:500; color:var(--text-secondary); transition:color 150ms var(--ease); }
nav.main-nav a.nav-link:hover{ color:var(--text-primary); }

.badge-free{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px; font-weight:500; color:var(--text-muted);
  background:var(--surface); border:1px solid var(--border);
  padding:4px 10px; border-radius:999px;
}
.badge-free .dot{ width:6px; height:6px; border-radius:50%; background:var(--success); }

.header-actions{ display:flex; align-items:center; gap:14px; }
.icon-github{ display:flex; align-items:center; color:var(--text-secondary); transition:color 150ms var(--ease); }
.icon-github:hover{ color:var(--text-primary); }
.icon-github svg{ width:19px; height:19px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-size:14px; font-weight:600; padding:9px 16px;
  border-radius:var(--radius-control); border:1px solid transparent;
  transition:background 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease), box-shadow 150ms var(--ease);
  white-space:nowrap;
}
.btn-primary{ background:var(--primary); color:var(--text-inverse); box-shadow:var(--shadow-default); }
.btn-primary:hover{ background:var(--primary-hover); box-shadow:var(--shadow-hover); }
.btn-ghost{ background:transparent; border-color:var(--border-strong); color:var(--text-secondary); }
.btn-ghost:hover{ border-color:var(--text-faint); color:var(--text-primary); }
.btn-block{ width:100%; }
.btn-lg{ padding:12px 20px; font-size:15px; }

.nav-toggle{ display:none; background:none; border:none; color:var(--text-primary); padding:8px; }

/* ---------- Sections ---------- */
section{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:96px 0;
  border-bottom:0;
}
section::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:linear-gradient(
    180deg,
    transparent 0,
    rgba(17,24,39,.22) 18%,
    rgba(17,24,39,.22) 82%,
    transparent 100%
  );
  opacity:.42;
}
section:nth-of-type(even)::before{
  background:linear-gradient(
    180deg,
    rgba(17,24,39,.04) 0,
    rgba(17,24,39,.68) 18%,
    rgba(17,24,39,.68) 82%,
    rgba(17,24,39,.04) 100%
  );
  opacity:.72;
}

.eyebrow{
  font-family:var(--font-mono); font-size:12px; font-weight:500;
  letter-spacing:.06em; text-transform:uppercase; color:var(--accent);
  margin-bottom:16px; display:block;
}
.soon-pill{
  display:inline-flex; align-items:center;
  font-family:var(--font-mono); font-size:10px; font-weight:600;
  text-transform:none; letter-spacing:.02em;
  color:var(--warning); background:rgba(245,158,11,.12);
  border:1px solid rgba(245,158,11,.25);
  padding:2px 8px; border-radius:999px;
  margin-left:8px; vertical-align:middle;
}
h1{ font-size:36px; font-weight:700; letter-spacing:-0.02em; line-height:1.15; color:var(--text-primary); }
h2{ font-size:28px; font-weight:700; letter-spacing:-0.015em; line-height:1.25; color:var(--text-primary); }
h3{ font-size:17px; font-weight:600; color:var(--text-primary); }
p{ color:var(--text-secondary); }

.section-head{ max-width:640px; margin-bottom:56px; }
.section-head p{ margin-top:12px; font-size:16px; color:var(--text-muted); }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

.no-js .fade-up{ opacity:1; transform:none; }
.no-js .flow-path{ stroke-dashoffset:0; }
.no-js .flow-pulse,
.no-js .flow-runner,
.no-js .ghost-cursor{ display:none; }

.fade-up{ opacity:0; transform:translateY(12px); transition:opacity 220ms var(--ease), transform 220ms var(--ease); }
.fade-up.is-visible{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  .fade-up{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
  .flow-path{ stroke-dashoffset:0 !important; transition:none !important; }
  .proof-card,
  .thanks-card,
  .proof-card:hover,
  .thanks-card:hover{
    transform:none;
    transition:none;
  }
  .integration-row:hover{ transform:none; }
}

/* ---------- Hero ---------- */
.hero{ padding:96px 0 88px; text-align:center; }
.hero::before{
  background:
    radial-gradient(circle at 34% 14%, rgba(56,189,248,.17), transparent 34%),
    radial-gradient(circle at 70% 21%, rgba(243,128,32,.13), transparent 30%),
    linear-gradient(180deg, rgba(3,7,18,0) 0%, rgba(17,24,39,.22) 72%, rgba(17,24,39,.05) 100%);
  filter:blur(1px);
  opacity:1;
}
.hero::after{
  content:"";
  position:absolute;
  z-index:-1;
  top:-180px;
  left:50%;
  width:760px;
  height:520px;
  border-radius:50%;
  pointer-events:none;
  transform:translateX(-50%);
  background:conic-gradient(from 210deg, rgba(37,99,235,.2), rgba(56,189,248,.1), rgba(243,128,32,.16), rgba(37,99,235,.2));
  filter:blur(88px);
  opacity:.45;
}
.hero-inner{ max-width:680px; margin:0 auto; position:relative; z-index:1; }
.hero h1{ margin-bottom:20px; }
.duotone-highlight{
  position:relative;
  display:inline;
  z-index:0;
  background:linear-gradient(90deg, var(--text-primary) 0%, var(--text-primary) 68%, #FFE1C4 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.duotone-highlight::after{
  content:"";
  position:absolute;
  z-index:-1;
  left:1%;
  right:0;
  bottom:-.1em;
  height:.18em;
  border-radius:999px;
  background:linear-gradient(90deg, var(--accent) 0%, var(--primary) 48%, var(--cf-color) 100%);
  box-shadow:0 0 22px rgba(243,128,32,.18);
  transform:skewX(-12deg);
  opacity:.9;
}
.hero-ctas .btn-primary{
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--cf-color) 16%, transparent),
    0 10px 30px rgba(37,99,235,.24),
    0 14px 42px color-mix(in srgb, var(--cf-color) 20%, transparent);
}
.hero-ctas .btn-primary:hover{
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--cf-color) 24%, transparent),
    0 14px 36px rgba(37,99,235,.3),
    0 18px 48px color-mix(in srgb, var(--cf-color) 28%, transparent);
}
.hero p.lede{ font-size:17px; color:var(--text-muted); max-width:520px; margin:0 auto 32px; }
.hero-ctas{ display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; margin-bottom:24px; }
.hero-ctas .btn{ padding:12px 22px; font-size:15px; }
.trust-line{ font-family:var(--font-mono); font-size:12.5px; color:var(--text-faint); letter-spacing:.01em; margin-bottom:64px; }
.trust-line .sep{ margin:0 8px; color:var(--border-strong); }

/* ---------- Illustrative browser chrome ---------- */
.browser-chrome{
  background:#0B1220;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.browser-tabs{
  min-height:38px;
  display:flex;
  align-items:flex-end;
  gap:5px;
  padding:7px 12px 0;
  background:linear-gradient(180deg, #121B2A, #0B1220);
}
.browser-tab{
  min-width:210px;
  max-width:250px;
  height:31px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 11px;
  border:1px solid rgba(255,255,255,.06);
  border-bottom:0;
  border-radius:9px 9px 0 0;
  color:var(--text-muted);
  background:rgba(7,13,24,.62);
  font-size:11.5px;
}
.browser-tab.is-active{
  color:var(--text-secondary);
  background:var(--elevated);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.browser-tab img{ width:14px; height:14px; object-fit:contain; flex-shrink:0; }
.browser-tab span:nth-child(2){ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.browser-tab-close{ margin-left:auto; color:var(--text-faint); font-size:14px; }
.browser-new-tab{
  width:26px;
  height:26px;
  margin-bottom:2px;
  display:grid;
  place-items:center;
  color:var(--text-faint);
  border-radius:6px;
}
.browser-tabs .mock-phase{
  margin-left:auto;
  align-self:center;
  padding-bottom:5px;
  font-size:10.5px;
  font-weight:600;
  letter-spacing:.02em;
  color:var(--accent);
  transition:color 200ms var(--ease);
}
.browser-tabs .mock-phase.is-live{ color:var(--success); }
.browser-toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:8px 12px;
  background:var(--elevated);
}
.browser-nav-icons{
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--text-faint);
  font-size:13px;
}
.browser-url{
  flex:1;
  min-width:0;
  height:27px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 11px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:999px;
  background:var(--input);
  color:var(--text-muted);
  font-family:var(--font-mono);
  font-size:10.5px;
}
.browser-url svg{
  width:11px;
  height:11px;
  fill:none;
  stroke:var(--success);
  stroke-width:1.8;
  flex-shrink:0;
}
.browser-url span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.browser-menu{ color:var(--text-faint); font-size:16px; }

/* ---------- Hero deploy-pipeline mockup (GitHub/Cloudflare visual language) ---------- */
.deploy-mock{
  max-width:640px; margin:0 auto;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:0 24px 60px rgba(0,0,0,.35);
  overflow:hidden;
  text-align:left;
}
.deploy-mock-bar{
  display:flex; align-items:center; gap:8px;
  padding:12px 16px;
  border-bottom:1px solid var(--border);
  background:var(--elevated);
}
.deploy-mock-bar .dot{ width:9px; height:9px; border-radius:50%; }
.deploy-mock-bar .dot.r{ background:#EF4444; opacity:.6; }
.deploy-mock-bar .dot.y{ background:#F59E0B; opacity:.6; }
.deploy-mock-bar .dot.g{ background:#10B981; opacity:.6; }
.deploy-mock-bar .url{ font-family:var(--font-mono); font-size:11.5px; color:var(--text-faint); margin-left:8px; }
.deploy-mock-bar .mock-phase{
  margin-left:auto; font-size:11px; font-weight:600; letter-spacing:.02em;
  color:var(--accent); transition:color 200ms var(--ease);
}
.deploy-mock-bar .mock-phase.is-live{ color:var(--success); }

.deploy-mock-body{
  position:relative;
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.integration-row{
  display:flex; align-items:center; justify-content:space-between;
  background:linear-gradient(180deg, rgba(26,35,51,.98), rgba(17,24,39,.98));
  border:1px solid rgba(255,255,255,.07);
  border-radius:10px; padding:12px 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 10px 24px rgba(0,0,0,.16),
    0 2px 6px rgba(0,0,0,.18);
  transition:border-color 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.integration-row:hover{
  border-color:rgba(255,255,255,.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    inset 0 -1px 0 rgba(0,0,0,.2),
    0 14px 30px rgba(0,0,0,.22),
    0 3px 8px rgba(0,0,0,.2);
  transform:translateY(-1px);
}
.integration-left{ display:flex; align-items:center; gap:11px; min-width:0; }
.integration-icon{
  width:30px; height:30px; border-radius:7px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:var(--input); border:1px solid var(--border);
}
.integration-icon svg{ width:16px; height:16px; }
.integration-text{ min-width:0; }
.integration-name{ font-size:13.5px; font-weight:600; color:var(--text-primary); line-height:1.3; }
.integration-sub{ font-size:11.5px; color:var(--text-faint); font-family:var(--font-mono); }
.status-pill{
  display:inline-flex; align-items:center; gap:5px;
  font-size:11px; font-weight:600; font-family:var(--font-mono);
  padding:4px 9px; border-radius:999px; flex-shrink:0;
  background:rgba(148,163,184,.10); color:var(--text-faint);
  transition:background 250ms var(--ease), color 250ms var(--ease);
}
.status-pill .dot{ width:5px; height:5px; border-radius:50%; background:currentColor; }
.status-pill.idle{ background:rgba(148,163,184,.10); color:var(--text-faint); }
.status-pill.connecting{ background:rgba(245,158,11,.12); color:var(--warning); }
.status-pill.connecting .dot{ animation:pill-blink 900ms ease-in-out infinite; }
.status-pill.connected{ background:rgba(16,185,129,.12); color:var(--success); }


.domain-connect{
  position:relative;
  max-height:0;
  overflow:hidden;
  opacity:0;
  transform:translateY(-5px);
  padding:0 14px;
  border:1px solid transparent;
  border-radius:10px;
  background:linear-gradient(180deg, rgba(7,13,24,.96), rgba(11,18,32,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  transition:
    max-height 450ms var(--ease),
    opacity 260ms var(--ease),
    transform 320ms var(--ease),
    padding 320ms var(--ease),
    border-color 320ms var(--ease);
}
.domain-connect.is-active{
  max-height:260px;
  opacity:1;
  transform:translateY(0);
  padding:14px;
  border-color:rgba(255,255,255,.07);
}
.domain-input-row{
  display:grid;
  grid-template-columns:110px minmax(0, 1fr);
  align-items:center;
  gap:12px;
}
.domain-input-row label{
  color:var(--text-muted);
  font-size:11.5px;
  font-weight:600;
}
.domain-input-shell{
  display:flex;
  align-items:center;
  height:34px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:8px;
  background:#050A13;
  overflow:hidden;
  box-shadow:inset 0 1px 4px rgba(0,0,0,.28);
}
.domain-prefix{
  height:100%;
  display:flex;
  align-items:center;
  padding:0 0 0 10px;
  color:var(--text-faint);
  font-family:var(--font-mono);
  font-size:10.5px;
}
.domain-input-shell input{
  width:100%;
  min-width:0;
  height:100%;
  padding:0 10px 0 3px;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text-secondary);
  font-family:var(--font-mono);
  font-size:11.5px;
}
.domain-checklist{
  display:grid;
  gap:6px;
  margin:12px 0;
}
.domain-check{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:26px;
  padding:5px 8px;
  border-radius:7px;
  color:var(--text-faint);
  background:rgba(255,255,255,.018);
  font-family:var(--font-mono);
  font-size:10.8px;
  transition:color 200ms var(--ease), background 200ms var(--ease);
}
.domain-check-icon{
  width:14px;
  text-align:center;
  color:currentColor;
}
.domain-check.is-checking{ color:var(--warning); background:rgba(245,158,11,.07); }
.domain-check.is-retrying{ color:var(--warning); background:rgba(245,158,11,.07); }
.domain-check.is-verified{ color:var(--success); background:rgba(16,185,129,.07); }
.domain-check.is-checking .domain-check-icon,
.domain-check.is-retrying .domain-check-icon{ animation:pill-blink 900ms ease-in-out infinite; }
.mock-action-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:2px;
}
.mock-action-note{ color:var(--text-faint); font-size:9.8px; }
.mock-deploy-button{
  position:relative;
  min-width:78px;
  height:32px;
  padding:0 14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  background:rgba(37,99,235,.28);
  color:rgba(241,245,249,.5);
  font-size:11.5px;
  font-weight:700;
  cursor:default;
  transition:background 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease), transform 120ms var(--ease);
}
.mock-deploy-button.is-ready{
  background:var(--primary);
  border-color:rgba(96,165,250,.45);
  color:#fff;
  box-shadow:0 8px 22px rgba(37,99,235,.24);
}
.mock-deploy-button.is-clicked{
  transform:scale(.96);
  box-shadow:0 0 0 5px rgba(56,189,248,.12), 0 8px 22px rgba(37,99,235,.26);
}
.mock-deploy-button::after{
  content:"";
  position:absolute;
  inset:50% auto auto 50%;
  width:8px;
  height:8px;
  border-radius:50%;
  background:rgba(255,255,255,.36);
  opacity:0;
  transform:translate(-50%,-50%) scale(.2);
}
.mock-deploy-button.is-clicked::after{
  animation:mock-click-ripple 420ms var(--ease);
}
.ghost-cursor{
  position:absolute;
  right:28px;
  bottom:1px;
  z-index:4;
  width:22px;
  height:22px;
  opacity:0;
  transform:translate(-170px,-72px) rotate(-10deg);
  filter:drop-shadow(0 4px 7px rgba(0,0,0,.45));
  transition:transform 720ms cubic-bezier(.22,.8,.24,1), opacity 160ms var(--ease);
  pointer-events:none;
}
.ghost-cursor svg{
  width:100%;
  height:100%;
  fill:#F8FAFC;
  stroke:#0F172A;
  stroke-width:1.2;
  stroke-linejoin:round;
}
.ghost-cursor.is-visible{ opacity:.9; }
.ghost-cursor.to-deploy{ transform:translate(0,0) rotate(-10deg); }
.ghost-cursor.is-clicking{ transform:translate(1px,2px) rotate(-10deg) scale(.86); }

@keyframes mock-click-ripple{
  0%{ opacity:.7; transform:translate(-50%,-50%) scale(.2); }
  100%{ opacity:0; transform:translate(-50%,-50%) scale(8); }
}

.deploy-progress{
  display:flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:11.5px; color:var(--text-muted);
  padding:10px 14px; background:var(--input); border:1px solid var(--border); border-radius:10px;
}
.deploy-progress .bar{ flex:1; height:5px; border-radius:999px; background:var(--elevated); overflow:hidden; }
.deploy-progress .bar-fill{
  height:100%; width:0%; border-radius:999px;
  background:linear-gradient(90deg, var(--primary), var(--accent));
  transition:width 1.1s var(--ease);
}
.deploy-progress .live-tag{ color:var(--success); font-weight:600; flex-shrink:0; }
.deploy-progress .live-tag.pulse{ animation:live-pulse 1.2s ease-in-out infinite; }

.deploy-log{
  font-size:11.5px; line-height:1.9; color:var(--text-faint);
  min-height:20px; overflow:hidden;
}
.deploy-log .log-line{
  opacity:0; transform:translateY(4px);
  animation:log-in 320ms var(--ease) forwards;
}
.deploy-log .log-line.ok{ color:var(--success); }

@keyframes pill-blink{ 0%,100%{ opacity:1; } 50%{ opacity:.25; } }
@keyframes live-pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.45; } }
@keyframes log-in{ to{ opacity:1; transform:translateY(0); } }

@media (prefers-reduced-motion: reduce){
  .status-pill.connecting .dot{ animation:none; }
  .deploy-progress .live-tag.pulse{ animation:none; }
  .deploy-log .log-line{ animation:none; opacity:1; transform:none; }
  .domain-connect,
  .domain-connect.is-active{
    max-height:none;
    opacity:1;
    transform:none;
    transition:none;
  }
  .domain-check.is-checking .domain-check-icon,
  .domain-check.is-retrying .domain-check-icon,
  .mock-deploy-button.is-clicked::after{
    animation:none;
  }
  .ghost-cursor{ display:none; }
}

/* ---------- Core Flow (signature, upgraded) ---------- */
.flow{ background:transparent; }
.flow::before{
  background:linear-gradient(180deg, rgba(3,7,18,.04), rgba(17,24,39,.74) 18%, rgba(17,24,39,.74) 82%, rgba(3,7,18,.04));
  opacity:1;
}

.flow-diagram{ position:relative; }

.flow-svg-line{ position:absolute; top:23px; left:0; width:100%; height:2px; z-index:0; }
.flow-path{
  stroke:var(--accent);
  stroke-width:2;
  fill:none;
  stroke-dasharray:100;
  stroke-dashoffset:100;
  transition:stroke-dashoffset 1.4s var(--ease);
}
.flow-path.animate{ stroke-dashoffset:0; }
.flow-track{ stroke:var(--border-strong); stroke-width:2; fill:none; }

.flow-pulse{
  stroke:var(--cf-color); stroke-width:2; fill:none;
  stroke-dasharray:6 14; stroke-dashoffset:0;
  opacity:0;
  transition:opacity 300ms var(--ease);
}
.flow-pulse.animate{ opacity:.55; animation:flow-dash 1.8s linear infinite; }

.flow-runner{ fill:var(--cf-color); opacity:0; filter:drop-shadow(0 0 4px var(--cf-color)); transition:opacity 300ms var(--ease); }
.flow-runner.animate{ opacity:1; }

@keyframes flow-dash{ to{ stroke-dashoffset:-40; } }

.flow-steps{ display:flex; align-items:flex-start; justify-content:space-between; position:relative; z-index:1; gap:8px; }

.flow-step{ display:flex; flex-direction:column; align-items:center; text-align:center; flex:1; min-width:0; }

.flow-icon{
  width:46px; height:46px; border-radius:50%;
  background:var(--elevated); border:1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px; position:relative;
  transition:border-color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.flow-icon svg{ width:19px; height:19px; color:var(--accent); }
.flow-icon .flow-index{
  position:absolute; top:-6px; right:-6px;
  width:17px; height:17px; border-radius:50%;
  background:var(--bg); border:1px solid var(--border-strong);
  font-family:var(--font-mono); font-size:9px; font-weight:600;
  color:var(--text-faint); display:flex; align-items:center; justify-content:center;
}
.flow-step:hover .flow-icon{ border-color:var(--accent); transform:translateY(-3px); box-shadow:0 8px 20px rgba(56,189,248,.18); }

.flow-step.final .flow-icon{ background:var(--primary); border-color:var(--primary); }
.flow-step.final .flow-icon svg{ color:var(--text-inverse); }
.flow-step.final .flow-index{ background:var(--primary); border-color:var(--primary); color:var(--text-inverse); }

/* Wave glow that chases the runner dot across the five icons, once the diagram is in view */
.flow-diagram.pulse-active .flow-step .flow-icon{ animation:flow-icon-glow 3.2s var(--ease) infinite; }
.flow-diagram.pulse-active .flow-step:nth-child(1) .flow-icon{ animation-delay:0s; }
.flow-diagram.pulse-active .flow-step:nth-child(2) .flow-icon{ animation-delay:.5s; }
.flow-diagram.pulse-active .flow-step:nth-child(3) .flow-icon{ animation-delay:1s; }
.flow-diagram.pulse-active .flow-step:nth-child(4) .flow-icon{ animation-delay:1.5s; }
.flow-diagram.pulse-active .flow-step:nth-child(5) .flow-icon{ animation-delay:2s; }

@keyframes flow-icon-glow{
  0%, 88%, 100%{ border-color:var(--border-strong); box-shadow:none; }
  6%{ border-color:var(--accent); box-shadow:0 0 0 4px rgba(56,189,248,.14), 0 8px 20px rgba(56,189,248,.18); }
}

@media (prefers-reduced-motion: reduce){
  .flow-pulse{ display:none; }
  .flow-runner{ display:none; }
  .flow-diagram.pulse-active .flow-step .flow-icon{ animation:none; }
}

.flow-label{ font-size:14px; font-weight:600; color:var(--text-primary); padding:0 6px; }
.flow-sub{ font-size:12.5px; color:var(--text-faint); margin-top:4px; padding:0 6px; }

/* ---------- CLI section ---------- */
.cli-grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.cli-copy p{ font-size:16px; margin-bottom:20px; }
.cli-points{ display:flex; flex-direction:column; gap:10px; margin-bottom:24px; }
.cli-points li{ font-size:14.5px; color:var(--text-secondary); padding-left:20px; position:relative; }
.cli-points li::before{
  content:""; position:absolute; left:0; top:9px;
  width:6px; height:6px; border-radius:50%; background:var(--accent);
}
.cli-mock{
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  box-shadow:0 24px 60px rgba(0,0,0,.35); overflow:hidden;
}
.cli-body{
  padding:20px; font-size:13px; line-height:1.9; color:var(--text-secondary);
  white-space:pre-wrap; word-break:break-word;
}
.cli-prompt{ color:var(--accent); margin-right:8px; }
.cli-out{ color:var(--success); display:block; }
.cli-cursor{ color:var(--accent); animation:cursor-blink 900ms step-end infinite; }
@keyframes cursor-blink{ 50%{ opacity:0; } }
@media (prefers-reduced-motion: reduce){
  .cli-cursor{ display:none; }
}

/* ---------- Section corner atmosphere ---------- */
#ownership::after,
#open-source::after{
  content:"";
  position:absolute;
  z-index:-1;
  width:420px;
  height:420px;
  border-radius:50%;
  pointer-events:none;
  filter:blur(72px);
  opacity:.16;
}
#ownership::after{
  right:-220px;
  top:6%;
  background:var(--accent);
}
#open-source::after{
  left:-240px;
  bottom:-130px;
  background:var(--primary);
}

/* ---------- Ownership section ---------- */
.ownership-grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }
.ownership-copy p{ font-size:16px; margin-bottom:16px; }
.ownership-copy p:last-child{ margin-bottom:0; }
.not-list{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.not-pill{
  font-size:13px; color:var(--text-faint); background:var(--input);
  border:1px solid var(--border); padding:6px 12px; border-radius:999px;
  text-decoration:line-through; text-decoration-color:var(--danger); text-decoration-thickness:1px;
}
.own-items{ display:flex; flex-direction:column; gap:1px; background:var(--border); border:1px solid var(--border); border-radius:var(--radius-card); overflow:hidden; }
.own-item{ display:flex; align-items:center; gap:12px; background:var(--elevated); padding:16px 18px; font-size:14.5px; font-weight:500; color:var(--text-primary); }
.own-item svg{ width:16px; height:16px; color:var(--success); flex-shrink:0; }


/* ---------- Comparison ---------- */
.comparison-section::before{
  background:
    radial-gradient(circle at 88% 16%, rgba(56,189,248,.09), transparent 28%),
    linear-gradient(180deg, rgba(3,7,18,.04), rgba(17,24,39,.68) 18%, rgba(17,24,39,.68) 82%, rgba(3,7,18,.04));
  opacity:1;
}
.comparison-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px 16px;
  margin:-20px auto 28px;
}
.comparison-toggle-label{
  color:var(--text-muted);
  font-size:13px;
}
.use-case-toggle{
  display:inline-flex;
  padding:4px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  background:rgba(7,13,24,.84);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.use-case-toggle button{
  min-height:32px;
  padding:0 12px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--text-muted);
  font-size:12.5px;
  font-weight:600;
  transition:background 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.use-case-toggle button:hover{ color:var(--text-primary); }
.use-case-toggle button.is-active{
  background:var(--elevated);
  color:var(--text-primary);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07), 0 4px 12px rgba(0,0,0,.18);
}
.comparison-context{
  flex-basis:100%;
  text-align:center;
  color:var(--text-faint);
  font-family:var(--font-mono);
  font-size:11px;
}
.comparison-table{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.07);
  border-radius:14px;
  background:rgba(7,13,24,.68);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 28px 70px rgba(0,0,0,.3);
}
.comparison-head,
.comparison-row{
  display:grid;
  grid-template-columns:minmax(220px, 1.28fr) repeat(3, minmax(180px, 1fr));
}
.comparison-head{
  background:rgba(17,24,39,.92);
  border-bottom:1px solid rgba(255,255,255,.07);
}
.comparison-heading{
  min-height:74px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:2px;
  padding:16px 18px;
  border-left:1px solid rgba(255,255,255,.06);
  color:var(--text-primary);
  font-size:14px;
  font-weight:700;
}
.comparison-heading:first-child{ border-left:0; }
.comparison-heading small{
  color:var(--text-faint);
  font-family:var(--font-mono);
  font-size:9.5px;
  font-weight:500;
}
.question-heading{
  color:var(--text-muted);
  font-size:12px;
  font-weight:600;
}
.ygit-heading{
  position:relative;
  z-index:1;
  background:linear-gradient(180deg, rgba(37,99,235,.21), rgba(17,24,39,.94));
  box-shadow:inset 1px 0 0 rgba(56,189,248,.16), inset -1px 0 0 rgba(56,189,248,.16);
}
.ygit-heading::after{
  content:"Recommended";
  position:absolute;
  top:9px;
  right:10px;
  padding:2px 6px;
  border-radius:999px;
  background:rgba(56,189,248,.12);
  color:var(--accent);
  font-family:var(--font-mono);
  font-size:8px;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.comparison-row{
  position:relative;
  border-bottom:1px solid rgba(255,255,255,.055);
  transition:background 200ms var(--ease), box-shadow 200ms var(--ease);
}
.comparison-row:last-child{ border-bottom:0; }
.comparison-row.is-priority{
  background:rgba(56,189,248,.025);
  box-shadow:inset 3px 0 0 rgba(56,189,248,.34);
}
.comparison-question,
.comparison-cell{
  min-width:0;
  padding:20px 18px;
}
.comparison-question{
  display:flex;
  align-items:flex-start;
  color:var(--text-primary);
  font-size:14px;
  font-weight:650;
  line-height:1.45;
}
.comparison-cell{
  border-left:1px solid rgba(255,255,255,.055);
}
.comparison-cell p{
  margin-top:8px;
  color:var(--text-muted);
  font-size:12px;
  line-height:1.55;
}
.ygit-cell{
  position:relative;
  background:linear-gradient(180deg, rgba(37,99,235,.11), rgba(37,99,235,.055));
  box-shadow:inset 1px 0 0 rgba(56,189,248,.12), inset -1px 0 0 rgba(56,189,248,.12);
}
.comparison-state{
  display:inline-flex;
  align-items:center;
  min-height:23px;
  padding:3px 8px;
  border-radius:999px;
  font-family:var(--font-mono);
  font-size:9.5px;
  font-weight:650;
}
.comparison-state.yes{
  background:rgba(16,185,129,.1);
  color:var(--success);
}
.comparison-state.partial{
  background:rgba(245,158,11,.1);
  color:var(--warning);
}
.comparison-note{
  max-width:760px;
  margin:20px auto 0;
  text-align:center;
  color:var(--text-faint);
  font-size:11.5px;
}

@media (max-width:760px){
  .comparison-controls{ margin-top:-16px; }
  .comparison-toggle-label{ flex-basis:100%; text-align:center; }
  .comparison-table{
    overflow:visible;
    border:0;
    background:transparent;
    box-shadow:none;
  }
  .comparison-head{ display:none; }
  .comparison-body{ display:grid; gap:14px; }
  .comparison-row{
    display:grid;
    grid-template-columns:1fr;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.07);
    border-radius:12px;
    background:rgba(7,13,24,.82);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 16px 36px rgba(0,0,0,.2);
  }
  .comparison-row:last-child{ border-bottom:1px solid rgba(255,255,255,.07); }
  .comparison-row.is-priority{ box-shadow:inset 3px 0 0 rgba(56,189,248,.4), 0 16px 36px rgba(0,0,0,.22); }
  .comparison-question{
    padding:16px;
    background:rgba(17,24,39,.76);
    border-bottom:1px solid rgba(255,255,255,.06);
  }
  .comparison-cell{
    display:grid;
    grid-template-columns:76px minmax(0,1fr);
    column-gap:10px;
    align-items:start;
    padding:14px 16px;
    border-left:0;
    border-bottom:1px solid rgba(255,255,255,.05);
  }
  .comparison-cell:last-child{ border-bottom:0; }
  .comparison-cell::before{
    content:attr(data-provider);
    grid-row:1 / span 2;
    color:var(--text-faint);
    font-family:var(--font-mono);
    font-size:10px;
    font-weight:600;
    padding-top:4px;
  }
  .comparison-cell p{ margin-top:6px; }
  .ygit-cell{
    background:linear-gradient(90deg, rgba(37,99,235,.13), rgba(37,99,235,.045));
    box-shadow:inset 3px 0 0 rgba(56,189,248,.28);
  }
}

@media (prefers-reduced-motion: reduce){
  .use-case-toggle button,
  .comparison-row{ transition:none; }
}

/* ---------- Open Source proof ---------- */
.proof-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.proof-card{
  --tilt-x:0deg;
  --tilt-y:0deg;
  --tilt-lift:0px;
  position:relative;
  background:linear-gradient(180deg, rgba(26,35,51,.9), rgba(17,24,39,.92));
  border:1px solid rgba(255,255,255,.07);
  border-radius:var(--radius-card);
  padding:24px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.2),
    0 18px 44px rgba(0,0,0,.24),
    0 3px 10px rgba(0,0,0,.2);
  transform:perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--tilt-lift));
  transform-style:preserve-3d;
  transition:box-shadow 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
  will-change:transform;
}
.proof-card:hover{
  --tilt-lift:-5px;
  border-color:rgba(56,189,248,.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    inset 0 -1px 0 rgba(0,0,0,.22),
    0 24px 58px rgba(0,0,0,.32),
    0 8px 22px rgba(37,99,235,.1);
}
.proof-card .stat{ font-family:var(--font-mono); font-size:26px; font-weight:600; color:var(--text-primary); display:block; margin-bottom:6px; }
.proof-card .stat-label{ font-size:13px; color:var(--text-muted); }
.ci-badge{ display:inline-flex; align-items:center; gap:8px; font-family:var(--font-mono); font-size:12px; padding:5px 10px; border-radius:6px; background:var(--input); border:1px solid var(--border); color:var(--success); margin-top:14px; }
.ci-badge .dot{ width:6px; height:6px; border-radius:50%; background:var(--success); }
.repo-link{ display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:500; color:var(--text-secondary); margin-top:28px; transition:color 150ms var(--ease); }
.repo-link:hover{ color:var(--accent); }
.repo-link svg{ width:16px; height:16px; }

/* ---------- Tech stack strip ---------- */
.stack-strip{ padding:56px 0; }
.stack-label{ font-family:var(--font-mono); font-size:12px; color:var(--text-faint); text-align:center; margin-bottom:24px; letter-spacing:.04em; }
.stack-badges{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.stack-badge{ font-family:var(--font-mono); font-size:12.5px; color:var(--text-muted); background:var(--surface); border:1px solid var(--border); padding:7px 13px; border-radius:8px; }

/* ---------- Thanks section ---------- */
.thanks-section{ background:transparent; }
.thanks-section::before{
  background:
    radial-gradient(circle at 10% 20%, rgba(56,189,248,.11), transparent 32%),
    radial-gradient(circle at 92% 76%, rgba(243,128,32,.08), transparent 30%),
    linear-gradient(180deg, rgba(17,24,39,.2), rgba(17,24,39,.72) 20%, rgba(17,24,39,.72) 80%, rgba(17,24,39,.18));
  opacity:1;
}
.thanks-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.thanks-card{
  --tilt-x:0deg;
  --tilt-y:0deg;
  --tilt-lift:0px;
  position:relative;
  background:linear-gradient(180deg, rgba(26,35,51,.94), rgba(17,24,39,.96));
  border:1px solid rgba(255,255,255,.07);
  border-radius:var(--radius-card);
  padding:26px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.22),
    0 18px 44px rgba(0,0,0,.25),
    0 3px 10px rgba(0,0,0,.2);
  transform:perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--tilt-lift));
  transform-style:preserve-3d;
  transition:box-shadow 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
  will-change:transform;
}
.thanks-card:hover{
  --tilt-lift:-5px;
  border-color:rgba(56,189,248,.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    inset 0 -1px 0 rgba(0,0,0,.24),
    0 26px 62px rgba(0,0,0,.34),
    0 8px 22px rgba(37,99,235,.1);
}
.thanks-logo-row{ display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.thanks-logo-row .brand-icon{ width:30px; height:30px; border-radius:7px; display:flex; align-items:center; justify-content:center; background:var(--input); border:1px solid var(--border); }
.thanks-logo-row .brand-icon svg{ width:17px; height:17px; }
.thanks-card h3{ font-size:15.5px; }
.thanks-card p{ font-size:13.5px; color:var(--text-muted); margin-top:8px; }
.thanks-note{ text-align:center; margin-top:36px; font-size:13.5px; color:var(--text-faint); }
.thanks-note strong{ color:var(--text-secondary); font-weight:600; }

/* ---------- CTA (bottom, product) ---------- */
.cta-section{ background:transparent; text-align:center; }
.cta-section::before{
  background:linear-gradient(180deg, rgba(17,24,39,.58), rgba(17,24,39,.82) 46%, rgba(3,7,18,.12));
  opacity:1;
}
.cta-inner{ max-width:480px; margin:0 auto; }
.cta-inner h2{ margin-bottom:12px; }
.cta-inner > p{ margin-bottom:32px; font-size:15px; }
.cta-ctas{ display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; }

/* ---------- Footer ---------- */
footer{ padding:48px 0; }
.footer-inner{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; }
.footer-left{ display:flex; align-items:center; gap:10px; font-size:13px; color:var(--text-faint); }
.footer-left img{ height:16px; width:auto; opacity:.8; }
.footer-links{ display:flex; gap:24px; flex-wrap:wrap; }
.footer-links a{ font-size:13px; color:var(--text-muted); transition:color 150ms var(--ease); }
.footer-links a:hover{ color:var(--text-primary); }

/* ============================================================
   Auth pages (login / signup)
   ============================================================ */
.auth-shell{
  min-height:calc(100vh - 64px);
  display:flex; align-items:center; justify-content:center;
  padding:64px 24px;
}
.auth-card{
  width:100%; max-width:400px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-card); padding:32px;
  box-shadow:var(--shadow-hover);
}
.auth-head{ text-align:center; margin-bottom:28px; }
.auth-head img.auth-icon{ height:32px; width:32px; margin:0 auto 18px; }
.auth-head h1{ font-size:22px; margin-bottom:6px; }
.auth-head p{ font-size:13.5px; color:var(--text-muted); }

.oauth-btn{
  display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%; padding:11px 16px; border-radius:var(--radius-control);
  background:var(--elevated); border:1px solid var(--border-strong);
  color:var(--text-primary); font-size:14px; font-weight:600;
  transition:border-color 150ms var(--ease), background 150ms var(--ease);
  margin-bottom:10px;
}
.oauth-btn:hover{ border-color:var(--text-faint); background:#212C40; }
.oauth-btn svg{ width:17px; height:17px; flex-shrink:0; }

.auth-divider{ display:flex; align-items:center; gap:12px; margin:22px 0; }
.auth-divider::before, .auth-divider::after{ content:""; flex:1; height:1px; background:var(--border); }
.auth-divider span{ font-size:12px; color:var(--text-faint); }

.form-group{ margin-bottom:16px; }
.form-group label{ display:block; font-size:13px; font-weight:500; color:var(--text-secondary); margin-bottom:7px; }
.form-group input{
  width:100%; background:var(--input); border:1px solid var(--border-strong);
  border-radius:var(--radius-control); padding:11px 13px; font-size:14px;
  color:var(--text-primary); font-family:var(--font-sans);
  transition:border-color 150ms var(--ease);
}
.form-group input::placeholder{ color:var(--text-faint); }
.form-group input:focus{ border-color:var(--accent); outline:none; }

.auth-footer-link{ text-align:center; margin-top:22px; font-size:13.5px; color:var(--text-muted); }
.auth-footer-link a{ color:var(--accent); font-weight:600; }

.form-msg{ margin-top:12px; font-size:13px; min-height:18px; text-align:center; }
.form-msg.success{ color:var(--success); }
.form-msg.error{ color:var(--danger); }

.auth-terms{ text-align:center; font-size:11.5px; color:var(--text-faint); margin-top:18px; line-height:1.5; }
.auth-terms a{ color:var(--text-muted); text-decoration:underline; text-decoration-color:var(--border-strong); }

/* ---------- Static legal pages ---------- */
.legal{ max-width:720px; margin:0 auto; padding:80px 24px 96px; }
.legal h1{ margin-bottom:8px; }
.legal .updated{ font-family:var(--font-mono); font-size:12px; color:var(--text-faint); margin-bottom:40px; }
.legal h2{ font-size:19px; margin:36px 0 12px; }
.legal p{ margin-bottom:14px; font-size:15px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  .ownership-grid{ grid-template-columns:1fr; gap:32px; }
  .cli-grid{ grid-template-columns:1fr; gap:32px; }
  .proof-grid{ grid-template-columns:1fr 1fr; }
  .thanks-grid{ grid-template-columns:1fr; }
}

@media (max-width: 720px){
  nav.main-nav{
    position:absolute; top:64px; left:0; right:0;
    background:var(--bg); border-bottom:1px solid var(--border);
    flex-direction:column; align-items:flex-start; padding:20px 24px; gap:18px;
    display:none;
  }
  nav.main-nav.open{ display:flex; }
  nav.main-nav .header-actions{ flex-direction:column; align-items:flex-start; width:100%; gap:10px; }
  nav.main-nav .btn{ width:100%; }
  .nav-toggle{ display:block; }
  .badge-free{ display:none; }
  h1{ font-size:28px; }
  h2{ font-size:22px; }
  section{ padding:64px 0; }
  .hero{ padding:72px 0 56px; }
  .flow-svg-line{ display:none; }
  .flow-steps{ flex-direction:column; gap:24px; align-items:flex-start; }
  .flow-step{ flex-direction:row; text-align:left; gap:14px; }
  .flow-icon{ margin-bottom:0; flex-shrink:0; }
  .proof-grid{ grid-template-columns:1fr; }
  .footer-inner{ flex-direction:column; align-items:flex-start; }
  .deploy-mock{ margin:0 8px; }
}


/* Homepage authentication controls */
[hidden]{ display:none !important; }
button.btn{
  appearance:none;
  font:inherit;
  cursor:pointer;
}
button.btn:disabled{
  cursor:wait;
  opacity:.72;
}
