:root {
  --ink: #16352f;
  --deep: #17392f;
  --leaf: #2f7b58;
  --mint: #aee6c8;
  --cream: #fff7dd;
  --petal: #f58f9c;
  --gold: #f4c95a;
  --line: rgba(255, 255, 255, 0.22);
  --shadow: 0 22px 60px rgba(19, 49, 39, 0.28);
  font-family: "Inter", "Avenir Next", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f8f0d4;
}

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

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

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(23, 57, 47, 0.62), rgba(23, 57, 47, 0.16) 38%, rgba(255, 247, 221, 0.98) 74%),
    url("img/greenhouse_background.png") center top / cover fixed;
}

.home-page .site-shell {
  background:
    linear-gradient(180deg, rgba(23, 57, 47, 0.66), rgba(23, 57, 47, 0.18) 40%, rgba(255, 247, 221, 0.96) 78%),
    url("img/company-home-hero.png") center / cover no-repeat;
}
.game-page .site-shell {
  background:
    linear-gradient(180deg, rgba(23, 57, 47, 0.66), rgba(23, 57, 47, 0.18) 40%, rgba(255, 247, 221, 0.96) 78%),
    url("img/greenhouse_background.png") center / cover no-repeat;
}
.contact-page .site-shell {
  background:
    linear-gradient(180deg, rgba(23, 57, 47, 0.66), rgba(23, 57, 47, 0.18) 40%, rgba(255, 247, 221, 0.96) 78%),
    url("img/company-philosophy.png") center / cover no-repeat;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(18, 50, 42, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.links a {
  color: rgba(255, 247, 221, 0.86);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 999px;
}

.links a:hover,
.links a.active {
  color: var(--deep);
  background: var(--cream);
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  background: linear-gradient(to bottom, rgba(31, 41, 55, 0.4), rgba(31, 41, 55, 0.8)), url('img/greenhouse_background.png') center/cover no-repeat;
  text-align: center;
}

.home-page .hero {
  background:
    linear-gradient(180deg, rgba(22, 53, 47, 0.46), rgba(22, 53, 47, 0.78)),
    url("img/company-home-hero.png") center / cover no-repeat;
}

.section-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.hero-copy {
  max-width: 800px;
  margin: 0 auto;
  color: var(--cream);
  text-shadow: 0 3px 18px rgba(18, 50, 42, 0.34);
}

.logo-lockup {
  width: min(560px, 100%);
  margin-bottom: 22px;
  filter: drop-shadow(0 18px 26px rgba(25, 68, 48, 0.28));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 620px;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.48;
  color: rgba(255, 247, 221, 0.94);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 12px 24px rgba(18, 50, 42, 0.22);
}

.btn.primary {
  color: var(--deep);
  background: linear-gradient(180deg, #fff7dd, #f6d56f);
}

.btn.secondary {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.14);
}

.device-shot {
  width: min(430px, 100%);
  justify-self: center;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 247, 221, 0.16);
}

.band {
  padding: 4rem 1.5rem;
  background: rgba(255, 247, 221, 0.96);
  display: flex;
  justify-content: center;
}

.band.alt {
  background: linear-gradient(180deg, #fff9e9, #eaf7dc);
}

.band.dark {
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(20, 62, 49, 0.94), rgba(32, 88, 63, 0.86)),
    url("img/feature_graphic_1024x500.png") center / cover;
}

.home-page .band.dark {
  padding: 112px 0;
  background:
    linear-gradient(135deg, rgba(20, 62, 49, 0.9), rgba(25, 78, 55, 0.82)),
    url("img/company-philosophy.png") center / cover;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p,
.copy p {
  color: rgba(22, 53, 47, 0.78);
  font-size: 17px;
  line-height: 1.72;
}

.dark .section-head p,
.dark .copy p {
  color: rgba(255, 247, 221, 0.82);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.game-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .game-grid {
    flex-direction: row;
    gap: 4rem;
    align-items: center;
  }
  .game-grid .feature-image {
    flex: 1;
    max-width: 60%;
  }
  .game-grid .copy {
    flex: 1;
    max-width: 40%;
  }
}

.feature-image {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(47, 123, 88, 0.22);
  background: #fff7dd;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.stat {
  padding: 18px;
  border-radius: 20px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(47, 123, 88, 0.18);
}

.stat strong {
  display: block;
  font-size: 28px;
}

.stat span {
  font-size: 13px;
  font-weight: 800;
  color: rgba(22, 53, 47, 0.72);
}

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

.feature-card {
  padding: 24px;
  min-height: 196px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(47, 123, 88, 0.18);
  box-shadow: 0 14px 34px rgba(31, 83, 58, 0.1);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-card p {
  color: rgba(22, 53, 47, 0.74);
  line-height: 1.64;
}

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

.screens img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.tile-board {
  width: min(640px, 100%);
  margin: 28px auto 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-panel,
.form-panel {
  padding: 30px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(47, 123, 88, 0.18);
  box-shadow: var(--shadow);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-list a,
.contact-list span {
  display: block;
  overflow-wrap: anywhere;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 247, 221, 0.86);
  border: 1px solid rgba(47, 123, 88, 0.16);
  font-weight: 800;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(22, 53, 47, 0.78);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(47, 123, 88, 0.2);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 247, 221, 0.9);
  outline: none;
}

textarea {
  min-height: 144px;
  resize: vertical;
}

button.btn {
  border: 0;
  cursor: pointer;
}

.footer {
  color: rgba(255, 247, 221, 0.76);
  background: #17392f;
  padding: 30px 0;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-page {
  min-height: 100vh;
  padding: 56px 0;
  background:
    linear-gradient(180deg, rgba(255, 247, 221, 0.96), rgba(234, 247, 220, 0.96)),
    url("img/greenhouse_background.png") center / cover fixed;
}

.legal-doc {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.legal-doc h1 {
  color: var(--deep);
  font-size: clamp(34px, 5vw, 58px);
}

.legal-doc h2 {
  margin-top: 30px;
  font-size: 24px;
}

.legal-doc p,
.legal-doc li {
  color: rgba(22, 53, 47, 0.78);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.contact-hero {
  background-image: url("img/company-philosophy.png");
  background-position: center 40%;
  background-size: cover;
  position: relative;
  min-height: 40vh;
  padding-top: 8rem;
  padding-bottom: 4rem;
}
.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(16, 26, 17, 0.4), rgba(16, 26, 17, 0.7));
  z-index: 0;
}
.contact-hero .hero-inner {
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) {
  .nav-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .links {
    justify-content: flex-start;
  }

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

  .home-page .site-shell {
    min-height: auto;
  }

  .home-page .hero {
    min-height: 430px;
    padding-bottom: 64px;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .game-grid {
    flex-direction: column;
    gap: 3rem;
  }
  .game-grid .feature-image,
  .game-grid .copy {
    max-width: 100%;
  }

  .device-shot {
    width: min(330px, 92vw);
  }

  .feature-grid,
  .stats {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .links a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .hero-copy p,
  .section-head p,
  .copy p {
    font-size: 16px;
  }

  .band {
    padding: 58px 0;
  }

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

  .contact-panel,
  .form-panel,
  .legal-doc {
    padding: 24px;
    border-radius: 22px;
  }
}
