/* ===================== Hill Town Platforms — Marketing Site ===================== */

:root {
  /* Brand palette — sampled from hill-town-platforms.webflow.io */
  --blue-900: #050091;
  --blue-800: #0000C2;
  --blue-700: #0000F5;   /* primary brand blue */
  --blue-600: #2626FF;   /* hover tint */
  --blue-500: #5B5BFF;
  --blue-100: #E4E4FF;
  --blue-50:  #F1F1FF;
  --ink-900: #171717;
  --ink-700: #3A3A3A;
  --ink-500: #6B6B6B;
  --ink-300: #9E9E9E;
  --line: #E7E7EA;
  --bg: #FFFFFF;
  --bg-muted: #ECF1F2;
  --green: #1F9D6C;
  --amber: #C9821A;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(14, 21, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(14, 21, 38, 0.08);
  --shadow-lg: 0 24px 60px rgba(14, 21, 38, 0.16);
  --container: 1360px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink-900); }
p { margin: 0 0 1em; color: var(--ink-500); }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  text-align: center;
}
.btn--primary { background: var(--blue-700); color: #fff; }
.btn--primary:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--blue-700); border-color: var(--blue-700); }
.btn--ghost:hover { background: var(--blue-50); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 14px 26px; font-size: 15.5px; }
.btn--full { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink-900); white-space: nowrap; }
.brand__name span { color: var(--ink-900); }
.nav__links { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav__links a { font-size: 14.5px; font-weight: 500; color: var(--ink-900); transition: color .15s ease; }
.nav__links a:hover { color: var(--blue-700); }
.nav__cta { margin-left: 24px; }
.nav__toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; width: 22px; background: var(--ink-900); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  height: 700px;
  max-height: 700px;
  background: radial-gradient(900px 500px at 85% -10%, rgba(91,91,255,.30), transparent 60%), linear-gradient(165deg, var(--blue-900), var(--blue-700) 70%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
  height: 100%;
}
.hero__copy-wrap { max-width: 520px; padding: 84px 0; align-self: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-700); margin-bottom: 14px; }
.eyebrow--light { color: #C7C9FF; }
.hero h1 { font-size: clamp(40px, 4.6vw, 62px); letter-spacing: -0.02em; color: #fff; }
.hero__sub { font-size: 18px; color: #DBDCFF; max-width: 520px; }
.hero__actions { display: flex; gap: 14px; margin: 28px 0 16px; flex-wrap: wrap; }
.hero__note { font-size: 13.5px; color: #B4B6F5; margin: 0; }
.btn--ghost-dark { color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-dark:hover { border-color: #fff; color: var(--blue-700); background: #fff; }

/* ---------- Hero marquee (vertical columns) ---------- */
.hero__marquee { display: flex; gap: 20px; height: 100%; min-height: 0; }
.marquee-wrap {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.marquee-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: max-content;
  animation: mq-scroll-up 34s linear infinite;
}
.marquee-col.mq-reverse { animation-name: mq-scroll-down; animation-duration: 38s; }
.marquee-col:hover { animation-play-state: paused; }
@keyframes mq-scroll-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes mq-scroll-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-col { animation: none; }
}

.mq-card {
  flex-shrink: 0;
  width: 100%;
  height: 209px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.mq-card--photo {
  background-size: cover;
  background-position: center;
  background-color: var(--blue-700);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.mq-card--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 12, 32, .78), transparent 60%);
}
.mq-card__label { position: relative; z-index: 1; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 16.5px; }
.mq-card--quote {
  background: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mq-card--quote p { font-size: 15px; color: var(--ink-700); margin: 0; }
.mq-card__author { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-900); }
.mq-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11.5px; font-weight: 700; flex-shrink: 0;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--muted { background: var(--bg-muted); }
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.01em; }
.section__sub { font-size: 16.5px; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Feature cards ---------- */
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; margin: 0; }
.feature-card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon--blue, .icon--indigo, .icon--teal, .icon--amber {
  background: var(--blue-100);
  color: var(--blue-700);
}


/* ---------- Audiences (split image/text sections) ---------- */
.split-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-section__media {
  aspect-ratio: 4 / 3.2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split-section__media img { width: 100%; height: 100%; object-fit: cover; }
.split-section__content h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 20px; }
.split-section__content p { font-size: 16px; }
.split-section__content .btn { margin-top: 12px; }

/* ---------- Walled garden media ---------- */
.walled-media img {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
}

/* ---------- Hill Town blue card ---------- */
.hill-town-card {
  background: var(--blue-700);
  border-radius: var(--radius-lg);
  padding: 64px;
  color: #fff;
}
.hill-town-card .eyebrow { color: #C7C9FF; }
.hill-town-card h2 { color: #fff; }
.hill-town-card p { color: #E4E4FF; }
.hill-town-card .btn--primary { background: #fff; color: var(--blue-700); }
.hill-town-card .btn--primary:hover { background: var(--blue-50); }
.audience-card__badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.check-list li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 15px; color: var(--ink-700); }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--blue-700); font-weight: 700;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step__num {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--blue-700); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  margin-bottom: 18px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; margin: 0; }

/* ---------- Contact ---------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__inner h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.01em; }
.contact__points { margin-top: 24px; }
.contact__points li { font-size: 15px; color: var(--ink-700); margin-bottom: 10px; font-weight: 500; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  color: var(--ink-900);
  transition: border-color .15s ease, background .15s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: #fff;
}
.form-row textarea { resize: vertical; }
.form-note { text-align: center; font-size: 14px; margin: 14px 0 0; min-height: 18px; color: var(--green); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(255,255,255,.12); background: #000; padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand--footer { opacity: .9; }
.brand--footer .brand__name, .brand--footer .brand__name span { color: #fff; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 14px; color: #F4F4F4; }
.footer__links a:hover { color: var(--blue-500); }
.footer__copy { font-size: 13px; color: #F4F4F4; margin: 0; }

/* ---------- Reveal animation ----------
   Content is visible by default (no JS dependency). Only when the
   "js" class is present on <html> (set immediately by script.js) does
   an element start hidden and wait to be revealed by the scroll
   observer — so if the script fails to load for any reason, every
   section stays visible instead of being stuck at opacity:0. */
.fade-up { transition: opacity .6s ease, transform .6s ease; transition-delay: var(--delay, 0s); }
.js .fade-up { opacity: 0; transform: translateY(16px); }
.js .fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { height: auto; max-height: none; }
  .hero__inner { grid-template-columns: 1fr; height: auto; }
  .hero__copy-wrap { max-width: none; padding: 84px 0 0; }
  .hero__marquee { height: 420px; margin-top: 40px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(1, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; }
  .split-section__inner { grid-template-columns: 1fr; gap: 32px; }
  .split-section__media, .walled-media { order: -1; }
  .walled-media::before { top: -12px; left: -12px; right: 16px; bottom: 16px; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px 24px;
  }
  .nav.is-open .nav__links a { padding: 10px 0; }
  .nav.is-open .nav__cta { display: block; position: absolute; top: 232px; left: 24px; right: 24px; }
  .nav.is-open .nav__cta .btn { width: 100%; }
  .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row--split { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero__copy-wrap { padding: 48px 0 0; }
  .hero__marquee { height: 320px; gap: 14px; margin-top: 32px; }
  .mq-card { height: 154px; }
  .mq-card--quote { padding: 16px; }
  .hill-town-card { padding: 32px; }
  .mq-card--quote p { font-size: 13px; }
}
