:root {
  --bg: #0d1413;
  --bg-elevated: rgba(18, 28, 25, 0.92);
  --panel: rgba(18, 28, 25, 0.9);
  --card: rgba(255, 255, 255, 0.02);
  --line: rgba(174, 202, 191, 0.18);
  --text: #edf9f2;
  --muted: #bfd1c8;
  --primary: #2d6a52;
  --primary-soft: #dff4ea;
  --primary-bright: #7ab79b;
  --secondary: #d98b5f;
  --highlight: #a9e7cd;
  --shadow: 0 28px 64px rgba(5, 10, 9, 0.32);
}

body.theme-light {
  --bg: #f5f1ea;
  --bg-elevated: rgba(255, 255, 255, 0.86);
  --panel: rgba(255, 255, 255, 0.9);
  --card: rgba(18, 28, 25, 0.02);
  --line: rgba(27, 39, 36, 0.08);
  --text: #172623;
  --muted: #4d625c;
  --primary: #2d6a52;
  --primary-soft: #edf9f2;
  --primary-bright: #5d9b7d;
  --secondary: #d98b5f;
  --highlight: #c2e5d0;
  --shadow: 0 26px 56px rgba(23, 38, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(93, 155, 125, 0.2), transparent 26%),
    radial-gradient(circle at bottom right, rgba(217, 139, 95, 0.15), transparent 32%),
    var(--bg);
  color: var(--text);
}

body.gallery-shell {
  padding-bottom: 80px;
}

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

button {
  font: inherit;
}

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

.page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 52px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  position: sticky;
  top: 16px;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-bright), var(--highlight));
  color: #102118;
  font-weight: 800;
}

.brand-name {
  font-size: 1.06rem;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav-cta,
.primary-btn,
.secondary-btn,
.link-btn {
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nav-cta,
.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  color: #f4fff8;
  border-color: transparent;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
}

.secondary-btn,
.link-btn {
  background: transparent;
  color: var(--text);
  padding: 0.8rem 1.2rem;
}

.nav-cta:hover,
.primary-btn:hover,
.secondary-btn:hover,
.link-btn:hover,
.nav-cta:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.link-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(123, 183, 155, 0.44);
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
  padding: 56px 0 30px;
}

.hero-intro {
  min-height: 520px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--primary-bright);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.05em;
}

.display {
  font-size: clamp(3rem, 5vw, 5.3rem);
  line-height: 0.96;
}

.lede {
  margin: 20px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.meta-strip strong {
  display: block;
  color: var(--text);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.hero-device {
  display: flex;
  justify-content: center;
}

.device-frame {
  width: min(410px, 100%);
  border-radius: 38px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 20, 18, 0.92), rgba(18, 28, 25, 0.96));
  box-shadow: var(--shadow);
  padding: 18px 18px 14px;
}

.device-notch {
  width: 110px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  margin: 0 auto 14px;
}

.screen-screen {
  border-radius: 28px;
  background: linear-gradient(180deg, #f4f3ee, #edf3ee);
  min-height: 460px;
  padding: 18px 16px 16px;
}

.mini-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1b2b27;
}

.mini-logo {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6ea98b, #bfe8d3);
  font-weight: 800;
  font-size: 0.82rem;
}

.mini-text {
  font-weight: 700;
}

.mini-card {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(45, 106, 82, 0.12);
  color: #112520;
  border: 1px solid rgba(45, 106, 82, 0.15);
}

.mini-card small,
.mini-card span {
  display: block;
  color: #43655d;
}

.mini-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 2rem;
  letter-spacing: -0.06em;
}

.mini-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-tile {
  min-height: 94px;
  border-radius: 16px;
  background: rgba(45, 106, 82, 0.08);
  border: 1px solid rgba(20, 39, 35, 0.06);
}

.mini-tile.wide {
  grid-column: 1 / -1;
  min-height: 110px;
}

.gallery-section {
  padding-top: 46px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(2rem, 3vw, 3.1rem);
}

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

.gallery-card {
  padding: 20px 18px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.mini-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-bright);
  font-weight: 700;
}

.gallery-card h3 {
  margin-top: 14px;
  font-size: 1.6rem;
}

.gallery-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.gallery-card a {
  display: inline-block;
  margin-top: 18px;
  color: var(--primary-bright);
  font-weight: 700;
}

.device-thumb {
  margin-top: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
  min-height: 220px;
}

.phone-topbar {
  width: 82px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  margin: 0 auto 12px;
}

.phone-body {
  border-radius: 18px;
  padding: 14px 12px 12px;
  min-height: 180px;
  background: #f5f4ef;
}

.light-device .phone-body {
  background: #f8f5f0;
}

.alt .phone-body {
  background: #f0f5f3;
}

.accent .phone-body {
  background: #f8f7f3;
}

.phone-headline {
  width: 42%;
  height: 12px;
  border-radius: 999px;
  background: rgba(45, 106, 82, 0.2);
  margin-bottom: 12px;
}

.phone-box {
  border-radius: 12px;
  background: rgba(45, 106, 82, 0.12);
  border: 1px solid rgba(45, 106, 82, 0.12);
  margin-bottom: 10px;
}

.phone-box.large { height: 60px; }
.phone-box.tall { height: 82px; }
.phone-box.long { height: 52px; }
.phone-box.medium { height: 40px; }
.phone-box.small { height: 26px; }
.phone-box.short { height: 28px; }

.dark-device .phone-body {
  background: #101b1a;
}

.dark-device .phone-box,
.dark-box {
  background: rgba(149, 214, 185, 0.12);
  border-color: rgba(149, 214, 185, 0.18);
}

.dark-device .phone-headline {
  background: rgba(149, 214, 185, 0.24);
}

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

.copy-card {
  min-height: 180px;
  padding: 22px 18px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.copy-card p {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.4;
  letter-spacing: -0.04em;
}

.inter { font-family: "Inter", sans-serif; }
.host-grotesk { font-family: "Host Grotesk", sans-serif; }
.roboto-condensed { font-family: "Roboto Condensed", sans-serif; }
.lora { font-family: "Lora", serif; }
.ibm-plex { font-family: "IBM Plex Sans", sans-serif; }
.bricolage { font-family: "Bricolage Grotesque", sans-serif; }
.josefin { font-family: "Josefin Sans", sans-serif; }
.montserrat { font-family: "Montserrat", sans-serif; }
.big-shoulders { font-family: "Big Shoulders", sans-serif; }
.archivo-black { font-family: "Archivo Black", sans-serif; }
.fraunces { font-family: "Fraunces", serif; }
.oswald { font-family: "Oswald", sans-serif; }
.archivo { font-family: "Archivo", sans-serif; }
.overpass { font-family: "Overpass", sans-serif; }
.cinzel { font-family: "Cinzel", serif; }

@media (max-width: 920px) {
  .hero,
  .example-grid,
  .copy-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 20px, 1200px);
  }

  .site-header {
    padding: 16px 14px;
  }

  .nav {
    gap: 12px;
    font-size: 0.8rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .display {
    font-size: 2.7rem;
  }
}
