:root {
  color-scheme: light;
  --ink: #111820;
  --muted: #5b6874;
  --page: #f6f7f3;
  --surface: #ffffff;
  --surface-soft: #eef2ef;
  --line: #d8dfdc;
  --brand: #101820;
  --brand-2: #17242d;
  --gold: #c3953f;
  --gold-soft: #fff3d8;
  --teal: #0f766e;
  --teal-soft: #e6f5f2;
  --danger: #b42318;
  --shadow: 0 24px 64px rgba(17, 24, 32, 0.12);
  --shadow-soft: 0 14px 34px rgba(17, 24, 32, 0.08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f6f2e9;
  --muted: #c6d0ca;
  --page: #0b1115;
  --surface: #141e24;
  --surface-soft: #1b2a31;
  --line: #304249;
  --brand: #f6f2e9;
  --brand-2: #ffffff;
  --gold: #e7ba62;
  --gold-soft: #342715;
  --teal: #8de8dd;
  --teal-soft: #143632;
  --danger: #ff9b8f;
  --shadow: 0 28px 76px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(195, 149, 63, 0.38);
  outline-offset: 3px;
}

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

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

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

h1 {
  margin-bottom: 18px;
  color: inherit;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.01;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 12px;
  color: var(--brand);
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 19px;
  line-height: 1.18;
}

p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.64;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 50;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--gold);
  color: #101820;
  font-weight: 900;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  max-width: 900px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 247, 243, 0.92);
  border-bottom: 1px solid rgba(216, 223, 220, 0.88);
  backdrop-filter: blur(14px);
}

:root[data-theme="dark"] .site-header {
  background: rgba(11, 17, 21, 0.92);
  border-bottom-color: rgba(48, 66, 73, 0.88);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #101820, #0f766e);
  font-size: 18px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.brand-name,
.brand-subtitle {
  display: block;
}

.brand-name {
  color: var(--brand);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.02;
}

.brand-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav a,
.site-footer a,
.theme-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.nav a[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--teal);
}

.nav a:hover,
.nav a:focus,
.site-footer a:hover,
.site-footer a:focus,
.theme-toggle:hover,
.theme-toggle:focus {
  background: var(--surface-soft);
}

.theme-toggle {
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.theme-toggle-icon {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 999px;
  box-shadow: inset -4px -2px 0 currentColor;
}

:root[data-theme="dark"] .theme-toggle-icon {
  box-shadow: inset 0 0 0 4px currentColor;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero,
.page-hero {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.98), rgba(16, 24, 32, 0.92) 48%, rgba(15, 118, 110, 0.82)),
    #101820;
}

.hero {
  min-height: min(760px, calc(100vh - 76px));
  display: flex;
  align-items: center;
  padding: 70px 0;
}

.page-hero {
  padding: 78px 0 66px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.5fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.hero-copy {
  max-width: 850px;
}

.hero p,
.page-hero p,
.cta-card p {
  color: rgba(255, 255, 255, 0.82);
}

.lead {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: 18px;
}

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

.hero .eyebrow,
.page-hero .eyebrow,
.cta-card .eyebrow {
  color: #ffd58a;
}

.hero-actions,
.section-actions,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-button,
.outline-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.15;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.primary-button {
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.hero .primary-button,
.cta-card .primary-button {
  color: #101820;
  background: #ffffff;
}

.outline-button {
  color: var(--brand);
  background: var(--surface);
  border-color: var(--line);
}

.hero .outline-button,
.cta-card .outline-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.primary-button:hover,
.primary-button:focus,
.outline-button:hover,
.outline-button:focus {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.signal-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.signal-panel span {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.proof-strip {
  padding: 16px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

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

.proof-grid span {
  min-height: 58px;
  display: grid;
  gap: 3px;
  align-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.proof-grid strong {
  color: var(--brand);
  font-size: 15px;
}

.section {
  padding: clamp(50px, 7vw, 88px) 0;
}

.section-head {
  max-width: 780px;
}

.section-head.wide {
  max-width: 920px;
  margin-bottom: 22px;
}

.split,
.product-grid,
.contact-layout,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.62fr);
  gap: 28px;
  align-items: center;
}

.feature-list,
.service-grid,
.service-detail-grid,
.portfolio-grid {
  display: grid;
  gap: 12px;
}

.feature-list article,
.service-detail-grid article,
.portfolio-grid article,
.contact-info,
.contact-form,
.phone-frame,
.cta-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.feature-list article {
  padding: 18px;
}

.feature-list p,
.service-detail-grid p,
.portfolio-grid p {
  margin-bottom: 0;
  font-size: 14px;
}

.muted-section,
.product-section {
  background: var(--surface-soft);
  border-block: 1px solid var(--line);
}

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

.service-grid a {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand);
  font-size: 15px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.service-grid a:hover,
.service-grid a:focus {
  border-color: rgba(15, 118, 110, 0.42);
}

.phone-frame {
  width: min(390px, 100%);
  justify-self: center;
  padding: 12px;
  background: var(--surface);
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pill-row {
  margin: 18px 0;
}

.pill-row span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

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

.service-detail-grid article,
.portfolio-grid article {
  min-width: 0;
  padding: 22px;
}

.service-detail-grid span,
.portfolio-grid span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.service-detail-grid h2,
.portfolio-grid h2 {
  font-size: clamp(22px, 2.8vw, 30px);
}

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

.cta-section {
  background: var(--brand-2);
  color: #ffffff;
}

.cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 28px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.cta-card h2 {
  margin-bottom: 0;
  color: #ffffff;
}

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

.contact-info,
.contact-form {
  padding: 24px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
}

.field-error {
  min-height: 18px;
  display: block;
  margin-top: 5px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
}

.form-note {
  margin-bottom: 0;
  font-size: 13px;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  grid-template-columns: minmax(0, 1fr) auto;
}

.footer-grid strong,
.footer-grid span {
  display: block;
}

.footer-grid strong {
  color: var(--brand);
  font-size: 18px;
  font-weight: 900;
}

.footer-grid span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .container {
    width: 100%;
    max-width: none;
    padding-right: 14px;
    padding-left: 14px;
  }

  .header-inner {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    padding: 12px 0;
  }

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

  .nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease, margin-top 180ms ease;
  }

  .nav-open .nav {
    max-height: 360px;
    margin-top: 12px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a,
  .theme-toggle {
    width: 100%;
    background: var(--surface-soft);
  }

  .hero {
    min-height: auto;
    padding: 48px 0;
  }

  .hero-grid,
  .split,
  .product-grid,
  .contact-layout,
  .footer-grid,
  .cta-card,
  .proof-grid,
  .service-grid,
  .service-detail-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  h1,
  h2,
  h3,
  p {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    max-width: 390px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 21px;
  }

  .brand-subtitle {
    font-size: 12px;
  }

  .nav,
  .signal-panel {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 32px;
    line-height: 1.1;
  }

  h2 {
    font-size: 25px;
  }

  p,
  .lead {
    font-size: 14px;
  }

  .hero-actions,
  .section-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-button,
  .outline-button {
    width: 100%;
    min-height: 46px;
    padding-right: 12px;
    padding-left: 12px;
    text-align: center;
  }

  .contact-info,
  .contact-form,
  .cta-card {
    padding: 18px;
  }
}
