:root {
  --bg: #07090d;
  --bg-soft: #0d1218;
  --panel: #101722;
  --panel-2: #151d29;
  --text: #f4f7fb;
  --muted: #aab3c0;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #d62f2f;
  --accent-soft: rgba(214, 47, 47, 0.12);
  --max: 1160px;
  --radius: 20px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at top, #171d29 0%, #0a0d13 38%),
    linear-gradient(180deg, #0a0d13 0%, #06080c 100%);
}

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

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

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(7, 9, 13, 0.92);
  border-bottom: 1px solid var(--line);
}

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

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

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 12px;
  padding: 4px;
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 800;
}

.brand-sub {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}

.nav-links a {
  font-weight: 700;
  font-size: 0.96rem;
}

.nav-links a:hover {
  color: var(--text);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid rgba(214, 47, 47, 0.45);
  background: rgba(214, 47, 47, 0.12);
  color: #fff;
  font-weight: 800;
  transition: 0.2s ease;
  text-align: center;
}

.button:hover {
  background: rgba(214, 47, 47, 0.2);
  transform: translateY(-1px);
}

.button-small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.95rem;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Shared */

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

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -1.8px;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  font-weight: 800;
  color: #dde4ee;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-text,
.section-text,
.focus-item p,
.service-card p,
.service-card li,
.example-content p,
.example-content li,
.contact-row span,
.contact-row a {
  color: var(--muted);
}

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

.center-actions {
  justify-content: center;
}

.hero-panel,
.service-card,
.example-card,
.about-card,
.contact-card,
.examples-cta-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Home page */

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 28px;
  align-items: start;
}

.hero-text {
  font-size: 1.04rem;
  max-width: 640px;
}

.hero-panel {
  padding: 26px;
}

.panel-label {
  margin-bottom: 18px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 800;
}

.focus-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.focus-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.focus-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  font-weight: 800;
}

.services,
.about,
.contact,
.examples-page {
  padding: 54px 0;
}

.examples-page-hero {
  padding: 54px 0 12px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-head-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-title {
  max-width: none;
}

.services-grid,
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.service-card,
.about-card,
.contact-card {
  padding: 28px;
}

.service-card.featured {
  border-color: rgba(214, 47, 47, 0.28);
}

.service-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  font-weight: 800;
  margin-bottom: 18px;
}

.service-card ul,
.example-content ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.service-card li + li,
.example-content li + li {
  margin-top: 8px;
}

/* Examples */

.example-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.example-link {
  display: block;
}

.example-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.example-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.example-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.example-content p {
  margin-bottom: 0;
}

.example-content ul {
  flex: 1;
}

.example-content .button {
  margin-top: 20px;
  align-self: flex-start;
}

.examples-cta-card {
  margin-top: 28px;
  padding: 32px 28px;
  text-align: center;
}

/* About + Contact */

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.about-list-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.check-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.check-row:first-child {
  border-top: none;
  padding-top: 0;
}

.check-row span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  font-weight: 800;
}

.check-row p {
  margin: 0;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-row {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.contact-row strong {
  display: block;
  margin-bottom: 6px;
}

form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

label {
  font-size: 0.93rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border-radius: 14px;
  padding: 15px 16px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(214, 47, 47, 0.55);
  box-shadow: 0 0 0 3px rgba(214, 47, 47, 0.12);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

/* Footer */

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Tablet */

@media (max-width: 980px) {
  .hero-grid,
  .services-grid,
  .examples-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .examples-page-hero {
    padding-top: 48px;
  }

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

/* Mobile */

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

  .nav {
    min-height: 62px;
    padding: 10px 0;
    gap: 12px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    padding: 3px;
  }

  .brand-name {
    font-size: 0.98rem;
    line-height: 1;
  }

  .brand-sub {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-group {
    gap: 0;
    flex-shrink: 0;
  }

  .nav-group .button {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.84rem;
    border-radius: 11px;
  }

  .hero,
  .examples-page-hero {
    padding: 30px 0 18px;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.03;
    letter-spacing: -1.2px;
    margin-bottom: 14px;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero-text,
  .section-text {
    font-size: 0.98rem;
  }

  .eyebrow,
  .section-kicker {
    font-size: 0.74rem;
    padding: 7px 11px;
    margin-bottom: 14px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .hero-actions .button,
  .center-actions .button,
  .example-content .button,
  form .button {
    width: 100%;
  }

  .hero-panel,
  .service-card,
  .about-card,
  .contact-card,
  .examples-cta-card,
  .example-content {
    padding: 20px;
    border-radius: 18px;
  }

  .services,
  .about,
  .contact,
  .examples-page {
    padding: 34px 0;
  }

  .section-head {
    margin-bottom: 20px;
  }

  .focus-item {
    grid-template-columns: 38px 1fr;
    gap: 12px;
    padding: 14px 0;
  }

  .focus-number {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.85rem;
  }

  .contact-row {
    padding: 14px;
    border-radius: 14px;
  }

  input,
  select,
  textarea {
    padding: 14px;
    border-radius: 12px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

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

  .nav {
    min-height: 58px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

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

  .nav-group .button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.42rem;
  }

  .example-media {
    aspect-ratio: 16 / 11;
  }
}