/* WordroW Landing Page Styles */

.landing-body {
  max-width: 800px;
  padding: 1em 2em;
  font-size: 16px;
  background-image:
    radial-gradient(circle at 12% 8%, hsla(145, 55%, 56%, 0.16) 0 8.5em, transparent 8.6em),
    radial-gradient(circle at 88% 74%, hsla(29, 100%, 62%, 0.13) 0 9.5em, transparent 9.6em),
    linear-gradient(135deg, hsl(207, 100%, 97%) 0%, hsl(213, 100%, 94%) 56%, hsl(216, 100%, 83%) 100%);
  background-attachment: fixed;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3em 1em;
}

.hero-logo {
  max-width: 100%;
  height: auto;
  margin-bottom: 1em;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 0.25em;
}

.hero .tagline {
  font-size: 1.3em;
  color: var(--color-text-muted);
  font-weight: normal;
  margin-bottom: 1.5em;
}

.feature-badge {
  display: inline-block;
  background:
    linear-gradient(90deg, hsla(145, 55%, 56%, 0.28), hsla(29, 100%, 62%, 0.28)),
    hsla(210, 100%, 97%, 0.78);
  border: 1px solid hsla(218, 30%, 15%, 0.14);
  border-radius: 999px;
  box-shadow: 0 8px 22px hsla(218, 65%, 42%, 0.12);
  color: var(--color-text);
  font-size: 0.95em;
  font-weight: bold;
  margin: 0 0 0.9em;
  padding: 0.45em 1em;
  text-transform: uppercase;
}

.hero .cta {
  display: inline-block;
  background: var(--color-accent);
  color: black;
  text-decoration: none;
  padding: 0.8em 2.5em;
  border-radius: var(--radius-lg);
  font-size: 1.3em;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 4px 15px var(--color-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-shadow);
}

.hero .cta:active {
  transform: translateY(0);
}

/* Sections */
.landing-section {
  padding: 2em 0;
  text-align: center;
}

.landing-section h2 {
  font-size: 1.8em;
  margin-bottom: 0.75em;
}

.landing-section p {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 1em;
}

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
  gap: 1.5em;
  justify-content: center;
  margin: 1.5em 0;
}

.feature-card {
  background:
    linear-gradient(180deg, hsla(210, 100%, 96%, 0.88), hsla(215, 100%, 86%, 0.74)),
    var(--color-surface);
  border: 1px solid hsla(218, 30%, 15%, 0.16);
  border-radius: var(--radius-lg);
  padding: 1.5em;
  box-shadow: 0 10px 28px hsla(218, 65%, 42%, 0.14);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 0.45em solid var(--card-accent, #3fbd63);
  pointer-events: none;
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -2.5em;
  bottom: -3em;
  width: 8em;
  height: 8em;
  background: var(--card-accent, #3fbd63);
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
}

.feature-card:nth-child(1) {
  --card-accent: #3fbd63;
}

.feature-card:nth-child(2) {
  --card-accent: #ffad42;
}

.feature-card:nth-child(3) {
  --card-accent: #e25353;
}

.feature-card:nth-child(4) {
  --card-accent: #2f7de1;
}

.feature-card h3 {
  margin-bottom: 0.5em;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 1em;
  color: var(--color-text-muted);
  position: relative;
  z-index: 1;
}

/* App links */
.store-badges {
  display: flex;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
  margin-top: 1em;
}

.store-badges img {
  height: 40px;
  width: auto;
}

/* Classic link */
.classic-section {
  padding: 1.5em;
  background:
    linear-gradient(135deg, hsla(210, 100%, 96%, 0.9), hsla(215, 100%, 84%, 0.7)),
    var(--color-surface-alt);
  border: 1px solid hsla(218, 30%, 15%, 0.14);
  border-radius: var(--radius-lg);
  margin: 2em 0;
  text-align: center;
  box-shadow: 0 10px 28px hsla(218, 65%, 42%, 0.12);
}

.classic-section a {
  color: hsl(29, 100%, 33%);
  font-weight: bold;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .classic-section a { color: hsl(29, 100%, 65%); }
}
:root[data-theme="dark"] .classic-section a { color: hsl(29, 100%, 65%); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .landing-body {
    background-image:
      radial-gradient(circle at 12% 8%, hsla(145, 55%, 40%, 0.12) 0 8.5em, transparent 8.6em),
      radial-gradient(circle at 88% 74%, hsla(29, 100%, 55%, 0.1) 0 9.5em, transparent 9.6em),
      linear-gradient(135deg, hsl(225, 25%, 10%) 0%, hsl(222, 31%, 13%) 56%, hsl(216, 32%, 20%) 100%);
  }

  :root:not([data-theme="light"]) .feature-card,
  :root:not([data-theme="light"]) .classic-section {
    background:
      linear-gradient(180deg, hsla(215, 34%, 24%, 0.9), hsla(216, 36%, 18%, 0.78)),
      var(--color-surface);
    border-color: hsla(220, 20%, 92%, 0.12);
    box-shadow: 0 10px 28px hsla(225, 50%, 5%, 0.36);
  }

  :root:not([data-theme="light"]) .feature-badge {
    background:
      linear-gradient(90deg, hsla(145, 55%, 40%, 0.24), hsla(29, 100%, 55%, 0.22)),
      hsla(215, 34%, 24%, 0.78);
    border-color: hsla(220, 20%, 92%, 0.12);
    box-shadow: 0 8px 22px hsla(225, 50%, 5%, 0.32);
  }
}

:root[data-theme="dark"] .landing-body {
  background-image:
    radial-gradient(circle at 12% 8%, hsla(145, 55%, 40%, 0.12) 0 8.5em, transparent 8.6em),
    radial-gradient(circle at 88% 74%, hsla(29, 100%, 55%, 0.1) 0 9.5em, transparent 9.6em),
    linear-gradient(135deg, hsl(225, 25%, 10%) 0%, hsl(222, 31%, 13%) 56%, hsl(216, 32%, 20%) 100%);
}

:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .classic-section {
  background:
    linear-gradient(180deg, hsla(215, 34%, 24%, 0.9), hsla(216, 36%, 18%, 0.78)),
    var(--color-surface);
  border-color: hsla(220, 20%, 92%, 0.12);
  box-shadow: 0 10px 28px hsla(225, 50%, 5%, 0.36);
}

:root[data-theme="dark"] .feature-badge {
  background:
    linear-gradient(90deg, hsla(145, 55%, 40%, 0.24), hsla(29, 100%, 55%, 0.22)),
    hsla(215, 34%, 24%, 0.78);
  border-color: hsla(220, 20%, 92%, 0.12);
  box-shadow: 0 8px 22px hsla(225, 50%, 5%, 0.32);
}

/* Landing footer */
.landing-footer {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5em;
  font-weight: normal;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-footer p {
  margin: 0;
}

.landing-footer nav {
  display: flex;
  gap: 2em;
}

.landing-footer nav a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.landing-footer nav a:hover {
  text-decoration: underline;
}
