/* PRYVEN AI — site styles */

:root {
  --bg: #0a0d0c;
  --bg-raised: #0e1311;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f3f4f1;
  --muted: #c3c9c4;
  --green: #93d987;
  --green-btn: #9fe08f;
  --green-btn-hover: #b4eba6;
  --green-ink: #0c1a0d;
  --cream: #f8f5ef;
  --cream-ink: #121513;
  --cream-muted: #4d5452;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.icon-sprite {
  display: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.accent {
  color: var(--green);
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--green {
  color: var(--green);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 0.95em 1.6em;
  border: 1.5px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.btn--primary {
  background: var(--green-btn);
  color: var(--green-ink);
}

.btn--primary:hover {
  background: var(--green-btn-hover);
}

.btn--primary:disabled,
.btn--primary:disabled:hover {
  background: var(--green-btn);
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--outline {
  border-color: var(--text);
  color: var(--text);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn--outline-green {
  border-color: var(--green);
  color: var(--green);
  padding: 0.7em 1.3em;
  font-size: 0.95rem;
}

.btn--outline-green:hover {
  background: rgba(147, 217, 135, 0.12);
}

.btn:focus-visible,
.nav a:focus-visible,
.nav-toggle:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

/* The header deliberately has no z-index: that keeps it out of its own
   stacking context so the logo's lighten blend reaches the hero photo. */
.site-header {
  position: relative;
}

/* Home: header floats over the hero photo. Positioned elements paint above
   the (unpositioned) hero, so no z-index is needed. */
.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.site-header--overlay .nav__link {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

.site-header--overlay .btn--outline-green {
  background: rgba(7, 9, 8, 0.55);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: block;
  flex: none;
  /* The supplied logo has generous black padding; negative margins
     line the wordmark up with the content edge without cropping the file. */
  margin: -22px -30px -22px -30px;
}

.logo img {
  width: 350px;
  height: auto;
  mix-blend-mode: lighten;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__link {
  position: relative;
  padding: 6px 0;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.18s ease;
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 100%;
  height: 100%;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-open .nav-toggle .icon-open {
  display: none;
}

.nav-open .nav-toggle .icon-close {
  display: block;
}

/* ---------- Home: hero ---------- */

.home-top {
  background:
    linear-gradient(180deg, rgba(7, 9, 8, 0.78) 0px, rgba(7, 9, 8, 0.45) 90px, rgba(7, 9, 8, 0) 200px),
    linear-gradient(90deg, rgba(7, 9, 8, 0.9) 0%, rgba(7, 9, 8, 0.72) 32%, rgba(7, 9, 8, 0.12) 62%, rgba(7, 9, 8, 0) 100%),
    linear-gradient(0deg, rgba(7, 9, 8, 0.55) 0%, rgba(7, 9, 8, 0) 28%),
    url("../assets/hero-terrain.png") 72% center / cover no-repeat,
    var(--bg);
}

.hero {
  display: flex;
  align-items: center;
  min-height: clamp(700px, 100vh, 960px);
  padding-top: 150px;
  padding-bottom: 72px;
}

.hero__content {
  max-width: 640px;
}

.hero__eyebrow {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 28px;
  font-size: 0.86rem;
  line-height: 1.7;
}

.hero__eyebrow::after {
  content: "";
  width: 46px;
  height: 1px;
  margin-bottom: 0.7em;
  background: var(--green);
}

.hero__title {
  font-size: clamp(2.9rem, 6.6vw, 5.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero__lead {
  max-width: 34ch;
  margin-top: 28px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
}

.hero__cta {
  margin-top: 40px;
}

/* ---------- Home: intro band ---------- */

.intro {
  background: var(--cream);
  color: var(--cream-ink);
  text-align: center;
  padding: clamp(56px, 7vw, 88px) 0;
}

.intro__title {
  margin-top: 18px;
  font-size: clamp(2rem, 4.3vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.intro__text {
  max-width: 46ch;
  margin: 22px auto 0;
  color: var(--cream-muted);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}

/* ---------- Feature columns (home + case study) ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.features--four {
  grid-template-columns: repeat(4, 1fr);
}

.feature {
  padding: 8px 28px;
}

.feature + .feature {
  border-left: 1px solid var(--line);
}

.feature__icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  color: var(--text);
}

.feature__title {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.feature__text {
  max-width: 24ch;
  margin: 6px auto 0;
  color: var(--muted);
}

.pillars {
  background: var(--bg-raised);
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- Home: founder ---------- */

.founder {
  display: grid;
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  border-bottom: 1px solid var(--line);
}

.founder__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #d9dad8;
}

.founder__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.founder__body {
  padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(40px, 5vw, 72px) clamp(28px, 4vw, 64px);
  max-width: 660px;
  align-self: center;
}

.founder__name {
  margin-top: 6px;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
}

.creds {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.cred {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 10px 0;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.45;
}

.cred svg {
  flex: none;
  width: 34px;
  height: 34px;
}

.cred--lead {
  padding-bottom: 22px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Home: quote ---------- */

.quote {
  padding: 40px 0 44px;
}

.quote__inner {
  display: flex;
  gap: 24px;
  max-width: 1080px;
}

.quote__mark {
  flex: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 0.9;
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  font-style: italic;
  line-height: 1.6;
}

.quote figcaption {
  margin-top: 8px;
  text-align: right;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

/* ---------- Case study ---------- */

.cs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.cs-hero__divider {
  width: 1px;
  background: var(--line);
}

.cs-hero__title {
  margin-top: 18px;
  font-size: clamp(2.7rem, 5.6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.cs-hero__lead {
  max-width: 30ch;
  margin-top: 28px;
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.5;
}

.cs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}

.cs-hero__actions .btn {
  min-width: 220px;
  font-size: 1.15rem;
}

.compare__block + .compare__block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.compare__label {
  color: var(--green);
  font-size: 0.98rem;
  font-weight: 500;
  text-transform: uppercase;
}

.compare__figure {
  margin-top: 10px;
  font-size: clamp(2.3rem, 3.8vw, 3.1rem);
  font-weight: 500;
  line-height: 1.15;
}

.compare__sub {
  margin-top: 8px;
  font-size: 1.32rem;
}

.compare__detail {
  margin-top: 14px;
  font-size: 1.12rem;
  line-height: 1.5;
}

.shots {
  padding: 0 8px;
}

.shots__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 1600px;
  margin: 0 auto;
}

.shots__grid img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.shots__caption {
  margin-top: 14px;
  text-align: center;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.shots__caption em {
  font-style: normal;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.included {
  padding: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 72px);
}

.included .eyebrow {
  margin-bottom: 26px;
  font-size: 1rem;
}

.included .feature__icon {
  width: 60px;
  height: 60px;
}

.point {
  background:
    linear-gradient(90deg, rgba(7, 10, 9, 0.75) 0%, rgba(7, 10, 9, 0.35) 45%, rgba(7, 10, 9, 0) 70%),
    url("../assets/globe.png") right center / cover no-repeat,
    var(--bg);
  padding: clamp(56px, 7vw, 96px) 0;
}

.point__title {
  margin-top: 14px;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.point__text {
  max-width: 36ch;
  margin-top: 18px;
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.5;
}

.point .btn {
  margin-top: 30px;
  font-size: 1.1rem;
}

/* ---------- Contact ---------- */

.contact {
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 112px);
}

.contact__title {
  margin-top: 14px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 760px;
  margin-top: 40px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__field--full {
  grid-column: 1 / -1;
}

.form label {
  font-size: 0.95rem;
  color: var(--muted);
}

.form input,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-raised);
  color: var(--text);
  font: inherit;
}

.form textarea {
  min-height: 180px;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form__honey {
  position: absolute;
  left: -9999px;
}

.form__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.form__status {
  color: var(--muted);
}

.form__status[data-state="ok"] {
  color: var(--green);
}

.form__status[data-state="error"] {
  color: #f0a39b;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .features--four {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .features--four .feature:nth-child(3) {
    border-left: 0;
  }

  .cs-hero {
    grid-template-columns: 1fr;
  }

  .cs-hero__divider {
    width: auto;
    height: 1px;
  }
}

@media (max-width: 860px) {
  .br-desktop {
    display: none;
  }

  .logo {
    margin: -14px -19px;
  }

  .logo img {
    width: 230px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    z-index: 20;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  }

  .nav-open .nav {
    display: flex;
  }

  .nav__link {
    padding: 12px;
  }

  .nav__link::after {
    left: 12px;
    right: auto;
    width: 32px;
    bottom: 6px;
  }

  .nav .btn {
    margin-top: 6px;
  }

  .home-top {
    background:
      linear-gradient(180deg, rgba(7, 9, 8, 0.55) 0%, rgba(7, 9, 8, 0.78) 45%, rgba(7, 9, 8, 0.92) 100%),
      url("../assets/hero-terrain.png") 78% center / cover no-repeat,
      var(--bg);
  }

  .hero {
    min-height: 0;
    padding-top: 130px;
    padding-bottom: 64px;
  }

  .features {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }

  .features--four {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature + .feature {
    border-left: 0;
  }

  .pillars .feature + .feature {
    padding-top: 36px;
    border-top: 1px solid var(--line);
  }

  .founder {
    grid-template-columns: 1fr;
  }

  .founder__photo {
    aspect-ratio: 4 / 5;
  }

  .founder__body {
    padding: 40px var(--gutter);
  }

  .quote__mark {
    font-size: 3rem;
  }

  .shots__grid {
    grid-template-columns: 1fr;
  }

  .point {
    background:
      linear-gradient(180deg, rgba(7, 10, 9, 0.85) 0%, rgba(7, 10, 9, 0.6) 60%, rgba(7, 10, 9, 0.35) 100%),
      url("../assets/globe.png") 70% center / cover no-repeat,
      var(--bg);
  }

  .form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .features--four {
    grid-template-columns: 1fr;
  }

  .features--four .feature + .feature {
    padding-top: 36px;
    border-top: 1px solid var(--line);
  }

  .cs-hero__actions .btn,
  .hero__cta,
  .point .btn {
    width: 100%;
  }

  .quote__inner {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
