:root {
  --brand-primary: #151827;
  --brand-accent: #f97316;
  --brand-bg: #f8fafc;
  --brand-text: #151827;
  --surface: #ffffff;
  --muted: #64748b;
  --border: #d8dee8;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--brand-bg);
  color: var(--brand-text);
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.loading-state,
.error-state {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.error-state {
  color: #991b1b;
}

.topbar {
  border-bottom: 1px solid color-mix(in srgb, var(--brand-primary), transparent 84%);
  background: color-mix(in srgb, var(--brand-bg), #ffffff 70%);
}

.topbar-inner {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--brand-primary);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-primary);
  color: #ffffff;
  font-weight: 800;
}

.brand-name {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar a[href^="#"] {
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration: none;
}

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

.hero {
  display: grid;
  min-height: calc(100vh - 72px);
  align-items: center;
  padding-block: 48px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand-accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--brand-primary);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 24px;
  color: var(--brand-primary);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.08;
}

.hero-copy {
  max-width: 680px;
  color: color-mix(in srgb, var(--brand-text), #475569 46%);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}

.hero-panel {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand-primary), transparent 84%);
  border-radius: 8px;
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--brand-primary), #ffffff 12%), transparent 68%),
    var(--brand-primary);
  box-shadow: var(--shadow);
}

.hero-panel::before,
.hero-panel::after {
  position: absolute;
  display: block;
  content: "";
}

.hero-panel::before {
  inset: 28px;
  border: 1px solid color-mix(in srgb, #ffffff, transparent 74%);
  border-radius: 6px;
}

.hero-panel::after {
  right: 32px;
  bottom: 32px;
  width: 44%;
  height: 10px;
  border-radius: 999px;
  background: var(--brand-accent);
  opacity: 0.9;
}

.hero-panel-content {
  position: relative;
  z-index: 1;
  display: grid;
  height: 100%;
  min-height: 390px;
  align-content: end;
  padding: 32px;
  color: #ffffff;
}

.hero-panel-content p {
  max-width: 280px;
  margin-bottom: 0;
  color: color-mix(in srgb, #ffffff, transparent 16%);
  font-size: 1rem;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-card {
  min-height: 168px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.service-card span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-accent), transparent 85%);
  color: var(--brand-accent);
  font-weight: 900;
}

.service-card p {
  margin: 0;
  color: color-mix(in srgb, var(--brand-text), #475569 35%);
  line-height: 1.55;
}

.contact-band {
  background: color-mix(in srgb, var(--brand-primary), #ffffff 94%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 0.72fr);
  gap: 48px;
  align-items: start;
}

.contact-copy {
  color: color-mix(in srgb, var(--brand-text), #475569 32%);
  line-height: 1.65;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--brand-primary);
  font-size: 0.9rem;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--brand-text);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--brand-accent);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

@media (max-width: 840px) {
  .topbar-inner,
  .section,
  .footer-inner {
    width: min(100% - 28px, 680px);
  }

  .topbar-inner {
    min-height: 64px;
  }

  .hero {
    min-height: auto;
    padding-block: 32px;
  }

  .hero-inner,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-panel,
  .hero-panel-content {
    min-height: 260px;
  }

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

  .section {
    padding: 48px 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.35rem;
  }

  .topbar a[href^="#"] {
    display: none;
  }

  .contact-form {
    padding: 18px;
  }
}
