/* ============================================
   NatureTimers — Homepage Styles
   NatureTimers.com
   ============================================ */

/* CSS Variables */
:root {
  --nature-green: #34c759;
  --dark-green: #207848;
  --light-green: #66e58b;
  --text-primary: #1d1d1f;
  --text-secondary: #8e8e93;
  --bg-light: #ffffff;
  --bg-subtle: #f5f5f7;
  --bg-card: #f0f0f2;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(52, 199, 89, 0.2);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  --border-radius: 16px;
  --border-radius-sm: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-light: #1c1c1e;
    --bg-subtle: #2c2c2e;
    --bg-card: #3a3a3c;
    --text-primary: #f5f5f7;
    --text-secondary: #98989d;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  }
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   Header
   ============================================ */
header {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 1.5rem;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo:hover {
  color: var(--nature-green);
}

/* ============================================
   Main Content
   ============================================ */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  text-align: center;
  margin-bottom: 4rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--nature-green);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   Tools Grid
   ============================================ */
.tools-section {
  margin: 4rem 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
}

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

/* Tool Card */
.tool-card {
  background: var(--bg-subtle);
  border: 2px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  -webkit-tap-highlight-color: transparent;
}

.tool-card:hover {
  border-color: var(--nature-green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tool-card.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
}

.tool-card.coming-soon:hover {
  transform: none;
  border-color: var(--glass-border);
  box-shadow: none;
}

.tool-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.tool-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.tool-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.tool-keyword {
  font-size: 0.85rem;
  color: var(--nature-green);
  font-weight: 500;
  margin-top: 0.5rem;
}

.coming-soon-badge {
  display: inline-block;
  background: var(--text-secondary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

.live-badge {
  display: inline-block;
  background: var(--nature-green);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

/* ============================================
   Why Section
   ============================================ */
.why-section {
  background: var(--bg-subtle);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  margin: 4rem 0;
  text-align: center;
}

.why-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.why-section p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 1rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature {
  text-align: center;
}

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

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   Flagship CTA
   ============================================ */
.flagship-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.1), rgba(52, 199, 89, 0.05));
  border-radius: var(--border-radius);
  border: 2px solid var(--nature-green);
  margin: 4rem 0;
}

.flagship-cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.flagship-cta p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.flagship-cta a {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--nature-green);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.flagship-cta a:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--glass-border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer p {
  margin: 0.5rem 0;
}

footer a {
  color: var(--nature-green);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ============================================
   Mobile Responsive
   ============================================ */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .stats {
    flex-direction: column;
    gap: 1rem;
  }

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

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

  .why-section {
    padding: 2rem 1.5rem;
  }

  .flagship-cta {
    padding: 2rem 1.5rem;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  header, footer, .flagship-cta {
    display: none;
  }
}