/* GreenSplit site styles */

:root {
  --bg: #0d100e;
  --bg-soft: #121714;
  --surface: #161c19;
  --surface-2: #1b221e;
  --border: #262e29;
  --border-soft: #1f2622;

  --text: #e7ece9;
  --text-dim: #9aa5a0;
  --text-faint: #6d7873;

  --accent: #46d17f;
  --accent-soft: rgba(70, 209, 127, 0.12);
  --accent-line: rgba(70, 209, 127, 0.35);

  --btn-accent: #3ac077;
  --btn-accent-hover: #45cd83;
  --btn-accent-text: #04140b;

  --radius: 10px;
  --radius-lg: 14px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo,
    Consolas, monospace;

  --wrap: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 650;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}

::selection {
  background: rgba(70, 209, 127, 0.3);
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-soft);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--text-dim);
  margin: 0;
}

.eyebrow {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.7rem;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 16, 14, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.93rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1.15rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  background: var(--surface-2);
  border-color: #333c36;
}

.btn-primary {
  background: var(--btn-accent);
  border-color: var(--btn-accent);
  color: var(--btn-accent-text);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--btn-accent-hover);
  border-color: var(--btn-accent-hover);
  color: var(--btn-accent-text);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

/* ---------- hero ---------- */

.hero {
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 42rem;
}

.hero-copy h1 {
  margin-bottom: 1rem;
  white-space: nowrap;
}

.hero-copy .lede {
  font-size: 1.12rem;
  color: var(--text-dim);
  margin-bottom: 1.8rem;
}



/* ---------- hero picture ---------- */
.image-placeholder,
.hero-picture {
  width: min(100%, 250px);
  aspect-ratio: 50 / 87;
  border-radius: var(--radius-lg);
}

.image-placeholder {
  display: grid;
  place-items: center;
  padding: 2rem;
  border: 2px dashed var(--border);
  background: var(--surface);
  color: var(--text-faint);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-align: center;
}

.hero-picture {
  display: block;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ---------- feature grid ---------- */

.grid {
  display: grid;
  gap: 1rem;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.93rem;
}

/* ---------- status ---------- */
.status-cards .tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 650;
}

.simple-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-dim);
  font-size: 0.93rem;
}

.simple-list li + li {
  margin-top: 0.45rem;
}

/* ---------- tables ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

th,
td {
  text-align: left;
  padding: 0.62rem 0.95rem;
  border-bottom: 1px solid var(--border-soft);
}

th {
  background: var(--surface);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td code {
  white-space: nowrap;
}

/* ---------- code blocks ---------- */

.code {
  position: relative;
  margin: 0 0 1.25rem;
}

.code pre {
  margin: 0;
  overflow-x: auto;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  font-family: var(--mono);
  font-size: 0.855rem;
  line-height: 1.6;
  color: #cfd8d3;
}

.code pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}

/* ---------- download cards ---------- */

.downloads-wrap {
  max-width: 1360px;
}

.platform {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.platform-head {
  padding: 0.85rem 1.4rem;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface-2);
}

.platform-head h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 650;
}

.platform-body {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  padding: 1.4rem;
}

.platform .arch {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}

.platform p {
  color: var(--text-dim);
  font-size: 0.9rem;
  flex: 1 0 auto;
}

.platform .arch,
.platform .platform-state {
  flex: 0 0 auto;
}

.platform .btn {
  width: 100%;
  margin-top: 0.6rem;
}

.platform-state {
  font-size: 0.78rem;
  margin-top: 0.7rem;
  color: var(--text-faint);
  text-align: center;
}

/* ---------- cta ---------- */

.cta {
  text-align: center;
  padding: 4.5rem 0;
}

.cta h2 {
  margin-bottom: 0.5rem;
}

.cta p {
  color: var(--text-dim);
  margin-bottom: 1.6rem;
}

.cta .btn-row {
  justify-content: center;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 2.2rem 0;
  color: var(--text-faint);
  font-size: 0.87rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-dim);
}

.site-footer a:hover {
  color: var(--text);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.5rem 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.55rem 0;
    width: 100%;
    font-size: 1rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.8rem;
    justify-items: start;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 640px) {
  .hero-copy h1 {
    white-space: normal;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }


  .section {
    padding: 3.2rem 0;
  }

  .hero {
    padding: 3rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
