:root {
      --sand-light: #fdfaf5;
      --sand-dark: #e0d9cd;
      --beach-blue: #6dd5ed;
      --coral-orange: #ff6b6b;
      --dark-charcoal: #2c3e50;
      --light-gray-text: #ecf0f1;
      --muted-gray: #7f8c8d;
      --header-height: 80px;
      --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
      --radius-md: 16px;
      --font-display: 'Chakra Petch', sans-serif;
      --font-body: 'Inter', sans-serif;
    }

    /* Reset e Base */
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font-body);
      color: var(--dark-charcoal);
      background-color: var(--sand-light);
      -webkit-font-smoothing: antialiased;
      position: relative; /* Para o canvas de fundo */
    }
    
    /* Canvas de Fundo Animado */
    #particle-canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        pointer-events: none;
    }

    /* Tipografia */
    h1, h2, h3, h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1.5px; line-height: 1.2; }
    h1 { font-size: clamp(3.5rem, 10vw, 6rem); color: var(--light-gray-text); text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
    h2 { font-size: clamp(2.5rem, 5vw, 4rem); text-align: center; margin-bottom: 1rem; color: var(--dark-charcoal); }
    .lead { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 700px; margin: 1.5rem auto 2.5rem; color: var(--light-gray-text); }
    .section-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted-gray); max-width: 700px; margin: 0 auto 4rem; text-align: center; }

    .container { max-width: 1140px; margin: 0 auto; padding: 0 25px; }

    /* Cabeçalho */
    .site-header {
      position: sticky; top: 0; z-index: 100;
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(15px);
      box-shadow: 0 4px 15px rgba(0,0,0,0.05);
      padding: 1rem 0;
      height: var(--header-height);
    }
    .nav-container { display: flex; align-items: center; justify-content: space-between; height: 100%;}
    .brand { font-weight: 700; font-size: 1.5rem; text-decoration: none; color: var(--coral-orange); }
    .nav-links { display: flex; align-items: center; gap: 1rem; }
    .nav-links a { text-decoration: none; color: var(--dark-charcoal); font-weight: 500; padding: 0.5rem 1rem; position: relative; }
    .nav-links a::after {
      content: ''; position: absolute; bottom: -2px; left: 50%; width: 0; height: 3px;
      background-color: var(--beach-blue);
      transition: all 0.3s ease-out;
    }
    .nav-links a:hover::after { width: 100%; left: 0; }
    .menu-toggle { display: none; }

    /* Botões */
    .btn {
      border: none; border-radius: 50px; padding: 0.8rem 2rem; font-weight: 700; cursor: pointer;
      text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: all 0.3s ease;
    }
    .btn.primary { background: var(--coral-orange); color: var(--light-gray-text); box-shadow: var(--shadow-md); }
    .btn.primary:hover { transform: translateY(-3px) scale(1.02); }
    .btn.ghost { color: var(--light-gray-text); background: transparent; border: 2px solid var(--light-gray-text); }
    .btn.ghost:hover { background: var(--light-gray-text); color: var(--coral-orange); }
    .btn.lg { padding: 1.2rem 3rem; font-size: 1.2rem; }
    .btn.full { width: 100%; padding-top: 1rem; padding-bottom: 1rem; font-size: 1.1rem; }
    .btn.whatsapp { background-color: #25D366; color: white; }
    .btn.whatsapp:hover { background-color: #1DAE54; }

    /* Seções */
    .section {
      padding: 120px 0;
      position: relative;
      overflow: hidden;
    }
    .section-cta { text-align: center; margin-top: 2.5rem; }

    /* Hero Section */
    .section-hero {
      height: calc(100vh - var(--header-height));
      min-height: 600px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 0;
      background: url('https://images.unsplash.com/photo-1620476259253-a80d961a1828?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
      position: relative;
    }
    .hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
    .hero-content { position: relative; z-index: 2; }
    .hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

    /* Seção de Conteúdo Genérica */
    .content-section {
        background-color: var(--sand-light);
        border-bottom: 1px solid var(--sand-dark);
    }
    .content-section.alt-bg {
        background-color: #f7f3ed;
    }

    .grid-layout {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2.5rem;
        align-items: center;
    }

    .text-block {
        padding-right: 2rem;
    }
    .text-block h3 {
        font-size: 2.5rem;
        color: var(--coral-orange);
        margin-bottom: 1.5rem;
    }
    .text-block p {
        font-size: 1.1rem;
        line-height: 1.8;
        color: var(--muted-gray);
        margin-bottom: 1rem;
    }

    .image-block img {
        width: 100%;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        object-fit: cover;
    }

    /* Modo de Disputa */
    .timeline {
      display: flex;
      flex-direction: column;
      gap: 2rem;
      max-width: 800px;
      margin: 0 auto;
    }
    .timeline-step {
      display: flex;
      align-items: flex-start;
      gap: 1.5rem;
      background: #fff;
      padding: 2rem;
      border-radius: var(--radius-md);
      box-shadow: 0 4px 15px rgba(0,0,0,0.05);
      border: 1px solid var(--sand-dark);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .timeline-step:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }
    .step-number {
      flex-shrink: 0;
      width: 50px; height: 50px;
      display: grid; place-items: center;
      background: var(--beach-blue);
      color: #fff;
      border-radius: 50%;
      font-size: 1.8rem;
      font-family: var(--font-display);
    }
    .step-content h4 {
      font-size: 1.6rem;
      color: var(--dark-charcoal);
      margin-bottom: 0.5rem;
    }
    .step-content p {
      color: var(--muted-gray);
      line-height: 1.7;
    }

    /* Seção Comunidade */
    #inscritos .head-flex { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
    #q { padding: 0.8rem 1.5rem; border: 1px solid var(--sand-dark); border-radius: 50px; font-size: 1rem; width: 300px; }
    .tag { padding: 0.6rem 1.2rem; border-radius: 50px; background: var(--coral-orange); color: var(--light-gray-text); font-weight: 700; }
    #grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
      margin-top: 2rem;
    }
    .player-card {
      background: #fff; border-radius: var(--radius-md); padding: 1.5rem;
      box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: center;
      transition: all 0.2s ease-out;
      border: 1px solid var(--sand-dark);
    }
    .player-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
    .player-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; border: 3px solid var(--sand-dark); }
    .player-level { color: var(--muted-gray); font-size: 0.9rem; }

    /* Seção Inscrição */
    #inscricao { background: linear-gradient(135deg, var(--beach-blue) 0%, #a1c4fd 100%); }
    .form-wrapper {
      max-width: 700px;
      margin: 0 auto;
      background: #fff;
      padding: 3rem;
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-md);
    }
    .form .field { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
    .form label { font-weight: 600; font-size: 1rem; }
    .form input, .form select {
      padding: 1rem; border: 1px solid var(--sand-dark); border-radius: 8px; font-size: 1rem;
    }
    .form input[type="file"] {
      padding: 0;
    }
    .form input[type="file"]::file-selector-button {
      padding: 1rem;
      border: none;
      border-right: 1px solid var(--sand-dark);
      background: #f7f3ed;
      font-weight: 600;
      color: var(--dark-charcoal);
      cursor: pointer;
      margin-right: 1rem;
      transition: background .2s ease;
    }
    .form input[type="file"]::file-selector-button:hover {
      background: var(--sand-dark);
    }
    .form input:focus, .form select:focus { border-color: var(--beach-blue); box-shadow: 0 0 0 3px rgba(109, 213, 237, 0.3); outline: none; }
    .form .terms { display: flex; align-items: flex-start; gap: 0.8rem; font-size: 0.9rem; margin: 1.5rem 0; }

    /* Footer */
    footer {
      background: var(--dark-charcoal); color: var(--light-gray-text); padding: 2rem 0;
      text-align: center; font-size: 0.9rem;
    }
    footer span { color: var(--coral-orange); }

    /* Modal de Sucesso */
    .modal-overlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0, 0, 0, 0.7);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }
    .modal-content {
      background: #fff;
      padding: 3rem;
      border-radius: var(--radius-md);
      max-width: 500px;
      width: 100%;
      text-align: center;
      position: relative;
      box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    }
    .modal-content h2 { color: var(--coral-orange); font-size: 2.2rem; margin-bottom: 1rem; }
    .modal-content p { color: var(--muted-gray); line-height: 1.7; margin-bottom: 2rem; }
    .close-button {
      position: absolute;
      top: 15px; right: 20px;
      background: transparent;
      border: none;
      font-size: 2.5rem;
      font-weight: 300;
      color: var(--muted-gray);
      cursor: pointer;
      line-height: 1;
    }
    .close-button:hover { color: var(--dark-charcoal); }

    /* Animações de Entrada */
    .anim-on-scroll {
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .anim-on-scroll.is-visible {
      opacity: 1;
      transform: translateY(0);
    }
    .anim-on-scroll.anim-delay-1.is-visible { transition-delay: 0.2s; }
    .anim-on-scroll.anim-delay-2.is-visible { transition-delay: 0.4s; }

    
    /* Estilos Hero Adicionais */
    .hero-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.5rem;
    }

    .hero-title {
      font-family: var(--font-display);
      font-size: clamp(2.8rem, 8vw, 4.5rem); /* Responsive font size */
      font-weight: 700;
      letter-spacing: -1px;
      line-height: 1.1;
      color: var(--light-gray-text); /* From h1 style */
      text-shadow: 0 4px 10px rgba(0,0,0,0.3); /* From h1 style */
    }

    .hero-subtitle {
      display: block; /* To ensure it appears on a new line */
      font-family: var(--font-body);
      font-size: clamp(1.2rem, 3vw, 1.5rem);
      font-weight: 500;
      color: #ffd700; /* Gold color */
      text-shadow: none; /* Remove parent's text-shadow */
      margin-top: 0.5rem;
    }

    .hero-description {
      font-size: clamp(1.1rem, 2.5vw, 1.25rem);
      color: var(--light-gray-text);
      max-width: 580px;
    }

    .hero-details {
      display: block;
      margin-top: 1rem;
      font-size: clamp(1rem, 2vw, 1.1rem);
      color: #ffd700; /* Gold color */
      font-weight: 500;
    }

    .hero-actions {
      gap: 1rem;
    }

    .section-hero .btn.lg {
      font-size: 1.1rem;
      padding: 0.9em 2.2em;
    }

    /* Mobile */
    @media (max-width: 960px) {
      .nav-links { display: none; } /* Adicionar JS para menu hamburguer */
      .menu-toggle {
        display: flex; flex-direction: column; justify-content: space-between;
        width: 30px; height: 20px; background: transparent; border: none;
        cursor: pointer;
      }
      .menu-toggle .bar { width: 100%; height: 3px; background-color: var(--dark-charcoal); border-radius: 2px; }
      
      .grid-layout { grid-template-columns: 1fr; }
      .grid-layout.reverse-mobile .image-block { order: -1; }
      .text-block { padding-right: 0; }
      .image-block { margin-top: 2rem; }
    }