/* Reset and global styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Roboto, Arial, sans-serif;
}

button {
  padding: 0.5em 1.5em;
  border: none;
  border-radius: 0.4em;
  background-color: #637d46;
  color: white;
  font-size: 1em;
  font-weight: 500;
}

ul {
  list-style-type: none;
}

/* Shared colors */

.dark-bg {
  background-image: linear-gradient(to bottom, #163024, #152f22);
}

.green-text {
  color: #a3b18a;
}

.darker-green-text {
  color: #234335;
}

.offwhite-text {
  color: #f8f4ea;
}

.uppercase {
  text-transform: uppercase;
}

.thinner-font-weight {
  font-weight: 300;
}

/* Header */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 3em;
  border-bottom: 1px solid #555;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1em;
}

.logo-icon {
  width: 3em;
  height: auto;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  font-size: 2em;
  font-weight: 700;
}

.header-right ul {
  display: flex;
  align-items: center;
  gap: 2em;
  list-style-type: none;
}

.header-right a {
  font-size: 18px;
  text-decoration: none;
}

/* Hero */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4em;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4.5em 4em;
}

.hero-left {
  display: flex;
  flex: 1 1 460px;
  min-width: 0;
  max-width: 560px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2em;
}

.hero-right {
  display: flex;
  flex: 0 1 650px;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
}

.hero-title {
  font-size: 24px;
  font-weight: 900;
}

.hero-text {
  font-size: 18px;
  line-height: 1.6;
}

.hero-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 210px;
  height: 54px;
}

.hero-button span,
.feature-item span {
  /* Keep the text on one line inside the flex container. */
  white-space: nowrap;
}

.arrow-icon {
  /* Keep the arrow from shrinking inside the button. */
  width: 1.5em;
  height: auto;
  flex-shrink: 0;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1em 2em;
  margin-top: 2em;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.feature-icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

/* Editor mockup - work in progress */

.editor {
  display: flex;
  width: 100%;
  max-width: 620px;
  min-height: 500px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #555;
  border-radius: 0.8em;
  background-color: #172a1f;
  font-size: 0.75rem;
}

.window-controls {
  display: flex;
  gap: 0.5em;
  padding: 0.75em;
  border-bottom: 1px solid #555;
}

.window-dot {
  width: 0.75em;
  height: 0.75em;
  flex-shrink: 0;
}

.dot-red {
  color: #ff5f57;
}

.dot-yellow {
  color: #febc2e;
}

.dot-green {
  color: #28c840;
}

.editor-content {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.file-explorer {
  display: flex;
  flex: 0 0 110px;
  min-width: 0;
  flex-direction: column;
  padding: 0.75em;
  gap: 1em;
  border-right: 1px solid #555;
}

.explorer-main-bullets {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.explorer-secondary-bullets {
  display: flex;
  flex-direction: column;
  list-style-type: none;
  gap: 0;
}

.editor-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.active {
  background-color: #637d462a;
}

.indented {
  margin-left: 0.5em;
  margin-right: -0.5em;
  padding: 0.5em 0.75em;
  border-radius: 0.5em;
}

/*
 * All editor icons use the same size, stroke width,
 * viewBox and inherited text color.
 */
.editor-icon {
  display: block;
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.code-area {
  display: flex;
  flex: 1.1 1 0;
  min-width: 170px;
  min-height: 0;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 0.5em;
  border-right: 1px solid #555;
}

.code-area .title {
  padding: 1em;
  border-bottom: 1px solid #555;
  display: flex;
  align-items: center;
}

.code-lines {
  min-width: 0;
  padding: 0.75em 1.25em;
  font-family: "Courier New", monospace;
  font-size: 0.8em;
  line-height: 1.45;
}

.code-lines li {
  padding-left: 0.5em;
}

.code-lines span {
  font-family: inherit;
}

.code-lines li::marker {
  color: #718078;
}

.code-red {
  color: #e06c75;
}

.code-yellow {
  color: #e5c07b;
}

.code-green {
  color: #98c379;
}

.code-lines li > code {
  display: block;
  max-width: 100%;
  font-family: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
}

.code-lines span {
  font-family: inherit;
}

.indent-1 {
  margin-left: 1.5ch;
}

.indent-2 {
  margin-left: 3ch;
}

.indent-3 {
  margin-left: 4.5ch;
}

.indent-4 {
  margin-left: 6ch;
}

.preview {
  display: flex;
  flex: 0.9 1 0;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

.preview .title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  border-bottom: 1px solid #555;
}

.preview .title .left,
.preview .title .right {
  display: flex;
  gap: 1em;
}

.preview .content-box {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 1.2em;
  margin: 0.75em;
  padding: 1em;
  overflow: hidden;
  border-radius: 0.5em;
  background-color: #f8f4ea;
  color: black;
  font-weight: 400;
}

.preview .content-box .h1-like {
  font-size: 1.6em;
  font-weight: bold;
}

.preview .content-box .h2-like {
  font-size: 1.15em;
  font-weight: bold;
}

.preview .content-box button {
  width: 120px;
  max-width: 100%;
  font-size: 0.9em;
}

.divider {
  border-bottom: 1px solid #555;
}

.preview-projects {
  display: flex;
  gap: 1em;
  min-width: 0;
}

.preview-projects img {
  flex: 1;
  width: 0;
  min-width: 0;
}

/* Information section */

.info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1em;
  padding: 3em
}

.info-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
}

.info-title h2 {
  font-size: 36px;
  font-weight: bold;
}

.info-card .darker-green-text {
  font-weight: bold;
}

.divider-small {
  width: 40px;
  border-bottom: 3px solid #6B805A;
}

.info-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3em;
}

.info-card {
  display: flex;
  width: 240px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  color: rgb(90, 90, 90);
  text-align: center;
  background-color: #F8F4EB;
  border-radius: 0.75em;
  border: 2px solid #E1DCD1;
  box-shadow: 0 0.25em 0.7em rgba(22, 48, 36, 0.08);
  padding: 1.5em 1em;
}

.info-icon {
  width: 4em;
  height: 4em;
  flex-shrink: 0;
  color: #637d46;
}

.info,
.cta {
  background-color: #F3EFE4;
}

.circle {
  width: 100px;
  height: 100px;
  background-color: #C2C9A6;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Quote section */

.quote {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2em 10em 1em 10em;
  background-color: #E7E5D8;
  gap: 2em;
  border: 2px solid #E1DCD1;
}

.quote-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5em;
}

.quote-icon {
  display: flex;
  align-self: flex-start;
  width: 2.5em;
  height: 2.5em;
  flex-shrink: 0;
  color: #183326;
}

.quote .main-text {
  font-size: 30px;
  font-weight: 360;
  font-style: italic;
  color: #1f2937;
}

.quote .author {
  font-size: 18px;
  font-weight: 400;
  color: #1f2937;
}

.portrait-circle {
  width: 208px;
  height: 208px;
  background-color: #F7F5EB;
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding-top: 3em;
}

.quote img {
  width: 200px;
  clip-path: circle(39% at 50% 42%);
}

/* Call-to-action section */

.cta {
  padding: 1em 5em;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 1.5em 3em;
  border-radius: 0.75em;
  background-color: #56714A;
  color: white;
}

.cta-text .cta-title {
  font-size: 24px;
  font-weight: 500;
}

.cta-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 160px;
  height: 54px;
  background-color: #e5e5d1d3;
  color: #395436;
}

.cta-circle {
  width: 100px;
  height: 100px;
  background-color: #435D37;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.301);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.rocket-icon {
  width: 3.5em;
  height: 3.5em;
  flex-shrink: 0;
}

.cta-text {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

/* Footer */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  padding: 1em;
}

.socials {
  display: flex;
  gap: 2em;
}

.footer-icon {
  display: block;
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0;
}

.divider-footer {
  width: 600px;
  border-bottom: 1px solid #555;
}

.footer span {
  color: #f8f4eaab;
}