/* RustApp marketing — shared landing + pricing */
:root {
  --bg: #12100e;
  --bg-2: #1a1714;
  --ink: #f3efe8;
  --muted: #9a9186;
  --faint: #6a625a;
  --line: rgba(243, 239, 232, 0.1);
  --copper: #c87941;
  --copper-hot: #e09252;
  --copper-dim: rgba(200, 121, 65, 0.18);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— nav —— */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  pointer-events: none;
}

.nav > * {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  background: linear-gradient(145deg, var(--copper-hot), #8a4a22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
  margin-left: 0.35rem;
}

/* —— buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 0;
  border-radius: 0.55rem;
  padding: 0.7rem 1.15rem;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: rgba(243, 239, 232, 0.28);
  background: rgba(255, 255, 255, 0.03);
}

.btn-copper {
  background: var(--copper);
  color: #1a1008;
}

.btn-copper:hover {
  background: var(--copper-hot);
}

/* —— hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem 0 4.5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 16, 14, 0.55) 0%, rgba(18, 16, 14, 0.2) 35%, rgba(18, 16, 14, 0.92) 100%),
    radial-gradient(80% 60% at 70% 20%, rgba(200, 121, 65, 0.22), transparent 55%);
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 5.75rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  margin: 0 0 1rem;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 28rem;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.28s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.42s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-media {
  opacity: 0;
  animation: mediaIn 1.2s ease 0.05s forwards;
}

@keyframes mediaIn {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* —— sections —— */
.section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--line);
}

.section-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  max-width: 18ch;
}

.section-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2.5rem;
}

@media (min-width: 860px) {
  .feature-row {
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
  }
  .feature-row.is-flip {
    grid-template-columns: 1.15fr 1fr;
  }
  .feature-row.is-flip .feature-copy {
    order: 2;
  }
}

.feature-visual {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 720px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.04em;
  tabular-nums: true;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--faint);
}

/* —— pricing —— */
.price-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.75rem;
}

@media (min-width: 800px) {
  .price-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: stretch;
  }
}

.plan {
  position: relative;
  padding: 1.75rem 1.75rem 1.5rem;
  background:
    linear-gradient(160deg, rgba(200, 121, 65, 0.12), transparent 42%),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 0;
}

.plan-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 1.1rem 0 0.35rem;
}

.plan-price strong {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.plan-price span {
  color: var(--muted);
  font-size: 0.95rem;
}

.plan-list {
  list-style: none;
  margin: 1.4rem 0 1.6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.plan-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
}

.plan-list li::before {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 3px var(--copper-dim);
}

.plan-aside {
  padding: 1.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.plan-aside h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}

.plan-aside p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cta-band {
  margin-top: 3rem;
  padding: 2.25rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
  line-height: 1.45;
}

/* —— footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.25rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--faint);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a:hover {
  color: var(--muted);
}

.legal {
  display: none;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: 42rem;
}

.legal.is-open {
  display: block;
}

.legal h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .hero {
    padding-bottom: 3rem;
  }
}
