/* Style System for Apex Safety & Archery Systems */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #e65100;
  --primary-hover: #bf360c;
  --primary-rgb: 230, 81, 0;
  --accent: #ff9800;
  --accent-hover: #f57c00;
  --background: #121212;
  --bg-gradient: radial-gradient(circle at 50% 50%, #2a1f1b 0%, #121212 100%);
  --card-bg: rgba(33, 33, 33, 0.5);
  --card-border: rgba(230, 81, 0, 0.2);
  --card-hover-border: rgba(255, 152, 0, 0.4);
  --text: #e0e0e0;
  --text-muted: #b0bec5;
  --white: #ffffff;
  --error: #e53935;
  --success: #43a047;
  --font: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

body {
  background: var(--bg-gradient);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Layout Elements */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 18, 0.8);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

.logo-icon {
  width: 32px;
  height: 32px;
  fill: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--background);
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero {
    padding: 3rem 0;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  background: rgba(230, 81, 0, 0.15);
  border: 1px solid var(--primary);
  color: var(--text-muted);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.highlight {
  color: var(--accent);
  background: linear-gradient(120deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 152, 0, 0) 100%);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Form Container */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.form-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.15);
}

.form-btn {
  width: 100%;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.form-terms {
  font-size: 0.8rem;
  text-align: center;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.4);
}

.form-terms a {
  color: var(--accent);
  text-decoration: underline;
}

/* Modules Section */
.modules {
  padding: 6rem 0;
  background: rgba(0, 0, 0, 0.2);
}

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

.module-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 2rem;
  transition: var(--transition);
  height: 100%;
}

.module-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 152, 0, 0.1);
}

.module-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.module-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.module-list {
  list-style: none;
}

.module-list li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.module-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
}

/* Safety & Info Section */
.info-section {
  padding: 6rem 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.info-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.info-text p {
  margin-bottom: 1.5rem;
}

.trust-badge-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.trust-badge-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.trust-badge-icon {
  width: 40px;
  height: 40px;
  fill: var(--accent);
  margin: 0 auto 1rem;
}

.trust-badge-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.trust-badge-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ Section */
.faq {
  padding: 6rem 0;
  background: rgba(0, 0, 0, 0.1);
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--background);
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  padding: 3rem;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition);
  box-shadow: 0 15px 40px rgba(255, 152, 0, 0.15);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-success-icon {
  width: 70px;
  height: 70px;
  fill: var(--success);
  margin: 0 auto 1.5rem;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.modal-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Footer Section */
footer {
  background: #0f0f0f;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer-about h4, .footer-contact h4 {
  color: var(--white);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.footer-contact p {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: var(--transition);
}

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

.disclaimer-text {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: justify;
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(255, 152, 0, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
  }
}
