:root {
  --bg: #14110e;
  --bg-2: #1c1814;
  --surface: #241f1a;
  --surface-2: #2c261f;
  --border: #3f352a;
  --text: #f2e8d8;
  --muted: #9a8c7a;
  --accent: #f0c14a;
  --accent-2: #d4a017;
  --accent-soft: rgba(240, 193, 74, 0.18);
  --cyan: #3ecfff;
  --cyan-2: #1a8fd4;
  --cyan-soft: rgba(62, 207, 255, 0.14);
  --danger: #c94a3a;
  --danger-soft: rgba(201, 74, 58, 0.14);
  --ink-on-gold: #1a140c;
  --radius: 12px;
  --font-ui: "Outfit", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
.hero-brand,
.brand-name,
.page-title,
.section-title,
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.shell {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 17, 14, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  color: var(--ink-on-gold);
  font-family: var(--font-display);
  font-size: 1.15rem;
  box-shadow: 0 2px 0 #c9a227 inset, 0 0 14px rgba(62, 207, 255, 0.18);
}

.brand-name {
  font-size: 1.2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
}

.nav a:hover,
.nav a.is-active {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-sm {
  min-height: 2.3rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.95rem;
}

.btn-gold {
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  color: var(--ink-on-gold);
}

.btn-gold:hover {
  color: var(--ink-on-gold);
}

.btn-cyan {
  background: var(--cyan-soft);
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-cyan:hover {
  color: var(--cyan);
  border-color: #7adfff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 420px at 18% 20%, rgba(240, 193, 74, 0.22), transparent 60%),
    radial-gradient(700px 480px at 82% 70%, rgba(62, 207, 255, 0.16), transparent 55%),
    linear-gradient(180deg, #1c1814 0%, var(--bg) 55%, #100e0c 100%);
  animation: atmosphere-drift 14s ease-in-out infinite alternate;
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 232, 216, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 232, 216, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 80%);
  opacity: 0.55;
}

.hero-inner {
  padding: 7rem 0 4.5rem;
  animation: rise-in 700ms ease both;
}

.hero-brand {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 0.95;
}

.hero-title {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.hero-lead {
  margin: 0 0 1.8rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(62, 207, 255, 0.05), transparent 40%),
    var(--bg-2);
  border-block: 1px solid var(--border);
}

.section-close {
  padding-bottom: 5.5rem;
}

.section-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-lead {
  margin: 0 0 2rem;
  max-width: 40rem;
  color: var(--muted);
}

.section-cta {
  margin: 2rem 0 0;
}

.service-grid,
.review-list,
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.service-item h3,
.steps h3 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}

.service-item p,
.steps p,
.review-item p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.service-item {
  padding-top: 0.4rem;
  border-top: 2px solid var(--accent);
  animation: rise-in 700ms ease both;
}

.service-item:nth-child(2) { animation-delay: 80ms; }
.service-item:nth-child(3) { animation-delay: 140ms; }
.service-item:nth-child(4) { animation-delay: 200ms; }

.text-link {
  font-weight: 600;
  color: var(--accent);
}

.text-link:hover {
  color: var(--cyan);
}

.steps {
  display: grid;
  gap: 1.4rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.review-item blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}

.review-item footer {
  color: var(--muted);
  font-size: 0.95rem;
}

.review-item cite {
  font-style: normal;
  color: var(--text);
  font-weight: 600;
}

.close-inner {
  text-align: left;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  background: #100e0c;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.footer-brand {
  margin: 0;
  color: var(--accent);
}

.footer-meta {
  margin: 0;
  color: var(--muted);
}

.footer-link {
  font-weight: 600;
}

#quote {
  scroll-margin-top: 5rem;
}

#services,
#how,
#reviews {
  scroll-margin-top: 5rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.page-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.quote-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: start;
}

.quote-form,
.quote-result {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.field-block {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
}

.field-block legend {
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.kind-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kind-tab {
  min-height: 2.3rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.kind-tab.is-active,
.kind-tab[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.field span {
  color: var(--muted);
  font-size: 0.92rem;
}

.field input,
.field select,
.field textarea,
.order-field textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  padding: 0.7rem 0.8rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.is-hidden,
[hidden] {
  display: none !important;
}

.conditions-fields {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.conditions-fields legend {
  padding: 0 0.35rem;
  font-weight: 600;
  color: var(--accent);
}

.conditions-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.condition-check {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: start;
  margin: 0;
  color: var(--text);
  cursor: pointer;
}

.condition-check input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.condition-check .cond-surcharge {
  color: var(--cyan);
  font-weight: 600;
  white-space: nowrap;
}

.bundle-line {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.bundle-total {
  margin: 0.55rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.5rem;
}

.form-hint,
.muted {
  color: var(--muted);
}

.form-hint {
  margin: 0;
  font-size: 0.9rem;
}

.result-title {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
}

.result-body {
  min-height: 5rem;
  margin-bottom: 1rem;
}

.price-line {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0.35rem 0;
}

.tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
}

.segment-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.result-rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.copy-status {
  margin: 0.7rem 0 0;
  color: var(--cyan);
  font-weight: 600;
}

.banner {
  grid-column: 1 / -1;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.25rem;
}

.banner-warn {
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: #f0b4ac;
}

.bonds-panel {
  margin-bottom: 1rem;
  color: var(--muted);
}

.error-main {
  padding: 5rem 0 6rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent);
}

@keyframes atmosphere-drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.04) translate3d(-1.5%, 1%, 0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .service-grid,
  .review-list,
  .quote-layout,
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 5rem;
  }

  .nav a:not(.btn) {
    display: none;
  }
}

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

  .hero-atmosphere,
  .hero-inner,
  .service-item,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}
