/* ============================================
   IRON LOG — Workout Tracker Landing Page
   Color: #1a1a2e bg, #ff6b35 accent, #e94560 secondary
   ============================================ */

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

:root {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-card: #0f3460;
  --accent: #ff6b35;
  --secondary: #e94560;
  --text: #f0f0f0;
  --text-muted: #a0a0b8;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--secondary);
}

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

/* ---------- Utility ---------- */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* ---------- Fade-in animation (CSS only) ---------- */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }
.fade-in:nth-child(5) { animation-delay: 0.4s; }
.fade-in:nth-child(6) { animation-delay: 0.5s; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 107, 53, 0.08) 0%, transparent 60%),
    var(--bg-primary);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  max-width: 540px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 107, 53, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-tagline {
  font-size: 1.35rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge-link img {
  height: 54px;
  width: auto;
  transition: transform 0.2s;
}

.badge-link:hover img {
  transform: scale(1.04);
}

.hero-mockup {
  display: flex;
  justify-content: center;
}

.mockup-placeholder {
  width: 280px;
  height: 560px;
  background: linear-gradient(160deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  border-radius: 36px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mockup-placeholder .icon {
  font-size: 3rem;
}

.mockup-placeholder span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Features ---------- */

.features {
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.feature-card {
  background: rgba(15, 52, 96, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

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

/* ---------- CTA / Download ---------- */

.cta {
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(233, 69, 96, 0.06) 0%, transparent 60%),
    var(--bg-primary);
}

.cta h2 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ---------- Donate ---------- */

.donate {
  text-align: center;
  background: var(--bg-secondary);
}

.donate h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.donate p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.donate-btn {
  display: inline-block;
  padding: 0.9rem 2.25rem;
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.2s, transform 0.2s;
}

.donate-btn:hover {
  background: #c73850;
  transform: translateY(-2px);
}

.donate-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ---------- Footer ---------- */

.footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
}

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

/* ---------- Legal / Support Pages ---------- */

.page-header {
  padding: 7rem 0 3rem;
  text-align: center;
  background: var(--bg-secondary);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
}

.page-header p {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.page-content {
  padding: 3rem 0 5rem;
}

.page-content .container {
  max-width: 780px;
}

.page-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.page-content h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.page-content p,
.page-content li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.page-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

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

/* FAQ accordion (CSS only) */

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-box {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(15, 52, 96, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  text-align: center;
}

.contact-box h3 {
  margin-top: 0;
}

.contact-email {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
}

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

/* ---------- Responsive ---------- */

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

@media (max-width: 700px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-mockup {
    order: -1;
  }

  .mockup-placeholder {
    width: 220px;
    height: 440px;
    border-radius: 28px;
  }

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

  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}
