/* Tugrik landing — light theme, brand greens from logo */

:root {
  --green-bright: #7ed957;
  --green-mint: #81d68b;
  --green-mid: #56c596;
  --green-teal: #4db6ac;
  --green-deep: #3a9b7a;
  --green-faint: #e8f7f0;
  --green-wash: #f2fbf6;
  --white: #ffffff;
  --text: #1c1c1e;
  --text-muted: #5c5c5c;
  --text-soft: #6e6e73;
  --border: rgba(56, 142, 116, 0.2);
  --shadow: 0 12px 40px rgba(45, 120, 95, 0.12);
  --radius: 16px;
  --radius-sm: 12px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--green-deep);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  min-width: 0;
}

.brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 22%;
  box-shadow: 0 2px 8px rgba(45, 120, 95, 0.15);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

/* Icons only used on small screens; hidden on desktop */
.nav__icon {
  display: none;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--green-deep);
}

.nav__cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-bright), var(--green-teal));
  color: var(--white) !important;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(77, 182, 172, 0.35);
  white-space: nowrap;
}

.nav__cta:hover {
  filter: brightness(1.05);
  color: var(--white) !important;
}

/* Mobile: one row — brand + compact icon buttons (label text visually hidden, still read by SR) */
@media (max-width: 700px) {
  .site-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }

  .brand {
    padding-bottom: 0;
    border-bottom: none;
    min-width: 0;
  }

  .nav {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem;
    padding-top: 0;
    flex-shrink: 0;
  }

  .nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .nav__icon svg {
    display: block;
    width: 22px;
    height: 22px;
  }

  .nav__text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    font-size: 0;
    flex-shrink: 0;
  }

  .nav a:not(.nav__cta):active {
    background: var(--green-faint);
  }

  .nav a:focus-visible {
    outline: 2px solid var(--green-teal);
    outline-offset: 2px;
  }

  .nav__cta {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    margin-top: 0;
    border-radius: 12px;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .nav__cta .nav__icon svg {
    stroke: var(--white);
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
  background: linear-gradient(
    165deg,
    var(--green-wash) 0%,
    var(--white) 45%,
    var(--green-faint) 100%
  );
}

.hero__glow {
  position: absolute;
  width: min(80vw, 520px);
  height: min(80vw, 520px);
  top: -20%;
  right: -10%;
  background: radial-gradient(
    circle,
    rgba(126, 217, 87, 0.35) 0%,
    rgba(77, 182, 172, 0.12) 45%,
    transparent 70%
  );
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(45, 120, 95, 0.08);
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-bright), var(--green-teal));
  box-shadow: 0 0 0 3px rgba(126, 217, 87, 0.35);
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero__lede {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.hero__lede strong {
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero__note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 280px;
}

.hero__mark {
  width: 120px;
  height: 120px;
  border-radius: 24%;
}

.hero__card-caption {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: 0.04em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-bright) 0%, var(--green-mid) 40%, var(--green-teal) 100%);
  box-shadow: 0 6px 24px rgba(77, 182, 172, 0.4);
}

.btn--primary:hover {
  filter: brightness(1.03);
  box-shadow: 0 8px 28px rgba(77, 182, 172, 0.45);
}

.btn--ghost {
  color: var(--green-deep);
  background: var(--white);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--green-teal);
  background: var(--green-faint);
}

.btn--light {
  color: var(--green-deep);
  background: var(--white);
  white-space: nowrap;
}

.btn--light:hover {
  background: var(--green-faint);
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section--tint {
  background: linear-gradient(180deg, var(--green-wash) 0%, var(--white) 100%);
}

.section__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.section__intro {
  margin: 0 auto 2.5rem;
  max-width: 40rem;
  text-align: center;
  color: var(--text-muted);
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(45, 120, 95, 0.06);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: var(--green-deep);
  background: linear-gradient(145deg, var(--green-faint), var(--white));
  border-radius: 10px;
  border: 1px solid var(--border);
}

.feature-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-card__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Screenshots */
.shots {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .shots {
    grid-template-columns: repeat(3, 1fr);
  }
}

.shot {
  margin: 0;
}

.shot__frame {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--green-faint);
  border: 2px dashed rgba(77, 182, 172, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
}

.shot__frame--media {
  aspect-ratio: auto;
  padding: 0;
  border-style: solid;
  border-color: var(--border);
  background: #f4f6f5;
  box-shadow: 0 4px 24px rgba(45, 120, 95, 0.08);
}

.shot__frame--media img {
  display: block;
  width: 100%;
  height: auto;
}

.shot--placeholder .shot__frame {
  background: linear-gradient(145deg, #f0faf4, #e4f5ec);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot__placeholder-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green-deep);
}

.shot__placeholder-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-soft);
  max-width: 12rem;
}

.shot__placeholder-hint code {
  font-size: 0.7rem;
  word-break: break-all;
  color: var(--green-deep);
}

.shot__caption {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

/* CTA band */
.cta-band {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: linear-gradient(135deg, var(--green-mint) 0%, var(--green-teal) 55%, var(--green-deep) 100%);
  color: var(--white);
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 720px) {
  .cta-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-band__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--white);
}

.cta-band__text {
  margin: 0;
  opacity: 0.95;
  max-width: 36rem;
}

.cta-band__text strong {
  color: var(--white);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--green-wash);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 600px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.site-footer__brand img {
  border-radius: 20%;
}

.site-footer__meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-soft);
}
