/* GrindLog - Poker note-taking app landing page */
:root {
  --bg-dark: #0d1219;
  --bg-card: #141c26;
  --bg-elevated: #1a2433;
  --felt-green: #1a3d2e;
  --felt-light: #2d5a47;
  --accent-gold: #c9a227;
  --accent-gold-dim: #8b7419;
  --text-primary: #f0f2f5;
  --text-secondary: #9ca8b8;
  --text-muted: #6b7a8f;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

/* Subtle felt texture feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(26, 61, 46, 0.15), transparent),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(45, 90, 71, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 18, 25, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.75rem;
}

.logo-img {
  display: block;
}

.logo-text {
  color: var(--accent-gold);
  vertical-align: middle;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 767px) {
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.is-open a {
    padding: 0.75rem;
  }
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.hero-content {
  max-width: 640px;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.store-badge {
  display: inline-block;
  background-image: url(assets/badges.png);
  background-repeat: no-repeat;
  background-size: 200% 200%;
  height: 40px;
  width: 135px;
}

.store-badge-play {
  background-position: 100% 0; /* top-right: Play Store dark */
}

.store-badge-app {
  background-position: 100% 100%; /* bottom-right: App Store dark */
}

@media (min-width: 900px) {
  .hero .store-badges {
    justify-content: flex-start;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-visual {
  margin-top: 2.5rem;
  max-width: 340px;
}

.hero-image {
  width: 500px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
}

@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    text-align: left;
    padding: 6rem 2rem;
    gap: 4rem;
  }
  .hero-content {
    flex: 1;
  }
  .hero-subtitle {
    margin-left: 0;
  }
  .hero-cta {
    justify-content: flex-start;
  }
  .hero-visual {
    flex: 1;
    max-width: 420px;
    margin-top: 0;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-dark);
  border: none;
}

.btn-primary:hover {
  background: #d4af37;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0 0 2.5rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
}

/* Features grid */
.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.15s;
}

.feature-card:hover {
  border-color: rgba(201, 162, 39, 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

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

/* Hand Replayer */
.hand-replayer {
  background: linear-gradient(180deg, rgba(26, 61, 46, 0.2) 0%, transparent 100%);
}

.hand-replayer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hand-replayer-text .section-title {
  margin-bottom: 0.75rem;
}

.hand-replayer-text p {
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.replayer-controls-list {
  margin: 1rem 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.replayer-controls-list li {
  margin-bottom: 0.35rem;
}

.tech-note {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem !important;
}

.hand-replayer-visual {
  max-width: 480px;
}

.replayer-image {
  width: 75%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

@media (min-width: 900px) {
  .hand-replayer-content {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
  .hand-replayer-visual {
    flex-shrink: 0;
  }
}

/* Villain Database */
.villain-db-visual {
  margin-top: 1.5rem;
}

.villain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
}

.villain-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: var(--felt-green);
  color: var(--accent-gold);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.villain-card p {
  margin: 0;
  color: var(--text-secondary);
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-elevated);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent-gold);
}

/* Screenshots */
.screenshots-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

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

.screenshots-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.screenshots-grid img {
  width: 100%;
  height: auto;
  display: block;
}

/* CTA */
.cta {
  text-align: center;
  padding: 5rem 1.5rem;
}

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

.cta .section-subtitle {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

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