/* ===========================================================
   Xegen — professional agency demo
   Dark, structured, product-forward. Uses the original logo.
   =========================================================== */

:root {
  /* Palette — extends the existing Xegen brand */
  --bg:           #08090d;
  --bg-2:         #0b0f14;
  --surface:      #0f141d;
  --surface-2:    #141b27;
  --elevated:     #18212f;
  --border:       #1e2838;
  --border-soft:  #182030;
  --border-strong:#2a3447;
  --text:         #e8edf5;
  --text-soft:    #c6cedb;
  --muted:        #8b98a8;
  --subtle:       #5d6878;

  --accent:         #0ea472;
  --accent-hover:   #15b982;
  --accent-strong:  #0c8862;
  --accent-soft:    rgba(14, 164, 114, 0.12);
  --accent-glow:    rgba(14, 164, 114, 0.35);

  /* Type */
  --f-display: "Outfit", system-ui, sans-serif;
  --f-body:    "IBM Plex Sans", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Rhythm */
  --edge:   clamp(1.25rem, 4vw, 2.5rem);
  --max:    76rem;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* Ambient depth */
  background-image:
    radial-gradient(1000px 600px at 85% -10%, rgba(14, 164, 114, 0.10), transparent 60%),
    radial-gradient(800px 500px at -10% 0%, rgba(31, 56, 100, 0.18), transparent 60%);
  background-attachment: fixed, fixed;
  background-repeat: no-repeat;
}

::selection {
  background: var(--accent);
  color: #06110b;
}

a { color: var(--text); text-decoration: none; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--edge);
  z-index: 1000;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: #06110b;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  border-radius: 6px;
  font-weight: 500;
}
.skip-link:focus { top: 0.75rem; }

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

/* =================== TOPBAR =================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--border-soft);
}

.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem var(--edge);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand__img {
  height: 2.6rem;
  width: auto;
  display: block;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(1rem, 2.4vw, 1.9rem);
  justify-content: center;
}

.nav a {
  display: inline-block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--text); }

.topbar__cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
}

@media (max-width: 840px) {
  .nav { display: none; }
  .topbar__inner { grid-template-columns: auto 1fr; }
}

/* =================== BUTTONS =================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.1rem;
  font-family: var(--f-body);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}

.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(2px); }

.btn--sm { padding: 0.48rem 0.85rem; font-size: 0.85rem; }

.btn--primary {
  background: var(--accent);
  color: #06110b;
  border-color: var(--accent);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.1) inset,
              0 10px 24px -12px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #06110b;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--wide { padding: 0.85rem 1.35rem; font-size: 0.95rem; }

/* =================== HERO =================== */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--edge) clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.8rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite var(--ease);
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 8px rgba(14, 164, 114, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 164, 114, 0); }
}

.hero__title {
  margin: 1.25rem 0 1.1rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.35rem, 5.2vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(120deg, var(--accent) 0%, #30d49b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.12em;
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  font-size: 1.06rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.hero__facts {
  margin: 0;
  padding: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1.25rem 2.5rem;
  border-top: 1px solid var(--border-soft);
}

@media (max-width: 520px) {
  .hero__facts { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

.hero__facts > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero__facts dt {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--subtle);
  text-transform: uppercase;
}

.hero__facts dd {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ------- Hero visual: browser frame + floaters ------- */

.hero__visual {
  position: relative;
  align-self: center;
}

.stage {
  position: relative;
  padding: clamp(1rem, 2vw, 2rem);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 10% -4% 10% -4%;
  background: radial-gradient(60% 60% at 70% 40%, var(--accent-glow), transparent 65%);
  filter: blur(40px);
  z-index: 0;
  opacity: 0.7;
  pointer-events: none;
}

.frame {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255,255,255,0.02) inset;
  overflow: hidden;
  transform: perspective(1500px) rotateX(2deg) rotateY(-4deg) rotateZ(0.3deg);
  transition: transform 0.6s var(--ease);
}

.hero__visual:hover .frame {
  transform: perspective(1500px) rotateX(0deg) rotateY(0deg);
}

.frame__chrome {
  padding: 0.6rem 0.75rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.frame__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.frame__chrome .frame__dot:nth-child(1) { background: #d66a56; }
.frame__chrome .frame__dot:nth-child(2) { background: #d4b24e; }
.frame__chrome .frame__dot:nth-child(3) { background: #5fa876; }

.frame__url {
  margin-left: auto;
  padding: 0.2rem 0.65rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.frame__body {
  padding: 1rem 1rem 1.25rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ui-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ui-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.ui-pill {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}

.ui-pill--accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}

.ui-week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.3rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-soft);
}

.ui-week span {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--subtle);
  letter-spacing: 0.02em;
  padding: 0.2rem 0;
  text-align: center;
  border-radius: 4px;
}

.ui-week .on {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

.ui-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ui-row {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(90deg, var(--surface) 0, transparent 18%);
  border-top: 1px dashed var(--border);
}

.ui-chip {
  flex: 0 0 auto;
  padding: 0.15rem 0.45rem;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: var(--text-soft);
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  z-index: 2;
  position: relative;
}

.ui-block {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: calc(var(--s) + 70px);
  width: var(--w);
  background: var(--border-strong);
  border-radius: 4px;
}

.ui-block--accent {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 0 12px -4px var(--accent-glow);
}

/* Floating cards */
.floater {
  position: absolute;
  z-index: 3;
  background: linear-gradient(180deg, var(--elevated) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.floater--metric {
  top: 18%;
  right: -2%;
  width: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--accent);
  animation-delay: -2s;
}

.floater__label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.floater__num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: flex-start;
}
.floater__num .pct {
  font-size: 0.55em;
  margin-top: 0.25em;
  margin-left: 0.1em;
  color: var(--accent);
}

.floater__sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.spark {
  width: 100%;
  height: 24px;
  margin-top: 0.25rem;
  color: var(--accent);
  stroke: currentColor;
}

.floater--status {
  bottom: 12%;
  left: -4%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-right: 1.1rem;
  animation-delay: -4s;
}

.floater__bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite var(--ease);
  flex-shrink: 0;
}

.floater--status div {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.floater__kicker {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.floater__headline {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.floater__uptime {
  padding: 0.2rem 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
}

@media (max-width: 520px) {
  .floater--metric { top: 8%; right: 2%; width: 130px; padding: 0.55rem 0.7rem; }
  .floater--status { bottom: 8%; left: 0; }
  .floater__num { font-size: 1.5rem; }
}

/* Operates strip */
.operates {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.1rem var(--edge);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.operates__label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--subtle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 0.5rem;
}

.operates__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}

.operates__list a {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}

.operates__list strong {
  color: var(--text);
  font-weight: 700;
}

.operates__list a:hover { color: var(--accent); }
.operates__list a:hover strong { color: var(--accent); }

/* =================== METRICS =================== */

.metrics {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--edge);
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (max-width: 840px) {
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .metrics__grid { grid-template-columns: 1fr; }
}

.metric {
  padding: 1.5rem 1.4rem 1.6rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.metric:last-child { border-right: none; }

@media (max-width: 840px) {
  .metric:nth-child(2n) { border-right: none; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .metric { border-right: none; border-bottom: 1px solid var(--border); }
  .metric:last-child { border-bottom: none; }
}

.metric__num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 3.8vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
  gap: 0.1em;
}

.metric__unit {
  font-size: 0.45em;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.05em;
}

.metric__lbl {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
  max-width: 25ch;
}

/* =================== SECTIONS (shared) =================== */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) var(--edge);
  scroll-margin-top: 80px;
}

.section--alt {
  background:
    linear-gradient(180deg, transparent 0, var(--surface) 8%, var(--surface) 92%, transparent 100%);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.section--alt > .section__head,
.section--alt > .process {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

.section__head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__head--split {
  max-width: var(--max);
  display: grid;
  grid-template-columns: 1fr minmax(0, 22rem);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .section__head--split { grid-template-columns: 1fr; }
}

.kicker {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.section__head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
}

.section__sub {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 42rem;
}

/* =================== SERVICES =================== */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  padding: 1.4rem 1.3rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
              background 0.25s var(--ease);
}

.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  background: var(--surface-2);
}

.service-card__icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: 8px;
}

.service-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.015em;
}

.service-card p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.service-card__tags {
  list-style: none;
  margin: 0;
  padding: 0.7rem 0 0;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.service-card__tags li {
  padding: 0.2rem 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--text-soft);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* =================== WORK =================== */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 1020px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .work-grid { grid-template-columns: 1fr; } }

.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

.product:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.5),
              0 0 0 1px var(--accent-soft) inset;
}

.product__preview {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pv-chrome {
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.pv-chrome span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
}

.pv-body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

.pv-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.pv-sq {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--accent);
}
.pv-line {
  height: 6px;
  border-radius: 3px;
  background: var(--border-strong);
}
.pv-line.w-40 { width: 40%; }
.pv-line.w-45 { width: 45%; }
.pv-line.w-50 { width: 50%; }
.pv-line.w-55 { width: 55%; }
.pv-line.w-60 { width: 60%; }
.pv-line.w-70 { width: 70%; }
.pv-line.w-75 { width: 75%; }
.pv-line.on { background: var(--accent); }

/* CallOut: calendar grid */
.pv-cols {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.pv-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.pv-cell {
  height: 8px;
  background: var(--border-strong);
  border-radius: 2px;
}
.pv-cell.on {
  background: var(--accent);
  box-shadow: 0 0 8px -2px var(--accent-glow);
}

/* SupportLayer: tickets */
.pv-tickets {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pv-ticket {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.pv-ticket.on { border-color: var(--accent-soft); background: var(--surface-2); }
.pv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
}
.pv-dot.on { background: var(--accent); }
.pv-pill {
  margin-left: auto;
  padding: 1px 5px;
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.pv-pill--mute { color: var(--subtle); }
.pv-pill--accent { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }

/* ProjectLayer: kanban */
.pv-kanban {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.pv-lane {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pv-cap {
  font-family: var(--f-mono);
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}
.pv-card {
  height: 14px;
  background: var(--border-strong);
  border-radius: 2px;
}
.pv-card.on {
  background: var(--accent);
  box-shadow: 0 0 8px -2px var(--accent-glow);
}

/* ResortStrata: occupancy grid */
.pv-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 1fr;
  gap: 3px;
}
.pv-slot {
  background: var(--surface);
  border-radius: 2px;
  border: 1px solid var(--border);
}
.pv-slot.on {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px -3px var(--accent-glow);
}

/* CoorieControl: tiles */
.pv-body--dim {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}
.pv-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 7px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.pv-tile.on {
  background: var(--accent-soft);
  border-color: transparent;
}
.pv-kpi {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.pv-tile.on .pv-kpi { color: var(--accent); }

/* Utilhub: terminal */
.pv-body--mono {
  gap: 3px;
  font-family: var(--f-mono);
  font-size: 10px;
}
.pv-term {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 4px;
}
.pv-prompt {
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
}

.pv-cap {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}

.product__body {
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.product__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product__price {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.tag--saas {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: transparent;
}

.product__name {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.product__desc {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
  flex: 1;
}

.product__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding: 0.3rem 0;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--accent);
  align-self: flex-start;
  transition: color 0.2s var(--ease);
  border-bottom: 1px solid transparent;
}
.product__link svg { transition: transform 0.25s var(--ease); }
.product__link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}
.product__link:hover svg { transform: translate(2px, -2px); }

/* =================== APPROACH / PROCESS =================== */

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
}

@media (max-width: 1020px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

.step {
  padding: 1.5rem 1.4rem 1.6rem;
  border-right: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.step:last-child { border-right: none; }

@media (max-width: 1020px) {
  .step { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .step:nth-child(2n) { border-right: none; }
}
@media (max-width: 560px) {
  .step { border-right: none !important; }
  .step:last-child { border-bottom: none; }
}

.step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.step__num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--muted);
  letter-spacing: -0.02em;
}

.step__tag {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--subtle);
  padding: 0.15rem 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.step h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.step--emph {
  background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 100%);
}
.step--emph .step__num { color: var(--accent); }
.step--emph h3 { color: var(--accent); }

/* =================== ABOUT =================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

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

.about-body h2 {
  margin: 0 0 1rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
}

.about-body p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 38rem;
}

.about-body p:last-child { margin-bottom: 0; }

.about-card {
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-card h3 {
  margin: 0 0 1rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.about-card dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.about-card dl > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--border);
}

.about-card dl > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-card dt {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.about-card dd {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--text);
  text-align: right;
}

/* =================== CONTACT =================== */

.section--contact { padding-bottom: clamp(4rem, 7vw, 6rem); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

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

.contact-body h2 {
  margin: 0 0 0.75rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
}

.contact-body > p {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 30rem;
}

.contact-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-meta li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.contact-meta__label {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--subtle);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-meta li a,
.contact-meta li > span:not(.contact-meta__label) {
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: var(--text);
}

.contact-meta a { color: var(--accent); }
.contact-meta a:hover { color: var(--accent-hover); text-decoration: underline; }

.avail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.avail__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite var(--ease);
}

.contact-form {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.contact-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.form-hint {
  color: var(--subtle);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 400;
}

.contact-form input.form-input,
.contact-form textarea.form-input {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.9rem;
  font-family: var(--f-body);
  font-size: 0.96rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background 0.2s var(--ease);
}

.contact-form input.form-input:hover,
.contact-form textarea.form-input:hover {
  border-color: var(--border-strong);
}

.contact-form input.form-input:focus,
.contact-form textarea.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--bg);
}

.contact-form input.form-input::placeholder,
.contact-form textarea.form-input::placeholder {
  color: var(--subtle);
}

.contact-form textarea.form-textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.4rem;
}

.form-consent {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--subtle);
  max-width: 28ch;
  line-height: 1.5;
}

.form-status {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 1em;
}
.form-status:empty { display: none; }
.form-status--error { color: #f87171; }
.form-status--success { color: var(--accent); }

/* =================== FOOTER =================== */

.site-footer {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(2.5rem, 5vw, 4rem) var(--edge) 1.5rem;
  background: linear-gradient(180deg, transparent 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--border-soft);
}

.site-footer__top {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-soft);
}

@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 2rem; }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 22rem;
}

.site-footer__logo {
  height: 2.5rem;
}

.site-footer__brand p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 640px) {
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
}

.footer-col__head {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover { color: var(--accent); }

.site-footer__base {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--subtle);
}

.site-footer__base p { margin: 0; }

.site-footer__base ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.site-footer__base a {
  color: var(--subtle);
  transition: color 0.2s var(--ease);
}
.site-footer__base a:hover { color: var(--text); }

/* =================== Scroll-reveal progressive enhancement =================== */

@media (prefers-reduced-motion: no-preference) {
  .js .service-card,
  .js .product,
  .js .metric,
  .js .step {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  .js .service-card.in,
  .js .product.in,
  .js .metric.in,
  .js .step.in {
    opacity: 1;
    transform: none;
  }
  /* stagger */
  .js .service-card:nth-child(2),
  .js .product:nth-child(2),
  .js .metric:nth-child(2),
  .js .step:nth-child(2) { transition-delay: 50ms; }
  .js .service-card:nth-child(3),
  .js .product:nth-child(3),
  .js .metric:nth-child(3),
  .js .step:nth-child(3) { transition-delay: 100ms; }
  .js .service-card:nth-child(4),
  .js .product:nth-child(4),
  .js .metric:nth-child(4),
  .js .step:nth-child(4) { transition-delay: 150ms; }
  .js .service-card:nth-child(n+5),
  .js .product:nth-child(n+5),
  .js .step:nth-child(n+5) { transition-delay: 200ms; }
}
