/* ---------- Design tokens ---------- */
:root {
  /* colors */
  --bg: #ffffff;
  --panel: #f7f9fc;
  --ink: #0f172a;
  --muted: #475569;
  --brand: #2d55f6;

  /* type scale */
  --s-1: 0.8rem;
  --s0: 1rem;
  --s1: 1.1rem;
  --s2: 1.75rem;
  --s3: 2.6rem;

  /* radii & shadows */
  --radius: 28px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08),
    0 3px 10px rgba(15, 23, 42, 0.06);
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: var(--s0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

.container {
  width: 95%;
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.hero.section {
  padding-top: 4rem;
  padding-bottom: 3rem; /* tighter gap to the two cards below */
}

.center {
  text-align: center;
}

.eyebrow {
  font-size: var(--s-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.lede {
  font-size: var(--s1);
  font-weight: 400;
}

.italic {
  font-style: italic;
  opacity: 0.9;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid #eef2f6;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo {
  color: var(--ink);
  text-decoration: none;
}

.nav-toggle {
  display: none;
}

.nav-menu {
  display: flex;
  gap: 1.75rem;
  justify-content: flex-end;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
}

.nav-menu a {
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero-inner {
  text-align: center;
}

.hero-title {
  font-size: clamp(2.25rem, 3vw + 1rem, var(--s3));
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 6rem;
  font-weight: 600;
}

.hero-sub {
  margin-top: 0.75rem;
  font-size: 1.5rem;
  font-weight: 500;
}

/* large hero image */
.card-xl {
  margin-top: 12rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: clamp(430px, 62vh, 720px);
  object-fit: cover;
}

.hero-mission-line {
  display: inline-block;
}

.hero-mission-static {
  font-weight: 600;
}

.hero-mission-dynamic-block {
  display: inline-block;
  position: relative;
}

.hero-mission-ghost {
  visibility: hidden; /* keeps width, no visual */
}

.hero-type {
  position: absolute;
  left: 0;
  top: 0;
  white-space: pre;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(16px);
}

/* base animation */
.hero-type.is-visible {
  animation: fadeFromShadow 0.7s ease-out forwards;
}

/* stagger the two lines slightly */
.hero-type-1.is-visible {
  animation-delay: 0s;
}

.hero-type-2.is-visible {
  animation-delay: 0.18s;
}

@keyframes fadeFromShadow {
  0% {
    opacity: 0;
    filter: blur(14px);
    text-shadow: 0 0 28px rgba(0, 0, 0, 0.85);
    transform: translateY(16px);
  }
  55% {
    opacity: 1;
    filter: blur(4px);
    text-shadow: 0 0 14px rgba(0, 0, 0, 0.5);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transform: translateY(0);
  }
}

/* ---------- Scroll reveal: shadowy fade-up ---------- */
.fade-section > * {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(18px);
}

/* when JS adds .is-visible, animate children in with a stagger */
.fade-section.is-visible > * {
  animation: sectionFadeFromShadow 0.7s ease-out forwards;
}

/* slight stagger for multiple lines */
.fade-section.is-visible > *:nth-child(2) {
  animation-delay: 0.12s;
}
.fade-section.is-visible > *:nth-child(3) {
  animation-delay: 0.22s;
}

@keyframes sectionFadeFromShadow {
  0% {
    opacity: 0;
    filter: blur(10px);
    text-shadow: 0 0 22px rgba(15, 23, 42, 0.35);
    transform: translateY(18px);
  }
  55% {
    opacity: 1;
    filter: blur(3px);
    text-shadow: 0 0 10px rgba(15, 23, 42, 0.15);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    text-shadow: 0 0 0 rgba(15, 23, 42, 0);
    transform: translateY(0);
  }
}

/* Mission overlay inside hero image */
.overlay {
  position: relative;
}

.overlay .overlay-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 2.5rem;
  gap: 0.7rem;
  color: #ffffff;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0) 60%
  );
}

.hero-mission .eyebrow {
  opacity: 0.85;
}

.hero-mission-title {
  font-size: clamp(2.1rem, 2.4vw + 1rem, 2.8rem);
  line-height: 1.1;
  font-weight: 600;
  max-width: 20ch;
}

/* ---------- Grid cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-auto-rows: 1fr;
  gap: 1.25rem;
}

.card-lg {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  min-height: 500px;
}

.card-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 600px;
}

.teal .overlay-content {
  background: linear-gradient(
    180deg,
    rgba(6, 63, 75, 0.78),
    rgba(6, 63, 75, 0.06) 65%
  );
}

.card-lg .overlay-content {
  justify-content: flex-start;
  align-items: flex-start;
  padding: 2.5rem;
  gap: 1.2rem;
}

.feature-grid .eyebrow {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.feature-grid .lede {
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 24ch;
  margin-top: 0.4rem;
}

.sand .overlay-content {
  background: linear-gradient(
    180deg,
    rgba(129, 108, 60, 0.62),
    rgba(129, 108, 60, 0.06) 65%
  );
}

/* ---------- Chips & CTA ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 1.1rem;
  max-width: 100%;
}

.chips img {
  width: clamp(260px, 55%, 460px);
  height: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 0.95rem;
}

.btn.primary {
  background: var(--brand);
  color: #fff;
}

.try-btn {
  margin-top: 1.25rem;
  align-self: flex-start;
}

/* Right card’s toolbar artwork – flush with card edge */
.overlay .toolbar-img {
  width: 100%;
  height: auto;
  margin: 0 -2.8rem 0.75rem; /* cancel overlay padding on left/right */
}

/* ---------- Copy blocks ---------- */
.copy-block h2 {
  font-size: var(--s2);
  margin-bottom: 0.1rem;
  letter-spacing: -0.01em;
}

.copy-block {
  margin-left: 5%;
}

.copy-block p {
  font-weight: 600;
  font-size: 1.5rem;
  max-width: 32rem;
}

/* ---------- Two-up ---------- */
.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-left: 5%;
  gap: 1.25rem;
  align-items: center;
}

.big-copy p {
  font-size: 2.1rem;
  font-weight: bold;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

/* ---------- Wide image CTA (bottom) ---------- */
.rounded-img {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.rounded-img img {
  height: 420px;
  width: 100%;
  object-fit: cover;
}

.bottom-cta {
  justify-content: flex-end;
  align-items: flex-start;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0) 55%
  );
}

.bottom-cta-title {
  font-size: var(--s2);
  max-width: 20ch;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--panel);
  border-top: 1px solid #e8edf4;
}

.cta-strip h2 {
  font-size: var(--s2);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid #eef2f6;
  padding: 2rem 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

/* ---------- Pricing ---------- */
.pricing {
  background: #f8fafc77;
}

.pricing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-header h2 {
  font-size: var(--s2);
  letter-spacing: -0.01em;
}

.pricing-header .lede {
  margin-top: 0.4rem;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
}

.pricing-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2.25rem 2rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.pricing-label {
  font-weight: 600;
  color: var(--brand);
  font-size: 0.95rem;
}

.pricing-name {
  font-weight: 600;
  color: var(--brand);
  font-size: 1rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  font-weight: 700;
}

.pricing-currency {
  font-size: 1.1rem;
}

.pricing-amount {
  font-size: 2.2rem;
  letter-spacing: -0.03em;
}

.pricing-term {
  font-size: 0.9rem;
  color: var(--muted);
}

.pricing-icon svg {
  width: 40px;
  height: 40px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pricing-icon--free svg {
  stroke: #10b981; /* green */
}

.pricing-icon--starter svg {
  stroke: #06b6d4; /* cyan */
}

.pricing-icon--growth svg {
  stroke: #f97316; /* orange */
}

.pricing-icon--scale svg {
  stroke: #2563eb; /* blue */
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.pricing-features li + li {
  margin-top: 0.25rem;
}

.pricing-cta {
  margin-top: 1.5rem;
}

/* Featured ribbon */
.pricing-card--featured::before {
  content: "Featured";
  position: absolute;
  top: 0.9rem;
  right: -2.4rem;
  transform: rotate(45deg);
  background: #2563eb;
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 2.9rem;
}

/* Button variant for non-primary plans */
.btn.outline {
  background: #ffffff;
  color: var(--ink);
  border-color: #e2e8f0;
  box-shadow: none;
}

.btn.outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: inline-flex;
    background: #fff;
    border: 1px solid #eaeef4;
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    float: right;
    margin-right: 15px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    right: 1rem;
    top: 56px;
    background: #fff;
    border: 1px solid #eaeef4;
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
    flex-direction: column;
  }

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

  .two-up {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    height: 360px;
  }

  .rounded-img img {
    height: 320px;
  }

  .section {
    padding: 3.5rem 0;
  }
}
