{% extends 'core/base.html' %}
{% block title %}Home | Nature In Pots{% endblock %}

{% block content %}
  <!-- Hero Section -->
  <div class="py-5 text-center bg-light rounded-3">
    <h1 class="display-5 fw-bold">Welcome to Nature In Pots</h1>
    <p class="fs-5 text-muted mb-4">
      Your internal platform for comprehensive plant tracking, propagation history, and collaborative logging.
    </p>
    <p class="mb-0">
      <strong class="text-success">Free to use for the time being</strong><br>
      (A future subscription or licensing model may be introduced as needed.)
    </p>
  </div>

  <!-- Features Overview -->
  <div class="row mt-5 gy-4">
    <div class="col-md-4">
      <h3>Plant Profiles</h3>
      <p>Quickly create and manage detailed records—type, names, lineage, notes, and custom slugs for easy sharing.</p>
    </div>
    <div class="col-md-4">
      <h3>Grow Logs</h3>
      <p>Maintain a timeline of growth metrics, health events, substrate mixes, and propagation notes.</p>
    </div>
    <div class="col-md-4">
      <h3>Image Gallery</h3>
      <p>Upload, rotate, and feature photos for each plant. Community voting and one-click “featured” selection.</p>
    </div>
    <div class="col-md-4">
      <h3>Lineage Tracking</h3>
      <p>Visualize parent–child relationships with a graph powered by Neo4j—track every cutting, seed, and division.</p>
    </div>
    <div class="col-md-4">
      <h3>Pricing & Transfers</h3>
      <p>Securely log acquisition costs, resale prices, and ownership changes—with history retained and protected.</p>
    </div>
    <div class="col-md-4">
      <h3>Import & Export</h3>
      <p>Bulk-import plants and media via CSV/ZIP. Export your entire dataset and images for backups or reporting.</p>
    </div>
  </div>

  <!-- Call to Action -->
  <div class="text-center mt-5">
    {% if current_user.is_authenticated %}
      <a href="{{ url_for('plant.index') }}" class="btn btn-primary btn-lg me-2">View My Plants</a>
      <a href="{{ url_for('utility.upload') }}" class="btn btn-outline-secondary btn-lg">Import Data</a>
    {% else %}
      <a href="{{ url_for('auth.register') }}" class="btn btn-success btn-lg me-2">Register Now</a>
      <a href="{{ url_for('auth.login') }}" class="btn btn-outline-primary btn-lg">Log In</a>
    {% endif %}
  </div>
{% endblock %}
