/* WODrounds marketing site — minimal, dark-first, green accent */

:root {
  --bg: #0d0d0d;
  --bg-soft: #161616;
  --text: #e6e6e6;
  --text-muted: #8c8c8c;
  --accent: #34c759;
  --accent-hover: #30b350;
  --border: #2a2a2a;
  --wrap: min(90vw, 720px);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* Animations — disabled when user prefers reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .animate {
    animation: fadeInUp 0.6s ease-out both;
    animation-delay: var(--delay, 0ms);
  }

  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  .app-shot img {
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
  }

  .app-showcase .app-shot img {
    transform: scale(0.98);
  }

  .app-showcase.reveal.in-view .app-shot img {
    transform: scale(1);
  }

  .btn {
    transition: background 0.2s, color 0.2s, transform 0.2s ease-out;
  }

  .btn:hover {
    transform: translateY(-1px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

/* Header */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

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

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

/* Hero */
.hero {
  padding: 4rem 0 5rem;
}

.hero-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 1rem;
  font-weight: 600;
}

.hero-title {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 32ch;
  margin: 0 0 2rem;
}

.hero-cta {
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

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

.btn-large {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

.cta-note {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* App showcase */
.app-showcase {
  padding: 4rem 0;
  background: var(--bg-soft);
}

.app-shots {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5rem;
}

.app-shot {
  margin: 0;
  text-align: center;
}

.app-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.app-shot figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Slightly smaller Watch shot so they feel balanced */
.app-shot:last-child img {
  max-width: 184px;
}

/* Section titles */
.section-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
  color: var(--text);
}

/* Features */
.features {
  padding: 4rem 0;
  background: var(--bg-soft);
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.feature-icon {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Principles */
.principles {
  padding: 4rem 0;
}

.principles-lead {
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.principles-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.principles-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.principles-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* CTA block */
.cta {
  padding: 4rem 0 5rem;
  background: var(--bg-soft);
  text-align: center;
}

.cta .section-title {
  margin-bottom: 0.75rem;
}

.cta-lead {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

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

.footer-logo {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  color: var(--text-muted);
}

.footer-links {
  margin: 0 0 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-right: 1rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Inner pages (Privacy, Support) */
.page-content {
  padding: 3rem 0 4rem;
}

.page-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.page-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.page-content p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.page-content ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.page-content li {
  margin-bottom: 0.5rem;
}

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

.page-content a:hover {
  text-decoration: underline;
}

.page-meta {
  margin-top: 2rem !important;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.link-back {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .nav {
    gap: 1rem;
  }

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

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