/* BloxPlan landing — dark graphite + emerald + cyan */
:root {
  --bg: #0a0d0c;
  --bg-2: #0d1211;
  --panel: #121817;
  --panel-2: #161d1c;
  --panel-3: #1a2221;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #e9efed;
  --text-dim: #a8b2af;
  --text-muted: #6b7572;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-deep: #059669;
  --emerald-dim: rgba(16, 185, 129, 0.12);
  --emerald-line: rgba(16, 185, 129, 0.28);
  --cyan: #22d3ee;
  --cyan-bright: #67e8f9;
  --cyan-dim: rgba(34, 211, 238, 0.14);
  --cyan-line: rgba(34, 211, 238, 0.3);
  --amber: #f59e0b;
  --rose: #fb7185;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 12px 40px rgba(0,0,0,0.4);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
/* Remove mobile browser tap highlight on all interactive elements */
a, button, [role="button"], [data-tally-open] {
  -webkit-tap-highlight-color: transparent;
}
html {
  scroll-behavior: smooth;
}
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Blueprint background */
.bg-grid {
  position: absolute; top: 0; left: 0; right: 0; height: 1200px; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(16,185,129,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,185,129,0.06) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 240px 240px, 240px 240px, 48px 48px, 48px 48px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 85%);
}
.bg-glow {
  position: absolute; top: 0; left: 0; right: 0; height: 1100px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 78% 22%, rgba(16,185,129,0.24), transparent 65%),
    radial-gradient(ellipse 50% 40% at 8% 30%, rgba(34,211,238,0.14), transparent 65%),
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(16,185,129,0.12), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 75%, rgba(16,185,129,0.06), transparent 70%);
}
.bg-noise {
  position: absolute; top: 0; left: 0; right: 0; height: 1200px; z-index: 0; pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 90%);
}

main, header, footer { position: relative; z-index: 1; }

/* Container */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* ---------- Announcement Bar ---------- */
.announce-bar {
  position: sticky;
  top: 0;
  z-index: 51; /* above header */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: linear-gradient(90deg, #064e35 0%, #065f46 50%, #064e35 100%);
  border-bottom: 1px solid rgba(52, 211, 153, 0.25);
  font-size: 14px;
  font-weight: 500;
  color: #d1fae5;
  text-align: center;
  flex-wrap: wrap;
}
.announce-icon { font-size: 15px; }
.announce-cta {
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.announce-cta:hover { color: #a7f3d0; text-decoration-color: rgba(167,243,208,0.6); }
.announce-arrow { transition: transform 0.15s; }
.announce-cta:hover .announce-arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 43px; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 13, 12, 0.72);
  border-bottom: 1px solid var(--border);
}
.hdr {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 20px; letter-spacing: -0.01em;
}
.brand .b-white { color: #fff; }
.brand .b-emerald { color: var(--emerald-bright); }
.brand-logo {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  filter: drop-shadow(0 4px 14px rgba(52, 211, 153, 0.35));
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }

nav.primary {
  display: flex; align-items: center; gap: 36px;
}
nav.primary a {
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s;
}
nav.primary a:hover { color: var(--text); }
.hdr-right { display: flex; align-items: center; gap: 18px; }
.hdr-right .login { color: var(--text-dim); font-size: 14.5px; font-weight: 500; }
.hdr-right .login:hover { color: var(--text); }

.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.18s, border-color 0.18s;
  white-space: nowrap;
  isolation: isolate;
}
.btn-primary {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, #34d399 0%, #10b981 55%, #059669 100%);
  color: #04140e;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.22) inset,
    0 -8px 18px rgba(4,20,14,0.18) inset,
    0 1px 0 rgba(255,255,255,0.35) inset,
    0 8px 24px rgba(16,185,129,0.35),
    0 0 0 1px rgba(16,185,129,0.55),
    0 0 28px rgba(52,211,153,0.35);
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.28) inset,
    0 -8px 18px rgba(4,20,14,0.2) inset,
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 14px 36px rgba(16,185,129,0.5),
    0 0 0 1px rgba(52,211,153,0.75),
    0 0 48px rgba(52,211,153,0.55);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover {
  background: rgba(16,185,129,0.06);
  border-color: var(--emerald-line);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(16,185,129,0.35);
}
.btn-secondary:active { transform: translateY(0); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }

/* ---------- Hero ---------- */
.hero {
  padding: 36px 0 80px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -40px 0 -20px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 75% 45%, rgba(16,185,129,0.10), transparent 70%),
    radial-gradient(ellipse 60% 50% at 25% 60%, rgba(34,211,238,0.06), transparent 70%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 160px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, transparent, rgba(10,13,12,0.6) 60%, var(--bg));
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(300px, 440px) 1fr;
  gap: 40px;
  align-items: center;
}
.hero-copy { padding: 8px 0; }

.built-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  margin-bottom: 14px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-bright);
  background: linear-gradient(180deg, rgba(16,185,129,0.08), rgba(16,185,129,0.02));
  border: 1px solid var(--emerald-line);
  border-radius: 999px;
  box-shadow:
    0 0 0 4px rgba(16,185,129,0.04),
    0 8px 28px -10px rgba(16,185,129,0.45),
    inset 0 0 18px rgba(16,185,129,0.06);
}
.built-badge-ic {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--emerald-bright), var(--emerald-deep));
  color: #04140e;
  box-shadow:
    0 0 0 1px rgba(16,185,129,0.55),
    0 0 12px rgba(52,211,153,0.55);
  flex: 0 0 22px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  font-size: 12.5px; font-weight: 500;
  color: var(--emerald-bright);
  background: var(--emerald-dim);
  border: 1px solid var(--emerald-line);
  border-radius: 999px;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
  50%       { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}
h1.hero-title {
  /* Fluid: scales smoothly from ~30px at 320px to 56px at ~940px */
  font-size: clamp(30px, 4.5vw + 14px, 56px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 700;
  margin: 20px 0 20px;
  color: #fff;
  text-wrap: balance;
}
h1.hero-title .accent { color: var(--emerald-bright); }
.hero-sub {
  /* Fluid: 15px at 320px → 17px at 768px+ */
  font-size: clamp(15px, 0.5vw + 13.4px, 17px);
  color: var(--text-dim);
  max-width: 460px;
  line-height: 1.65;
  text-wrap: pretty;
  margin: 0 0 16px;
}
.hero-founder {
  font-size: 13.5px;
  color: var(--text-dim);
  font-style: italic;
  margin: 0 0 28px;
}
.founder-shimmer {
  background: linear-gradient(90deg, var(--emerald-bright) 0%, #a7f3d0 50%, var(--emerald-bright) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2.5s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: 0% center; }
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-mini {
  display: flex; gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-mini .item {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  max-width: 130px;
}
.hero-mini .ic {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--emerald-dim);
  color: var(--emerald-bright);
  flex: 0 0 32px;
}

/* ---------- Dashboard preview ---------- */
.dash-frame {
  position: relative;
  isolation: isolate;
  padding: 4px;
}
.dash-frame::before {
  content: ''; position: absolute;
  inset: -120px -80px -80px -80px;
  background:
    radial-gradient(ellipse 55% 45% at 50% 45%, rgba(16,185,129,0.32), transparent 65%),
    radial-gradient(ellipse 70% 55% at 50% 55%, rgba(16,185,129,0.14), transparent 75%),
    radial-gradient(ellipse 45% 35% at 15% 80%, rgba(34,211,238,0.16), transparent 70%),
    radial-gradient(ellipse 35% 30% at 85% 15%, rgba(52,211,153,0.18), transparent 70%);
  z-index: -2;
  filter: blur(28px);
  pointer-events: none;
}
.dash-frame::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(140deg,
    rgba(52,211,153,0.65) 0%,
    rgba(16,185,129,0.25) 22%,
    rgba(255,255,255,0.06) 45%,
    rgba(34,211,238,0.35) 75%,
    rgba(52,211,153,0.6) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 0 24px rgba(16,185,129,0.18);
}

/* ── Circuit border SVG overlay ── */
.circuit-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}
/* Static bracket arms */
.cbracket {
  fill: none;
  stroke: #34d399;
  stroke-width: 1.5;
  stroke-linecap: square;
  opacity: 0.85;
}
/* Corner inner pads */
.cpad {
  fill: rgba(52,211,153,0.14);
  stroke: #34d399;
  stroke-width: 1;
}
/* Edge stubs */
.cstub {
  stroke: rgba(52,211,153,0.45);
  stroke-width: 1;
  stroke-linecap: square;
}
/* Small edge pads */
.cpad-sm {
  fill: rgba(52,211,153,0.1);
  stroke: rgba(52,211,153,0.55);
  stroke-width: 0.8;
}
/* Animated traveler — primary */
.ctraveler {
  fill: none;
  stroke: #34d399;
  stroke-width: 2.5;
  stroke-linecap: round;
  animation: circuit-travel 9s linear infinite;
}
/* Animated traveler — secondary (dimmer, opposite direction) */
.ctraveler-b {
  fill: none;
  stroke: #22d3ee;
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.55;
  animation: circuit-travel 14s linear infinite reverse;
}
@keyframes circuit-travel {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -3000; }
}
.dash {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, #0f1413 0%, #0a0e0d 100%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.09) inset,
    0 0 0 1px rgba(16,185,129,0.22),
    0 30px 80px -20px rgba(0,0,0,0.85),
    0 60px 140px -30px rgba(16,185,129,0.38),
    0 0 120px -20px rgba(52,211,153,0.24);
  overflow: hidden;
  display: grid;
  grid-template-columns: 168px 1fr;
  height: 580px;
  max-height: 580px;
}
.dash::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 45% 25% at 55% -5%, rgba(16,185,129,0.20), transparent 60%);
}
.dash-side {
  background: linear-gradient(180deg, #0a0e0d 0%, #080b0a 100%);
  border-right: 1px solid var(--border);
  padding: 14px 10px 12px;
  display: flex; flex-direction: column;
  gap: 2px;
  position: relative; z-index: 1;
  overflow: hidden;
}
.dash-side .ds-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px 12px;
  font-size: 13px; font-weight: 700;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.ds-section-label {
  font-size: 9.5px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 9px 4px;
  font-weight: 600;
}
.dash-side .ds-brand .b-white { color: #fff; }
.dash-side .ds-brand .b-emerald { color: var(--emerald-bright); }
.dash-side .ds-brand-logo {
  width: 22px; height: 22px;
  display: grid; place-items: center;
}
.dash-side .ds-brand-logo img { width: 100%; height: 100%; object-fit: contain; }

.ds-item {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 9px;
  font-size: 11.5px;
  color: var(--text-dim);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  position: relative;
}
.ds-item:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.ds-item svg { width: 13px; height: 13px; flex: 0 0 13px; }
.ds-item.active {
  background: linear-gradient(90deg, rgba(16,185,129,0.18), rgba(16,185,129,0.06));
  color: var(--emerald-bright);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--emerald-bright);
}
.ds-item .badge-mini {
  margin-left: auto;
  font-size: 9px;
  font-weight: 600;
  background: var(--emerald-dim);
  color: var(--emerald-bright);
  padding: 1px 6px;
  border-radius: 999px;
}

.ds-project {
  margin-top: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11px;
}
.ds-project .lbl { color: var(--text-muted); font-size: 10px; margin-bottom: 4px; }
.ds-project .val {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text);
  font-weight: 500;
}

.dash-main {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.dash-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  gap: 12px;
}
.dash-crumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  flex: 0 0 auto;
}
.dash-crumb .sep { color: var(--text-muted); }
.dash-crumb .now { color: #fff; font-weight: 600; }
.dash-search {
  flex: 1; max-width: 240px;
  display: flex; align-items: center; gap: 7px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.dash-search svg { width: 11px; height: 11px; }
.dash-search .kbd {
  margin-left: auto;
  font-size: 9.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
}
.dash-top-right { display: flex; align-items: center; gap: 8px; }
.dash-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px;
  font-size: 11px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
}
.dash-chip.primary {
  background: var(--emerald-dim);
  border-color: var(--emerald-line);
  color: var(--emerald-bright);
  font-weight: 600;
}
.dash-chip svg { width: 11px; height: 11px; }
.dash-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399, #22d3ee);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
  color: #04140e;
}
.dash-body {
  padding: 14px 16px 14px 14px;
  display: flex; flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}
.dash-greeting {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2px;
}
.dash-greeting h2 { font-size: 14px; font-weight: 600; color: #fff; margin: 0; letter-spacing: -0.01em; }
.dash-greeting .sub { font-size: 11px; color: var(--text-muted); }

/* KPI row */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.kpi {
  background: linear-gradient(180deg, #151b1a 0%, #101615 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 12px 13px 10px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.kpi.featured {
  background: linear-gradient(180deg, rgba(16,185,129,0.14) 0%, rgba(16,185,129,0.03) 100%);
  border-color: rgba(16,185,129,0.38);
  box-shadow: 0 0 0 1px rgba(16,185,129,0.08) inset, 0 6px 28px -6px rgba(16,185,129,0.20);
}
.kpi .lbl {
  font-size: 10px; color: var(--text-muted); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500;
}
.kpi .row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 4px;
}
.kpi .val { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -0.015em; line-height: 1.1; }
.kpi .delta {
  font-size: 10px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 2px;
  padding: 1px 5px;
  border-radius: 4px;
}
.kpi .delta.up { color: var(--emerald-bright); background: var(--emerald-dim); }
.kpi .delta.down { color: var(--rose); background: rgba(251,113,133,0.12); }
.kpi .spark { height: 28px; width: 100%; margin-top: 4px; }

/* Dashboard widget grid */
.widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.widget {
  background: linear-gradient(180deg, #151b1a 0%, #0f1413 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 12px 11px;
  display: flex; flex-direction: column;
  gap: 8px;
  min-height: 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.widget:hover {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 4px 24px -6px rgba(16,185,129,0.15);
}
.w-head {
  display: flex; gap: 8px; align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.055);
  margin-bottom: 0;
}
.w-ic {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(16,185,129,0.22), rgba(16,185,129,0.07));
  color: var(--emerald-bright);
  display: grid; place-items: center;
  flex: 0 0 24px;
  border: 1px solid rgba(16,185,129,0.38);
  box-shadow: 0 0 8px rgba(16,185,129,0.14), 0 0 0 3px rgba(16,185,129,0.05);
}
.w-ic.cyan {
  background: linear-gradient(135deg, rgba(34,211,238,0.22), rgba(34,211,238,0.07));
  color: var(--cyan);
  border-color: rgba(34,211,238,0.38);
  box-shadow: 0 0 8px rgba(34,211,238,0.14), 0 0 0 3px rgba(34,211,238,0.05);
}
.w-ic svg { width: 12px; height: 12px; }
.w-title { font-size: 12px; font-weight: 600; color: #fff; line-height: 1.2; }
.w-desc { display: none; }

.row-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 9px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  font-size: 10.5px;
}
.row-item .name { color: var(--text); }
.row-item .name-row { display: flex; align-items: center; gap: 6px; }
.row-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--emerald-bright); }
.row-item .dot.cyan { background: var(--cyan); }
.row-item .dot.muted { background: var(--text-muted); }
.tag {
  font-size: 10px; font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}
.tag.up { background: var(--emerald-dim); color: var(--emerald-bright); }
.tag.cyan { background: var(--cyan-dim); color: var(--cyan); }
.tag.amber { background: rgba(245, 158, 11, 0.14); color: var(--amber); }
.tag.muted { background: rgba(255,255,255,0.06); color: var(--text-dim); }

.w-btn {
  margin-top: auto;
  padding: 6px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  font-size: 11px; font-weight: 500;
  color: var(--text-dim);
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.w-btn:hover { background: rgba(255,255,255,0.07); color: var(--text); border-color: rgba(255,255,255,0.13); }

/* Core loop diagram */
.coreloop {
  position: relative;
  height: 90px;
  background: rgba(34, 211, 238, 0.04);
  border: 1px solid rgba(34, 211, 238, 0.20);
  border-radius: 8px;
  overflow: hidden;
}
.coreloop::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(34,211,238,0.06), transparent 70%);
  pointer-events: none;
}
.cl-node {
  position: absolute;
  padding: 3px 8px;
  font-size: 10px;
  background: var(--panel-3);
  border: 1px solid var(--emerald-line);
  color: var(--emerald-bright);
  border-radius: 999px;
  font-weight: 600;
}
.cl-node.n1 { top: 8px; left: 50%; transform: translateX(-50%); }
.cl-node.n2 { top: 50%; right: 8px; transform: translateY(-50%); }
.cl-node.n3 { bottom: 8px; left: 50%; transform: translateX(-50%); color: var(--cyan); border-color: rgba(34,211,238,0.4); }
.cl-node.n4 { top: 50%; left: 8px; transform: translateY(-50%); }

/* Thumbnail brief widget */
.thumb-brief {
  height: 92px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #0c4a6e 50%, #134e4a 100%);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.thumb-brief::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 80%, rgba(0,0,0,0.4), transparent 60%),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.15), transparent 50%);
}
.thumb-brief span { position: relative; z-index: 1; text-align: center; line-height: 1; }

/* Form-y widget */
.w-input {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 10.5px;
  color: var(--text);
}
.w-input .lbl { font-size: 9px; color: var(--text-muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.06em; }
.w-input .val { color: var(--text); line-height: 1.35; }

/* Update scheduler full-width row */
.scheduler {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}
.scheduler .timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.tl-item {
  text-align: center;
}
.tl-item .d { font-size: 10px; color: var(--text-muted); }
.tl-item .t { font-size: 11px; color: var(--text); font-weight: 600; margin: 3px 0 6px; }
.tl-item .tag { display: inline-block; }

.notes {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.notes-title { font-size: 11.5px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.note {
  display: flex; justify-content: space-between;
  font-size: 11px;
  padding: 3px 0;
  border-bottom: 1px dashed var(--border);
}
.note:last-of-type { border-bottom: 0; }
.note .nm { color: var(--text); }
.note .dt { color: var(--text-muted); font-size: 10px; }
.notes-link { font-size: 10.5px; color: var(--emerald-bright); margin-top: 4px; }

/* ── Dashboard mockup — new matching elements ── */

/* Sidebar footer / plan widget */
.ds-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.ds-plan {
  margin: 6px 2px 0;
  padding: 9px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  font-size: 10px;
}
.ds-plan-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.ds-plan-hd span { color: var(--text); font-weight: 600; font-size: 10.5px; }
.ds-plan-pill {
  font-size: 9px; font-weight: 700; letter-spacing: 0.05em;
  background: rgba(255,255,255,0.08); color: var(--text-muted);
  padding: 1px 5px; border-radius: 3px;
}
.ds-plan-meta { color: var(--text-muted); margin-bottom: 5px; font-size: 9.5px; }
.ds-plan-bar { height: 3px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.ds-plan-fill { height: 100%; background: linear-gradient(90deg, #34d399, #22d3ee); border-radius: 2px; }
.ds-plan-up { color: var(--emerald-bright); font-size: 10px; font-weight: 500; cursor: pointer; }

/* Topbar new elements */
.dash-new-btn {
  background: rgba(16,185,129,0.14);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--emerald-bright);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10.5px; font-weight: 600;
  white-space: nowrap;
}
.dash-icon-btn {
  width: 26px; height: 26px; flex: 0 0 26px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  position: relative;
}
.dash-icon-btn svg { width: 13px; height: 13px; }
.dash-bell-dot {
  position: absolute; top: 4px; right: 4px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 1.5px #0a0e0d;
}
.dash-avatar-wrap { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.dash-avatar-info {
  display: flex; flex-direction: column;
  font-size: 10.5px; color: var(--text); font-weight: 600; line-height: 1.25;
}
.dash-avatar-info small { color: var(--text-muted); font-weight: 400; font-size: 9.5px; }

/* KPI extras */
.kpi-sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; line-height: 1.3; }
.kpi-bar { height: 3px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; margin-top: 7px; }
.kpi-fill { height: 100%; background: linear-gradient(90deg, #34d399, #22d3ee); border-radius: 2px; }

/* Quick Actions */
.qa-section { display: flex; flex-direction: column; gap: 0; }
.qa-hd {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 7px;
}
.qa-title { font-size: 12px; font-weight: 600; color: #fff; }
.qa-sub { font-size: 10px; color: var(--text-muted); }
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.qa-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 9px 10px;
  display: flex; align-items: flex-start; gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.qa-card:hover { border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.04); }
.qa-card.cyan:hover { border-color: rgba(34,211,238,0.3); background: rgba(34,211,238,0.04); }
.qa-card.violet:hover { border-color: rgba(139,92,246,0.3); background: rgba(139,92,246,0.04); }
.qa-ic {
  width: 22px; height: 22px; flex: 0 0 22px;
  border-radius: 6px;
  background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.28);
  color: var(--emerald-bright);
  display: grid; place-items: center; margin-top: 1px;
}
.qa-ic svg { width: 11px; height: 11px; }
.qa-ic.cyan { background: rgba(34,211,238,0.12); border-color: rgba(34,211,238,0.28); color: var(--cyan); }
.qa-ic.violet { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.28); color: #a78bfa; }
.qa-body h4 { font-size: 10.5px; font-weight: 600; color: #fff; margin: 0 0 2px; line-height: 1.2; }
.qa-body p { font-size: 9.5px; color: var(--text-muted); margin: 0; line-height: 1.3; }

/* Recent projects + generations split */
.dash-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; }
.w-hd-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 11px 12px 9px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.w-hd-row h3 { font-size: 11.5px; font-weight: 600; color: #fff; margin: 0 0 1px; }
.w-hd-row p { font-size: 10px; color: var(--text-muted); margin: 0; }
.link-sm { font-size: 10px; color: var(--emerald-bright); white-space: nowrap; padding-top: 2px; }
.mini-tbl { width: 100%; border-collapse: collapse; }
.mini-tbl thead th {
  padding: 5px 11px;
  font-size: 9px; font-weight: 600; color: var(--text-muted);
  text-align: left; text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mini-tbl tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.1s; }
.mini-tbl tbody tr:last-child { border-bottom: none; }
.mini-tbl tbody tr:hover { background: rgba(255,255,255,0.02); }
.mini-tbl td { padding: 6px 11px; font-size: 10px; color: var(--text-muted); vertical-align: middle; }
.mn-cell { display: flex; align-items: center; gap: 7px; }
.mn-name { font-size: 10.5px; font-weight: 600; color: var(--text); line-height: 1.2; }
.mn-genre { font-size: 9px; color: var(--text-muted); }
.mn-thumb { border-radius: 4px; overflow: hidden; flex: 0 0 22px; }
.tag.dot::before {
  content: ''; display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: currentColor;
  margin-right: 4px; vertical-align: middle; margin-bottom: 1px;
}
.tag.violet { background: rgba(139,92,246,0.14); color: #a78bfa; }
.gen-list { display: flex; flex-direction: column; }
.gen-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.1s;
}
.gen-row:last-child { border-bottom: none; }
.gen-row:hover { background: rgba(255,255,255,0.02); }
.gen-ic {
  width: 22px; height: 22px; flex: 0 0 22px;
  border-radius: 5px;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.22);
  color: var(--emerald-bright); display: grid; place-items: center;
}
.gen-ic svg { width: 11px; height: 11px; }
.gen-ic.cyan { background: rgba(34,211,238,0.1); border-color: rgba(34,211,238,0.22); color: var(--cyan); }
.gen-ic.violet { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.22); color: #a78bfa; }
.gen-ic.amber { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.22); color: var(--amber); }
.gen-body { flex: 1; min-width: 0; }
.gen-ttl { font-size: 10.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gen-meta { font-size: 9.5px; color: var(--text-muted); }
.gen-when { font-size: 9.5px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }

/* ---------- Section common ---------- */
section {
  padding: 110px 0;
  position: relative;
}
.section-title {
  text-align: center;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: #fff;
  margin: 0 0 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.55;
}
.section-eyebrow {
  display: block;
  text-align: center;
  color: var(--emerald-bright);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 32px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head-row h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  margin: 0;
  color: #fff;
  letter-spacing: -0.02em;
}
.section-head-row .link {
  font-size: 14px;
  color: var(--emerald-bright);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.section-head-row .link:hover { gap: 10px; transition: gap 0.15s; }


/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.bcard {
  background: linear-gradient(180deg, #131918 0%, #0e1413 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.bcard::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(16,185,129,0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.bcard:hover { border-color: var(--emerald-line); transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(16,185,129,0.35); }
.bcard:hover::after { opacity: 1; }
.bcard .ic {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(16,185,129,0.05));
  color: var(--emerald-bright);
  margin-bottom: 20px;
  border: 1px solid var(--emerald-line);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.06);
}
.bcard.cyan .ic {
  background: linear-gradient(135deg, rgba(34,211,238,0.18), rgba(34,211,238,0.05));
  color: var(--cyan-bright);
  border-color: var(--cyan-line);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.06);
}
.bcard h3 { font-size: 16px; margin: 0 0 8px; color: #fff; font-weight: 600; letter-spacing: -0.01em; position: relative; }
.bcard p { font-size: 13.5px; color: var(--text-dim); margin: 0; line-height: 1.55; position: relative; }

/* Templates */
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.tpl {
  --tpl-glow: rgba(16,185,129,0.3);
  background: linear-gradient(180deg, #131918 0%, #0e1413 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.tpl:hover { border-color: var(--emerald-line); transform: translateY(-3px); box-shadow: 0 20px 44px -14px var(--tpl-glow); }
.tpl-thumb {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.tpl-thumb svg { width: 100%; height: 100%; display: block; }
.tpl-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.tpl-thumb .ribbon {
  position: absolute; top: 10px; left: 10px;
  font-size: 10.5px; font-weight: 700;
  background: var(--emerald);
  color: #04140e;
  padding: 4px 9px;
  border-radius: 5px;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(16,185,129,0.4);
}
.tpl-thumb .stats {
  position: absolute; bottom: 10px; left: 10px; right: 10px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px; color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  z-index: 2;
}
.tpl-thumb .stat { display: inline-flex; align-items: center; gap: 4px; }
.tpl-thumb .stat svg { width: 11px; height: 11px; }
.tpl-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.tpl-body { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.tpl-body h3 { font-size: 15px; margin: 0 0 6px; color: #fff; font-weight: 600; }
.tpl-body p { font-size: 12.5px; color: var(--text-dim); margin: 0 0 14px; line-height: 1.5; flex: 1; }
.tpl-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tpl-tag {
  font-size: 10.5px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 5px;
}
.tpl-blank-wrap {
  background: rgba(255,255,255,0.015);
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  display: flex; flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.tpl-blank-wrap:hover { border-color: var(--emerald-line); background: rgba(16,185,129,0.04); }
.tpl-blank-wrap .tpl-thumb {
  background: transparent;
  border-bottom: 1px dashed var(--border);
  display: block;
}
.tpl-blank-wrap .tpl-thumb::after { display: none; }
.tpl-blank-wrap .plus {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px dashed var(--text-muted);
  color: var(--text-dim);
  display: grid; place-items: center;
  font-size: 32px; font-weight: 300;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.tpl-blank-wrap:hover .plus { color: var(--emerald-bright); border-color: var(--emerald-bright); transform: rotate(90deg); }

/* Pricing */
.pricing-wrap {
  background: linear-gradient(180deg, #0f1413 0%, #0c100f 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 48px 72px;
  position: relative;
  overflow: hidden;
}
.pricing-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 0%, rgba(16,185,129,0.08), transparent 60%);
  pointer-events: none;
}
.pricing-wrap > * { position: relative; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1060px;
  margin: 0 auto;
  align-items: stretch;
}
.plan {
  background: linear-gradient(180deg, #161d1c 0%, #111716 100%);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 36px 30px 36px;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.plan:hover { transform: translateY(-2px); }
.plan.featured {
  border-color: var(--emerald);
  background:
    linear-gradient(180deg, rgba(16,185,129,0.12) 0%, rgba(16,185,129,0.02) 30%, #111716 100%);
  box-shadow:
    0 0 0 1px var(--emerald),
    0 20px 60px -20px rgba(16,185,129,0.45),
    0 1px 0 rgba(255,255,255,0.08) inset;
  transform: translateY(-8px);
}
.plan.featured:hover { transform: translateY(-10px); }
.plan-ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #04140e;
  font-size: 11px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(16,185,129,0.45);
}
.plan h3 { font-size: 22px; margin: 0 0 4px; color: #fff; font-weight: 700; letter-spacing: -0.015em; }
.plan-tag { font-size: 13px; color: var(--text-dim); margin: 0 0 28px; }
.plan-price { font-size: 52px; font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1; margin-bottom: 28px; }
.plan-price .per { font-size: 16px; color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text); line-height: 1.4; }
.plan li svg { color: var(--emerald-bright); flex: 0 0 14px; margin-top: 3px; }
.plan-cta {
  width: 100%; justify-content: center;
  padding: 14px;
  margin-top: auto;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
}
.plan-foot { text-align: center; font-size: 11.5px; color: var(--text-muted); margin-top: 12px; min-height: 2.8em; }

/* Final CTA banner */
.cta-banner {
  position: relative;
  border-radius: 24px;
  padding: 72px 56px;
  background: linear-gradient(135deg, #0f1715 0%, #0a1313 100%);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(16,185,129,0.10), transparent 60%),
    radial-gradient(ellipse 30% 60% at 70% 50%, rgba(34,211,238,0.08), transparent 60%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 {
  font-size: clamp(28px, 3.2vw, 40px); font-weight: 700;
  color: #fff; margin: 0 0 14px;
  letter-spacing: -0.022em;
  line-height: 1.1;
}
.cta-banner p { color: var(--text-dim); font-size: 15px; margin: 0 0 22px; max-width: 460px; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-link {
  color: var(--cyan);
  font-size: 14.5px; font-weight: 500;
  padding: 14px 8px;
  display: inline-flex; align-items: center; gap: 6px;
}
.cta-link:hover { color: var(--text); }
.cta-art {
  height: 200px;
  display: grid; place-items: center;
  overflow: hidden;
}
.cta-video {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: contain;
  mix-blend-mode: screen;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  padding: 80px 0 36px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.foot-brand p {
  color: var(--text-dim); font-size: 13.5px; max-width: 280px;
  margin: 14px 0 20px;
  line-height: 1.55;
}
.foot-socials { display: flex; gap: 10px; }
.foot-socials a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.foot-socials a[aria-label="X / Twitter"]:hover  { color: #fff;     background: #000;     border-color: #333; }
.foot-socials a[aria-label="Discord"]:hover       { color: #fff;     background: #5865F2;  border-color: #5865F2; }
.foot-socials a[aria-label="YouTube"]:hover       { color: #fff;     background: #FF0000;  border-color: #FF0000; }
.foot-socials a[aria-label="TikTok"]:hover        { color: #fff;     background: #EE1D52;  border-color: #EE1D52; }
.foot-col h4 {
  color: #fff; font-size: 12.5px; font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.foot-col a { color: var(--text-dim); font-size: 13.5px; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex; justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap; gap: 12px;
}
.foot-bottom .legal { display: flex; gap: 20px; }
.foot-bottom .legal a:hover { color: var(--text); }

/* ---------- How it works ---------- */
.hiw-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: start;
}
.hiw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
/* Connector line: right edge of this node → left edge of next node.
   With gap=16px and node radius=23px: right = calc(-50% + 7px) */
.hiw-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(50% + 23px);
  right: calc(-50% + 7px);
  height: 1px;
  background: linear-gradient(90deg,
    rgba(16,185,129,0.55) 0%,
    rgba(34,211,238,0.35) 65%,
    rgba(34,211,238,0.10) 100%);
  z-index: 0;
  pointer-events: none;
}
.hiw-node {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16,185,129,0.22), rgba(16,185,129,0.06));
  border: 1px solid rgba(16,185,129,0.38);
  display: grid; place-items: center;
  box-shadow: 0 0 0 5px rgba(16,185,129,0.07), 0 0 20px rgba(16,185,129,0.18);
  position: relative; z-index: 1;
  margin-bottom: 20px;
}
.hiw-node.cyan {
  background: linear-gradient(135deg, rgba(34,211,238,0.22), rgba(34,211,238,0.06));
  border-color: rgba(34,211,238,0.38);
  box-shadow: 0 0 0 5px rgba(34,211,238,0.07), 0 0 20px rgba(34,211,238,0.18);
}
.hiw-nnum {
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--emerald-bright);
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
}
.hiw-node.cyan .hiw-nnum { color: var(--cyan); }
.hiw-card {
  background: linear-gradient(180deg, #141a19 0%, #0f1413 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px 22px;
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.hiw-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(16,185,129,0.09), transparent 65%);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.hiw-card:hover { border-color: var(--emerald-line); transform: translateY(-3px); box-shadow: 0 12px 36px -12px rgba(16,185,129,0.28); }
.hiw-card:hover::before { opacity: 1; }
.hiw-card.cyan::before { background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(34,211,238,0.08), transparent 65%); }
.hiw-card.cyan:hover { border-color: var(--cyan-line); box-shadow: 0 12px 36px -12px rgba(34,211,238,0.22); }
.hiw-ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(16,185,129,0.22), rgba(16,185,129,0.06));
  border: 1px solid rgba(16,185,129,0.38);
  color: var(--emerald-bright);
  display: grid; place-items: center;
  box-shadow: 0 0 12px rgba(16,185,129,0.12), 0 0 0 3px rgba(16,185,129,0.05);
  position: relative; z-index: 1; flex-shrink: 0;
}
.hiw-ic.cyan {
  background: linear-gradient(135deg, rgba(34,211,238,0.22), rgba(34,211,238,0.06));
  border-color: rgba(34,211,238,0.38);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(34,211,238,0.12), 0 0 0 3px rgba(34,211,238,0.05);
}
.hiw-card h3 {
  font-size: 15px; font-weight: 600; color: #fff;
  margin: 0; letter-spacing: -0.01em; position: relative; z-index: 1;
}
.hiw-card p {
  font-size: 13px; color: var(--text-dim);
  margin: 0; line-height: 1.55; position: relative; z-index: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .dash { grid-template-columns: 148px 1fr; }
  .ds-item { font-size: 11px; padding: 5px 8px; }
}
@media (max-width: 960px) {
  /* minmax(0, 1fr) — without minmax(0), the 1fr track is forced to the
     largest min-content width across all grid items (the dash-frame ≈381px),
     which overflows narrow viewports. minmax(0, 1fr) makes the min 0. */
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-grid > * { min-width: 0; }
  .hero { padding: 40px 0 80px; }
  .dash { height: auto; max-height: none; }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .tpl-grid { grid-template-columns: repeat(3, 1fr); }
  .hiw-track { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hiw-step:nth-child(3n):not(:last-child)::after { display: none; }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
  .foot-grid .foot-col:nth-child(4) { display: none; }
}
@media (max-width: 860px) {
  .hdr { height: 64px; }
  nav.primary { display: none; }
  .hdr-right .login { display: none; }
  section { padding: 64px 0; }
  .pricing-wrap { padding: 36px 18px 44px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: minmax(0, 1fr); padding: 36px 24px; }
  /* Keep the video visible on mobile — stacks below the CTA text */
  .cta-art { height: 160px; margin-top: 8px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .hiw-track { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hiw-step:nth-child(2n)::after { display: none; }
  .dash { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .dash > * { min-width: 0; }
  .dash-side { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .widgets { grid-template-columns: 1fr; }
  .scheduler { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-grid .foot-brand { grid-column: 1 / -1; }
  .wrap { padding: 0 20px; }
}
@media (max-width: 520px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: 1fr; }
  .hiw-track { grid-template-columns: 1fr; }
  .hiw-step::after { display: none; }
  .hero-mini { gap: 18px; }
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(10, 13, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--emerald-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease,
              background 0.18s, border-color 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.22), 0 4px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}
.back-to-top:active {
  transform: translateY(0);
}
.back-to-top svg {
  display: block;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .back-to-top {
    width: 38px;
    height: 38px;
    bottom: 20px;
    right: 20px;
  }
}


/* =====================================================================
   MOBILE RESPONSIVENESS IMPROVEMENTS
   Breakpoints: 860px (tablet/mobile), 520px (small mobile), 400px (xs)
   ===================================================================== */

/* 1 — Prevent horizontal scroll globally */
html { overflow-x: hidden; }
body { overflow-x: hidden; }

/* Hero copy: explicit width so children can reference it with max-width: 100% */
@media (max-width: 960px) {
  .hero-copy {
    min-width: 0;       /* allow grid track to shrink below min-content */
    width: 100%;        /* explicit width — required so badge max-width: 100% resolves */
    max-width: 100%;
    box-sizing: border-box;
  }
  .hero-sub,
  .hero-founder {
    max-width: 100%;
    box-sizing: border-box;
  }
  /* KPI cards: same min-content shrink fix as hero-copy */
  .kpis { width: 100%; }
  .kpi  { min-width: 0; }
}

/* Badge: wrap text inside the pill on phones */
@media (max-width: 700px) {
  .badge {
    max-width: 100%;
    white-space: normal;   /* allow text to wrap */
    line-height: 1.45;
    box-sizing: border-box;
    word-break: break-word; /* fallback for very long words */
  }
}

/* Hero CTAs: stack into full-width column on any phone-sized screen */
@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn { width: 100%; justify-content: center; text-align: center; }
}

/* 2 — Hamburger / Mobile Nav */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.menu-toggle:hover { background: rgba(255,255,255,0.08); color: var(--text); border-color: var(--border-strong); }
.menu-toggle[aria-expanded="true"] { background: rgba(16,185,129,0.08); border-color: var(--emerald-line); color: var(--emerald-bright); }

.mobile-nav {
  display: none;
  position: fixed;          /* fills the viewport so content underneath is fully blocked */
  inset: 0;                 /* top/right/bottom/left all 0 — covers full screen */
  background: rgba(7, 10, 9, 0.98);   /* near-opaque dark — blocks anything behind it */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 84px 20px 28px;  /* top padding leaves room for the sticky header to show through */
  flex-direction: column;
  z-index: 49;              /* below header (50), so the X button stays tappable */
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav.open { display: flex; }
/* Lock body scroll when menu is open so the page underneath can't move */
body.menu-open { overflow: hidden; }
.mobile-nav a {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.15s;
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav a:hover { color: var(--text); }
.mobile-nav .mn-cta {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(16,185,129,0.14), rgba(16,185,129,0.06));
  border: 1px solid var(--emerald-line);
  color: var(--emerald-bright);
  border-radius: 10px;
  padding: 13px 16px;
  font-weight: 600;
  font-size: 14.5px;
  border-bottom: none;
}
.mobile-nav .mn-cta:hover { background: rgba(16,185,129,0.20); color: #fff; }

/* 3 — Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .ctraveler, .ctraveler-b { animation: none; stroke-dasharray: none; }
  .founder-shimmer { animation: none; background: none; -webkit-text-fill-color: var(--emerald-bright); color: var(--emerald-bright); }
  .badge .dot { animation: none; }
  .btn-primary::before { display: none; }
}

/* ── 860px: Tablet / Mobile ─────────────────────────────── */
@media (max-width: 860px) {

  /* Show hamburger; hide desktop nav CTA (login already hidden above) */
  .menu-toggle { display: flex; }
  .hdr-right > .btn { display: none; }

  /* Prevent glow pseudo-element from causing horizontal scroll */
  .dash-frame::before { inset: -60px 0px -60px 0px; }

  /* Disable circuit SVG on mobile — layout doesn't benefit, saves CPU */
  .circuit-svg { display: none; }

  /* Simplify dashboard topbar: hide search and avatar label */
  .dash-search { display: none; }
  .dash-avatar-info { display: none; }

  /* Remove fixed overflow on dash internals — content is auto-height */
  .dash-main { overflow: visible; }
  .dash-body  { overflow: visible; }

  /* Collapse Recent Projects / Generations to single column */
  .dash-split { grid-template-columns: 1fr; }

  /* Remove featured card elevation — looks odd in a stacked column */
  .plan.featured          { transform: none; }
  .plan.featured:hover    { transform: translateY(-2px); }

  /* Extra top padding so the plan-ribbon (top: -14px) isn't clipped */
  .pricing-wrap { padding-top: 44px; }
}

/* ── 520px: Small mobile ─────────────────────────────────── */
@media (max-width: 520px) {

  /* Tighter section vertical rhythm */
  section { padding: 48px 0; }

  /* Hero mini-stat items stack instead of three-across overflow */
  .hero-mini { flex-direction: column; gap: 10px; }
  .hero-mini .item { max-width: none; }

  /* Tighter pricing */
  .pricing-wrap { padding: 32px 14px 40px; }
  .plan { padding: 28px 20px; }
  .plan-price { font-size: 44px; }

  /* Footer bottom: copyright + legal stack vertically */
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .foot-bottom .legal { flex-wrap: wrap; gap: 12px 18px; }
}

/* ── 400px: Extra-small mobile ───────────────────────────── */
@media (max-width: 400px) {
  /* Tighter global padding */
  .wrap { padding: 0 16px; }

  /* Header */
  .hdr { height: 60px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand-logo { width: 28px; height: 28px; }

  /* Hero */
  .built-badge { font-size: 10px; padding: 5px 11px 5px 5px; }
  section { padding: 40px 0; }

  /* Dashboard topbar — tighten further, hide icon buttons */
  .dash-icon-btn { display: none; }
  .dash-new-btn { padding: 4px 8px; font-size: 10px; }

  /* Pricing */
  .pricing-wrap { padding: 28px 12px 32px; }
  .plan { padding: 22px 16px; }
  .plan-price { font-size: 38px; }
  .plan h3 { font-size: 18px; }

  /* Feature cards */
  .bcard { padding: 20px 16px; }
  .bcard h3 { font-size: 15px; }

  /* Footer */
  .foot-socials { flex-wrap: wrap; }
  .foot-col h4 { font-size: 11.5px; }
  .foot-col a { font-size: 13px; }
  .foot-bottom { font-size: 11.5px; }
  .foot-bottom .legal { gap: 10px 16px; }
}
