{% extends "base.html" %}

{% block title %}AI Business Planning & Mind Map{% endblock %}

{% block head %}
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Sora:wght@600;700;800&display=swap" rel="stylesheet">
<style>
  :root {
    --primary: #0F766E;
    --primary-light: #38BDF8;
    --secondary: #0B132B;
    --accent: #F59E0B;
    --bg-color: #F8FAFC;
    --text-color: #334155;
  }

  body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
  }

  .hero {
    position: relative;
    padding: 8rem 2rem 6rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    overflow: hidden;
  }

  .hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--bg-color);
    transform: skewY(-2deg);
    z-index: 1;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
  }

  h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
  }

  .hero p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
  }

  .btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
  }
  
  .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid white;
    color: white;
    margin-left: 1rem;
  }
  
  .btn-outline:hover {
    background: white;
    color: var(--primary);
  }

  .features {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
  }

  .feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
  }

  .feature-card:hover {
    transform: translateY(-5px);
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .feature-card h3 {
    font-family: 'Sora', sans-serif;
    color: var(--secondary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .feature-card p {
    color: var(--text-color);
    line-height: 1.6;
    opacity: 0.8;
  }

  /* 3D decorative shapes */
  .shape {
    position: absolute;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
  }
  
  .shape-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
  }
  
  .shape-2 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 15%;
    border-radius: 20px;
    transform: rotate(45deg);
    animation-delay: 2s;
  }

  @keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0px) rotate(0deg); }
  }
</style>
{% endblock %}

{% block content %}
<main>
  <section class="hero">
    <div class="shape shape-1"></div>
    <div class="shape shape-2"></div>
    
    <div class="hero-content">
      <h1>Build Businesses from Scratch with AI</h1>
      <p>Your intelligent workspace for planning, validating, and pitching business ideas. Create dynamic mind maps that research, reason, and write for you.</p>
      
      <div class="cta-group">
        {% if user.is_authenticated %}
          <a href="{% url 'project_list' %}" class="btn btn-primary">Go to My Projects</a>
        {% else %}
          <a href="{% url 'project_list' %}" class="btn btn-primary">Start a Project</a>
        {% endif %}
      </div>
    </div>
  </section>

  <section class="features">
    <div class="feature-card">
      <div class="feature-icon">🧠</div>
      <h3>Living Mind Maps</h3>
      <p>Connect your ideas with AI-powered 'how' and 'why' reasoning. Watch your initial concepts grow into comprehensive business models.</p>
    </div>
    
    <div class="feature-card">
      <div class="feature-icon">📚</div>
      <h3>Expert Research Layer</h3>
      <p>Upload articles, URLs, and notes. The AI learns from your specific sources to become an expert in your precise field and niche.</p>
    </div>
    
    <div class="feature-card">
      <div class="feature-icon">💼</div>
      <h3>Investor-Ready Docs</h3>
      <p>Automatically generate polished business plans, VC pitch decks, and vendor-finance proposals directly from your expanded mind map.</p>
    </div>
  </section>
</main>
{% endblock %}