/* ============================================================
   PrimeTwin – Global Stylesheet
   Fonts: Lora (serif headlines) + Plus Jakarta Sans (body)
   Palette: Navy-charcoal + warm bronze accent on white
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette */
  --white:        #FFFFFF;
  --off-white:    #F8F6F2;
  --cream:        #F0EDE7;
  --border:       #E2DED8;
  --text-light:   #7A7468;
  --text-body:    #4A4640;
  --text-heading: #1A1B1F;
  --navy:         #1A2744;
  --accent:       #8B7355;
  --accent-hover: #6E5A43;
  --accent-light: rgba(139,115,85,0.08);
  --blue:         #2C5282;
  --blue-light:   #E8F0FE;
  --success:      #2D6A4F;
  --error:        #9B2C2C;

  /* Typography scale (major third – 1.25) */
  --fs-xs:   0.8rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  1.875rem;
  --fs-3xl:  2.375rem;
  --fs-4xl:  3.125rem;
  --fs-5xl:  3.75rem;

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 0.75rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;
  --sp-5xl: 8rem;

  /* Layout */
  --max-w:     1200px;
  --max-w-narrow: 860px;
  --nav-h:     72px;
  --radius:    6px;
  --radius-lg: 12px;

  /* Transitions */
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur:       0.3s;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--accent); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent-hover); }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: var(--text-heading);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-5xl); line-height: 1.08; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); font-weight: 500; }

p { margin-bottom: var(--sp-md); }
p:last-child { margin-bottom: 0; }

.text-sm   { font-size: var(--fs-sm); }
.text-md   { font-size: var(--fs-md); }
.text-lg   { font-size: var(--fs-lg); line-height: 1.6; }
.text-xl   { font-size: var(--fs-xl); line-height: 1.5; }

.eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-md);
  display: inline-block;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

section {
  padding: var(--sp-5xl) 0;
}

.section--alt {
  background: var(--off-white);
}

.section--cream {
  background: var(--cream);
}

.section--navy {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
}
.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

/* ---- Grid ---- */
.grid {
  display: grid;
  gap: var(--sp-2xl);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.875em 2em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--text-heading);
  color: var(--white);
  border-color: var(--text-heading);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 115, 85, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--text-heading);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 115, 85, 0.2);
}

.btn--white {
  background: var(--white);
  color: var(--text-heading);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--off-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.btn--lg {
  font-size: var(--fs-base);
  padding: 1em 2.5em;
}

.btn-group {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  align-items: center;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.nav__logo svg {
  height: 28px;
  width: auto;
}
.nav__logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-2xl);
  list-style: none;
}

.nav__links a:not(.btn) {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
  position: relative;
}
.nav__links a:not(.btn):hover,
.nav__links a:not(.btn).active {
  color: var(--text-heading);
}
.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--accent);
}

.nav__cta {
  margin-left: var(--sp-lg);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-xs);
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-heading);
  margin: 5px 0;
  transition: all var(--dur) var(--ease);
}

/* ---- Hero ---- */
.hero {
  padding: calc(var(--nav-h) + var(--sp-4xl)) 0 var(--sp-5xl);
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero > .container {
  width: 100%;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-bottom: var(--sp-lg);
  max-width: 14ch;
}

.hero__subtitle {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--text-light);
  max-width: 540px;
  margin-bottom: var(--sp-2xl);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  opacity: 0.5;
  z-index: 2;
}
.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { top: -50%; }
  100% { top: 150%; }
}

.hero__bg {
  position: absolute;
  top: 0;
  right: -10%;
  width: 55%;
  height: 100%;
  z-index: 1;
  opacity: 0.06;
  pointer-events: none;
}

/* Hero gradient orb */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139,115,85,0.12) 0%, transparent 70%);
  top: -100px;
  right: 5%;
}
.hero__orb--2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(44,82,130,0.08) 0%, transparent 70%);
  bottom: -50px;
  left: 10%;
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-2xl);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.card--flat {
  border: none;
  background: var(--off-white);
}
.card--flat:hover {
  background: var(--cream);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-lg);
  color: var(--accent);
  font-size: 1.25rem;
}

.card__number {
  font-family: 'Lora', serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--sp-sm);
  letter-spacing: 0.05em;
}

.card h3 {
  margin-bottom: var(--sp-sm);
}

.card p {
  color: var(--text-light);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

/* ---- Metric Cards ---- */
.metric {
  text-align: center;
  padding: var(--sp-2xl) var(--sp-lg);
}

.metric__value {
  font-family: 'Lora', serif;
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
}

.metric__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--sp-xs);
}

.metric__desc {
  font-size: var(--fs-sm);
  color: var(--text-light);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

.metric__bar {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: var(--sp-xs) auto var(--sp-md);
}

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--sp-3xl);
}
.section-header p {
  color: var(--text-light);
  font-size: var(--fs-md);
  margin-top: var(--sp-md);
}

.section-header--left {
  text-align: left;
  margin-left: 0;
}

/* ---- Logo Bar ---- */
.logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3xl);
  flex-wrap: wrap;
  padding: var(--sp-2xl) 0;
  opacity: 0.4;
}

.logo-bar__item {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-body);
  white-space: nowrap;
}

/* ---- Testimonial ---- */
.testimonial {
  border-left: 3px solid var(--accent);
  padding: var(--sp-lg) var(--sp-2xl);
  max-width: 600px;
}

.testimonial__quote {
  font-family: 'Lora', serif;
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--text-heading);
  line-height: 1.6;
  margin-bottom: var(--sp-md);
}

.testimonial__author {
  font-size: var(--fs-sm);
  color: var(--text-light);
}

/* ---- FAQ / Accordion ---- */
.faq-list {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--sp-lg) 0;
  background: none;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
  gap: var(--sp-lg);
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-answer__inner {
  padding: 0 0 var(--sp-lg);
  color: var(--text-light);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* ---- CTA Banner ---- */
.cta-banner {
  text-align: center;
  padding: var(--sp-4xl) var(--sp-xl);
  background: var(--navy);
  border-radius: var(--radius-lg);
  color: rgba(255,255,255,0.8);
  background-image: url('../img/network-connections.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: soft-light;
}
.cta-banner h2 {
  color: var(--white);
  margin-bottom: var(--sp-md);
}
.cta-banner p {
  max-width: 480px;
  margin: 0 auto var(--sp-2xl);
}

/* ---- Footer ---- */
.footer {
  background: var(--text-heading);
  color: rgba(255,255,255,0.5);
  padding: var(--sp-4xl) 0 var(--sp-2xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-3xl);
  margin-bottom: var(--sp-3xl);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--sp-md);
}
.footer__brand svg {
  height: 26px;
  width: auto;
}
.footer__brand-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.footer__desc {
  font-size: var(--fs-sm);
  line-height: 1.6;
  max-width: 300px;
}

.footer h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--sp-lg);
}

.footer__links {
  list-style: none;
}
.footer__links li { margin-bottom: var(--sp-sm); }
.footer__links a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--dur) var(--ease);
}
.footer__links a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--sp-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
}

.footer__legal {
  display: flex;
  gap: var(--sp-lg);
}
.footer__legal a {
  color: rgba(255,255,255,0.4);
}
.footer__legal a:hover { color: rgba(255,255,255,0.7); }

/* ---- Form ---- */
.form-group {
  margin-bottom: var(--sp-lg);
}
.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--sp-xs);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75em 1em;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--fs-base);
  color: var(--text-heading);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A4640' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
}

/* ---- Workflow / Steps ---- */
.steps {
  position: relative;
}

.steps__line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.steps__line-fill {
  width: 100%;
  height: 0;
  background: var(--accent);
  transition: height 0.6s var(--ease-out);
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--sp-2xl);
  padding-bottom: var(--sp-3xl);
  position: relative;
}
.step:last-child { padding-bottom: 0; }

.step__marker {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--off-white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 2;
  transition: all var(--dur) var(--ease);
}
.step.active .step__marker {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.step__content h3 {
  margin-bottom: var(--sp-xs);
}
.step__content .eyebrow {
  margin-bottom: var(--sp-xs);
}
.step__content p {
  color: var(--text-light);
  max-width: 520px;
}

.step__details {
  margin-top: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.step__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  color: var(--text-body);
}
.step__detail::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.55em;
}

/* ---- Pricing Table ---- */
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-2xl);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(139,115,85,0.1);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35em 1.2em;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-card__name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-sm);
}

.pricing-card h3 {
  margin-bottom: var(--sp-sm);
}

.pricing-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: var(--sp-xl);
  flex-grow: 1;
}

.pricing-card__scope {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--sp-sm);
}

.pricing-card__features {
  list-style: none;
  margin-bottom: var(--sp-xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--border);
}
.pricing-card__features li {
  font-size: var(--fs-sm);
  color: var(--text-body);
  padding: var(--sp-xs) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
}
.pricing-card__features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Case Study Cards ---- */
.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-2xl);
  display: flex;
  flex-direction: column;
}
.case-card__tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-lg);
}
.case-card h3 {
  margin-bottom: var(--sp-md);
  font-size: var(--fs-lg);
}
.case-card__section {
  margin-bottom: var(--sp-md);
}
.case-card__section strong {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-heading);
  margin-bottom: var(--sp-xs);
}
.case-card__result {
  font-family: 'Lora', serif;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--border);
}

/* ---- Split Layout (Demo page) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4xl);
  align-items: start;
}

/* ---- Placeholder images ---- */
.img-placeholder {
  background: var(--off-white);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: var(--fs-sm);
  font-style: italic;
  min-height: 300px;
  padding: var(--sp-xl);
  text-align: center;
}

/* UI mockup placeholder */
.ui-mockup {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.ui-mockup__bar {
  height: 36px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--sp-md);
  gap: 6px;
}
.ui-mockup__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.ui-mockup__body {
  padding: var(--sp-2xl);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: var(--fs-sm);
  font-style: italic;
}

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.36s; }

/* ---- Divider ---- */
.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: var(--sp-lg) 0;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Onboarding steps (Pricing) ---- */
.onboard-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2xl);
  counter-reset: onboard;
}
.onboard-step {
  counter-increment: onboard;
  padding: var(--sp-2xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
}
.onboard-step::before {
  content: 'Step 0' counter(onboard);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--sp-md);
}
.onboard-step h4 {
  margin-bottom: var(--sp-sm);
}
.onboard-step p {
  font-size: var(--fs-sm);
  color: var(--text-light);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-2xl); }

  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-2xl); }
  .split { grid-template-columns: 1fr; gap: var(--sp-2xl); }
  .onboard-steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --sp-5xl: 5rem;
    --sp-4xl: 3.5rem;
    --sp-3xl: 2.5rem;
  }

  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-xl); }

  .container { padding: 0 var(--sp-lg); }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--sp-xl);
    gap: var(--sp-lg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  }
  .nav__links.open { display: flex; }
  .nav__cta { margin-left: 0; }
  .nav__toggle { display: block; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--sp-md); text-align: center; }

  .hero h1 { max-width: 100%; }
  .hero__subtitle { max-width: 100%; }

  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { text-align: center; }

  .logo-bar { gap: var(--sp-xl); }
}

@media (max-width: 480px) {
  h1 { font-size: var(--fs-2xl); }
  section { padding: var(--sp-3xl) 0; }
}

/* ---- Subtle grain overlay for texture ---- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal-stagger > * { opacity: 1; transform: none; }
}
