:root {
  --ink: #122033;
  --muted: #5b6675;
  --paper: #fbf7f1;
  --white: #ffffff;
  --line: rgba(18, 32, 51, 0.12);
  --blue: #193f76;
  --teal: #0f766e;
  --coral: #e66f51;
  --gold: #e8b14f;
  --shadow: 0 24px 80px rgba(18, 32, 51, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(18, 32, 51, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: invert(1);
}

.site-header nav {
  gap: 4px;
}

.site-header nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.site-header nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: #101827;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  filter: saturate(1.04) contrast(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 16, 28, 0.94), rgba(9, 16, 28, 0.62) 42%, rgba(9, 16, 28, 0.24)),
    linear-gradient(0deg, rgba(9, 16, 28, 0.9), rgba(9, 16, 28, 0.08) 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 128px 0 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.hero-actions,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.tab,
.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  color: #101827;
  background: var(--gold);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 720px;
  margin: 56px 0 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-stats div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats dt {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.section h2,
.closing h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.lead-stack p,
.sample-heading p,
.deliverables p,
.feature-strip p,
.process-grid p,
.series-panel p,
.closing p {
  color: var(--muted);
}

.lead-stack p {
  font-size: 19px;
}

.intro-band {
  padding-bottom: 64px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  padding: 0;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.feature-strip article {
  min-height: 250px;
  padding: 42px;
  background: var(--paper);
}

.mini-icon {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.feature-strip h3,
.process-grid h3,
.deliverables h3,
.sample-card h3,
.pricing-table h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.series-shell {
  display: grid;
  gap: 18px;
}

.tab {
  color: var(--ink);
  background: #eadfce;
}

.tab.is-active {
  color: var(--white);
  background: var(--blue);
}

.series-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 40px;
  padding: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #0f665e);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.series-panel[hidden] {
  display: none;
}

.series-panel h3 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
}

.series-panel p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.panel-kicker {
  color: var(--gold) !important;
  font-size: 13px !important;
  font-weight: 900;
  text-transform: uppercase;
}

.theme-list {
  display: grid;
  gap: 12px;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme-list li {
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.process-band {
  width: 100%;
  padding-inline: max(16px, calc((100vw - 1180px) / 2));
  background: #e8f0ed;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-grid article {
  padding: 28px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: var(--radius);
}

.process-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 34px;
  color: var(--white);
  background: var(--teal);
  border-radius: 50%;
  font-weight: 900;
}

.sample-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 40px;
  max-width: none;
  align-items: end;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sample-card {
  min-width: 0;
}

.video-launch {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #111827;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 18px 38px rgba(18, 32, 51, 0.12);
  cursor: pointer;
}

.video-launch img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  transition: transform 360ms ease;
}

.video-launch:hover img {
  transform: scale(1.035);
}

.play-button {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 9px 13px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.sample-card h3 {
  margin: 14px 0 4px;
}

.sample-card p {
  margin: 0;
  color: var(--muted);
}

.deliverables-band {
  width: 100%;
  padding-inline: max(16px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: var(--white);
}

.deliverables-band .eyebrow {
  color: var(--gold);
}

.deliverables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.deliverables article {
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
}

.deliverables p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.pricing-summary,
.pricing-table section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(18, 32, 51, 0.08);
}

.pricing-summary {
  position: sticky;
  top: 92px;
  padding: 32px;
}

.pricing-summary p,
.pricing-summary span,
.pricing-summary small {
  color: var(--muted);
}

.pricing-summary .proposal-from {
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 900;
}

.pricing-summary strong {
  display: block;
  margin: 8px 0 10px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
}

.pricing-summary span {
  display: block;
  font-weight: 700;
}

.pricing-summary small {
  display: block;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.contact-card {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card b {
  font-size: 18px;
}

.contact-card a {
  color: var(--blue);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pricing-table {
  display: grid;
  gap: 14px;
}

.pricing-table h3 {
  margin: 0;
  padding: 18px 22px;
  color: var(--white);
  background: var(--blue);
  border-radius: var(--radius) var(--radius) 0 0;
}

.line-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 22px;
  border-top: 1px solid var(--line);
}

.line-item span {
  color: #2d3746;
  font-weight: 700;
}

.line-item strong {
  white-space: nowrap;
  font-size: 19px;
}

.subtotal {
  background: #f8fafc;
}

.subtotal span,
.subtotal strong,
.total-section strong {
  color: var(--blue);
}

.total-section {
  overflow: hidden;
}

.grand-total {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.grand-total span,
.grand-total strong {
  color: var(--white);
}

.grand-total strong {
  font-size: 30px;
}

.closing {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 80px 16px;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(18, 32, 51, 0.95), rgba(15, 118, 110, 0.84)),
    url("./assets/posters/Leaky%20Website.jpg") center / cover;
}

.closing h2 {
  max-width: 900px;
  margin-bottom: 28px;
}

.closing-contact {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.closing-contact p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.closing-contact div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.video-dialog {
  width: min(520px, calc(100% - 28px));
  padding: 0;
  color: var(--white);
  background: #0d1624;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.video-dialog::backdrop {
  background: rgba(9, 16, 28, 0.76);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.dialog-inner {
  padding: 16px;
}

.dialog-inner h2 {
  margin: 0 92px 12px 0;
  font-size: 22px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 36px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

#dialog-video {
  width: 100%;
  max-height: 78vh;
  background: #000;
  border-radius: var(--radius);
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
  }

  .site-header nav {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .section-grid,
  .series-panel,
  .sample-heading,
  .pricing-layout {
    grid-template-columns: 1fr;
  }

  .feature-strip,
  .process-grid,
  .sample-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    gap: 8px;
    padding: 8px;
  }

  .brand span:last-child {
    display: none;
  }

  .brand-logo {
    width: 28px;
    height: 28px;
  }

  .site-header nav {
    flex: 1;
    justify-content: flex-start;
    gap: 7px;
  }

  .site-header nav a {
    padding: 8px 4px;
    font-size: 11px;
  }

  .hero {
    min-height: 96vh;
  }

  .hero-content {
    width: min(1180px, calc(100% - 24px));
    padding-bottom: 34px;
  }

  h1 {
    font-size: 44px;
    max-width: 360px;
  }

  .hero-copy {
    font-size: 17px;
    max-width: 350px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .section {
    width: min(1180px, calc(100% - 24px));
    padding: 64px 0;
  }

  .section h2,
  .closing h2 {
    font-size: 34px;
  }

  .feature-strip,
  .process-grid,
  .sample-grid,
  .deliverables {
    grid-template-columns: 1fr;
  }

  .feature-strip article {
    min-height: auto;
    padding: 28px 24px;
  }

  .mini-icon {
    margin-bottom: 24px;
  }

  .series-panel,
  .pricing-summary {
    padding: 24px;
  }

  .line-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .line-item strong {
    white-space: normal;
  }
}
