* {
  box-sizing: border-box;
}

:root {
  --bg: #0B1120;
  --bg-deep: #070B14;
  --surface: #111827;
  --surface-2: #172033;
  --surface-3: #1E293B;
  --border: rgba(203, 213, 225, 0.16);
  --border-strong: rgba(148, 163, 184, 0.34);
  --text: #F8FAFC;
  --muted: #CBD5E1;
  --muted-2: #94A3B8;
  --soft: #E2E8F0;
  --accent: #38BDF8;
  --accent-2: #2563EB;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #F87171;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --glow-blue: 0 0 0 1px rgba(56, 189, 248, 0.14), 0 24px 70px rgba(37, 99, 235, 0.12);
  --radius: 24px;
  --max: 1440px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(56, 189, 248, 0.15), transparent 26%),
    radial-gradient(circle at 85% 5%, rgba(37, 99, 235, 0.18), transparent 28%),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 45%, #08101c);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

.container {
  width: min(calc(100% - clamp(32px, 6vw, 96px)), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.24);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 150px;
  height: auto;
  object-fit: contain;
  display: block;
}

.brand-text {
  font-size: 16px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}

.nav a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.nav-button {
  margin-left: 6px;
  padding: 12px 18px !important;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white !important;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
}

.hero {
  min-height: calc(100vh - 76px);
  padding: clamp(72px, 9vh, 120px) 0;
  position: relative;
  display: flex;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: min(820px, 90vw);
  height: min(820px, 90vw);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.13), transparent 62%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1.25fr) minmax(380px, 0.75fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.status-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #BAE6FD;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.status-pill span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12), 0 0 16px rgba(34, 197, 94, 0.45);
}

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

.hero h1 {
  margin: 24px 0 20px;
  max-width: 980px;
  font-size: clamp(52px, 6.2vw, 108px);
  line-height: 0.94;
  letter-spacing: -0.07em;
  font-weight: 900;
}

.hero-lead {
  max-width: 780px;
  color: #E2E8F0;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.42;
  margin-bottom: 18px;
}

.hero-note {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  border-left: 3px solid rgba(56, 189, 248, 0.55);
  padding-left: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.42);
}

.btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  border-color: var(--border-strong);
}

.trust-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span,
.about-points span,
.contact-links a {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  color: #D7E1EE;
  font-size: 14px;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-panel {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  padding: 32px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(23, 32, 51, 0.96), rgba(17, 24, 39, 0.96));
  border: 1px solid var(--border-strong);
  box-shadow: var(--glow-blue);
}

.panel-label {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.metric-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(7, 11, 20, 0.42);
  border: 1px solid var(--border);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.metric-item:hover {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(56, 189, 248, 0.34);
}

.metric-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #BAE6FD;
}

.metric-item span,
.panel-footer p {
  color: var(--muted);
}

.panel-footer {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.18);
}

.panel-footer span {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 900;
}

.section {
  padding: 92px 0;
  position: relative;
}

.section + .section {
  border-top: 1px solid rgba(203, 213, 225, 0.08);
}

.section-muted {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.06), transparent 28%),
    rgba(255, 255, 255, 0.025);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 790px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head.left {
  margin: 0;
  text-align: left;
}

.section-kicker {
  width: fit-content;
  margin: 0 auto 12px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #BAE6FD;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.20);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.section-head.left .section-kicker,
.about-grid .section-kicker,
.contact-copy .section-kicker {
  margin-left: 0;
}

.section-head h2,
.about-grid h2,
.contact-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.section-head p,
.about-content p,
.contact-copy p {
  color: var(--muted);
  font-size: 18px;
}

.services-grid,
.case-grid,
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

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

.card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.54), rgba(17, 24, 39, 0.88));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.75;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.32);
  box-shadow: var(--glow-blue);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.68), rgba(17, 24, 39, 0.94));
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  color: #BAE6FD;
  background: rgba(56, 189, 248, 0.11);
  border: 1px solid rgba(56, 189, 248, 0.26);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.card p,
.card li {
  color: var(--muted);
}

.card ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.card li + li {
  margin-top: 8px;
}

.card li::marker {
  color: var(--accent);
}

.proof-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

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

.mini-card {
  position: relative;
  padding: 24px;
  min-height: 174px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.50), rgba(17, 24, 39, 0.84));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.mini-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--success), var(--accent));
  opacity: 0.75;
}

.mini-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: var(--text);
}

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

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.problem-item {
  position: relative;
  padding: 18px 18px 18px 46px;
  min-height: 118px;
  display: flex;
  align-items: center;
  border-radius: 20px;
  color: #EDF6FF;
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid var(--border);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.problem-item::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #052e16;
  background: var(--success);
  font-size: 12px;
  font-weight: 900;
}

.case-card {
  min-height: 455px;
}

.case-tag,
.duration {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #BAE6FD;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stack {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(56, 189, 248, 0.06);
  color: #D7E1EE;
  font-weight: 800;
}

.package-card.featured {
  border-color: rgba(56, 189, 248, 0.44);
  box-shadow: var(--glow-blue);
}

.package-card.featured::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 1;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.about-content {
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.58);
  border: 1px solid var(--border);
}

.about-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contact-section {
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 28%),
    rgba(255, 255, 255, 0.025);
  border-top: 1px solid var(--border);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-links a:hover {
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(56, 189, 248, 0.08);
}

.contact-form {
  padding: 26px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(17, 24, 39, 0.92));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  display: grid;
  gap: 15px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.18);
  background: rgba(7, 11, 20, 0.48);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(56, 189, 248, 0.62);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
  background: rgba(7, 11, 20, 0.72);
}

select option {
  color: #0f172a;
}

textarea {
  resize: vertical;
}

.form-alert {
  display: none;
  padding: 13px 14px;
  border-radius: 14px;
  font-weight: 800;
}

.form-alert.success {
  display: block;
  color: #DCFCE7;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.form-alert.error {
  display: block;
  color: #FEE2E2;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.28);
}

.footer {
  padding: 24px 0 34px;
  color: var(--muted);
  border-top: 1px solid rgba(203, 213, 225, 0.08);
}

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

@media (max-width: 1120px) {
  .hero-grid,
  .proof-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-panel {
  justify-self: start;
  max-width: 720px;
  }
  .services-grid,
  .case-grid,
  .engagement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-panel {
    max-width: 720px;
  }
}

@media (max-width: 760px) {
  body::before {
    opacity: 0.14;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .nav {
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
  }

  .nav a {
    padding: 8px 10px;
  }

  .nav-button {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding: 62px 0;
  }

  .services-grid,
  .case-grid,
  .engagement-grid,
  .problem-grid,
  .proof-cards {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 68px);
  }

  .hero-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 68px 0;
  }

  .card,
  .contact-form,
  .about-content,
  .hero-panel {
    border-radius: 22px;
  }
}


/* ===== Mobile + Hero Typography Patch ===== */
html, body { overflow-x: hidden; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }

.header-inner {
  width: min(calc(100% - clamp(24px, 5vw, 72px)), var(--max));
}

.brand { flex: 0 0 auto; min-width: 0; }
.brand-logo { width: clamp(150px, 14vw, 230px); max-height: 54px; }

.hero-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
}

.hero h1 {
  font-family: "Outfit", "Inter", sans-serif;
  max-width: 920px;
  font-size: clamp(46px, 5.6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 900;
  color: transparent;
  background: linear-gradient(90deg, #F8FAFC 0%, #E0F2FE 42%, #7DD3FC 72%, #60A5FA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-wrap: balance;
}

.hero-lead {
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.55;
  color: #DCE8F7;
}

.hero-note {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.75;
}

@media (max-width: 1120px) {
  .header-inner { flex-direction: row; align-items: center; }
  .hero-grid, .proof-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-panel { justify-self: stretch; max-width: none; }
  .hero h1 { max-width: 780px; }
}

@media (max-width: 760px) {
  :root { --radius: 20px; }

  .container, .header-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  .header-inner {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 0 16px;
  }

  .brand { justify-content: center; }

  .brand-logo {
    width: min(240px, 72vw);
    max-height: 64px;
    margin: 0 auto;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(203, 213, 225, 0.12);
    font-size: 14px;
    line-height: 1.15;
    text-align: center;
  }

  .nav-button {
    grid-column: 1 / -1;
    min-height: 48px !important;
    margin-left: 0;
    border-radius: 16px !important;
  }

  .hero {
    min-height: auto;
    padding: 44px 0 58px;
    align-items: flex-start;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .status-pill {
    max-width: 100%;
    width: 100%;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 16px;
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: 0.035em;
  }

  .status-pill span { flex: 0 0 auto; margin-top: 4px; }

  .hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(34px, 10.5vw, 48px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    max-width: 100%;
  }

  .hero-lead {
    font-size: 17px;
    line-height: 1.62;
    max-width: 100%;
    margin-bottom: 16px;
  }

  .hero-note {
    max-width: 100%;
    font-size: 14.5px;
    line-height: 1.75;
    padding-left: 14px;
  }

  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .btn {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    font-size: 15px;
    border-radius: 16px;
  }

  .trust-row { gap: 8px; margin-top: 22px; }
  .trust-row span { font-size: 12.5px; padding: 7px 9px; }

  .hero-panel {
    width: 100%;
    max-width: none;
    padding: 18px;
    border-radius: 22px;
  }

  .panel-label { font-size: 12px; margin-bottom: 12px; }
  .metric-list { gap: 10px; }
  .metric-item { padding: 14px; border-radius: 16px; }
  .metric-item strong { font-size: 28px; }
  .metric-item span, .panel-footer p { font-size: 14px; line-height: 1.45; }
  .panel-footer { padding: 14px; border-radius: 16px; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 30px; }

  .section-kicker {
    margin-left: auto;
    margin-right: auto;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
  }

  .section-head h2, .about-grid h2, .contact-copy h2 {
    font-family: "Outfit", "Inter", sans-serif;
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
  }

  .section-head p, .about-content p, .contact-copy p {
    font-size: 15.5px;
    line-height: 1.7;
  }

  .services-grid, .case-grid, .engagement-grid, .problem-grid, .proof-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card, .mini-card, .problem-item, .contact-form, .about-content {
    padding: 18px;
    border-radius: 18px;
  }

  .card h3 { font-size: 21px; }
  .card p, .card li { font-size: 14.5px; }
  .case-card { min-height: auto; }
  .proof-grid, .about-grid, .contact-grid { gap: 22px; }
  .problem-item { min-height: auto; padding-left: 44px; }
  .contact-links { display: grid; grid-template-columns: 1fr; }
  .footer-inner { font-size: 13px; }
}

@media (max-width: 420px) {
  .container, .header-inner { width: min(calc(100% - 24px), var(--max)); }
  .brand-logo { width: min(220px, 78vw); }
  .nav { grid-template-columns: 1fr 1fr; }
  .nav a { font-size: 13px; }
  .hero h1 { font-size: clamp(32px, 11vw, 44px); }
  .hero-lead { font-size: 16px; }
  .hero-note { font-size: 14px; }
}


/* ===== Mobile Hamburger Navigation Patch ===== */

.menu-toggle {
  display: none;
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
  }

  .brand {
    justify-content: flex-start;
  }

  .brand-logo {
    width: min(220px, 62vw);
    max-height: 58px;
    margin: 0;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    gap: 5px;
    padding: 10px;
    border: 1px solid rgba(203, 213, 225, 0.18);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.92);
    color: #F8FAFC;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  }

  .menu-toggle span {
    width: 22px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: #E2E8F0;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

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

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

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

  .nav {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    margin-top: 4px;
    border: 1px solid rgba(203, 213, 225, 0.14);
    border-radius: 18px;
    background:
      radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 34%),
      rgba(7, 11, 20, 0.96);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  }

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

  .nav a {
    min-height: 46px;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(203, 213, 225, 0.10);
    font-size: 15px;
    font-weight: 800;
    text-align: left;
  }

  .nav a:hover {
    background: rgba(56, 189, 248, 0.10);
    border-color: rgba(56, 189, 248, 0.24);
  }

  .nav-button {
    grid-column: auto;
    width: 100%;
    min-height: 48px !important;
    justify-content: center !important;
    margin-left: 0;
    text-align: center;
    border-radius: 14px !important;
  }
}

@media (min-width: 761px) {
  .nav {
    display: flex !important;
  }
}

.form-alert {
  display: none;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 800;
  line-height: 1.5;
  animation: slideDownFade 0.25s ease-out;
}

.form-alert.success {
  display: block;
  color: #DCFCE7;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.34);
  box-shadow: 0 14px 34px rgba(34, 197, 94, 0.12);
}

.form-alert.error {
  display: block;
  color: #FEE2E2;
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.34);
  box-shadow: 0 14px 34px rgba(248, 113, 113, 0.12);
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
