:root {
  --bg: #f5f5f2;
  --ink: #0b0d12;
  --muted: #666b76;
  --line: rgba(11, 13, 18, 0.12);
  --panel: #ffffff;
  --accent: #111827;
  --accent-soft: #e8eaee;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(10, 13, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 56px);
  color: #fff;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(245, 245, 242, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 40px rgba(10, 13, 20, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 82px;
  height: 50px;
  padding: 6px 8px;
  background: #fff;
  border-radius: var(--radius);
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.92rem;
  font-weight: 650;
}

.main-nav a {
  opacity: 0.82;
}

.main-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #0b0d12;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 9, 14, 0.96) 0%, rgba(7, 9, 14, 0.78) 45%, rgba(7, 9, 14, 0.34) 100%),
    url("assets/asg-logo-white-new.png") right 7% center / min(46vw, 560px) auto no-repeat,
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.16), transparent 32%),
    #0b0d12;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 80%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: end;
  padding-top: 130px;
  padding-bottom: 92px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 7vw, 6.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.btn-primary {
  background: #fff;
  color: #0b0d12;
  border-color: #fff;
}

.hero .btn-primary {
  background: #fff;
  color: #0b0d12;
  box-shadow: 0 12px 34px rgba(255, 255, 255, 0.12);
}

.contact-card .btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-logo {
  width: 170px;
  margin-bottom: 26px;
  padding: 10px;
  background: #fff;
  border-radius: var(--radius);
}

.panel-label {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-title {
  margin-bottom: 24px;
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1.12;
}

.signal-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.78);
}

.signal-list li {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.section {
  padding: clamp(76px, 10vw, 124px) 0;
}

.intro-section {
  padding-top: 84px;
  padding-bottom: 84px;
  background: #fff;
}

.intro-grid,
.benefits-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(36px, 7vw, 90px);
  align-items: start;
}

.intro-grid p:last-child,
.benefits-grid p,
.contact-grid p,
.fit-grid p {
  color: var(--muted);
  font-size: 1.12rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.1rem;
}

.problem-section {
  background: #0b0d12;
  color: #fff;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.problem-grid article {
  min-height: 260px;
  padding: 28px;
  background: #0b0d12;
}

.problem-grid span {
  display: inline-block;
  margin-bottom: 70px;
  color: rgba(255, 255, 255, 0.46);
  font-weight: 850;
}

.problem-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.card {
  min-height: 310px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}

.card-number {
  display: inline-block;
  margin-bottom: 82px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.card p,
.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.solution-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
  column-gap: 28px;
  row-gap: 16px;
  margin-top: 38px;
}

.solution-lead,
.ownership-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.solution-lead {
  display: grid;
  align-content: end;
  min-height: 360px;
  background:
    linear-gradient(150deg, rgba(11, 13, 18, 0.88), rgba(11, 13, 18, 0.68)),
    url("assets/asg-logo-black.jpg") center / cover no-repeat;
  color: #fff;
}

.solution-lead p {
  color: rgba(255, 255, 255, 0.74);
}

.solution-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.solution-categories article {
  min-height: 174px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.solution-categories span {
  display: block;
  margin-bottom: 34px;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.solution-categories p,
.ownership-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.ownership-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1fr);
  grid-template-areas:
    "kicker text"
    "title text"
    "points text";
  column-gap: 28px;
  row-gap: 16px;
  align-items: start;
}

.ownership-card .eyebrow {
  grid-area: kicker;
}

.ownership-card h3 {
  grid-area: title;
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.ownership-card p {
  grid-area: text;
}

.ownership-points {
  grid-area: points;
  display: grid;
  gap: 8px;
}

.ownership-points span {
  padding: 11px 12px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: #303642;
  font-weight: 800;
}

.dark-band {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    #0b0d12;
}

.dark-band .eyebrow,
.dark-band p {
  color: rgba(255, 255, 255, 0.68);
}

.projects-section {
  background: #fff;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.project-list article {
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(11, 13, 18, 0.04), transparent 42%),
    var(--bg);
}

.project-list p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.benefits-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.benefits-list strong {
  font-size: 1.08rem;
}

.benefits-list span {
  color: rgba(255, 255, 255, 0.68);
}

.fit-section {
  background: #fff;
}

.fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: start;
}

.fit-section h2 {
  overflow-wrap: anywhere;
}

.fit-grid > *,
.intro-grid > *,
.benefits-grid > *,
.contact-grid > * {
  min-width: 0;
}

.fit-panel {
  display: grid;
  gap: 18px;
}

.fit-panel div {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.fit-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.fit-panel p {
  margin-bottom: 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.timeline-item {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.timeline-item span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 48px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
}

.contact-section {
  background: #fff;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.contact-questions {
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
}

.contact-questions strong {
  display: block;
  margin-bottom: 12px;
}

.contact-questions ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.contact-label {
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
}

.contact-card a:not(.btn) {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 1.12rem;
  font-weight: 750;
}

.contact-card .btn {
  margin-top: 18px;
}

.site-footer {
  padding: 30px 0;
  background: #0b0d12;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid p {
  margin-bottom: 0;
}

.footer-grid div {
  display: flex;
  gap: 22px;
}

.legal-page {
  background: #fff;
}

.legal-header {
  position: sticky;
  color: var(--ink);
}

.legal-main {
  padding: 80px 0 110px;
}

.legal-content {
  max-width: 900px;
}

.legal-content h1 {
  margin-bottom: 54px;
  color: var(--ink);
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.legal-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.legal-section h3 {
  margin-top: 28px;
}

.legal-section p {
  color: var(--muted);
}

.legal-section a {
  color: var(--ink);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-updated {
  margin-top: 34px;
  font-weight: 750;
}

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

  .hero-grid {
    gap: 38px;
  }

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

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    padding: 12px 14px;
  }

  .brand {
    width: 72px;
    height: 44px;
  }

  .nav-toggle {
    position: relative;
    z-index: 22;
    display: grid;
    gap: 6px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid currentColor;
    border-radius: var(--radius);
    background: transparent;
    color: inherit;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .main-nav {
    position: fixed;
    inset: 0 0 auto 0;
    display: grid;
    gap: 4px;
    padding: 82px 18px 22px;
    background: rgba(245, 245, 242, 0.98);
    color: var(--ink);
    box-shadow: 0 22px 60px rgba(10, 13, 20, 0.14);
    transform: translateY(-110%);
    transition: transform 180ms ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(7, 9, 14, 0.94), rgba(7, 9, 14, 0.82)),
      url("assets/asg-logo-white-new.png") center 20% / 78vw auto no-repeat,
      #0b0d12;
  }

  .hero-grid {
    padding-top: 122px;
    padding-bottom: 52px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-actions,
  .footer-grid,
  .footer-grid div {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .cards,
  .problem-grid,
  .project-list,
  .fit-grid,
  .timeline,
  .solution-showcase,
  .solution-categories,
  .ownership-card {
    grid-template-columns: 1fr;
  }

  .ownership-card {
    grid-column: auto;
    grid-template-areas:
      "kicker"
      "title"
      "text"
      "points";
  }

  .card {
    min-height: auto;
  }

  .card-number,
  .timeline-item span {
    margin-bottom: 34px;
  }

  .benefits-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
