/* WoodGrid landing page styles */

/* CSS Variables for colour palette and sizing */
:root {
  --color-pebble: #e8dfc8;
  --color-terra: #d8a577;
  --color-avocado: #a2aa70;
  --color-weathered: #859087;
  --color-debris: #4e4b47;
  --color-text: #312d28;
  --color-light: #ffffff;
  --color-primary: var(--color-terra);
  --color-secondary: var(--color-avocado);
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
  --border-radius: 12px;
  --container-max-width: 1200px;
}

/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02)),
    radial-gradient(circle at top left, rgba(216,165,119,0.28), transparent 32%),
    radial-gradient(circle at bottom right, rgba(162,170,112,0.20), transparent 28%),
    linear-gradient(135deg,
      #f0e6d3 0%,
      #e1c6a2 22%,
      #cda07a 45%,
      #9b8366 70%,
      #6e5d4f 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Container utility */
.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(248, 241, 230, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(78, 75, 71, 0.08);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-weight: 500;
  color: var(--color-text);
  padding: 0.5rem 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: var(--color-primary);
  transition: width 0.3s ease;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.nav-list a:focus,
.nav-list a:hover {
  color: var(--color-primary);
}

.nav-list a:focus::after,
.nav-list a:hover::after {
  width: 100%;
}

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-light);
  padding: 0.6rem 1.25rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background 0.3s ease;
  text-align: center;
}

.btn:hover,
.btn:focus {
  background: var(--color-secondary);
}

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

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.hero-text {
  flex: 1 1 350px;
}

.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--color-debris);
}

.hero-text .subheadline {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #5f675f;
}

.hero-text .supporting {
  max-width: 40ch;
  margin-bottom: 1.5rem;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.store-buttons2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.store-badge img {
  height: 50px;
  width: auto;
  border-radius: 8px;
}

.availability-note {
  font-size: 0.8rem;
  color: #5f675f;
}

.hero-image {
  flex: 1 1 300px;
  text-align: center;
}

.hero-image img {
  max-width: 280px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

/* Features section */
.features {
  padding: 3rem 0;
}

.features h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-debris);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: rgba(247, 239, 226, 0.78);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  text-align: left;
  transition: transform 0.2s ease;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-4px);
}

.icon-circle {
  background: var(--color-secondary);
  color: var(--color-light);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--color-debris);
  font-size: 1.125rem;
}

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

/* Screenshots section */
.screenshots {
  padding: 3rem 0;
  background: rgba(239, 229, 211, 0.42);
}

.screenshots h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-debris);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.screenshot-frame {
  background: rgba(247, 239, 226, 0.82);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.screenshot-frame:hover {
  transform: translateY(-4px);
}

.screenshot-frame figcaption {
  padding: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-debris);
  text-align: center;
}

/* Download section */
.download {
  padding: 3rem 0;
}

.download-content {
  text-align: center;
  max-width: 700px;
}

.download-content h2 {
  margin-bottom: 1rem;
  color: var(--color-debris);
  font-size: 2rem;
}

.download-content p {
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

/* Footer */
.site-footer {
  background: rgba(243, 234, 220, 0.86);
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--color-debris);
  text-decoration: underline;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--color-primary);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--color-primary);
  color: var(--color-light);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: background 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover,
.back-to-top:focus {
  background: var(--color-secondary);
  transform: translateY(-2px);
}

/* Responsive typography */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .download-content h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .nav-list {
    display: none;
  }

  .btn.primary-btn {
    display: none;
  }

  .header-content {
    justify-content: space-between;
  }
}