/* RasFlow Studio - rasflowstudio.com
   Glassmorphism Pro palette matched to the desktop app. */

:root {
  --bg-top: #dde8f4;
  --bg-bottom: #a9c4e3;
  --sidebar-top: #4b7fb8;
  --sidebar-bottom: #3a6299;
  --header: #2e5a8a;
  --accent: #1f7a8c;
  --accent-dark: #155e6d;
  --accent-light: #e0f0f3;
  --ink: #1a2433;
  --ink-soft: #3d4a5c;
  --muted: #5b6471;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --card-border: rgba(207, 220, 236, 0.9);
  --line: rgba(46, 90, 138, 0.16);
  --shadow: 0 18px 48px rgba(46, 90, 138, 0.14);
  --shadow-soft: 0 10px 28px rgba(169, 184, 204, 0.35);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --on-dark: #ffffff;
  --on-dark-dim: #e8f0f8;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --max: 1140px;
  --pad: clamp(1.35rem, 4vw, 2.75rem);
  --radius: 16px;
  --radius-sm: 10px;
  /* One vertical rhythm: section gaps, then intro cluster, then content stack */
  --section-y: clamp(3.25rem, 6.5vw, 4.75rem);
  --stack-gap: 1.75rem;
  --card-gap: 1.5rem;
  --cluster-gap: 0.8rem;
  /* Space below the absolute header bar before hero content starts */
  --header-offset: 5.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
  word-break: normal;
  background:
    radial-gradient(1000px 560px at 14% 8%, rgba(75, 127, 184, 0.28), transparent 58%),
    radial-gradient(900px 640px at 88% 18%, rgba(31, 122, 140, 0.16), transparent 55%),
    radial-gradient(700px 480px at 50% 70%, rgba(255, 255, 255, 0.28), transparent 60%),
    linear-gradient(
      180deg,
      #2a567f 0px,
      #1f7a8c 180px,
      #2e6a94 360px,
      #3a7aa8 560px,
      #5b91b8 780px,
      #8fb4d0 1000px,
      #c5d8ec 1200px,
      #dde8f4 100%
    );
}

main {
  position: relative;
  isolation: isolate;
}

/* Shared content column: header, hero, sections, footer all share this rail */
.content-rail {
  max-width: var(--max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  box-sizing: border-box;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--header);
}

/* ---------- Shell ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 8;
  width: 100%;
  padding: 1.35rem var(--pad) 0;
  box-sizing: border-box;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0.7rem 1rem 0.7rem 0.85rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(46, 90, 138, 0.42);
  box-shadow: 0 10px 30px rgba(17, 48, 74, 0.18);
  box-sizing: border-box;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  color: var(--on-dark);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-mark img {
  width: auto;
  height: 48px;
  flex: 0 0 auto;
  display: block;
  border-radius: 11px;
  padding: 0.18rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 14px rgba(17, 48, 74, 0.18);
  object-fit: contain;
}

.brand-mark span {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.14);
}

.site-footer {
  padding: 3rem 0 3.25rem;
  border-top: none;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.32) 45%, rgba(255, 255, 255, 0.4) 100%);
}

.footer-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  display: grid;
  gap: 0.85rem 2rem;
  grid-template-columns: 1fr;
  align-items: start;
  box-sizing: border-box;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
    justify-content: space-between;
  }
}

.footer-brand {
  display: grid;
  gap: 0.2rem;
}

.footer-inner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.footer-inner .brand {
  font-family: var(--font-display);
  color: var(--header);
  font-weight: 600;
}

.footer-copy {
  color: var(--muted) !important;
  font-size: 0.84rem !important;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 0;
  display: grid;
  align-items: start;
  overflow: visible;
  color: var(--on-dark);
  background: transparent;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(42, 86, 127, 0.55) 0%,
    rgba(31, 122, 140, 0.28) 55%,
    rgba(127, 168, 204, 0.08) 82%,
    transparent 100%
  );
}

.hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
}

.hero-visual svg {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  /* Clear absolute header, then add the same gap used between sections */
  padding: calc(var(--header-offset) + var(--section-y)) var(--pad) 0;
  display: grid;
  gap: 2rem;
  align-items: center;
  box-sizing: border-box;
}

.hero + .section {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding-top: var(--section-y);
}

@media (min-width: 960px) {
  .hero-copy {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2.25rem;
  }
}

.hero-text {
  max-width: 38rem;
}

.hero-brand-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 1rem;
  margin: 0 0 var(--stack-gap);
}

.hero-logo {
  width: clamp(6.5rem, 14vw, 8.5rem);
  height: clamp(6.5rem, 14vw, 8.5rem);
  margin: 0;
  padding: 0.2rem;
  display: block;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(17, 48, 74, 0.24);
  object-fit: contain;
  object-position: center;
}

.hero-brand-copy {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  align-content: center;
}

.hero-brand {
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.hero-headline {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
}

.hero-tagline {
  margin: 0 0 var(--cluster-gap);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
}

.hero-lede {
  margin: 0 0 var(--stack-gap);
  max-width: 42ch;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--on-dark-dim);
  text-align: left;
  hyphens: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--on-dark);
  color: var(--header);
  box-shadow: 0 8px 24px rgba(17, 48, 74, 0.18);
}

.btn-primary:hover {
  background: #f3f8fc;
  color: var(--accent-dark);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  border-color: var(--on-dark);
  color: var(--on-dark);
}

.btn-solid {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--on-dark);
  box-shadow: 0 10px 24px rgba(31, 122, 140, 0.28);
}

.btn-solid:hover {
  background: linear-gradient(135deg, #248ca0, var(--accent-dark));
  color: var(--on-dark);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.88);
  color: var(--header);
  border-color: rgba(46, 90, 138, 0.28);
}

.btn-outline:hover {
  border-color: var(--header);
  color: var(--header);
  background: rgba(255, 255, 255, 0.7);
}

/* ---------- App window / screenshot placeholders ---------- */

.app-window {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 24px 60px rgba(17, 48, 74, 0.35);
}

.app-window-chrome {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(90deg, rgba(46, 90, 138, 0.92), rgba(31, 122, 140, 0.88));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.app-window-dots {
  display: flex;
  gap: 0.35rem;
}

.app-window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.app-window-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.app-window-body {
  position: relative;
  overflow: hidden;
  background: #d5e3f1;
}

.app-window-body:not(:has(img)) {
  min-height: 220px;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, rgba(221, 232, 244, 0.92), rgba(169, 196, 227, 0.88)),
    linear-gradient(135deg, #4b7fb8, #1f7a8c);
}

.hero-shot .app-window-body:not(:has(img)) {
  min-height: 160px;
  aspect-ratio: 16 / 9;
}

.app-window-body img {
  width: 100%;
  height: auto;
  display: block;
}

.app-window-body.is-zoomable {
  cursor: zoom-in;
}

.app-window-body.is-zoomable::after {
  content: "Zoom";
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(46, 90, 138, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: var(--header);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(46, 90, 138, 0.16);
  pointer-events: none;
  opacity: 0.92;
}

.app-window-body.is-zoomable:hover::after,
.app-window-body.is-zoomable:focus-visible::after {
  opacity: 1;
}

.app-window-body.is-zoomable:focus-visible {
  outline: 2px solid rgba(31, 122, 140, 0.55);
  outline-offset: 2px;
}

body.lightbox-open {
  overflow: hidden;
}

.shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.shot-lightbox[hidden] {
  display: none !important;
}

.shot-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 36, 56, 0.72);
  backdrop-filter: blur(4px);
}

.shot-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: calc(100vh - 2.5rem);
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(246, 250, 253, 0.98);
  box-shadow: 0 24px 64px rgba(8, 24, 40, 0.35);
  overflow: auto;
}

.shot-lightbox-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #d5e3f1;
}

.shot-lightbox-caption {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.shot-lightbox-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(46, 90, 138, 0.92);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.shot-lightbox-close:hover {
  background: rgba(31, 122, 140, 0.95);
}

.shot-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--header);
}

.shot-placeholder strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.shot-placeholder span {
  display: block;
  max-width: 22rem;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.shot-placeholder .hint {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shot-shell {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  min-width: 0;
}

.shot-shell figcaption {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: left;
}

.shot-grid {
  display: grid;
  gap: var(--card-gap);
  margin-top: var(--stack-gap);
  align-items: start;
}

@media (min-width: 760px) {
  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.shot-grid .app-window {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--card-border);
  box-shadow: var(--shadow-soft);
}

.shot-grid .app-window-body {
  flex: 0 0 auto;
  min-height: 0;
}

.shot-grid .app-window-body:not(:has(img)) {
  flex: 1 1 auto;
  min-height: 180px;
  aspect-ratio: 16 / 11;
}

.shot-grid .app-window-chrome {
  background: linear-gradient(90deg, var(--header), var(--accent));
}

/* ---------- Sections ----------
   Single --section-y between blocks (top pad only), so hero→section and
   section→section share the same gap instead of stacking top+bottom. */

.section {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: var(--section-y) var(--pad) 0;
  box-sizing: border-box;
}

.section.closing,
main > .section:last-child,
main > .band:last-of-type > .section {
  padding-bottom: var(--section-y);
}

.section-kicker {
  margin: 0 0 var(--cluster-gap);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  text-align: left;
}

.section-title {
  margin: 0 0 var(--cluster-gap);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--header);
  text-align: left;
}

.section-lede {
  margin: 0;
  max-width: 62rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  text-align: justify;
  text-align-last: left;
  hyphens: none;
}

.band {
  background: transparent;
  border: none;
}

.band > .section {
  width: 100%;
}

.glass-panel {
  width: 100%;
  box-sizing: border-box;
  padding: 1.75rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-edge);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.split {
  display: grid;
  gap: var(--stack-gap) 2rem;
  align-items: stretch;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.phase-list {
  list-style: none;
  margin: 0;
  padding: 0.45rem 1.35rem;
  display: grid;
  gap: 0;
  align-content: start;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  box-sizing: border-box;
  height: 100%;
}

.phase-list li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.phase-list li:first-child {
  border-top: 0;
}

.phase-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}

.phase-list h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}

.phase-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-align: justify;
  text-align-last: left;
  hyphens: none;
}

.feature-strip {
  display: grid;
  gap: var(--card-gap);
  margin-top: var(--stack-gap);
  align-items: stretch;
}

@media (min-width: 720px) {
  .feature-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature-strip article {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.feature-strip article h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--header);
  text-align: left;
}

.feature-strip article p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
  text-align: left;
  hyphens: none;
  flex: 1 1 auto;
}

.page-hero {
  position: relative;
  padding: calc(var(--header-offset) + var(--section-y)) 0 0;
  color: var(--on-dark);
  background: transparent;
  overflow: visible;
}

.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(42, 86, 127, 0.55) 0%,
    rgba(31, 122, 140, 0.28) 62%,
    rgba(221, 232, 244, 0.15) 88%,
    transparent 100%
  );
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  box-sizing: border-box;
}

.page-hero + .section,
.page-hero + .band {
  position: relative;
  z-index: 2;
  margin-top: 0;
}

/* White type on the continuous teal wash after page heroes (no light panel) */
.page-hero ~ .section .section-kicker,
.page-hero ~ .band .section-kicker {
  color: rgba(224, 240, 243, 0.92);
}

.page-hero ~ .section .section-title,
.page-hero ~ .band .section-title {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(17, 48, 74, 0.2);
}

.page-hero ~ .section .section-lede,
.page-hero ~ .band .section-lede,
.page-hero ~ .section .prose-block p,
.page-hero ~ .band .prose-block p {
  color: rgba(255, 255, 255, 0.92);
}

.page-hero ~ .section .btn-outline,
.page-hero ~ .band .btn-outline {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.page-hero ~ .section .btn-outline:hover,
.page-hero ~ .band .btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-color: #ffffff;
}

.page-hero h1 {
  margin: 0 0 var(--cluster-gap);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-align: left;
  color: var(--on-dark);
  text-shadow: 0 1px 2px rgba(17, 48, 74, 0.25);
}

.page-hero p {
  margin: 0;
  max-width: 46rem;
  color: var(--on-dark-dim);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
  hyphens: none;
  text-shadow: 0 1px 2px rgba(17, 48, 74, 0.2);
}

.workflow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1.15rem;
  align-items: stretch;
}

.workflow-steps > li {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 1.4rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  counter-increment: step;
}

.workflow-steps h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 600;
  color: var(--header);
  text-align: left;
}

.workflow-steps h2::before {
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  min-width: 2.4rem;
  margin-right: 0.65rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.workflow-steps p {
  margin: 0;
  max-width: none;
  color: var(--ink-soft);
  line-height: 1.55;
  text-align: justify;
  text-align-last: left;
  hyphens: none;
}

.closing {
  text-align: left;
}

.closing .cta-row,
.glass-panel .cta-row,
.split .cta-row {
  margin-top: var(--stack-gap);
}

.prose-block {
  margin-top: 1.35rem;
  max-width: none;
}

.prose-block p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
  text-align: justify;
  text-align-last: left;
  hyphens: none;
}

.prose-block p + p {
  margin-top: 1.1rem;
}

.founder-panel {
  margin-top: 2rem;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(1.5rem, 3vw, 2.15rem);
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(46, 90, 138, 0.12);
}

.founder-identity {
  margin-bottom: 1.5rem;
}

.founder-heading {
  min-width: 0;
}

.founder-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--header);
}

.founder-creds-inline {
  display: inline;
  margin-left: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-dark);
  white-space: nowrap;
}

.founder-role {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 500;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(46, 90, 138, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #0a66c2;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.linkedin-link:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(10, 102, 194, 0.35);
  color: #004182;
  transform: translateY(-1px);
}

.linkedin-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.founder-pitch {
  margin: 0 0 1.5rem;
  max-width: none;
  display: grid;
  gap: 1.1rem;
}

.founder-metrics {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.6rem;
  padding: 1.15rem 0;
  border-block: 1px solid rgba(46, 90, 138, 0.12);
}

.founder-columns {
  display: grid;
  gap: var(--stack-gap) 2.25rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.founder-close {
  margin: 0 0 1.6rem;
  max-width: none;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  text-align: justify;
  text-align-last: left;
  hyphens: none;
}

.founder-pitch p {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
  text-align-last: left;
  hyphens: none;
}

@media (min-width: 700px) {
  .founder-metrics {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 1.35rem;
  }
}

.founder-metrics div {
  min-width: 0;
}

.founder-metrics dt {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.founder-metrics dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--header);
  line-height: 1.3;
}

@media (min-width: 760px) {
  .founder-columns {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  }
}

.founder-columns h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--header);
  text-align: left;
}

.founder-columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.founder-columns li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
  text-align: left;
}

.founder-columns li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.founder-panel .cta-row {
  margin-top: 0;
}

.founder-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

/* ---------- Inquiry form ---------- */

.inquiry-form {
  margin-top: 1.75rem;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  gap: var(--card-gap) 1.25rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.field-full {
  margin-top: 1rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(46, 90, 138, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(31, 122, 140, 0.4);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin-top: 1.6rem;
}

.form-note {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.form-note.is-success {
  color: var(--accent-dark);
  font-weight: 500;
}

.form-note.is-error {
  color: #8f2a20;
  font-weight: 500;
}

.form-footnote {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: left;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mesh-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1.02);
  }
  to {
    transform: translate3d(-1.5%, 1.2%, 0) scale(1.06);
  }
}

@keyframes float-window {
  from {
    transform: translateY(10px);
  }
  to {
    transform: translateY(0);
  }
}

.hero-text > * {
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-text .hero-brand-block {
  animation-delay: 80ms;
}

.hero-text .hero-tagline {
  animation-delay: 200ms;
}

.hero-text .hero-lede {
  animation-delay: 320ms;
}

.hero-text .cta-row {
  animation-delay: 400ms;
}

.hero-shot {
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 220ms both;
}

.hero-visual svg {
  animation: mesh-drift 18s ease-in-out alternate infinite;
  transform-origin: 60% 40%;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-text > *,
  .hero-shot,
  .hero-visual svg,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Responsive: mobile / tablet / laptop / desktop ---------- */

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

@media (max-width: 959px) {
  :root {
    --header-offset: 6.75rem;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    padding-top: calc(var(--header-offset) + var(--section-y));
    padding-bottom: 0;
    gap: 1.5rem;
  }

  .hero-text {
    max-width: none;
  }

  .hero-shot {
    max-width: 36rem;
  }

  .hero + .section {
    padding-top: var(--section-y);
  }
}

@media (max-width: 720px) {
  :root {
    --pad: clamp(1.1rem, 4.5vw, 1.5rem);
    --section-y: clamp(2.5rem, 6vw, 3.25rem);
    --stack-gap: 1.5rem;
    --card-gap: 1.25rem;
    --cluster-gap: 0.7rem;
    --header-offset: 8.25rem;
  }

  .site-header {
    padding-top: 1rem;
  }

  .site-header-inner {
    border-radius: 18px;
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem 0.95rem;
    gap: 0.75rem;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.2rem;
  }

  .site-nav a {
    font-size: 0.8rem;
    padding: 0.38rem 0.6rem;
  }

  .brand-mark {
    font-size: 1rem;
  }

  .brand-mark img {
    height: 42px;
    border-radius: 10px;
  }

  .brand-mark span {
    max-width: 11rem;
  }

  .hero-brand-block {
    column-gap: 0.8rem;
  }

  .hero-logo {
    width: 5.25rem;
    height: 5.25rem;
    border-radius: 14px;
  }

  .hero-brand {
    font-size: clamp(1.45rem, 6.5vw, 2rem);
  }

  .hero-headline {
    font-size: clamp(1.05rem, 4.6vw, 1.3rem);
  }

  .hero-lede,
  .page-hero p,
  .section-lede,
  .feature-strip article p,
  .workflow-steps p,
  .founder-pitch p,
  .founder-close,
  .prose-block p,
  .phase-list p {
    text-align: left;
    text-align-last: auto;
    hyphens: none;
  }

  .page-hero {
    padding-top: calc(var(--header-offset) + var(--section-y));
  }

  .page-hero h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .section-title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .founder-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .founder-actions .cta-row,
  .founder-actions .linkedin-link {
    width: 100%;
    justify-content: center;
  }

  .founder-role {
    white-space: normal;
  }

  .footer-inner {
    gap: 0.75rem;
  }

  .footer-copy {
    order: 3;
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .hero-copy {
    gap: 1.5rem;
  }

  .split {
    gap: 1.25rem 1.5rem;
  }

  .founder-columns {
    gap: 1.15rem 1.35rem;
  }
}

@media (min-width: 1140px) {
  .hero-copy,
  .section,
  .page-hero-inner,
  .footer-inner,
  .site-header-inner {
    max-width: var(--max);
  }
}
