:root {
  --charcoal: #33302e;
  --charcoal-deep: #181614;
  --teal: #226d8c;
  --gold: #e3c352;
  --coral: #fc784c;
  --paper: #f6f2ea;
  --ink-soft: rgba(246, 242, 234, 0.78);
  --line: rgba(246, 242, 234, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--charcoal-deep);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(18px, 5vw, 72px);
}

.brand img {
  width: clamp(170px, 22vw, 285px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  min-height: 86svh;
  align-items: center;
  overflow: hidden;
  padding: 118px clamp(18px, 5vw, 72px) 84px;
  background:
    linear-gradient(90deg, rgba(24, 22, 20, 0.92) 0%, rgba(24, 22, 20, 0.68) 45%, rgba(24, 22, 20, 0.26) 100%),
    url("assets/hero-software-instrument.png") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 12px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
  content: "";
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 22, 20, 0.68) 0%, rgba(24, 22, 20, 0.1) 42%, rgba(24, 22, 20, 0.86) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--paper);
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 600px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--charcoal-deep);
  background: var(--gold);
}

.button.secondary {
  border-color: var(--line);
  color: var(--paper);
  background: rgba(246, 242, 234, 0.08);
  backdrop-filter: blur(12px);
}

.intro {
  display: grid;
  padding: clamp(44px, 7vw, 84px) clamp(18px, 5vw, 72px);
  background: var(--paper);
  color: var(--charcoal);
}

.intro-copy {
  max-width: 970px;
}

.intro p {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 2.25rem);
  font-weight: 750;
  line-height: 1.18;
}

.section {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 72px);
  background: var(--charcoal);
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.section-alt {
  background: var(--charcoal-deep);
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card,
.product-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: rgba(246, 242, 234, 0.06);
  box-shadow: var(--shadow);
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 18px;
  background: rgba(16, 15, 14, 0.7);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 180ms ease;
}

.product-card-media:hover img,
.product-card-media:focus-visible img {
  transform: scale(1.02);
}

.accent {
  display: block;
  width: 42px;
  height: 6px;
  margin-bottom: 24px;
  border-radius: 999px;
}

.accent.teal {
  background: var(--teal);
}

.accent.gold {
  background: var(--gold);
}

.accent.coral {
  background: var(--coral);
}

.card p,
.product-card p {
  margin: 18px 0 0;
  color: var(--ink-soft);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding-top: 24px;
  color: var(--gold);
  font-weight: 850;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: 72svh;
  padding: 128px clamp(18px, 5vw, 72px) clamp(58px, 8vw, 108px);
  background:
    linear-gradient(135deg, rgba(34, 109, 140, 0.26), rgba(252, 120, 76, 0.12)),
    var(--charcoal-deep);
}

.product-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.product-summary {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.product-media {
  display: grid;
  min-height: 320px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(16, 15, 14, 0.72);
  box-shadow: var(--shadow);
}

.product-media img {
  width: 100%;
  height: auto;
  max-height: min(68svh, 720px);
  object-fit: contain;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.detail-copy {
  display: grid;
  gap: 24px;
}

.detail-copy p,
.detail-panel p {
  margin: 0;
  color: var(--ink-soft);
}

.detail-copy p + p {
  margin-top: 16px;
}

.detail-copy ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.detail-copy h2,
.detail-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.detail-panel {
  display: grid;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(246, 242, 234, 0.06);
}

.detail-panel .button {
  width: 100%;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(34, 109, 140, 0.28), rgba(252, 120, 76, 0.14)),
    var(--charcoal-deep);
}

.focus-list {
  display: grid;
  gap: 12px;
}

.focus-list p {
  margin: 0;
  border-left: 4px solid var(--coral);
  padding: 14px 0 14px 18px;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  padding: 34px clamp(18px, 5vw, 72px);
  background: #100f0e;
  color: var(--paper);
}

.site-footer img {
  width: min(250px, 70vw);
}

.site-footer p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 750;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    display: grid;
    gap: 14px;
    align-items: start;
  }

  .site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.76rem;
  }

  .site-nav a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 9px;
    background: rgba(24, 22, 20, 0.42);
    backdrop-filter: blur(10px);
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 88svh;
    padding-top: 178px;
    background-position: 62% center;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .card-grid,
  .product-grid,
  .split-section,
  .product-hero,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .product-card {
    min-height: 210px;
  }

  .product-hero {
    padding-top: 178px;
  }

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

@media (max-width: 460px) {
  .brand img {
    width: 168px;
  }

  .hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .intro,
  .section,
  .split-section,
  .product-hero,
  .site-footer {
    padding-right: 16px;
    padding-left: 16px;
  }
}
