/* =====================================================
   PIE OS Landing Styles (Single File)
   Sections:
   1) Design Tokens & Reset
   2) Base Elements & Utilities
   3) Navbar Component
   4) Hero Component
   ===================================================== */

/* 1) Design Tokens & Reset */
/* Self-hosted Manrope variable font */
@font-face {
  font-family: 'Manrope';
  src: url('../font/Manrope/Manrope-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  /* Brand */
  --color-primary: #1EB5A4;
  --color-primary-600: #199488;
  --color-secondary: #1a2327; /* navbar background on scroll */
  --secondary-700: #223037;
  --primary-rgb: 30 181 164;
  --text-light: #F4F5FA;
  --color-dark-text: #1f2a30; /* text on light sections */
  --color-dark-muted: #5f6d74;
  --dark-text-rgb: 31 42 48;
  --color-light-bg: #F7FAFB; /* light section background */
  --color-light-surface: #FFFFFF;
  --white: #ffffff;
  --white-rgb: 255 255 255;
  --black: #000000;
  --shadow-rgb: 0 0 0;
  --border-ghost-rgb: 233 238 240;
  --panel-dark: #0d1417;
  --frame-dark: #0f1417;
  --cta-grad-start: #18a99b;
  --primary-muted-1: #e1f2f0;
  --primary-muted-2: #eaf6f5;
  --footer-link: #e6eef0;
  --footer-muted: #cfd8dc;
  --ink-deep: #0a1a18;
  --user-dark: #2f3a40;
  --text-light-rgb: 233 238 240;

  /* Sizing */
  --nav-h: 64px;

  /* Surfaces & Text */
  --color-bg: #10171A;
  --color-surface: #1c2428;
  --color-text: #E9EEF0;
  --color-text-muted: #B8C2C6;
  --overlay-700: rgba(16, 23, 26, 0.55);
  --overlay-800: rgba(16, 23, 26, 0.7);

  /* Z-index */
  --z-navbar: 1000;
  --z-hero-overlay: 1;
  --z-hero-content: 2;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--color-text); background: var(--color-bg); }
img, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

/* 2) Base Elements & Utilities */
.accent { color: var(--color-primary); }
h1 { font-weight: 800; line-height: 1.1; font-size: clamp(2rem, 4vw + 1rem, 3.25rem); margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; color: var(--color-text-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.65rem 1.1rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; letter-spacing: 0.2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  will-change: transform;
}
.btn--primary { background: var(--color-primary); color: var(--white); }
.btn--primary:hover { background: var(--color-primary-600); color: var(--color-secondary); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--color-text); border-color: rgb(var(--border-ghost-rgb) / 0.2); }
.btn--ghost:hover { border-color: rgb(var(--border-ghost-rgb) / 0.35); transform: translateY(-1px); }

/* Button variant: white background with secondary text */
.btn--white-secondary { background: var(--white); color: var(--color-secondary); border: 1px solid rgb(var(--shadow-rgb) / 0.12); }
.btn--white-secondary:hover { background: var(--white); border-color: rgb(var(--shadow-rgb) / 0.2); box-shadow: 0 6px 16px rgb(var(--shadow-rgb) / 0.08); transform: translateY(-1px); }

/* Button variant: secondary background + white text */
.btn--secondary { background: var(--color-secondary); color: var(--white); border: 1px solid rgb(var(--white-rgb) / 0.08); }
.btn--secondary:hover { background: var(--secondary-700); color: var(--white); transform: translateY(-1px); }

/* Utilities */
.text-center { text-align: center; }
.py-section { padding-block: clamp(2rem, 6vw, 5rem); }

/* 3) Navbar Component */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-navbar);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.navbar--scrolled { background: var(--color-secondary); border-bottom-color: rgb(var(--white-rgb) / 0.06); box-shadow: 0 6px 20px rgb(var(--shadow-rgb) / 0.2); }

.nav-row { display: flex; align-items: center; min-height: var(--nav-h); gap: 12px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; height: 48px; }
.brand__icon { height: 28px; width: 28px; color: var(--color-primary); }
.brand__text { font-weight: 800; letter-spacing: 0.2px; color: var(--color-text); white-space: nowrap; }
.nav-center { position: absolute; left: 50%; transform: translateX(-50%); pointer-events: none; }
.slogan { font-weight: 800; color: var(--color-text); letter-spacing: 0.2px; }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-left: auto; }
.language-switch { display: inline-flex; align-items: center; gap: 0.35rem; flex: 0 0 auto; margin-left: 0.65rem; color: rgb(var(--white-rgb) / 0.62); font-size: 0.82rem; font-weight: 500; white-space: nowrap; }
.language-switch a { color: inherit; text-decoration: none; }
.language-switch a:hover, .language-switch a:focus-visible { color: var(--white); }
.language-switch a[aria-current="page"] { color: var(--white); font-weight: 800; }

@media (max-width: 1199px) { .nav-center { display: none; } }

@media (max-width: 767px) {
  .nav-row { gap: 8px; }
  .brand { gap: 6px; }
  .nav-mobile-cta { display: inline-flex; margin-left: auto; padding: 0.55rem 0.75rem; font-size: 0.85rem; }
  .language-switch { margin-left: 0; }
}
@media (min-width: 768px) { .nav-mobile-cta { display: none; } }

/* 4) Hero Component */
/* Make hero height account for fixed navbar so content is visually centered */
.hero { position: relative; min-height: calc(100svh - var(--nav-h)); padding-top: var(--nav-h); display: grid; align-items: center; color: var(--color-text); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: 0; background-image: url('../img/background.png'); background-position: center; background-size: cover; filter: brightness(0.55) saturate(0.95); }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,35,39,0.85) 0%, rgba(26,35,39,0.55) 35%, rgba(26,35,39,0.6) 100%); z-index: var(--z-hero-overlay); }
.hero__content { position: relative; z-index: var(--z-hero-content); padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: clamp(2rem, 6vw, 5rem); }
.hero__title { max-width: 22ch; margin-inline: auto; }
.hero__subtitle { max-width: 72ch; margin-inline: auto; font-size: clamp(1rem, 0.5vw + 0.95rem, 1.125rem); }
.hero__actions { margin-top: 1.25rem; }
.hero__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.hero__trust li { padding: 7px 12px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 999px; background: rgba(26, 35, 39, 0.42); color: var(--white); font-size: 0.82rem; font-weight: 700; line-height: 1.3; }
.hero__scroll { display: inline-flex; margin-top: 1.5rem; color: var(--color-primary); opacity: 0.95; transition: transform 0.2s ease, opacity 0.2s ease; animation: heroScrollFloat 2.2s ease-in-out infinite; }
.hero__scroll:hover, .hero__scroll:focus-visible { opacity: 1; transform: translateY(2px) scale(1.05); }

@keyframes heroScrollFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* First-load wow effect */
@keyframes heroRevealBg {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes heroRevealOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes heroRevealUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .hero__bg { animation: heroRevealBg 900ms ease-out both; }
.hero .hero__overlay { animation: heroRevealOverlay 900ms ease-out 80ms both; }
.hero .hero__content > * { opacity: 0; animation: heroRevealUp 700ms ease-out forwards; }
.hero .hero__content > *:nth-child(1) { animation-delay: 140ms; }
.hero .hero__content > *:nth-child(2) { animation-delay: 260ms; }
.hero .hero__content > *:nth-child(3) { animation-delay: 380ms; }
.hero .hero__content > *:nth-child(4) { animation-delay: 500ms; }
.hero .hero__content > *:nth-child(5) { animation-delay: 620ms; }

/* Anchor offset for fixed navbar */
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* Larger screens: visually center hero content, remove nav offset */
@media (min-width: 992px) {
  .hero__content { padding-top: clamp(0.5rem, 1.5vw, 1.5rem); }
}

/* 5) Challenges Section */

.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section--light {
  /* soft light base + subtle primary-tinted glow on the edge */
  background:
    radial-gradient(600px 420px at 2% 12%, rgba(30,181,164,0.18) 0%, rgba(30,181,164,0.08) 32%, rgba(30,181,164,0) 65%),
    radial-gradient(700px 520px at 98% 92%, rgba(30,181,164,0.14) 0%, rgba(30,181,164,0.05) 28%, rgba(30,181,164,0) 60%),
    linear-gradient(180deg, var(--color-light-bg) 0%, var(--color-light-surface) 60%);
}
.section--light .section__title { color: var(--color-dark-text); }
.section--light .section__subtitle { color: var(--color-dark-muted); }
.section__title { font-weight: 800; text-align: center; margin-bottom: 0.5rem; }
.section__subtitle { text-align: center; max-width: 70ch; margin: 0 auto 2rem; color: var(--color-text-muted); }

.challenge-card { position: relative; display:flex; border-radius: 14px; background: var(--color-light-surface); color: var(--color-dark-text); padding: 1.1rem; box-shadow: 0 10px 24px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.06); }
.challenge-card__content { flex:1; display:flex; flex-direction:column; justify-content:flex-start; background-color: rgba(30,181,164,0.08); border-radius: 10px; padding: 1rem; min-height: 180px; }
.challenge-card__icon { display: inline-flex; align-items: center; justify-content: center; height: 36px; width: 36px; border-radius: 50%; color: var(--color-primary-600); background: rgba(30,181,164,0.15); margin-bottom: 0.5rem; }
.challenge-card__title { font-weight: 700; margin-bottom: 0.25rem; }
.challenge-card__text { color: var(--color-dark-muted); font-size: 0.98rem; }
.challenge-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.12); transition: transform 0.2s ease, box-shadow 0.2s ease; }

/* 6) Demo Section */
.demo { background:
    /* mirror the challenges shine: top-right + bottom-left */
    radial-gradient(700px 520px at 96% 14%, rgba(30,181,164,0.16) 0%, rgba(30,181,164,0.06) 30%, rgba(30,181,164,0) 60%),
    radial-gradient(700px 520px at 6% 90%, rgba(30,181,164,0.14) 0%, rgba(30,181,164,0.05) 28%, rgba(30,181,164,0) 60%),
    linear-gradient(180deg, var(--color-light-surface) 0%, var(--color-light-bg) 100%);
  color: var(--color-dark-text);
}
.demo__title { text-align:center; color: var(--color-dark-text); font-weight: 800; margin-bottom: clamp(1.25rem, 2.5vw, 2.25rem); }
.demo__videoFrame { position: relative; max-width: 860px; margin: clamp(1.5rem, 4vw, 2.5rem) auto clamp(2.25rem, 5vw, 3.75rem); border-radius: 16px; background: #0f1417; padding: 10px; box-shadow: 0 14px 30px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.06); }
.demo__video { width: 100%; border-radius: 12px; display:block; }
.demo__benefits { max-width: 1100px; margin: clamp(2.25rem, 4vw, 3rem) auto 0; }
.benefit { text-align:center; }
.benefit { text-align:center; transition: transform 0.2s ease, filter 0.2s ease; will-change: transform; }
.benefit:focus-within, .benefit:hover { transform: translateY(-4px); }
.benefit__icon { width: 48px; height: 48px; margin: 0 auto 0.6rem; display:grid; place-items:center; border-radius: 12px; background: var(--color-light-surface); box-shadow: 0 8px 18px rgba(0,0,0,0.08); color: var(--color-primary-600); transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease; }
.benefit:hover .benefit__icon, .benefit:focus-within .benefit__icon { transform: scale(1.05); background: var(--color-primary); color: #ffffff; box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.benefit__title { font-weight: 700; margin-bottom: 0.25rem; color: var(--color-dark-text); }
.benefit__text { color: var(--color-dark-muted); font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  .benefit, .benefit__icon { transition: none; }
}

/* 7) Ecosystem Section */
.ecosystem {
  background:
    radial-gradient(900px 600px at 4% 10%, rgba(30,181,164,0.16) 0%, rgba(30,181,164,0.06) 28%, rgba(30,181,164,0) 60%),
    radial-gradient(900px 600px at 98% 92%, rgba(30,181,164,0.12) 0%, rgba(30,181,164,0.05) 25%, rgba(30,181,164,0) 55%),
    linear-gradient(180deg, #11171b 0%, #1b2428 100%);
  color: var(--color-text);
}
.ecosystem__panel {
  position: relative; border-radius: 16px; background: rgba(0,0,0,0.25); backdrop-filter: blur(2px);
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 18px 40px rgb(var(--shadow-rgb) / 0.35), 0 2px 8px rgb(var(--shadow-rgb) / 0.2);
}
.ecosystem__imgWrap { position: relative; width: clamp(260px, 44vw, 520px); margin-inline: auto; /* tweak center offset if needed */ --eco-center-x: 0px; --eco-center-y: -10px; }
.ecosystem__img { width: 100%; height: auto; display: block; border-radius: 12px; }
.ecosystem__center { position: absolute; top: calc(50% + var(--eco-center-y)); left: calc(50% + var(--eco-center-x)); transform: translate(-50%, -50%); height: 70px; width: 70px; border-radius: 14px; background: var(--panel-dark); color: var(--color-primary); display: grid; place-items: center; box-shadow: 0 12px 28px rgb(var(--shadow-rgb) / 0.35), inset 0 0 0 2px rgb(var(--white-rgb) / 0.06); transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.ecosystem__centerIcon { width: 38px; height: 38px; display:block; }
.ecosystem__center:hover { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 16px 36px rgb(var(--shadow-rgb) / 0.4), 0 0 0 4px rgb(var(--primary-rgb) / 0.2) inset; }
.ecosystem__label { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; color: var(--ink-deep); background: var(--color-primary); box-shadow: 0 6px 16px rgb(var(--shadow-rgb) / 0.25); white-space: nowrap; animation: ecoFloat 4.2s ease-in-out infinite; }
@keyframes ecoFloat { 0%,100%{ transform: translateY(0); } 50% { transform: translateY(-4px); } }
.ecosystem__label--topLeft { animation-delay: 0s; }
.ecosystem__label--topRight { animation-delay: 0.6s; }
.ecosystem__label--bottomLeft { animation-delay: 1.2s; }
.ecosystem__label--bottomRight { animation-delay: 1.8s; }
.ecosystem__label .material-icons { font-size: 18px; }
.ecosystem__label--topLeft { top: -10px; left: -6px; }
.ecosystem__label--topRight { top: -10px; right: -6px; }
.ecosystem__label--bottomLeft { bottom: -10px; left: -6px; }
.ecosystem__label--bottomRight { bottom: -10px; right: -6px; }

.ecosystem__title { font-weight: 800; color: var(--color-primary); margin-bottom: 0.5rem; }
.ecosystem__subtitle { color: var(--color-text); font-weight: 700; }
.ecosystem__body { color: rgb(var(--text-light-rgb) / 0.9); }

.ecosystem__col { display: flex; align-items: center; }
.ecosystem__content { padding: clamp(0.5rem, 2vw, 1rem); }

@media (max-width: 991px) {
  .ecosystem__label { transform: scale(0.9); }
}

@media (min-width: 992px) {
  .ecosystem__center { height: 84px; width: 84px; }
  .ecosystem__centerIcon { width: 44px; height: 44px; }
}

/* 8) Stakeholders Section */
.stakeholders { background:
  linear-gradient(180deg, var(--color-light-bg) 0%, var(--color-light-surface) 65%);
  color: var(--color-dark-text);
}
.stakeholders__title { text-align:center; font-weight: 800; color: var(--color-dark-text); }
.stakeholders__subtitle { text-align:center; color: var(--color-dark-muted); max-width: 72ch; margin: 0 auto 2rem; }
.stake-col { display: flex; flex-direction: column; gap: 0.9rem; }
.stake-header { align-self: stretch; padding: 0.55rem 1rem; border-radius: 10px; font-weight: 800; color: var(--white); text-align: center; box-shadow: 0 8px 18px rgb(var(--shadow-rgb) / 0.1); }
.stake-header--user { background: var(--user-dark); }
.stake-header--engineer { background: var(--color-primary-600); }
.stake-header--org { background: var(--color-primary); }
.stake-card { border: 1px solid rgb(var(--shadow-rgb) / 0.08); background: var(--white); border-radius: 10px; padding: 0.85rem 0.9rem; box-shadow: 0 6px 14px rgb(var(--shadow-rgb) / 0.06); display: flex; gap: 0.75rem; align-items: flex-start; }
.stake-card__icon { flex: 0 0 40px; height: 40px; display:grid; place-items:center; border-radius: 10px; background: rgba(30,181,164,0.12); color: var(--color-primary-600); }
.stake-card__title { font-weight: 700; margin: 0 0 0.15rem; color: var(--color-dark-text); }
.stake-card__text { margin: 0; color: var(--color-dark-muted); font-size: 0.95rem; }
.stake-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgb(var(--shadow-rgb) / 0.08); transition: transform 0.2s ease, box-shadow 0.2s ease; }

/* 9) Results Section */
.results { 
  background:
    radial-gradient(700px 520px at 6% 14%, rgba(30,181,164,0.12) 0%, rgba(30,181,164,0.04) 35%, rgba(30,181,164,0) 65%),
    radial-gradient(700px 520px at 96% 92%, rgba(30,181,164,0.12) 0%, rgba(30,181,164,0.04) 35%, rgba(30,181,164,0) 65%),
    linear-gradient(180deg, var(--color-light-surface) 0%, var(--color-light-bg) 100%);
  color: var(--color-dark-text);
}
.results__title { text-align: center; font-weight: 800; color: var(--color-dark-text); margin-bottom: 1.25rem; }
.results__subtitle { text-align: center; color: var(--color-dark-muted); max-width: 72ch; margin: 0 auto 2rem; }
.stat { text-align: center; position: relative; padding-top: 2rem; }
/* Floating primary icon badge centered above each card (consistent) */
.stat__icon { 
  position: absolute; top: -16px; left: 50%; transform: translate(-50%, 0);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-primary); color: var(--white); box-shadow: 0 10px 22px rgb(var(--shadow-rgb) / 0.12);
  animation: statFloat 3.8s ease-in-out infinite;
}

@keyframes statFloat { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -4px); } }

.stat__card { background: var(--white); border: 1px solid rgb(var(--primary-rgb) / 0.25); border-radius: 16px; padding: 1.35rem 1rem; box-shadow: 0 12px 26px rgb(var(--shadow-rgb) / 0.06); margin-bottom: 0.75rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.stat__card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgb(var(--shadow-rgb) / 0.1); }
.stat__value { font-weight: 800; font-size: clamp(1.6rem, 3.3vw, 2.3rem); color: var(--color-dark-text); }
.stat__title { font-weight: 700; margin-top: 0.25rem; color: var(--color-dark-text); }
.stat__text { color: var(--color-dark-muted); font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  .stat__icon, .stat__card { animation: none; transition: none; }
}

/* Results: testimonial + trust strip */
.results__testimonial { max-width: 920px; margin: 2.25rem auto 0; background: var(--white); border: 1px solid rgb(var(--primary-rgb) / 0.2); border-radius: 14px; padding: 1rem 1.25rem; box-shadow: 0 8px 18px rgb(var(--shadow-rgb) / 0.06); }
.results__quote { margin: 0; font-size: 1rem; color: var(--color-dark-text); }
.results__quote em { color: var(--color-dark-muted); }
.results__cite { display: block; margin-top: 0.35rem; color: var(--color-dark-muted); font-size: 0.92rem; }
.trust { max-width: 900px; margin: 1.75rem auto 0; text-align: center; }
.trust__label { color: var(--color-dark-muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.trust__brands { display: inline-flex; gap: 1.5rem; color: rgb(var(--dark-text-rgb) / 0.65); font-weight: 700; letter-spacing: 0.2px; }
.trust__brands span { white-space: nowrap; }

/* 10) Final CTA / Calendly */
.cta { 
  background:
    radial-gradient(900px 600px at 8% 8%, rgb(var(--primary-rgb) / 0.25) 0%, rgb(var(--primary-rgb) / 0.10) 35%, rgb(var(--primary-rgb) / 0) 65%),
    radial-gradient(900px 600px at 96% 90%, rgb(var(--primary-rgb) / 0.18) 0%, rgb(var(--primary-rgb) / 0.08) 30%, rgb(var(--primary-rgb) / 0) 60%),
    linear-gradient(180deg, var(--cta-grad-start) 0%, var(--color-primary) 100%);
  color: var(--primary-muted-2);
}
.cta__title { text-align:center; font-weight: 800; color: var(--white); margin-bottom: 0.75rem; }
.cta__subtitle { text-align:center; color: var(--primary-muted-1); max-width: 70ch; margin: 0 auto 1.25rem; }
.cta__actions { display:flex; gap: 0.75rem; justify-content:center; margin-bottom: 0.5rem; }
.btn--outline-light { background: transparent; color: var(--white); border: 1.5px solid rgb(var(--white-rgb) / 0.85); }
.btn--outline-light:hover { background: rgb(var(--white-rgb) / 0.1); }
.cta__scheduler { max-width: 1040px; margin: 1.5rem auto 0; background: rgb(var(--white-rgb) / 0.95); border-radius: 14px; box-shadow: 0 16px 36px rgb(var(--shadow-rgb) / 0.18); padding: 0.25rem; }
.cta__scheduler .calendly-inline-widget { min-height: 660px; }

/* 11) Footer */
.site-footer { background: var(--color-secondary); color: var(--text-light); padding: 1.25rem 0; }
.site-footer__row { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.footer-brand__icon { height: 22px; width: 22px; color: var(--color-primary); }
.footer-brand__text { font-weight: 800; letter-spacing: 0.2px; }
.footer-links { display: inline-flex; gap: 1rem; justify-content: center; }
.footer-link { color: var(--footer-link); text-decoration: none; }
.footer-link:hover { text-decoration: underline; color: var(--white); }
.footer-copy { color: var(--footer-muted); font-size: 0.95rem; text-align: center; grid-column: 1 / -1; }
.footer-locality { margin-left: 0.2rem; opacity: 0.7; font-size: 0.88rem; }

@media (min-width: 768px) {
  .site-footer__row { grid-template-columns: auto 1fr auto; }
  .footer-links { justify-content: flex-end; }
}

/* 12) Legal page styles */
.legal { color: var(--color-dark-text); }
.legal a:not(.btn--primary) { color: var(--color-primary); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal .card { background: var(--white); border: 1px solid rgb(var(--shadow-rgb) / 0.08); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgb(var(--white-rgb) / 0.75);
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--white);
  background: rgb(var(--white-rgb) / 0.09);
}

/* 13) Reveal animations */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 500ms ease, transform 500ms ease; will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Stakeholder column accents */
.stake-col--user .stake-card { border-color: rgb(47 58 64 / 0.35); }
.stake-col--user .stake-card__icon { background: rgb(47 58 64 / 0.12); color: var(--user-dark); }

.stake-col--engineer .stake-card { border-color: rgb(25 148 136 / 0.35); }
.stake-col--engineer .stake-card__icon { background: rgb(25 148 136 / 0.12); color: var(--color-primary-600); }

.stake-col--org .stake-card { border-color: rgb(var(--primary-rgb) / 0.35); }
.stake-col--org .stake-card__icon { background: rgb(var(--primary-rgb) / 0.12); color: var(--color-primary); }

/* 14) Pricing Section */
.pricing {
  background:
    radial-gradient(700px 500px at 4% 10%, rgba(30,181,164,0.10) 0%, rgba(30,181,164,0.04) 35%, rgba(30,181,164,0) 65%),
    radial-gradient(700px 500px at 96% 90%, rgba(30,181,164,0.10) 0%, rgba(30,181,164,0.04) 35%, rgba(30,181,164,0) 65%),
    linear-gradient(180deg, var(--color-light-bg) 0%, var(--color-light-surface) 60%, var(--color-light-bg) 100%);
  color: var(--color-dark-text);
}
.pricing-heading {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}
.pricing-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-dark-text);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(30, 181, 164, 0.10);
  color: var(--color-primary-600);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 0 5px rgba(30, 181, 164, 0.12);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
}
.addon-grid {
  max-width: 1080px;
  margin: 2.5rem auto 0;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(38, 50, 56, 0.09);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(38, 50, 56, 0.08);
  position: relative;
}
.pricing-card.addon-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
  padding: 24px;
}
.addon-copy, .addon-features, .addon-action { min-width: 0; }
.addon-copy .pricing-badge { margin-bottom: 12px; }
.addon-features { padding-top: 32px; }
.addon-card .pricing-feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 14px; }
.addon-action { grid-column: 1 / -1; justify-self: end; }
.addon-card .pricing-cta { width: auto; min-width: 170px; margin-top: 0; white-space: nowrap; }
.pricing-card.starter {
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(244,246,248,0.96) 100%);
  box-shadow: 0 10px 22px rgba(38, 50, 56, 0.05);
}
.pricing-card.popular {
  background: linear-gradient(180deg, rgba(35, 46, 50, 0.99) 0%, rgba(39, 52, 58, 0.98) 100%);
  border-color: rgba(30, 181, 164, 0.22);
  box-shadow: 0 18px 40px rgba(26, 35, 39, 0.18);
  transform: translateY(-6px) scale(1.01);
}
.pricing-card.popular::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(30, 181, 164, 0.28), rgba(30, 181, 164, 0.06));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.pricing-card.popular,
.pricing-card.popular .plan-kicker,
.pricing-card.popular .plan-desc,
.pricing-card.popular .price-sub,
.pricing-card.popular .pricing-feature-list li,
.pricing-card.popular .pricing-chip,
.pricing-card.popular .limit-note { color: rgba(255, 255, 255, 0.88); }
.pricing-badge {
  align-self: flex-start;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(30, 181, 164, 0.12);
  color: var(--color-primary-600);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}
.pricing-card.popular .pricing-badge { background: rgba(30, 181, 164, 0.16); color: #9ff9ee; }
.plan-name {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-dark-text);
}
.pricing-card.popular .plan-name { color: var(--white); }
.pricing-card.starter .plan-name, .pricing-card.enterprise .plan-name { margin-top: 34px; }
.addon-title-row { display: flex; align-items: flex-start; gap: 8px; }
.addon-title-row .plan-name { font-size: 1.2rem; }
.addon-sparkles { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; color: var(--color-primary-600); opacity: 0.7; }
.plan-kicker { margin: 5px 0 0; font-size: 0.82rem; color: rgba(38, 50, 56, 0.62); }
.plan-desc { margin: 12px 0 0; font-size: 0.9rem; line-height: 1.45; color: rgba(38, 50, 56, 0.80); min-height: 40px; }
.price-box {
  margin: 16px 0 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(38, 50, 56, 0.08);
  border-bottom: 1px solid rgba(38, 50, 56, 0.08);
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pricing-card.popular .price-box { border-color: rgba(255, 255, 255, 0.10); }
.price {
  margin: 0;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  font-size: 2.15rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--color-dark-text);
}
.price span { margin-bottom: 5px; font-size: 0.86rem; font-weight: 600; color: rgba(38, 50, 56, 0.60); }
.pricing-card.popular .price { color: var(--white); }
.pricing-card.popular .price span { color: rgba(255, 255, 255, 0.70); }
.price-sub { margin: 7px 0 0; font-size: 0.83rem; line-height: 1.4; color: var(--color-dark-muted); }
.pricing-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.pricing-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  line-height: 1.38;
  color: rgba(38, 50, 56, 0.90);
}
.pricing-feature-list li::before {
  content: "\2713";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(30, 181, 164, 0.10);
  color: var(--color-primary-600);
  font-size: 0.68rem;
  font-weight: 900;
  margin-top: 1px;
}
.addon-card .pricing-feature-list li::before {
  content: "\2726";
  background: rgba(30, 181, 164, 0.08);
  width: 16px;
  height: 16px;
  font-size: 0.62rem;
  opacity: 0.8;
}
.pricing-card.popular .pricing-feature-list li::before { background: rgba(30, 181, 164, 0.16); color: #8ef6ea; }
.pricing-card.popular .pricing-feature-list li.feature-soon::before { content: "\2726"; background: none; color: #8ef6ea; font-size: 1rem; }
.limit-note { margin: 12px 0 0; font-size: 0.82rem; line-height: 1.4; color: var(--color-dark-muted); }
.limit-note { color: rgba(38, 50, 56, 0.62); }
.bottom-row { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; min-height: 30px; align-content: flex-start; padding-top: 18px; }
.pricing-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(38, 50, 56, 0.05);
  color: rgba(38, 50, 56, 0.70);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-card.popular .pricing-chip { background: rgba(255, 255, 255, 0.08); }
.pricing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--color-dark-text);
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, background 180ms ease;
}
.pricing-cta:hover { background: #1d272b; transform: translateY(-1px); color: var(--white); }
.pricing-card.popular .pricing-cta { background: var(--color-primary); box-shadow: 0 12px 24px rgba(30, 181, 164, 0.20); }
.pricing-card.popular .pricing-cta:hover { background: var(--color-primary-600); }
.pricing-card.addon-card {
  border-color: rgba(30, 181, 164, 0.22);
  background: rgba(30, 181, 164, 0.03);
}

@media (max-width: 1100px) {
  .pricing-grid { gap: 12px; }
  .pricing-card { padding: 18px; }
  .pricing-card.addon-card { grid-template-columns: 1fr; align-items: stretch; }
  .addon-features { padding-top: 0; }
  .addon-card .pricing-cta { width: 100%; margin-top: 0; }
  .plan-desc { min-height: 0; }
}
@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .pricing-card.popular { transform: none; }
  .addon-card .pricing-feature-list { grid-template-columns: 1fr; }
}
