:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --ink: #18212f;
  --muted: #5d6878;
  --line: #dce3eb;
  --brand: #0e6f74;
  --brand-dark: #0a4d51;
  --accent: #c88a2d;
  --dark: #111927;
  --dark-soft: #1c2636;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(17, 25, 39, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  margin: 12px;
  padding: 10px 14px;
  clip: auto;
  background: var(--surface);
  z-index: 20;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  content: '';
}

.nav-toggle-lines::before {
  transform: translateY(-6px);
}

.nav-toggle-lines::after {
  transform: translateY(4px);
}

.site-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 76px;
  display: none;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--brand-dark);
  background: #e9f4f4;
}

.hero {
  padding: 64px 0 40px;
  background: linear-gradient(135deg, #ffffff 0%, #edf5f5 58%, #f8efe1 100%);
}

.hero-grid,
.split,
.why-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 28px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.15rem, 8vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text,
.page-hero p,
.section-heading p,
.cta-box p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--brand);
  color: #fff;
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.hero-panel,
.content-panel,
.contact-form,
.contact-aside,
.cta-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.status-card span {
  color: var(--muted);
}

.status-card strong {
  color: var(--brand-dark);
  font-size: 1.35rem;
}

.capability-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.section,
.page-hero {
  padding: 56px 0;
}

.page-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.section-muted {
  background: #edf3f4;
}

.section-dark {
  background: var(--dark);
  color: #fff;
}

.section-dark .eyebrow,
.section-dark p {
  color: #d7e5e8;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.split h2,
.proof-band h2,
.why-grid h2,
.cta-box h2 {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card,
.platform-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h2,
.card h3,
.platform-card h2,
.platform-card h3 {
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: 0;
}

.card p,
.platform-card p,
.content-panel p,
.contact-aside p,
.proof-band p {
  color: var(--muted);
}

.platform-stack {
  display: grid;
  gap: 16px;
}

.platform-card {
  border-left: 5px solid var(--accent);
}

.platform-card.large {
  padding: 26px;
}

.proof-band {
  display: grid;
  gap: 18px;
  align-items: center;
}

.text-link {
  color: var(--brand-dark);
  font-weight: 800;
}

.why-list {
  display: grid;
  gap: 14px;
}

.why-list p {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: var(--dark-soft);
}

.final-cta {
  background: #fff;
}

.cta-box {
  text-align: center;
}

.cta-box p {
  margin: 14px auto 22px;
}

.portfolio-card span,
.footer-label {
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.contact-form label {
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--muted);
  background: #f5f7f9;
}

.site-footer {
  padding: 40px 0 24px;
  background: #0f1724;
  color: #eef5f6;
}

.site-footer p,
.site-footer small {
  color: #b9c7d3;
}

.site-footer a {
  color: #fff;
}

.admin-auth-page,
.admin-page {
  min-height: 100vh;
  background: #f1f5f7;
}

.admin-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-auth-card {
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-auth-card h1,
.admin-dashboard h1 {
  margin: 0 0 18px;
  line-height: 1.12;
  letter-spacing: 0;
}

.alert {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #e3b6b6;
  border-radius: var(--radius);
  background: #fff0f0;
  color: #8a2525;
  font-weight: 700;
}

.admin-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

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

.admin-dashboard {
  display: grid;
  gap: 24px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (min-width: 760px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .hero {
    padding: 92px 0 64px;
  }

  .hero-grid,
  .split,
  .why-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 0.8fr;
    align-items: start;
  }

  .card-grid.two {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-band {
    grid-template-columns: 1fr 1fr auto;
  }
}

@media (min-width: 1040px) {
  .card-grid.four {
    grid-template-columns: repeat(4, 1fr);
  }
}
