/* ============================================================
   planbee landing — design system v2
   Palette (brand-locked): honey #F5B82E · charcoal #263238 ·
   blueprint blue #2F6FA3 · white. Honey = action, blue = data,
   charcoal = text & dark surfaces.
   ============================================================ */

:root {
  --white: #ffffff;
  --charcoal: #263238;
  --ink-2: #37474f;
  --text-soft: #4f6069;
  --text-faint: #64757f;
  --blue: #2f6fa3;
  --blue-dark: #24577f;
  --blue-wash: #eef5f9;
  --blue-line: #d4e4ef;
  --honey: #f5b82e;
  --honey-dark: #d99b0d;
  --honey-wash: #fff7e2;
  --honey-line: #f2dfad;
  --canvas: #f7f9fa;
  --line: #e3eaee;
  --ok: #22794b;
  --ok-wash: #ecf7f0;
  --danger: #8e3838;
  --danger-wash: #fbeaea;

  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --r-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(38, 50, 56, 0.05), 0 10px 28px -14px rgba(38, 50, 56, 0.12);
  --shadow-float: 0 32px 64px -28px rgba(38, 50, 56, 0.24);

  --space-section: clamp(88px, 9vw, 128px);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* honeycomb textures */
  --hex-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cg fill='none' stroke='%232F6FA3' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50z'/%3E%3Cpath d='M28 100L0 84L0 50M28 100L56 84L56 50M28 66L28 100'/%3E%3C/g%3E%3C/svg%3E");
  --hex-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50z'/%3E%3Cpath d='M28 100L0 84L0 50M28 100L56 84L56 50M28 66L28 100'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea {
  font-family: var(--font);
}

img,
svg {
  max-width: 100%;
}

button,
input,
textarea {
  color: inherit;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--charcoal);
  border-radius: var(--r-sm);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

/* ---------- type scale ---------- */

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.15rem, 3.15vw, 3.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.07;
  text-wrap: balance;
}

.h1-accent {
  color: var(--blue);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.22;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.lead,
.section-lead {
  max-width: 58ch;
  color: var(--text-soft);
  font-size: 1.11rem;
  font-weight: 500;
  line-height: 1.65;
}

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

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

.btn:focus-visible,
.text-link:focus-visible,
.site-nav a:focus-visible,
.estimate-tab:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47, 111, 163, 0.45);
  outline-offset: 3px;
}

.btn-honey {
  color: var(--charcoal);
  background: var(--honey);
  box-shadow: 0 10px 24px -10px rgba(217, 155, 13, 0.55);
}

.btn-honey:hover {
  background: #ffc53d;
}

.btn-sm {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.86rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--charcoal);
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--blue-line);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.18s ease;
}

.text-link:hover {
  text-decoration-color: var(--blue);
}

.text-link svg {
  width: 20px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.text-link:hover svg {
  transform: translateX(4px);
}

/* ---------- flight-route dotted line ---------- */

.dotline {
  display: inline-block;
  flex: 1 1 40px;
  height: 4px;
  background-image: radial-gradient(circle, var(--blue) 1.7px, transparent 1.9px);
  background-size: 11px 4px;
  background-repeat: repeat-x;
  background-position: center left;
}

.dotline-light {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.85) 1.7px, transparent 1.9px);
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
}

.dot-blue {
  background: var(--blue);
}

.dot-honey {
  background: var(--honey);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  z-index: 60;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(38, 50, 56, 0.28);
}

.header-inner {
  display: flex;
  height: 84px;
  align-items: center;
  gap: 36px;
}

.brand-lockup {
  display: block;
  flex: none;
}

.brand-lockup img {
  display: block;
  height: 58px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.site-nav a {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--blue);
  text-decoration: underline dotted var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 6vw, 96px) 0 clamp(64px, 7vw, 112px);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 42%;
  background-image: var(--hex-light);
  background-size: 46px 82px;
  content: "";
  -webkit-mask-image: radial-gradient(90% 82% at 72% 40%, #000 30%, transparent 72%);
  mask-image: radial-gradient(90% 82% at 72% 40%, #000 30%, transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(40px, 5.4vw, 84px);
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: var(--ink-2);
  background: var(--honey-wash);
  border: 1px solid var(--honey-line);
  border-radius: var(--r-pill);
}

.hero-copy .eyebrow::before {
  width: 7px;
  height: 7px;
  background: var(--honey);
  border-radius: 50%;
  content: "";
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 34px;
}

.hero-note {
  margin: 20px 0 0;
  color: var(--text-faint);
  font-size: 0.88rem;
}

/* ---------- hero scene ---------- */

.hero-visual {
  min-width: 0;
}

.hero-scene {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
}

.hero-scene svg.scene {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.s-grid {
  fill: none;
  stroke: #e9f0f4;
  stroke-width: 1;
}

.s-route {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 4 8;
}

.route-mask-stroke {
  fill: none;
  stroke: #fff;
  stroke-width: 8;
  stroke-linecap: round;
}

.s-outline {
  fill: none;
  stroke: var(--charcoal);
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.s-inner {
  fill: none;
  stroke: var(--charcoal);
  stroke-width: 3.2;
  stroke-linecap: round;
}

.s-door {
  fill: none;
  stroke: var(--charcoal);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.s-dim {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
  stroke-dasharray: 5 4;
}

.s-dim-cap {
  stroke: var(--blue);
  stroke-width: 1.6;
}

.s-dim-label {
  fill: var(--white);
  stroke: #c9dcea;
  stroke-width: 1;
}

.s-dim-text {
  fill: var(--blue-dark);
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  text-anchor: middle;
}

.s-room {
  fill: #9fb2bc;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-anchor: middle;
}

.s-pin-ring {
  fill: rgba(245, 184, 46, 0.18);
  stroke: var(--honey);
  stroke-width: 2;
}

.s-pin {
  fill: var(--honey);
  stroke: var(--charcoal);
  stroke-width: 1.4;
}

/* scene timeline (~15s loop, restarted by JS) */

.hero-scene .route-mask-stroke {
  stroke-dashoffset: 0;
}

.hero-scene.play .route-mask-stroke {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: scene-draw 1.2s 0.25s linear forwards;
}

.hero-scene.play .anim-outline {
  stroke-dasharray: 790;
  stroke-dashoffset: 790;
  animation: scene-draw 1.5s 1.5s cubic-bezier(0.45, 0.08, 0.4, 0.95) forwards;
}

.hero-scene.play .anim-inner {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: scene-draw 0.6s 3.2s ease-out forwards;
}

.hero-scene.play .anim-door {
  stroke-dasharray: 170;
  stroke-dashoffset: 170;
  animation: scene-draw 0.5s 3.9s ease-out forwards;
}

@keyframes scene-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-scene.play .rise {
  opacity: 0;
  animation: scene-rise 0.55s var(--d, 0s) cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes scene-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-scene.play .drop {
  opacity: 0;
  transform-origin: var(--o, center);
  animation: scene-drop 0.55s var(--d, 0s) cubic-bezier(0.2, 1.5, 0.4, 1) forwards;
}

@keyframes scene-drop {
  0% {
    opacity: 0;
    transform: translateY(-18px) scale(0.6);
  }
  62% {
    opacity: 1;
    transform: translateY(2px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* fallback for engines without motion-path on SVG: bee parks at the route end */
.bee-holder {
  transform: translate(378px, 58px);
}

@supports (offset-path: path("M0 0 L10 10")) {
  .bee-holder {
    transform: none;
    offset-path: path("M84 332 L84 84 L336 84 C 360 84 372 72 378 58");
    offset-rotate: auto;
    offset-distance: 100%;
  }

  .hero-scene.play .bee-holder {
    animation: scene-fly 1.4s 0.25s linear both;
  }
}

@keyframes scene-fly {
  from {
    offset-distance: 0%;
  }
  to {
    offset-distance: 100%;
  }
}

.bee-buzz {
  animation: scene-buzz 0.22s linear infinite alternate;
}

@keyframes scene-buzz {
  from {
    transform: translateY(-1.4px);
  }
  to {
    transform: translateY(1.4px);
  }
}

.hero-scene .fadeable {
  transition: opacity 0.45s ease;
}

.hero-scene.fading .fadeable {
  opacity: 0;
}

.hero-scene.fading .chip-rise {
  animation: none;
}

/* floating cards over the scene */

.ui-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.chip-photo {
  top: 44%;
  right: -4%;
  padding: 6px;
}

.chip-photo img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.chip-photo .t {
  padding-right: 8px;
  line-height: 1.3;
}

.chip-photo .t small {
  display: block;
  margin-bottom: 2px;
  color: var(--blue-dark);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero-scene.play .chip-rise {
  opacity: 0;
  animation: scene-rise 0.55s var(--d, 0s) cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.estimate-fly {
  position: absolute;
  right: -5%;
  bottom: -8%;
  width: min(47%, 270px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.ef-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.ef-head b {
  color: var(--charcoal);
  font-size: 0.8rem;
  font-weight: 800;
}

.ef-head .mono {
  color: var(--text-faint);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.ef-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid #eef2f4;
  font-size: 0.74rem;
  font-weight: 600;
}

.ef-row .q {
  color: var(--blue-dark);
  white-space: nowrap;
}

.ef-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--honey-wash);
  font-size: 0.78rem;
  font-weight: 800;
}

.ef-total .sum {
  font-size: 0.92rem;
}

/* ---------- sections: shared ---------- */

.section {
  padding: var(--space-section) 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(44px, 5vw, 64px);
}

.section-heading h2 {
  margin-bottom: 18px;
}

.section-heading .section-lead {
  margin-bottom: 0;
}

/* ---------- pillars ---------- */

.pillars {
  padding-top: clamp(56px, 6vw, 88px);
}

.pillar-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: stretch;
}

.pillar-link {
  display: flex;
  align-items: center;
  align-self: center;
  padding: 0 6px;
}

.pillar-link .dotline {
  flex: 1;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}

.pillar-field {
  background: linear-gradient(180deg, var(--honey-wash), var(--white) 82%);
  border-color: var(--honey-line);
}

.pillar-office {
  background: linear-gradient(180deg, var(--blue-wash), var(--white) 82%);
  border-color: var(--blue-line);
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.pillar-number {
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.pillar-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: none;
  place-items: center;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.pillar-icon svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-card h3 {
  margin-bottom: 12px;
}

.pillar-card > p:not(.pillar-outcome) {
  margin-bottom: 22px;
  color: var(--text-soft);
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.96rem;
  font-weight: 700;
}

.feature-list li::before {
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  content: "";
}

.pillar-field .feature-list li::before {
  background: var(--honey-dark);
}

.pillar-outcome {
  margin: auto 0 0;
  padding-top: 20px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.pillar-outcome span {
  display: block;
  margin-bottom: 6px;
  color: var(--charcoal);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.09em;
}

/* ---------- field ---------- */

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: start;
  gap: clamp(40px, 5vw, 72px);
}

.feature-stack {
  display: grid;
}

.feature-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.feature-item:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-index {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--charcoal);
  background: var(--honey);
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

.feature-item h3 {
  margin: 6px 0 6px;
  font-size: 1.08rem;
}

.feature-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.field-benefit {
  margin: 28px 0 0;
  padding: 18px 24px;
  border-left: 3px solid var(--honey);
  color: var(--ink-2);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.96rem;
}

.field-benefit strong {
  color: var(--charcoal);
}

/* phone mock + photos */

.field-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 22px;
  align-items: start;
}

.phone-large {
  padding: 14px;
  background: var(--charcoal);
  border-radius: 34px;
  box-shadow: var(--shadow-float);
}

.phone-large-top {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  color: var(--white);
  font-size: 0.66rem;
}

.live-badge {
  padding: 4px 10px;
  color: var(--charcoal);
  background: var(--honey);
  border-radius: var(--r-pill);
  font-size: 0.66rem;
  font-weight: 800;
}

.measurement-card {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
}

.measurement-title {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 800;
}

.measurement-title .mono {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
}

.measurement-card svg {
  display: block;
  width: calc(100% - 24px);
  margin: 12px;
  background: #f9fbfc;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.field-gridline {
  fill: none;
  stroke: #e8eef1;
  stroke-width: 1;
}

.field-wall {
  fill: none;
  stroke: var(--charcoal);
  stroke-width: 3;
}

.field-laser {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-dasharray: 6 5;
  animation: beam 1.4s linear infinite;
}

.field-laser-dot {
  fill: var(--blue);
}

.field-value-bg {
  fill: var(--white);
  stroke: var(--blue);
  stroke-width: 1.4;
}

.field-value {
  fill: var(--blue-dark);
  font-size: 10.5px;
  font-weight: 600;
  text-anchor: middle;
}

.field-defect-ring {
  fill: var(--honey-wash);
  stroke: var(--honey);
  stroke-width: 2;
}

.field-defect {
  fill: var(--honey);
}

.measurement-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  padding: 12px 16px 16px;
  font-size: 0.62rem;
}

.device-chip {
  color: var(--text-soft);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.accepted-chip {
  padding: 6px 10px;
  color: var(--ok);
  background: var(--ok-wash);
  border-radius: var(--r-sm);
  font-weight: 800;
}

.phone-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 0 4px;
}

.phone-nav i {
  width: 22px;
  height: 4px;
  background: #5b6b73;
  border-radius: var(--r-pill);
}

.phone-nav .is-active {
  background: var(--honey);
}

.photo-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 30px;
}

.proof-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.proof-card-main {
  grid-column: 1 / -1;
}

.proof-card img {
  display: block;
  width: 100%;
  height: 108px;
  object-fit: cover;
}

.proof-card-main img {
  height: 176px;
}

.proof-card figcaption {
  min-height: 56px;
  padding: 10px 12px 12px;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
}

.proof-card figcaption .mono {
  display: block;
  margin-bottom: 3px;
  color: var(--blue-dark);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
}

/* ---------- flow (dark) ---------- */

.flow-section {
  position: relative;
  color: var(--white);
  background: var(--charcoal);
  overflow: hidden;
}

.flow-section::before {
  position: absolute;
  inset: 0;
  background-image: var(--hex-dark);
  background-size: 46px 82px;
  content: "";
  -webkit-mask-image: radial-gradient(110% 90% at 88% 8%, #000 20%, transparent 68%);
  mask-image: radial-gradient(110% 90% at 88% 8%, #000 20%, transparent 68%);
  pointer-events: none;
}

.flow-section .container {
  position: relative;
}

.flow-section .eyebrow {
  color: var(--honey);
}

.flow-section .section-lead {
  color: #b9c6cd;
}

.flow-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-step {
  display: grid;
  justify-items: start;
}

.reveal-ready .flow-steps.reveal > li {
  opacity: 0;
}

.reveal-ready .flow-steps.reveal.visible > li {
  animation: panel-in 0.45s ease both;
  animation-delay: calc(var(--i, 0) * 110ms);
}

.flow-hex {
  position: relative;
  display: grid;
  width: 52px;
  height: 57px;
  margin-bottom: 20px;
  place-items: center;
}

.flow-hex > svg:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flow-hex > svg:first-child path {
  fill: #2e3a40;
  stroke: #56676f;
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.flow-hex b {
  position: relative;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}

.flow-hex-honey > svg:first-child path {
  fill: var(--honey);
  stroke: var(--honey);
}

.flow-hex-honey b {
  color: var(--charcoal);
}

.flow-bee {
  position: absolute;
  top: -38px;
  left: 42px;
  width: 32px;
  height: 32px;
  animation: scene-buzz 0.24s linear infinite alternate;
}

.flow-dash {
  height: 4px;
  margin-top: 27px;
  background-image: radial-gradient(circle, var(--blue) 1.7px, transparent 1.9px);
  background-size: 11px 4px;
  background-repeat: repeat-x;
  background-position: center left;
  opacity: 0.9;
}

.flow-steps strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.flow-steps p {
  max-width: 24ch;
  margin: 0;
  color: #aebbc1;
  font-size: 0.88rem;
}

/* ---------- desktop / workspace ---------- */

.desktop-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(36px, 4.6vw, 64px);
}

.desktop-features {
  display: grid;
}

.desktop-feature {
  padding: 20px 0 20px 22px;
  border-left: 2px solid var(--line);
  transition: border-color 0.2s ease;
}

.desktop-feature:hover {
  border-left-color: var(--honey);
}

.desktop-feature h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.desktop-feature p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.desktop-copy .field-benefit {
  margin-top: 32px;
}

.workspace-card {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.workspace-browser {
  display: grid;
  min-height: 46px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  color: var(--text-soft);
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  font-size: 0.66rem;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  background: #cdd8de;
  border-radius: 50%;
}

.workspace-avatar {
  display: grid;
  width: 26px;
  height: 26px;
  margin-left: auto;
  place-items: center;
  color: var(--charcoal);
  background: var(--honey);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 800;
}

.workspace-layout {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
}

.workspace-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-top: 18px;
  background: var(--charcoal);
}

.nav-logo {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  place-items: center;
  color: var(--charcoal);
  background: var(--honey);
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 800;
}

.nav-line {
  width: 16px;
  height: 4px;
  background: #5b6b73;
  border-radius: var(--r-pill);
}

.nav-line.is-active {
  background: var(--honey);
}

.workspace-main {
  min-width: 0;
  padding: 22px 24px 20px;
}

.workspace-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.workspace-heading .mono {
  display: block;
  color: var(--text-faint);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.workspace-heading h3 {
  margin: 5px 0 0;
  font-size: 1.2rem;
}

.workspace-status {
  padding: 6px 12px;
  color: var(--blue-dark);
  background: var(--blue-wash);
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  font-weight: 800;
}

.estimate-tabs {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  border-bottom: 1px solid var(--line);
}

.estimate-tab {
  position: relative;
  padding: 0 0 11px;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.estimate-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
  border-radius: 3px 3px 0 0;
  content: "";
}

.estimate-tab.is-active {
  color: var(--charcoal);
}

.estimate-tab.is-active::after {
  background: var(--honey);
}

.estimate-panel {
  animation: panel-in 0.22s ease;
}

.reveal-ready .workspace-card.reveal .workspace-row {
  opacity: 0;
}

.reveal-ready .workspace-card.reveal.visible .workspace-row {
  animation: panel-in 0.4s ease both;
  animation-delay: calc(0.15s + var(--i, 0) * 70ms);
}

.estimate-panel[hidden] {
  display: none;
}

.workspace-table {
  margin-top: 8px;
}

.workspace-row {
  display: grid;
  min-height: 46px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 8px 4px;
  border-bottom: 1px solid #eef2f4;
  font-size: 0.8rem;
  font-weight: 600;
}

.workspace-row > span:nth-child(n + 2) {
  text-align: right;
  color: var(--ink-2);
  font-size: 0.74rem;
}

.workspace-row b {
  margin-right: 8px;
  color: var(--text-faint);
  font-size: 0.68rem;
  font-weight: 500;
}

.workspace-row-head {
  min-height: 34px;
  color: var(--text-faint);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.workspace-row-head > span:nth-child(n + 2) {
  color: var(--text-faint);
  font-size: 0.6rem;
}

.source-chip {
  justify-self: end;
  min-width: 52px;
  padding: 4px 8px;
  color: var(--blue-dark);
  background: var(--blue-wash);
  border-radius: 7px;
  font-size: 0.66rem;
  text-align: center;
}

.workspace-row-muted {
  color: var(--text-faint);
}

.workspace-summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 0 16px;
  color: var(--blue-dark);
  background: var(--blue-wash);
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  font-weight: 700;
}

.workspace-summary-total {
  color: var(--charcoal);
  background: var(--honey-wash);
}

.workspace-summary-total strong {
  font-size: 0.95rem;
}

.demo-disclaimer {
  margin: 0;
  padding: 10px 16px;
  color: var(--text-faint);
  background: var(--canvas);
  border-top: 1px solid var(--line);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
}

/* ---------- connection ---------- */

.connection-section {
  background: var(--canvas);
}

.data-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px clamp(8px, 1.6vw, 20px);
  margin-bottom: clamp(36px, 4.4vw, 56px);
  padding: 26px clamp(16px, 3vw, 32px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}

.data-chain span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.data-chain .dotline {
  flex: 0 1 44px;
  min-width: 20px;
}

.data-chain .chain-final {
  background: var(--honey-wash);
  border: 2px solid var(--honey);
}

.reveal-ready .data-chain.reveal > * {
  opacity: 0;
}

.reveal-ready .data-chain.reveal.visible > * {
  animation: panel-in 0.4s ease both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.benefit-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}

.benefit-mark {
  display: grid;
  width: 48px;
  height: 52px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--blue-dark);
  background: var(--blue-wash);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.benefit-mark svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-mark .honey-dot {
  fill: var(--honey);
  stroke: none;
}

.benefit-card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.benefit-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}


/* ---------- agent teasers (nav / hero / flow / cta) ---------- */

.site-nav a.nav-agent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  color: #5b21b6;
  background: #f3efff;
  border: 1px solid #ddd6fe;
  border-radius: var(--r-pill);
}

.site-nav a.nav-agent::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.5);
  animation: agent-dot 2.2s ease-out infinite;
}

.site-nav a.nav-agent:hover {
  color: #4c1d95;
  background: #ede9fe;
  text-decoration: none;
}

@keyframes agent-dot {
  0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(124, 58, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

.hero-agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 8px 16px 8px 10px;
  color: #ede9fe;
  background: #1b1530;
  border: 1px solid rgba(167, 139, 250, 0.7);
  border-radius: var(--r-pill);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12), 0 14px 28px -14px rgba(124, 58, 237, 0.8);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-agent-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.18), 0 18px 32px -14px rgba(124, 58, 237, 0.9);
}

.hac-bee {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  background: #241d3b;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.45), 0 0 16px rgba(139, 92, 246, 0.55);
}

.hac-bee svg {
  width: 26px;
  height: 26px;
}

.hac-text b {
  display: block;
  margin-bottom: 1px;
  color: #c4b5fd;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hac-arrow {
  width: 18px;
  flex: none;
  fill: none;
  stroke: #c4b5fd;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-teaser {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding: 12px 18px 12px 14px;
  color: #ede9fe;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.5);
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.flow-teaser:hover {
  background: rgba(124, 58, 237, 0.32);
  transform: translateY(-2px);
}

.flow-teaser b {
  color: #c4b5fd;
}

.flow-teaser-spark {
  width: 20px;
  flex: none;
  fill: #c4b5fd;
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.9));
}

.flow-teaser-arrow {
  width: 18px;
  flex: none;
  fill: none;
  stroke: #c4b5fd;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-facts li.is-agent {
  color: #ede9fe;
  background: rgba(124, 58, 237, 0.35);
  border-color: rgba(196, 181, 253, 0.7);
}

/* ---------- agent (cyberpunk mode) ---------- */

.agent-section {
  position: relative;
  overflow: hidden;
  color: #ede9fe;
  background:
    radial-gradient(60% 50% at 12% 10%, rgba(124, 58, 237, 0.32), transparent 70%),
    radial-gradient(45% 40% at 88% 85%, rgba(139, 92, 246, 0.22), transparent 70%),
    #120e1c;
}

.agent-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cg fill='none' stroke='%23a78bfa' stroke-opacity='.11' stroke-width='1'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50z'/%3E%3Cpath d='M28 100L0 84L0 50M28 100L56 84L56 50M28 66L28 100'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(70% 80% at 80% 50%, #000 20%, transparent 100%);
  mask-image: radial-gradient(70% 80% at 80% 50%, #000 20%, transparent 100%);
  pointer-events: none;
}

.agent-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.agent-scanline {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(196, 181, 253, 0.9), transparent);
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.8);
  animation: agent-scan 7s linear infinite;
  pointer-events: none;
}

@keyframes agent-scan {
  from { transform: translateY(0); }
  to { transform: translateY(1400px); }
}

.agent-section .container {
  position: relative;
  z-index: 2;
}

.agent-head {
  max-width: 720px;
}

.eyebrow-neon {
  color: #c4b5fd;
}

.agent-section h2 {
  color: #fff;
}

.neon-accent {
  color: #c4b5fd;
  text-shadow: 0 0 22px rgba(167, 139, 250, 0.75), 0 0 2px rgba(233, 213, 255, 0.9);
}

.agent-section .section-lead {
  color: #b8b0d1;
}

.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 52px;
}

.agent-stage {
  display: grid;
  gap: 8px;
}

/* --- пчела в шлеме --- */

.agent-bee {
  position: relative;
  width: min(360px, 82%);
  margin: 0 auto;
}

.agent-bee::before {
  content: "";
  position: absolute;
  inset: 8% -6% 4%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.5), rgba(139, 92, 246, 0.12) 60%, transparent 100%);
  filter: blur(6px);
}

.agent-bee svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  animation: agent-hover 4.2s ease-in-out infinite;
}

@keyframes agent-hover {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-9px) rotate(1deg); }
}

.agent-wings {
  transform-origin: 112px 92px;
  animation: agent-flap 0.16s ease-in-out infinite alternate;
}

@keyframes agent-flap {
  from { transform: scaleY(1); }
  to { transform: scaleY(0.82); }
}

.arc {
  opacity: 0;
  animation: arc-flicker 0.9s steps(1, end) infinite;
}

.arc-b {
  animation-delay: 0.45s;
}

@keyframes arc-flicker {
  0% { opacity: 0.95; }
  18% { opacity: 0; }
  26% { opacity: 0.9; }
  40% { opacity: 0; }
  55% { opacity: 1; }
  70% { opacity: 0; }
  100% { opacity: 0; }
}

.spark {
  opacity: 0;
  animation: spark-pop 1.8s ease-out infinite;
}

.spark:nth-child(2) { animation-delay: 0.6s; }
.spark:nth-child(3) { animation-delay: 1.2s; }

@keyframes spark-pop {
  0% { opacity: 0; transform: translateY(0); }
  10% { opacity: 1; }
  40% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0; }
}

/* --- chamfered neon cards --- */

.cyber-card {
  position: relative;
  padding: 1px;
  background: linear-gradient(135deg, rgba(196, 181, 253, 0.85), rgba(139, 92, 246, 0.25) 45%, rgba(167, 139, 250, 0.7));
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  list-style: none;
}

.cyber-card-in {
  background: linear-gradient(180deg, #1c1630, #171226);
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 17px 100%, 0 calc(100% - 17px));
}

/* --- голосовой диалог --- */

.agent-dialog .cyber-card-in {
  padding: 18px 20px 20px;
}

.agent-say {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 14px;
}

.agent-say p {
  margin: 0;
  color: #ede9fe;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.agent-wave {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 3px;
  height: 26px;
}

.agent-wave i {
  display: block;
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: #c4b5fd;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.9);
  animation: wave 0.9s ease-in-out infinite alternate;
}

.agent-wave i:nth-child(2n) { animation-delay: -0.3s; height: 16px; }
.agent-wave i:nth-child(3n) { animation-delay: -0.6s; height: 22px; }
.agent-wave i:nth-child(5n) { animation-delay: -0.15s; height: 12px; }

@keyframes wave {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}

.agent-reply-label {
  margin: 0 0 10px;
  color: #c4b5fd;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.agent-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 14px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(167, 139, 250, 0.16);
  border-radius: 12px;
}

.agent-row-k {
  grid-column: 1 / -1;
  color: #a78bfa;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-row b {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
}

.agent-row b em {
  color: #f5b82e;
  font-style: normal;
}

.agent-row-s {
  color: #c4b5fd;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.agent-row-s.is-ok {
  color: #9ae6b4;
}

.agent-row.is-offer {
  margin-bottom: 0;
  border-color: rgba(245, 184, 46, 0.7);
  box-shadow: 0 0 0 1px rgba(245, 184, 46, 0.15), 0 0 24px -8px rgba(245, 184, 46, 0.6);
}

.btn-xs {
  min-height: 34px;
  padding: 6px 16px;
  font-size: 0.8rem;
}

/* --- способности --- */

.agent-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.agent-skill {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  min-height: 100%;
  padding: 18px 18px 16px;
  box-sizing: border-box;
}

.skill-hex {
  display: grid;
  width: 42px;
  height: 46px;
  place-items: center;
  color: #c4b5fd;
  background: #2a2142;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.skill-hex.is-now {
  color: #fff;
  background: #7c3aed;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.9);
}

.skill-hex svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-text {
  color: #b8b0d1;
  font-size: 0.86rem;
  line-height: 1.45;
}

.skill-text b {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.skill-tag {
  grid-column: 2;
  justify-self: start;
  padding: 3px 9px;
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.55);
  border-radius: var(--r-pill);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skill-tag.is-now {
  color: var(--charcoal);
  background: var(--honey);
  border-color: var(--honey);
}

/* ---------- cta ---------- */

.cta-section {
  padding: var(--space-section) 0;
}

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  padding: clamp(32px, 5vw, 64px);
  color: var(--white);
  background: linear-gradient(135deg, #3378ae, var(--blue-dark));
  border-radius: var(--r-lg);
  overflow: hidden;
}

.cta-panel::before {
  position: absolute;
  inset: 0;
  background-image: var(--hex-dark);
  background-size: 46px 82px;
  content: "";
  -webkit-mask-image: radial-gradient(100% 120% at 10% 100%, #000 15%, transparent 65%);
  mask-image: radial-gradient(100% 120% at 10% 100%, #000 15%, transparent 65%);
  pointer-events: none;
}

.cta-copy,
.cta-panel .lead-form {
  position: relative;
}

.cta-copy .eyebrow {
  color: var(--honey);
}

.cta-copy h2 {
  margin-bottom: 18px;
}

.cta-copy > p:not(.eyebrow) {
  max-width: 52ch;
  margin-bottom: 0;
  color: #d7e5ee;
  font-size: 1.02rem;
}

.cta-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.cta-facts li {
  padding: 7px 13px;
  color: #eaf2f7;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.cta-early {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-md);
}

.cta-early p {
  margin: 0;
  color: #e2edf4;
  font-size: 0.92rem;
  line-height: 1.6;
}

.cta-early strong {
  color: var(--white);
}

.cta-route {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.cta-route .dotline {
  flex: 0 1 110px;
}

.lead-form {
  padding: clamp(22px, 2.6vw, 30px);
  color: var(--charcoal);
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-float);
}

.lead-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 800;
}

.lead-field em {
  color: var(--text-faint);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 500;
}

.lead-field input,
.lead-field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--canvas);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  resize: vertical;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.lead-field input::placeholder,
.lead-field textarea::placeholder {
  color: #9aa8ae;
}

.lead-field input:focus,
.lead-field textarea:focus {
  background: var(--white);
  border-color: var(--blue);
}

.lead-hp {
  position: absolute;
  top: auto;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-submit {
  width: 100%;
  margin-top: 2px;
}

.lead-submit:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

.form-note {
  margin: 14px 0 0;
  color: var(--text-faint);
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: center;
}

.lead-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.lead-status.is-pending {
  color: var(--blue-dark);
  background: var(--blue-wash);
}

.lead-status.is-ok {
  color: var(--ok);
  background: var(--ok-wash);
}

.lead-status.is-error {
  color: var(--danger);
  background: var(--danger-wash);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  min-height: 116px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner .mono {
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

.footer-brand img {
  height: 44px;
  width: auto;
  display: block;
}

/* ---------- motion ---------- */

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@keyframes beam {
  to {
    stroke-dashoffset: -22;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero::before {
    inset: 0 0 55% 30%;
  }

  .hero-scene {
    max-width: 600px;
  }

  .estimate-fly {
    right: 0;
  }

  .chip-photo {
    right: 0;
  }

  .field-grid,
  .desktop-grid {
    grid-template-columns: 1fr;
  }

  .field-visual {
    max-width: 720px;
  }

  .workspace-card {
    max-width: 760px;
  }
}

@media (max-width: 900px) {
  .agent-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .agent-bee {
    width: min(300px, 70%);
  }

  .site-nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pillar-link {
    justify-content: center;
    height: 56px;
    padding: 0;
  }

  .pillar-link .dotline {
    flex: none;
    width: 4px;
    height: 100%;
    background-image: radial-gradient(circle, var(--blue) 1.7px, transparent 1.9px);
    background-size: 4px 11px;
    background-repeat: repeat-y;
    background-position: top center;
  }

  .flow-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flow-step {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 4px 20px;
    align-items: start;
  }

  .flow-hex {
    grid-row: 1 / 3;
    margin-bottom: 0;
  }

  .flow-bee {
    top: -34px;
    right: auto;
    bottom: auto;
    left: 56px;
  }

  .flow-dash {
    width: 4px;
    height: 40px;
    margin: 6px 0 6px 24px;
    background-image: radial-gradient(circle, var(--blue) 1.7px, transparent 1.9px);
    background-size: 4px 11px;
    background-repeat: repeat-y;
    background-position: top center;
  }

  .flow-steps strong {
    margin-top: 4px;
  }

  .flow-steps p {
    max-width: none;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 20px 0;
  }

  .footer-inner > p:first-of-type {
    display: none;
  }
}

@media (max-width: 680px) {
  .agent-skills {
    grid-template-columns: 1fr;
  }

  .hero-agent-chip,
  .flow-teaser {
    display: flex;
    width: 100%;
  }

  .agent-row {
    grid-template-columns: 1fr;
  }

  .agent-row.is-offer .btn-xs {
    justify-self: start;
    margin-top: 6px;
  }

  .container {
    width: min(100% - 32px, 1180px);
  }

  html {
    scroll-padding-top: 82px;
  }

  .header-inner {
    height: 72px;
    gap: 16px;
  }

  .brand-lockup img {
    height: 44px;
  }

  .header-cta {
    min-height: 42px;
    padding: 9px 16px;
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(1.9rem, 8.4vw, 2.4rem);
  }

  h2 {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .lead,
  .section-lead {
    font-size: 1.02rem;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-scene {
    margin-bottom: 26px;
  }

  .estimate-fly {
    position: static;
    width: 100%;
    margin-top: 18px;
  }

  .hero-scene.play .estimate-fly.chip-rise {
    animation-delay: 1.2s;
  }

  .chip-photo {
    top: 58%;
  }

  .section {
    padding: 72px 0;
  }

  .pillar-card {
    padding: 24px;
  }

  .field-visual {
    grid-template-columns: 1fr;
  }

  .photo-proof {
    padding-top: 0;
  }

  .proof-card img {
    height: 120px;
  }

  .proof-card-main img {
    height: 180px;
  }

  .workspace-nav {
    display: none;
  }

  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .workspace-main {
    padding: 18px 16px 16px;
  }

  .workspace-row {
    gap: 10px;
  }

  .workspace-row b {
    display: none;
  }

  .data-chain {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .data-chain span {
    justify-content: center;
  }

  .data-chain .dotline {
    flex: none;
    width: 4px;
    height: 22px;
    margin: 4px auto;
    background-image: radial-gradient(circle, var(--blue) 1.7px, transparent 1.9px);
    background-size: 4px 11px;
    background-repeat: repeat-y;
    background-position: top center;
  }

  .cta-section {
    padding: 72px 0;
  }

  .cta-panel {
    padding: 28px 20px;
  }

  .lead-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-brand img {
    height: 38px;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .site-nav a.nav-agent::before,
  .agent-scanline,
  .agent-bee svg,
  .agent-wings,
  .agent-wave i,
  .spark {
    animation: none;
  }

  .arc {
    animation: none;
    opacity: 0.9;
  }

  .arc-b {
    opacity: 0;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-scene.play .route-mask-stroke,
  .hero-scene.play .anim-outline,
  .hero-scene.play .anim-inner,
  .hero-scene.play .anim-door,
  .hero-scene.play .rise,
  .hero-scene.play .drop,
  .hero-scene.play .chip-rise,
  .hero-scene.play .bee-holder,
  .bee-buzz,
  .flow-bee {
    animation: none !important;
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
  }
}
