:root {
  --ink: #172126;
  --muted: #60717a;
  --soft: #f4f7f8;
  --line: #d8e2e7;
  --panel: #ffffff;
  --solar: #f5a20a;
  --teal: #0e7f76;
  --teal-dark: #075b55;
  --dark: #101820;
  --shadow: 0 18px 45px rgba(15, 31, 44, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px 7vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.01em;
  color: var(--ink);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.logo-icon {
  --mark-size: 48px;
  width: var(--mark-size);
  height: var(--mark-size);
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  flex: 0 0 var(--mark-size);
  overflow: hidden;
  margin: 0 -0.03em;
  background: url("assets/devra-logo.jpg") center top / 124% auto no-repeat;
}

.logo-icon img {
  display: none;
}

.logo-wordmark--hero {
  justify-content: center;
  font-size: clamp(58px, 7vw, 96px);
}

.logo-wordmark--hero .logo-icon {
  --mark-size: clamp(76px, 8vw, 112px);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

nav a {
  padding: 8px 12px;
  color: #314852;
  text-decoration: none;
  border-radius: 6px;
}

nav a:hover,
nav a:focus-visible {
  background: #e9f3f1;
  color: var(--teal-dark);
}

.language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.language select {
  min-height: 38px;
  min-width: 154px;
  padding: 0 34px 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 48px;
  padding: 96px 7vw;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(16, 24, 32, 0.96), rgba(16, 24, 32, 0.86) 48%, rgba(14, 127, 118, 0.78)),
    radial-gradient(circle at 76% 22%, rgba(245, 162, 10, 0.35), transparent 28%);
}

.hero__content {
  max-width: 980px;
}

.hero__logo-card {
  justify-self: end;
  width: min(440px, 100%);
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 28px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.hero__logo-card > span:last-child {
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--solar);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 920px;
  font-size: clamp(46px, 7vw, 92px);
}

h2 {
  max-width: 900px;
  font-size: clamp(32px, 4vw, 54px);
}

h3 {
  font-size: 22px;
}

.lead,
.intro p {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
}

.hero .lead {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(19px, 2vw, 25px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
}

.button--primary {
  color: #fff;
  background: var(--teal);
}

.button--primary:hover {
  background: var(--teal-dark);
}

.button--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.button--ghost-dark {
  color: var(--teal-dark);
  border-color: #a7cfca;
  background: #fff;
}

.section {
  padding: 84px 7vw;
}

.section--light {
  background: #fff;
}

.section--dark {
  color: #fff;
  background: var(--dark);
}

.section--dark .intro p,
.section--dark .principles {
  color: rgba(255, 255, 255, 0.82);
}

.intro {
  margin-bottom: 34px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metrics div {
  min-height: 130px;
  padding: 26px;
  background: #fff;
}

.metrics strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

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

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

.cards article {
  min-height: 250px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 31, 44, 0.06);
}

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

.product-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

.product-shot {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 28px;
  color: #fff;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.product-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 24, 32, 0.04), rgba(16, 24, 32, 0.08) 38%, rgba(16, 24, 32, 0.88)),
    linear-gradient(90deg, rgba(16, 24, 32, 0.42), rgba(16, 24, 32, 0.05));
}

.product-shot > div {
  position: relative;
  max-width: 620px;
}

.product-shot h3 {
  max-width: 600px;
  font-size: clamp(24px, 3vw, 38px);
}

.product-shot p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
}

.product-shot--scatter {
  background-image: url("assets/solar-3d-scatter.png");
}

.product-shot--surface {
  background-image: url("assets/solar-3d-surface.png");
}

.product-cta {
  margin-top: 26px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.principles li {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 4px solid var(--solar);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 24px 7vw;
  color: #d7e1e4;
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

footer a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: var(--solar);
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 12px;
  }

  nav {
    justify-content: flex-start;
  }

  .metrics,
  .cards,
  .principles,
  .product-showcase,
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__logo-card {
    justify-self: start;
    width: min(420px, 100%);
  }
}

@media (max-width: 640px) {
  .topbar,
  .hero,
  .section,
  footer {
    padding-inline: 22px;
  }

  .hero {
    min-height: 70vh;
  }

  .language {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .language select {
    width: 100%;
  }
}
