:root {
  --ink: #0c1728;
  --ink-2: #13233b;
  --panel: #182944;
  --paper: #f5f1e8;
  --white: #ffffff;
  --muted: #667085;
  --muted-light: #aeb8c8;
  --line: rgba(12, 23, 40, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);
  --gold: #b8893d;
  --blue: #2f6fed;
  --max: 1160px;
  --shadow: 0 28px 80px rgba(5, 12, 24, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-nav-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

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

.skip-link:focus {
  z-index: 1000;
  width: auto;
  height: auto;
  clip: auto;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 4rem;
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(12, 23, 40, 0.94);
  border-bottom: 1px solid var(--line-light);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

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

.brand img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 0.22rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.primary-nav a {
  min-height: 2.55rem;
  padding: 0.65rem 0.86rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 850;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.primary-nav .nav-cta {
  margin-left: 0.35rem;
  color: var(--ink);
  background: var(--white);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle-line {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.25rem auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 23, 40, 0.96) 0%, rgba(12, 23, 40, 0.82) 42%, rgba(12, 23, 40, 0.32) 100%),
    url("assets/gregs-patents-hero.png") center / cover no-repeat;
}

.hero-inner,
.section-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.hero-inner {
  padding: 8.4rem 0 4.5rem;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.25rem, 7vw, 6.75rem);
}

h2 {
  font-size: clamp(2.35rem, 4.8vw, 4.8rem);
}

h3 {
  font-size: 1.24rem;
  line-height: 1.15;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 1.4vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.8rem 1.08rem;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.button-primary {
  color: var(--ink);
  background: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #efe4d0;
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.hero-note {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.hero-note a {
  color: var(--white);
  font-weight: 900;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.proof-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.proof-grid div {
  min-height: 7.5rem;
  padding: 1.2rem;
  background: var(--white);
}

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

.proof-grid strong {
  font-size: 1.3rem;
}

.proof-grid span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 5.5rem 0;
}

.split-layout,
.experience-grid,
.quote-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.lead-copy p,
.experience-grid p,
.quote-grid p,
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.service-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.service-grid article,
.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(12, 23, 40, 0.07);
}

.service-grid article {
  min-height: 18rem;
  padding: 1.2rem;
}

.service-grid span {
  display: block;
  margin-bottom: 3rem;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
}

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

.pricing-section,
.experience-section {
  color: var(--white);
  background: var(--ink);
}

.pricing-heading {
  max-width: 820px;
}

.price-card {
  min-height: 25rem;
  padding: 1.25rem;
  color: var(--ink);
}

.price-card-primary {
  grid-column: span 2;
  background: #fffaf0;
  border-color: rgba(184, 137, 61, 0.4);
}

.price-card small {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.price-card strong {
  display: block;
  margin: 1rem 0 0.7rem;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 0.95;
}

.price-card ul {
  display: grid;
  gap: 0.45rem;
  margin: 1.2rem 0 0;
  padding-left: 1.1rem;
}

.experience-grid {
  align-items: center;
}

.experience-grid p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
}

.timeline {
  display: grid;
  gap: 0.8rem;
}

.timeline div {
  padding: 1rem;
  border-left: 4px solid var(--gold);
  background: var(--panel);
}

.timeline span,
.timeline strong {
  display: block;
}

.timeline span {
  color: var(--muted-light);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline strong {
  margin-top: 0.24rem;
  font-size: 1.05rem;
}

.process-section {
  background: var(--white);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-list li {
  min-height: 11rem;
  padding: 1.2rem;
  background: var(--white);
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list span {
  margin-top: 0.6rem;
  color: var(--muted);
}

.quote-section {
  padding: 5.5rem 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(12, 23, 40, 0.96), rgba(19, 35, 59, 0.96)),
    url("assets/gregs-patents-hero.png") center / cover no-repeat;
}

.quote-grid {
  align-items: center;
}

.quote-grid p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
}

.quote-card {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.quote-card span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.phone-link {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  font-weight: 950;
}

.quote-card .button {
  width: fit-content;
}

.site-footer {
  padding: 2.4rem 0;
  color: rgba(255, 255, 255, 0.76);
  background: #050b14;
}

.site-footer strong {
  display: block;
  color: var(--white);
}

.site-footer p {
  margin: 0.3rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
}

input:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(184, 137, 61, 0.55);
  outline-offset: 2px;
}

@media (max-width: 1020px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: 4.7rem 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--line-light);
    border-radius: 8px;
    background: rgba(12, 23, 40, 0.98);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav .nav-cta {
    margin-left: 0;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card-primary {
    grid-column: auto;
  }

  .split-layout,
  .experience-grid,
  .quote-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 88svh;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(12, 23, 40, 0.92) 0%, rgba(12, 23, 40, 0.84) 58%, rgba(12, 23, 40, 0.72) 100%),
      url("assets/gregs-patents-hero.png") center / cover no-repeat;
  }

  .hero-inner {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }

  .brand span {
    display: none;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .proof-grid,
  .service-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .section,
  .quote-section {
    padding: 4rem 0;
  }

  .service-grid article,
  .price-card,
  .process-list li {
    min-height: auto;
  }

  .quote-card .button {
    width: 100%;
  }
}
