:root {
  --bg: #061124;
  --bg-soft: #0d1c35;
  --ink: #f7f2e8;
  --muted: #b9c3d8;
  --line: rgba(247, 242, 232, 0.14);
  --line-strong: rgba(250, 202, 122, 0.46);
  --accent: #f4c777;
  --accent-ink: #23190b;
  --card: rgba(15, 29, 55, 0.78);
  --paper: #f6efe2;
  --paper-ink: #1f2c45;
  --radius: 20px;
  --shadow-dark: 0 22px 54px rgba(2, 7, 18, 0.52);
  --shadow-soft: 0 14px 36px rgba(4, 10, 24, 0.34);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(120, 168, 247, 0.16), transparent 36%),
    radial-gradient(circle at 84% 14%, rgba(250, 199, 119, 0.12), transparent 32%),
    linear-gradient(180deg, #061124 0%, #040b19 100%);
  line-height: 1.55;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(247, 242, 232, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 242, 232, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(4, 11, 25, 0.66);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--ink);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  font-weight: 700;
}

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

.nav a {
  color: var(--ink);
  opacity: 0.9;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.73rem;
  font-weight: 650;
}

.nav a:hover {
  opacity: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(250, 202, 122, 0.92);
  background: linear-gradient(135deg, #f8dfa8 0%, #f2c065 52%, #d69a41 100%);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.006em;
  padding: 0.78rem 1.35rem;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease),
    filter 200ms var(--ease);
  box-shadow: 0 10px 24px rgba(18, 10, 0, 0.42);
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 16px 32px rgba(18, 10, 0, 0.5);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(18, 10, 0, 0.45);
}

/* Visible keyboard focus across all interactive elements (was missing entirely).
   Outline follows each element's own border-radius; contact inputs keep their
   more specific existing :focus style. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(244, 199, 119, 0.95);
  outline-offset: 2px;
}

.button-small {
  font-size: 0.7rem;
  padding: 0.52rem 0.88rem;
}

.button-outline {
  background: rgba(247, 242, 232, 0.03);
  color: var(--ink);
  border: 1.5px solid rgba(247, 242, 232, 0.52);
  box-shadow: none;
}

.button-outline:hover {
  border-color: rgba(250, 202, 122, 0.65);
}

.hero {
  padding-top: clamp(72px, 10vw, 130px);
  padding-bottom: clamp(68px, 9vw, 124px);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 24px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.73rem;
  letter-spacing: 0.17em;
  font-weight: 750;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.03;
}

h1 {
  font-size: clamp(2.8rem, 7.2vw, 5.9rem);
  max-width: 11ch;
}

.gold-phrase {
  color: var(--accent);
  font-style: italic;
}

.lead {
  color: var(--muted);
  margin-top: 1.05rem;
  max-width: 59ch;
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
}

.hero-actions {
  margin-top: 1.45rem;
  display: flex;
  gap: 0.84rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.hero-logo {
  width: min(330px, 72vw);
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-dark), 0 0 0 1px rgba(250, 202, 122, 0.12);
}

.section {
  padding: clamp(68px, 9vw, 124px) 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.6rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 4.2vw, 3.25rem);
  max-width: 22ch;
}

.section-problem {
  background: linear-gradient(180deg, rgba(8, 18, 35, 0.8) 0%, rgba(7, 15, 30, 0.86) 100%);
}

.problem-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.78rem;
}

.problem-grid p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: rgba(14, 27, 52, 0.6);
}

.problem-close {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 74ch;
}

.section-services {
  background: var(--bg-soft);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 34, 62, 0.96) 0%, rgba(11, 22, 42, 0.96) 100%);
  padding: 1.2rem;
  box-shadow: var(--shadow-dark);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease),
    border-color 240ms var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(250, 202, 122, 0.7);
  box-shadow: 0 0 0 1px rgba(250, 202, 122, 0.2), var(--shadow-dark);
}

.card h3 {
  font-size: 1.33rem;
  margin-bottom: 0.35rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.detail-pills {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-pills li {
  border: 1px solid rgba(247, 242, 232, 0.2);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-solutions {
  background: #081428;
}

.inline-link {
  display: inline-block;
  margin-top: 0.72rem;
  color: #ffd79b;
  text-decoration: none;
  font-weight: 700;
}

.inline-link:hover {
  text-decoration: underline;
}

.section-proof {
  background: #070f1f;
}

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

.proof-grid.is-four {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.section-contact {
  background: linear-gradient(160deg, #f6efe2 0%, #f9f2e6 100%);
  color: var(--paper-ink);
}

.contact-wrap h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4.8vw, 3.3rem);
}

.contact-wrap p {
  margin-top: 0.75rem;
  max-width: 66ch;
  color: #435678;
}

.contact-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  max-width: 680px;
}

.contact-form label {
  display: grid;
  gap: 0.36rem;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #425373;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(33, 52, 83, 0.25);
  border-radius: 12px;
  padding: 0.7rem 0.82rem;
  font: inherit;
  color: #1e2f4f;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(244, 199, 119, 0.8);
  outline-offset: 0;
}

.form-status {
  min-height: 1.2em;
  margin: 0.2rem 0 0;
  color: #394d72;
  font-weight: 600;
}

.form-status.is-pending { color: #6b5a2e; } /* amber-brown */
.form-status.is-success { color: #1c6b3f; } /* green */
.form-status.is-error   { color: #a12525; } /* red */

/* Honeypot: off-screen, not display:none (bots skip display:none fields). */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Disabled submit button feedback while sending */
.button:disabled,
.button[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  filter: none;
  box-shadow: none;
}

.site-footer {
  background: #040b19;
  border-top: 1px solid var(--line);
  padding: 1.8rem 0 2.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.1rem;
}

.footer-grid p {
  margin: 0.2rem 0;
  color: var(--muted);
}

.footer-grid a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  margin: 0.2rem 0;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.copyright {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-page {
  background: #070f1f;
}

.legal-main {
  padding: clamp(48px, 8vw, 88px) 0;
}

.legal-main h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  max-width: 15ch;
}

.legal-main h2 {
  margin-top: 1.2rem;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
}

.legal-main p,
.legal-main li {
  color: var(--muted);
  max-width: 72ch;
}

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

  .proof-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .nav a:not(.button-small) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
