:root {
  color-scheme: light;
  --forest: #002f2a;
  --forest-deep: #001b18;
  --global-palette2: #A1C0CD;
  --global-palette3: #002423;
  --green: #275948;
  --green-light: #3c8068;
  --mint: #dfecef;
  --paper: #f4f3ed;
  --line: #c9d8dc;
  --ink: #052e2c;
  --muted: #4d6668;
  --lime: #c6ee70;
  --gold: #f5d665;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--mint);
}

a {
  color: inherit;
}

main {
  min-height: 100vh;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: var(--white);
  background-color: var(--global-palette3);
  background-image: url("assets/leapwork-hero-geometric-bg.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.86;
  background: radial-gradient(ellipse at center bottom, var(--global-palette2) 0%, var(--global-palette3) 72%);
  mix-blend-mode: normal;
}

.topbar,
.hero-inner,
.demo-section {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

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

.brand img {
  display: block;
  width: 140px;
  height: auto;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(420px, 1fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  min-height: 560px;
  padding: 42px 0 92px;
}

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

h1 {
  max-width: 580px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.14rem;
  line-height: 1.55;
}

.studio-panel {
  position: relative;
  min-height: 360px;
  padding: 34px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(0, 27, 24, 0.84), rgba(0, 47, 42, 0.96)),
    var(--forest-deep);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.36);
}

.studio-panel::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.studio-label {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
}

.studio-question {
  position: relative;
  margin-top: 88px;
  color: var(--gold);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  text-align: center;
}

.prompt-bar {
  position: relative;
  width: min(420px, 88%);
  margin: 30px auto 12px;
  padding: 10px 14px;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(184, 216, 216, 0.32);
  font-size: 0.74rem;
}

.asset-pills {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.asset-pills span {
  padding: 5px 9px;
  border-radius: 4px;
  color: #163a32;
  background: var(--gold);
  font-size: 0.68rem;
  font-weight: 750;
}

.asset-pills span:nth-child(even) {
  background: #9ebcb4;
}

.demo-section {
  padding: 76px 0 88px;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 58px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 820;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.section-intro p,
.card-copy p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.62;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.demo-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
}

.card-copy {
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 44px) 26px;
}

h3 {
  max-width: 560px;
  margin-bottom: 18px;
  color: #0d1514;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 clamp(28px, 4vw, 44px) clamp(28px, 4vw, 40px);
}

.button {
  display: inline-flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(39, 89, 72, 0.28);
  border-radius: 3px;
  color: var(--green);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
}

.button:hover {
  border-color: var(--green);
  background: rgba(39, 89, 72, 0.06);
}

.button:focus-visible {
  outline: 3px solid rgba(198, 238, 112, 0.5);
  outline-offset: 2px;
}

.button.primary {
  border-color: var(--green-light);
  color: var(--white);
  background: var(--green-light);
}

.button.primary:hover {
  border-color: var(--green);
  background: var(--green);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: transparent;
}

.button.ghost:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
}


.button.disabled {
  cursor: not-allowed;
  color: #8b9895;
  border-color: #d7dfdc;
  background: #f6f7f4;
}

.resource-dialog {
  width: min(820px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 27, 24, 0.34);
}

.resource-dialog::backdrop {
  background: rgba(0, 27, 24, 0.72);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--line);
}


.dialog-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.dialog-close {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--green);
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.resource-frame {
  display: block;
  width: 100%;
  max-height: min(470px, 55vh);
  min-height: min(470px, 55vh);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  padding: 22px 32px 30px;
  border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  .hero-inner,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 58px;
  }

  .studio-panel {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .topbar,
  .hero-inner,
  .demo-section {
    width: min(100% - 28px, 1220px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-height: 108px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    gap: 42px;
    padding-bottom: 72px;
  }

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

  .studio-panel {
    padding: 24px;
  }

  .studio-question {
    margin-top: 56px;
  }
}
