:root {
  --ink: #16202a;
  --muted: #5d6871;
  --line: #d7dde0;
  --paper: #f8f9f8;
  --white: #ffffff;
  --concrete: #e7e9e8;
  --charcoal: #0f171d;
  --accent: #1fb7ad;
  --accent-dark: #0e766f;
  --accent-light: #3edbd1;
  --accent-glow: rgba(31, 183, 173, 0.15);
  --steel: #23384e;
  --radius: 10px;
  --shadow: 0 20px 50px rgba(26, 26, 26, 0.12);
  --shadow-lg: 0 32px 64px rgba(26, 26, 26, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

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.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 120ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 240ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-video {
    display: none;
  }
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px 36px;
  background: rgba(247, 248, 247, 0.985);
  border-bottom: 1px solid rgba(22, 32, 42, 0.1);
  box-shadow: 0 1px 20px rgba(26, 26, 26, 0.04);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 292px;
}

.brand-wordmark {
  display: block;
  color: var(--ink);
  line-height: 1;
  max-width: 292px;
}

.brand-wordmark strong,
.brand-wordmark small {
  display: block;
  letter-spacing: 0;
}

.brand-wordmark strong {
  font-family: 'Outfit', Inter, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.brand-wordmark small {
  margin-top: 5px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.16;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--steel);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-links a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

/* ========================================
   BUTTONS
   ======================================== */

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.header-cta,
.button.primary {
  color: var(--white);
  background: var(--accent-dark);
  box-shadow: 0 2px 8px rgba(14, 118, 111, 0.2);
}

.header-cta:hover,
.button.primary:hover {
  background: #095e59;
  box-shadow: 0 6px 20px rgba(14, 118, 111, 0.35);
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* ========================================
   HERO
   ======================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 85svh;
  padding: 100px 36px 110px;
  overflow: hidden;
  color: var(--white);
  background: url("assets/deck-installation-clean.png") center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.34);
  transform-origin: center;
  background: #071014;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 17, 22, 0.88) 0%, rgba(10, 17, 22, 0.62) 42%, rgba(10, 17, 22, 0.15) 100%),
    linear-gradient(180deg, transparent 60%, rgba(10, 17, 22, 0.4) 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-dark), transparent 70%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(740px, 100%);
  margin-left: max(0px, calc((100vw - 1180px) / 2));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-family: 'Outfit', Inter, sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-transform: none;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-lede {
  max-width: 690px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.32rem, 1.05rem + 0.65vw, 1.58rem);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ========================================
   PROOF STRIP
   ======================================== */

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1180px, calc(100% - 48px));
  margin: -46px auto 0;
  position: relative;
  z-index: 3;
  background: var(--white);
  border: 1px solid rgba(22, 32, 42, 0.1);
  border-top: 3px solid var(--accent-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.proof-item {
  min-height: 118px;
  padding: 28px 28px;
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  display: block;
  color: var(--ink);
  font-family: 'Outfit', Inter, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.proof-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.45;
}

/* ========================================
   SECTIONS
   ======================================== */

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

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-heading h2,
.brand-copy h2,
.contact-copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: 'Outfit', Inter, sans-serif;
  font-size: 2.65rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-heading p:not(.eyebrow),
.brand-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

/* ========================================
   ADVANTAGES / FEATURE CARDS
   ======================================== */

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

.feature-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid rgba(22, 32, 42, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(9, 20, 29, 0.04);
  transition: all 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  border-color: rgba(14, 118, 111, 0.3);
  box-shadow: 0 12px 40px rgba(14, 118, 111, 0.12), 0 4px 16px rgba(9, 20, 29, 0.06);
  transform: translateY(-4px);
}

.feature-number {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: 'Outfit', Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.feature-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: 'Outfit', Inter, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ========================================
   COMPARISON TABLE
   ======================================== */

.comparison-section {
  padding: 110px 36px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(231, 233, 232, 0.86)),
    var(--concrete);
}

.comparison-content {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.comparison-header {
  margin-bottom: 40px;
}

.comparison-section .section-heading {
  margin-bottom: 0;
}

.comparison-section .section-heading p:not(.eyebrow) {
  max-width: 660px;
  margin: 18px 0 0;
}

.comparison-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid rgba(22, 32, 42, 0.11);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.comparison-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-table thead th {
  color: var(--white);
  background: var(--charcoal);
  font-family: 'Outfit', Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.comparison-table thead th:nth-child(2) {
  background: var(--accent-dark);
  color: var(--white);
  position: relative;
}

.comparison-table tbody th {
  width: 20%;
  color: var(--steel);
  font-weight: 800;
}

.comparison-table tbody td {
  width: 40%;
  color: var(--muted);
}

.comparison-table tbody td:nth-child(2) {
  background: #f7fbfa;
  border-left: 2px solid rgba(14, 118, 111, 0.2);
  border-right: 1px solid rgba(14, 118, 111, 0.1);
}

.comparison-table td strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
}

.comparison-table td span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
}

.comparison-table tbody td:nth-child(2) strong {
  display: flex;
  gap: 10px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.comparison-table tbody td:nth-child(2) strong::before {
  content: "\2713";
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-weight: 900;
}

.comparison-table tbody td:nth-child(3) strong {
  color: #4a4a4a;
  font-weight: 600;
}

.comparison-cta {
  max-width: 760px;
  margin-top: 34px;
  padding: 30px 32px;
  background: var(--white);
  border: 1px solid rgba(22, 32, 42, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(9, 20, 29, 0.06);
}

.comparison-cta h3 {
  margin: 0;
  color: var(--ink);
  font-family: 'Outfit', Inter, sans-serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

.comparison-cta p {
  margin: 12px 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

/* ========================================
   BRAND SECTION
   ======================================== */

.brand-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(40px, 5vw, 76px);
  align-items: center;
  padding: 96px max(24px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(180deg, #eef1f0, #e5e9e8);
}

.brand-text-panel {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 64px;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(22, 32, 42, 0.1);
  box-shadow: var(--shadow);
}

.brand-text-panel p,
.brand-text-panel strong,
.brand-text-panel span {
  display: block;
  margin: 0;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.brand-text-panel p {
  color: var(--ink);
  font-family: 'Outfit', Inter, sans-serif;
  font-size: clamp(3.2rem, 4.6vw, 4.35rem);
  font-weight: 800;
  line-height: 0.95;
}

.brand-text-panel strong {
  margin-top: 16px;
  color: var(--accent-dark);
  font-family: 'Outfit', Inter, sans-serif;
  font-size: clamp(2.15rem, 3vw, 2.8rem);
  line-height: 1;
}

.brand-text-panel span {
  margin-top: 14px;
  color: var(--steel);
  font-family: 'Outfit', Inter, sans-serif;
  font-size: clamp(2.15rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
}

.brand-copy {
  max-width: 540px;
  padding-left: 36px;
  border-left: 3px solid rgba(14, 118, 111, 0.58);
}

.brand-copy .eyebrow {
  color: var(--accent-dark);
}

.brand-copy h2 {
  font-size: clamp(2.5rem, 3.8vw, 3.55rem);
  line-height: 1.04;
}

.brand-copy p:last-child {
  margin-bottom: 0;
}

/* ========================================
   CONTACT FORM
   ======================================== */

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: start;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0;
}

.contact-copy .response-note {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 16px;
  background: var(--accent-glow);
  border-radius: 6px;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

.quote-form {
  display: grid;
  gap: 18px;
  padding: 32px;
  background: var(--white);
  border: 1px solid rgba(22, 32, 42, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 7px;
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.quote-form input:user-invalid,
.quote-form select:user-invalid,
.quote-form textarea:user-invalid {
  border-color: #9b3434;
  box-shadow: 0 0 0 3px rgba(155, 52, 52, 0.12);
}

.quote-form .button {
  width: 100%;
  border: 0;
  font-size: 1rem;
  min-height: 50px;
  margin-top: 4px;
}

.quote-form .button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.form-status[data-state="pending"] {
  color: var(--muted);
}

.form-status[data-state="error"] {
  color: #9b3434;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 32px 36px;
  color: rgba(255, 255, 255, 0.6);
  background: var(--charcoal);
  border-top: 1px solid rgba(31, 183, 173, 0.2);
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--accent-light);
  font-weight: 700;
  transition: color 200ms ease;
}

.site-footer a:hover {
  color: var(--white);
}

/* ========================================
   RESPONSIVE — 940px
   ======================================== */

@media (max-width: 940px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
    padding: 12px 20px;
  }

  .nav-links {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .brand-wordmark strong {
    font-size: 1rem;
  }

  .brand-wordmark small {
    font-size: 0.66rem;
  }

  .hero {
    min-height: 76svh;
    padding: 72px 24px 80px;
    background:
      linear-gradient(90deg, rgba(10, 17, 22, 0.9), rgba(10, 17, 22, 0.5)),
      url("assets/deck-installation-clean.png") center / cover no-repeat;
  }

  .hero h1 {
    font-size: 3.15rem;
  }

  .proof-strip,
  .intro-grid,
  .brand-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    margin-top: 0;
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .proof-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .section,
  .contact-section {
    width: min(100% - 40px, 720px);
    padding: 72px 0;
  }

  .comparison-section {
    padding: 72px 20px;
  }

  .comparison-header {
    margin-bottom: 28px;
  }

  .brand-section {
    padding: 64px 20px;
  }

  .brand-copy {
    max-width: 680px;
    padding: 30px 4px 0;
    border-top: 2px solid rgba(14, 118, 111, 0.42);
    border-left: 0;
  }
}

/* ========================================
   RESPONSIVE — 620px
   ======================================== */

@media (max-width: 620px) {
  html {
    scroll-padding-top: 76px;
  }

  .site-header {
    min-height: 68px;
  }

  .brand-wordmark strong {
    font-size: 0.92rem;
  }

  .brand-wordmark small {
    max-width: 180px;
    font-size: 0.58rem;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 74svh;
    padding: 58px 20px 64px;
  }

  .hero h1 {
    font-size: 2.35rem;
    line-height: 1.02;
  }

  .hero-lede {
    font-size: 1.12rem;
    line-height: 1.52;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .section-heading h2,
  .brand-copy h2,
  .contact-copy h2 {
    font-size: 2rem;
  }

  .brand-text-panel {
    min-height: 330px;
    padding: 40px 32px;
  }

  .brand-text-panel p {
    font-size: 2.35rem;
  }

  .brand-text-panel strong,
  .brand-text-panel span {
    font-size: 1.62rem;
  }

  .quote-form {
    padding: 20px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 15px 14px;
  }

  .comparison-table-wrap {
    overflow-x: visible;
  }

  .comparison-table {
    min-width: 0;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody tr {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .comparison-table tbody tr:last-child {
    border-bottom: 0;
  }

  .comparison-table tbody th {
    display: block;
    width: auto;
    padding: 0 16px 12px;
    border-bottom: 0;
    color: var(--steel);
    font-size: 1.05rem;
  }

  .comparison-table tbody td {
    display: grid;
    grid-template-columns: minmax(0, 90px) minmax(0, 1fr);
    gap: 14px;
    width: auto;
    padding: 10px 16px;
    border-bottom: 0;
  }

  .comparison-table tbody td:nth-child(2) {
    border-left: 0;
    border-right: 0;
  }

  .comparison-table tbody td::before {
    content: attr(data-label);
    color: var(--accent-dark);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    grid-row: 1 / span 2;
  }

  .comparison-table tbody td:nth-child(3)::before {
    color: var(--muted);
  }

  .comparison-table tbody td > strong,
  .comparison-table tbody td > span {
    grid-column: 2;
  }

  .site-footer {
    flex-direction: column;
    padding: 26px 20px;
  }
}

/* ========================================
   RESPONSIVE — 360px
   ======================================== */

@media (max-width: 360px) {
  .site-header {
    gap: 10px;
    padding: 10px 14px;
  }

  .brand {
    max-width: 145px;
  }

  .brand-wordmark small {
    max-width: 136px;
  }

  .header-cta {
    padding: 0 10px;
  }
}
