:root {
  --bg: #041824;
  --bg-soft: #0a2333;
  --surface: rgba(10, 26, 40, 0.84);
  --surface-solid: #10283a;
  --surface-alt: rgba(240, 226, 209, 0.08);
  --surface-light: #f5ede3;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 122, 102, 0.34);
  --text: #f6efe4;
  --text-muted: #c7d2dd;
  --text-dark: #1c2a33;
  --accent: #ff7a66;
  --accent-strong: #ff5a42;
  --accent-soft: #ffd0c7;
  --aqua: #52d6cb;
  --sun: #f6c25b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius-xs: 0.75rem;
  --radius-sm: 1rem;
  --radius-md: 1.5rem;
  --radius-lg: 2rem;
  --container: 1180px;
  --font-body: "Aptos", "Candara", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-display: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 122, 102, 0.18), transparent 24rem),
    radial-gradient(circle at 80% 12%, rgba(82, 214, 203, 0.16), transparent 28rem),
    linear-gradient(180deg, #03131e 0%, var(--bg) 40%, #07111c 100%);
  min-height: 100vh;
  line-height: 1.6;
}

body::selection {
  background: rgba(255, 122, 102, 0.3);
  color: var(--text);
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 7rem 7rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 92%);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--surface-light);
  color: var(--text-dark);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-xs);
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section--band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.06));
  border-block: 1px solid rgba(255, 255, 255, 0.05);
}

.section--accent {
  position: relative;
}

.section--accent::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 122, 102, 0.12), transparent 18rem),
    radial-gradient(circle at 10% 80%, rgba(82, 214, 203, 0.1), transparent 22rem);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(4, 24, 36, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand__text {
  display: inline-flex;
  flex-direction: column;
  gap: 0.08rem;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.brand__text small {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a,
.footer-links a,
.footer-meta a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-radius: 999px;
  padding: 0.7rem 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fffaf8;
  box-shadow: 0 14px 28px rgba(255, 90, 66, 0.24);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.button--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
}

.button--full {
  width: 100%;
}

.hero {
  padding-top: 3.5rem;
}

.hero-grid,
.capability-layout,
.insights-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.estimator-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(18rem, 0.7fr) minmax(0, 0.72fr);
  gap: 1.5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero-copy h1,
.section-heading h2,
.capability-copy h2,
.estimator-copy h2,
.insight-card h2,
.faq-card h2,
.contact-copy h2,
.utility-shell h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.section-heading h2,
.capability-copy h2,
.estimator-copy h2,
.insight-card h2,
.faq-card h2,
.contact-copy h2,
.utility-shell h1 {
  font-size: clamp(2rem, 3vw, 3.3rem);
  margin-top: 0.2rem;
}

.eyebrow,
.estimate-output__eyebrow,
.floating-panel__eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent-soft);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-text,
.section-heading p,
.capability-copy > p,
.estimator-copy > p,
.contact-copy > p,
.utility-shell > p {
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero-actions,
.brief-actions,
.utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.install-cta {
  min-width: 10rem;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.status-pill {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.status-pill--live {
  color: #e8fff8;
  border-color: rgba(82, 214, 203, 0.35);
  background: rgba(82, 214, 203, 0.12);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.metric-card,
.service-card,
.feature-card,
.timeline-card,
.insight-card,
.faq-card,
.brief-output,
.estimator-card,
.estimate-output,
.visual-card,
.floating-panel,
.process-visual,
.utility-shell {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.metric-card,
.service-card,
.feature-card,
.timeline-card,
.insight-card,
.faq-card,
.brief-output,
.estimate-output,
.estimator-card,
.process-visual,
.utility-shell {
  border-radius: var(--radius-md);
}

.metric-card,
.feature-card,
.timeline-card,
.service-card {
  padding: 1.4rem;
}

.metric-card h2,
.service-card h3,
.feature-card h3,
.timeline-card h3,
.estimate-output h3,
.brief-output h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  line-height: 1.2;
}

.metric-card p,
.service-card p,
.feature-card p,
.timeline-card p,
.estimate-output p,
.brief-output p,
.faq-card p {
  margin: 0;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  padding-left: 1rem;
}

.visual-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(5, 17, 29, 0.86));
}

.visual-card--soft {
  background: linear-gradient(180deg, rgba(82, 214, 203, 0.08), rgba(5, 17, 29, 0.84));
}

.floating-panel {
  position: absolute;
  right: -1rem;
  bottom: 1rem;
  width: min(22rem, 100%);
  padding: 1.3rem;
  border-radius: var(--radius-sm);
}

.floating-checks,
.contact-points,
.deliverable-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.floating-checks li + li,
.contact-points li + li,
.deliverable-list li + li {
  margin-top: 0.45rem;
}

.section-heading {
  margin-bottom: 2rem;
}

.service-grid,
.feature-grid,
.timeline {
  display: grid;
  gap: 1rem;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.service-card {
  position: relative;
  min-height: 15rem;
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.1rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, rgba(255, 122, 102, 0.24), rgba(82, 214, 203, 0.18));
  color: var(--accent-soft);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.capability-copy {
  align-self: start;
}

.estimator-copy,
.insight-card,
.faq-card,
.contact-copy,
.brief-form,
.brief-output,
.estimate-output {
  position: relative;
  z-index: 1;
}

.support-illustration {
  margin-top: 1.6rem;
}

.estimator-card,
.estimate-output,
.brief-form,
.brief-output {
  padding: 1.4rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.field label,
.field legend {
  font-weight: 700;
  color: var(--text);
}

.field__split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.field output {
  color: var(--accent-soft);
  font-weight: 700;
}

input[type="text"],
input[type="email"],
select,
textarea,
input[type="range"] {
  width: 100%;
}

input[type="text"],
input[type="email"],
select,
textarea {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.9rem 1rem;
}

input::placeholder,
textarea::placeholder {
  color: rgba(199, 210, 221, 0.68);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(82, 214, 203, 0.35);
  outline-offset: 2px;
}

input[type="range"] {
  accent-color: var(--accent);
}

.fieldset {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1rem;
}

.fieldset label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-muted);
}

.fieldset label + label {
  margin-top: 0.55rem;
}

.estimate-stats {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.estimate-stats div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.estimate-stats dt {
  color: var(--text-muted);
}

.estimate-stats dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.timeline-card {
  min-height: 14rem;
}

.timeline-card__step {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 122, 102, 0.12);
  color: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-visual {
  margin-top: 1.5rem;
  padding: 1rem;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.chip-grid span {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.faq-card {
  padding: 1.4rem;
}

.faq-card details {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 1rem 0;
}

.faq-card details:first-of-type {
  margin-top: 1rem;
}

.faq-card summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary::after {
  content: "+";
  float: right;
  color: var(--accent-soft);
}

.faq-card details[open] summary::after {
  content: "−";
}

.contact-points {
  margin-top: 1.4rem;
}

.brief-form {
  align-self: start;
}

.form-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.brief-output__text {
  margin: 1rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.92rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1.5rem;
  align-items: end;
}

.footer-brand p {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--text-muted);
}

.footer-links,
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: 22rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(16, 40, 58, 0.96);
  border: 1px solid rgba(82, 214, 203, 0.25);
  box-shadow: var(--shadow);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

.is-invalid {
  border-color: rgba(255, 122, 102, 0.8) !important;
  box-shadow: 0 0 0 2px rgba(255, 122, 102, 0.16);
}

.utility-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.utility-shell {
  width: min(100%, 38rem);
  padding: 2rem;
  text-align: center;
}

.utility-shell img {
  margin: 0 auto 1rem;
}

.utility-shell .eyebrow {
  justify-content: center;
}

@media (max-width: 1080px) {
  .header-cta {
    display: none;
  }

  .hero-grid,
  .capability-layout,
  .contact-layout,
  .insights-layout,
  .estimator-layout,
  .footer-layout,
  .metric-grid,
  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    padding-left: 0;
  }

  .floating-panel {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }

  .footer-layout {
    align-items: start;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 4.3rem 0;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(8, 25, 38, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .section-heading h2,
  .capability-copy h2,
  .estimator-copy h2,
  .insight-card h2,
  .faq-card h2,
  .contact-copy h2,
  .utility-shell h1 {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .header-inner {
    min-height: 4.6rem;
  }

  .brand__text small {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .button,
  .status-pill,
  .chip-grid span {
    width: 100%;
  }

  .hero-actions,
  .brief-actions,
  .utility-actions {
    flex-direction: column;
  }

  .field__split,
  .estimate-stats div {
    flex-direction: column;
    align-items: flex-start;
  }

  .estimate-stats dd {
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
