/* CSS Variables for Brand Colors */
:root {
  --primary: #2a2a3b;
  --primary-50: #f8f8fa;
  --primary-100: #f1f1f4;
  --primary-200: #e3e3e9;
  --primary-300: #d1d1da;
  --primary-400: #b8b8c5;
  --primary-500: #9a9aab;
  --primary-600: #7d7d91;
  --primary-700: #656577;
  --primary-800: #535362;
  --primary-900: #474753;
  --primary-950: #2a2a3b;

  --accent: #8cdc3c;
  --accent-50: #f4fce8;
  --accent-100: #e6f7cc;
  --accent-200: #cef09f;
  --accent-300: #ade567;
  --accent-400: #8cdc3c;
  --accent-500: #6fc01e;
  --accent-600: #559914;
  --accent-700: #427514;
  --accent-800: #375d16;
  --accent-900: #304f17;

  --white: #ffffff;
  --black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--primary);
  background: linear-gradient(135deg, var(--white) 0%, var(--primary-50) 50%, var(--accent-50) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

.animate-slide-up {
  animation: slideInUp 0.8s ease-out forwards;
  opacity: 0;
}

.animate-scale-in {
  animation: scaleIn 0.7s ease-out forwards;
  opacity: 0;
  animation-delay: 0.1s;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--primary-200);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  border-radius: 4px;
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
  gap: 2rem;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--primary-600);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--accent);
  transform: scale(1.05);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-underline {
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  background: var(--accent);
  width: 0;
  transition: width 0.3s ease;
}

.nav-link:hover .nav-underline,
.nav-link.active .nav-underline {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: block;
  background: none;
  border: 1px solid var(--primary-300);
  color: var(--primary);
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.mobile-nav {
  position: fixed;
  top: 4rem;
  right: -100%;
  width: 250px;
  height: calc(100vh - 4rem);
  background: var(--white);
  border-left: 1px solid var(--primary-200);
  transition: right 0.3s ease;
  z-index: 40;
  padding: 2rem 0;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 1.5rem;
}

.mobile-nav-link {
  text-decoration: none;
  color: var(--primary-600);
  font-weight: 500;
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--accent);
  transform: translateX(8px);
}

.mobile-nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* Main Content */
.main {
  flex: 1;
  padding: 2rem 0;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0;
  padding-bottom: 0;
}

.hero-content {
  max-width: 64rem;
  margin: 0 auto;
}

.logo-container {
  margin-bottom: 3rem;
}

.hero-logo {
  transition: transform 0.5s ease;
  filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
}

.hero-logo:hover {
  transform: scale(1.1);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--primary), var(--primary-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--primary-600);
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* Contact Section */
.contact-section {
  max-width: 32rem;
  margin: 0 auto;
  padding: 3rem 0;
}

.contact-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--primary-100);
  padding: 2rem;
}

.contact-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  color: var(--primary);
  margin-bottom: 2rem;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group.animate-slide-up:nth-child(1) {
  animation-delay: 0.8s;
}
.form-group.animate-slide-up:nth-child(2) {
  animation-delay: 1s;
}
.form-group.animate-slide-up:nth-child(3) {
  animation-delay: 1.2s;
}
.form-group.animate-slide-up:nth-child(4) {
  animation-delay: 1.4s;
}
.form-group.animate-slide-up:nth-child(5) {
  animation-delay: 1.6s;
}

.form-label {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
}

.form-input,
.form-textarea {
  padding: 0.75rem;
  border: 1px solid var(--primary-200);
  border-radius: 0.375rem;
  font-size: 1rem;
  color: var(--primary);
  transition: all 0.3s ease;
  background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(140, 220, 60, 0.1);
  transform: scale(1.02);
}

.form-textarea {
  resize: none;
  font-family: inherit;
}

/* reCAPTCHA */
.recaptcha-container {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.recaptcha-notice {
  font-size: 0.75rem;
  color: var(--primary-500);
  text-align: center;
  margin-top: 0.5rem;
}

.recaptcha-notice a {
  color: var(--accent);
  text-decoration: none;
}

.recaptcha-notice a:hover {
  text-decoration: underline;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
  background: var(--accent-600);
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Success Message */
.success-message {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(140, 220, 60, 0.1);
  border: 1px solid rgba(140, 220, 60, 0.2);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-700);
}

.success-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.success-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.success-subtitle {
  font-size: 0.875rem;
}

/* Error Message */
.error-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 0.375rem;
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.error-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Content Pages */
.content-card {
  max-width: 48rem;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--primary-100);
  padding: 2rem;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
}

.content-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-content {
  color: var(--primary-700);
  line-height: 1.7;
}

.section-content p {
  margin-bottom: 0.5rem;
}

.section-content ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.section-content li {
  margin-bottom: 0.5rem;
}

.highlight {
  color: var(--accent);
  font-weight: 500;
}

.back-link {
  margin-top: 3rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-btn:hover {
  color: var(--accent-600);
  transform: translateX(4px);
}

/* Footer */
.footer {
  border-top: 1px solid var(--primary-200);
  padding: 2rem 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  margin-top: auto;
}

.footer p {
  text-align: center;
  color: var(--primary-600);
  font-size: 0.875rem;
}

/* Swipe Navigation */
.swipe-indicators {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: none;
}

.swipe-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--primary-100);
  font-size: 0.75rem;
  color: var(--primary-600);
  animation: pulse 2s infinite;
}

.swipe-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  border-radius: 50%;
}

.page-dots {
  position: fixed;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: none;
  gap: 0.5rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary-300);
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

/* Tutorial */
.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tutorial-content {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 28rem;
  width: 100%;
  padding: 1.5rem;
  position: relative;
}

.tutorial-close {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  background: none;
  border: none;
  color: var(--primary-400);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: color 0.3s ease;
}

.tutorial-close:hover {
  color: var(--primary-600);
}

.tutorial-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.tutorial-description {
  color: var(--primary-600);
  margin-bottom: 2rem;
}

.tutorial-animation {
  background: var(--primary-50);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  height: 10rem;
  overflow: hidden;
}

.phone-frame {
  position: absolute;
  inset: 1rem;
  border: 2px solid var(--primary);
  border-radius: 0.5rem;
}

.page-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.page-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary-300);
  transition: all 0.3s ease;
}

.page-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

.hand-icon {
  position: absolute;
  bottom: 40%;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
  font-size: 1.5rem;
  transition: all 1s ease-in-out;
  opacity: 0;
}

.swipe-trail {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.3;
  width: 0;
  transition: all 1s ease-in-out;
  transform: translateY(-50%);
}

.page-preview {
  position: absolute;
  inset: 1rem;
  background: var(--white);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tutorial-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tutorial-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.tutorial-btn.secondary {
  background: none;
  color: var(--primary);
  border: 1px solid var(--primary-200);
}

.tutorial-btn.secondary:hover {
  background: var(--primary-50);
}

.tutorial-btn.primary {
  background: var(--accent);
  color: var(--primary);
}

.tutorial-btn.primary:hover {
  background: var(--accent-600);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--white) 0%, var(--primary-50) 50%, var(--accent-50) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.spinner {
  width: 3rem;
  height: 3rem;
  border: 4px solid var(--primary-200);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.loading-content p {
  color: var(--primary-600);
  font-weight: 500;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Responsive Design */
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

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

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

  .swipe-indicators,
  .page-dots {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .swipe-indicators,
  .page-dots {
    display: flex;
  }
}

@media (hover: hover) {
  .swipe-indicators {
    display: none !important;
  }
}
