/* AcePulse Tennis - Promo Website Styles */
/* Theme extracted from Flutter app source */

:root {
  --color-primary: #84AE3D;
  --color-secondary: #3084C2;
  --color-accent-orange: #CB7F28;
  --color-accent-red: #CA4321;
  --color-bg-start: #10324F;
  --color-bg-end: #173855;
  --color-surface: #08263F;
  --color-surface-light: #0F3A5A;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #AEC8DE;
  --color-text-muted: #5F7F9A;
  --color-btn-primary-start: #96CA3B;
  --color-btn-primary-end: #6C922A;
  --color-btn-secondary-start: #368BC9;
  --color-btn-secondary-end: #1767A5;
  --border-radius: 15px;
  --font-family: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(180deg, var(--color-bg-start), var(--color-bg-end));
  color: var(--color-text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 38, 63, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(132, 174, 61, 0.15);
  transition: background 0.3s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.nav-logo svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background: rgba(132, 174, 61, 0.1);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(8, 38, 63, 0.98);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid rgba(132, 174, 61, 0.15);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 16px;
    width: 100%;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(132, 174, 61, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-content {
  text-align: left;
}

.hero-badge {
  display: inline-block;
  background: rgba(132, 174, 61, 0.15);
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title .accent {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-device {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Device Mockup */
.device-mockup {
  position: relative;
  width: 280px;
  max-width: 100%;
}

.device-frame {
  position: relative;
  background: #1a1a2e;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(132, 174, 61, 0.2);
}

.device-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: #2a2a3e;
  border-radius: 3px;
  z-index: 2;
}

.device-frame img {
  width: 100%;
  border-radius: 24px;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  text-align: center;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(180deg, var(--color-btn-primary-start), var(--color-btn-primary-end));
  color: #fff;
}

.btn-secondary {
  background: linear-gradient(180deg, var(--color-btn-secondary-start), var(--color-btn-secondary-end));
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-text-secondary);
  border: 2px solid rgba(174, 200, 222, 0.4);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Section Base */
.section {
  padding: 80px 24px;
  position: relative;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Features - Alternating */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .feature-icon-box {
  order: 2;
}

.feature-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: rgba(132, 174, 61, 0.1);
  border: 1px solid rgba(132, 174, 61, 0.2);
}

.feature-icon-circle.blue {
  background: rgba(48, 132, 194, 0.1);
  border-color: rgba(48, 132, 194, 0.2);
}

.feature-icon-circle.orange {
  background: rgba(203, 127, 40, 0.1);
  border-color: rgba(203, 127, 40, 0.2);
}

.feature-text {
  text-align: left;
}

.feature-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-text p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .feature-row.reverse .feature-icon-box {
    order: 0;
  }

  .feature-text {
    text-align: left;
  }
}

/* Screenshots Carousel */
.screenshots-section {
  max-height: 520px;
  overflow: hidden;
  padding: 60px 24px;
}

.carousel-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 0;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.carousel-device {
  position: relative;
  width: 220px;
  max-width: 100%;
}

.carousel-device .device-frame {
  border-radius: 30px;
  padding: 10px;
}

.carousel-device .device-frame img {
  border-radius: 20px;
  height: 340px;
  object-fit: cover;
  filter: blur(5px);
  transition: filter 0.3s ease;
}

.carousel-device .device-frame img.loaded {
  filter: blur(0);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(132, 174, 61, 0.2);
  border: 2px solid rgba(132, 174, 61, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  z-index: 5;
  font-size: 1.2rem;
  font-weight: 700;
}

.carousel-btn:hover {
  background: rgba(132, 174, 61, 0.2);
  border-color: var(--color-primary);
}

.carousel-btn.prev {
  left: -10px;
}

.carousel-btn.next {
  right: -10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-text-muted);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid rgba(132, 174, 61, 0.1);
  border-radius: var(--border-radius);
  padding: 32px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  text-align: center;
}

.stat-card .stat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.stat-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.stat-card p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  text-align: left;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: var(--color-surface);
  border-top: 1px solid rgba(132, 174, 61, 0.1);
  border-bottom: 1px solid rgba(132, 174, 61, 0.1);
}

.cta-section .section-title {
  margin-bottom: 16px;
}

.cta-section .section-desc {
  margin-bottom: 32px;
}

/* Footer */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid rgba(132, 174, 61, 0.1);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.6;
  text-align: left;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(95, 127, 154, 0.2);
  padding-top: 20px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

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

/* Page Content */
.page-header {
  padding: 100px 24px 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--color-primary);
}

.page-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 24px 0 10px;
}

.page-content p {
  color: var(--color-text-secondary);
  margin-bottom: 14px;
  line-height: 1.7;
  text-align: left;
}

.page-content ul, .page-content ol {
  color: var(--color-text-secondary);
  margin: 0 0 16px 24px;
  text-align: left;
}

.page-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.page-content a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.page-content a:hover {
  color: var(--color-primary);
}

.last-updated {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

/* Contact Form */
.contact-card {
  background: var(--color-surface);
  border: 1px solid rgba(132, 174, 61, 0.1);
  border-radius: var(--border-radius);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-surface-light);
  border: 1px solid rgba(174, 200, 222, 0.15);
  border-radius: 10px;
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input[type="file"] {
  padding: 10px;
  cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
  background: linear-gradient(180deg, var(--color-btn-secondary-start), var(--color-btn-secondary-end));
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
}

.form-submit {
  text-align: center;
  margin-top: 28px;
}

.form-message {
  display: none;
  text-align: center;
  padding: 16px;
  border-radius: 10px;
  margin-top: 20px;
  font-weight: 500;
}

.form-message.success {
  display: block;
  background: rgba(132, 174, 61, 0.15);
  color: var(--color-primary);
  border: 1px solid rgba(132, 174, 61, 0.3);
}

/* Privacy Accept Button (required by privacy plugin) */
.privacy-accept-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 16px 24px 24px;
  background: linear-gradient(0deg, var(--color-bg-end) 60%, transparent);
  display: flex;
  justify-content: center;
  align-items: center;
}

.privacy-accept-btn.hidden {
  display: none;
}

.accept-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  padding: 16px 32px;
  background: linear-gradient(180deg, var(--color-btn-primary-start), var(--color-btn-primary-end));
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 16px rgba(132, 174, 61, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.accept-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(132, 174, 61, 0.4);
}

/* Responsive Hero */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .device-mockup {
    width: 220px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .contact-card {
    padding: 24px;
  }

  .carousel-device {
    width: 180px;
  }

  .carousel-device .device-frame img {
    height: 280px;
  }
}

/* AOS-like fade animations via CSS */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-right"] {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-right"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

[data-aos="fade-left"] {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-left"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}
