/* ============================================================
   VARIABLES & RESET
   ============================================================ */

:root {
  /* Colors */
  --primary: #3daa8c;
  --primary-light: #e8f5f1;
  --primary-dark: #2a7a64;
  --secondary: #1a1a2e;
  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --background: #ffffff;
  --surface: #f7f9fb;
  --success: #34c759;
  --error: #ff3b30;
  --warning: #ff9500;

  /* Typography */
  --font-primary:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: "Fira Code", monospace;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 40px;
  --spacing-3xl: 48px;
  --spacing-4xl: 64px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;

  /* Transitions */
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   CONTAINER & GRID
   ============================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
}

h3 {
  font-size: 20px;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-3xl);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.highlight {
  color: var(--primary);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--primary-light);
  color: var(--primary);
}

.btn-secondary:hover {
  background: #d4ebe7;
}

.btn-secondary-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary-outline:hover {
  background: var(--primary-light);
}

.btn-block {
  width: 100%;
  display: block;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
  position: sticky;
  top: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: var(--spacing-md) 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.logo svg {
  display: flex;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-2xl);
  flex: 1;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-buttons {
  display: flex;
  gap: var(--spacing-md);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-lg);
    gap: var(--spacing-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-menu.active {
    max-height: 300px;
  }

  .nav-buttons {
    display: none;
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  padding: var(--spacing-4xl) 0;
  background: linear-gradient(135deg, #f7f9fb 0%, #e8f5f1 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-4xl);
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(61, 170, 140, 0.1);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--spacing-xl);
}

.badge-dot {
  color: var(--primary);
  font-size: 16px;
}

.hero-text h1 {
  margin-bottom: var(--spacing-lg);
  line-height: 1.1;
}

.hero-text h1 .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2xl);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-4xl);
  flex-wrap: wrap;
}

.btn-primary.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  background: var(--primary);
  color: white;
  text-decoration: none;
  border: 2px solid var(--primary);
}

.btn-primary.btn-lg:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(61, 170, 140, 0.3);
}

.btn-secondary-outline.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  background: transparent;
  color: var(--primary);
  text-decoration: none;
  border: 2px solid var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary-outline.btn-lg:hover {
  background: rgba(61, 170, 140, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(61, 170, 140, 0.15);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.stat {
  text-align: left;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--spacing-xs);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Browser Mockup Styles */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
}

.browser-mockup {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.browser-header {
  background: #2d3748;
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff6b6b;
}

.browser-dots span:nth-child(2) {
  background: #ffd93d;
}

.browser-dots span:nth-child(3) {
  background: #6bcf7f;
}

.browser-title {
  flex: 1;
  font-size: 13px;
  text-align: center;
  color: #a0aec0;
}

.browser-ai-badge {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

.browser-content {
  padding: 24px;
  height: 400px;
  overflow-y: auto;
  background: #f7f9fb;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.user-message .message-avatar {
  background: var(--primary);
}

.ai-message .message-avatar {
  background: #ff9500;
}

.message-text {
  flex: 1;
}

.message-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

.message-text p:first-child {
  font-weight: 600;
  margin-bottom: 4px;
}

.user-message .message-text p {
  color: var(--primary);
}

.ai-message .message-text p {
  color: var(--text-secondary);
}

.result-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 192, 0, 0.1);
  color: #ff9500;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
  margin: 8px 0;
}

.result-feedback {
  display: flex;
  align-items: center;
  padding: 12px;
  background: white;
  border-radius: 8px;
  margin-top: 8px;
}

.result-feedback .message-avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.result-feedback p {
  margin: 0;
}

@media (max-width: 1024px) {
  .hero-content {
    gap: var(--spacing-2xl);
  }
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
  }

  .hero-cta {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .btn-lg {
    width: 100%;
    text-align: center;
  }

  .hero-image-wrapper {
    max-width: 100%;
    margin-top: var(--spacing-2xl);
  }

  .browser-mockup {
    height: auto;
  }

  .browser-content {
    height: 300px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .stat {
    text-align: left;
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-label {
    font-size: 12px;
  }

  .hero-badge {
    font-size: 12px;
  }
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */

.features {
  padding: var(--spacing-4xl) 0;
  background: var(--background);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-2xl);
}

.feature-card {
  padding: var(--spacing-2xl);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  background: white;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-md);
  display: block;
}

.feature-card h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.feature-card p {
  font-size: 14px;
  margin: 0;
}

/* ============================================================
   SUBJECTS SECTION
   ============================================================ */

.subjects {
  padding: var(--spacing-4xl) 0;
  background: var(--primary-light);
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-2xl);
}

.subject-card {
  padding: var(--spacing-2xl);
  background: var(--background);
  border-radius: var(--radius-xl);
  text-align: center;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.subject-card:hover {
  transform: scale(1.05);
  border-color: var(--primary);
}

.subject-card.math {
  --accent: #3daa8c;
}

.subject-card.chemistry {
  --accent: #4a90d9;
}

.subject-card.physics {
  --accent: #7b61d9;
}

.subject-card.biology {
  --accent: #5bad72;
}

.subject-icon {
  font-size: 48px;
  display: block;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    rgba(var(--accent), 0.8) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subject-card h3 {
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.subject-card p {
  font-size: 14px;
  margin: 0;
}

/* ============================================================
   HOW IT WORKS SECTION
   ============================================================ */

.how-it-works {
  padding: var(--spacing-4xl) 0;
  background: var(--background);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto var(--spacing-lg);
  box-shadow: 0 8px 16px rgba(61, 170, 140, 0.2);
  transition: var(--transition);
}

.step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 12px 24px rgba(61, 170, 140, 0.3);
}

.step h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.step p {
  font-size: 14px;
  margin: 0;
}

.step-connector {
  display: none;
}

@media (max-width: 768px) {
  .steps-container {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PRICING SECTION
   ============================================================ */

.pricing {
  padding: var(--spacing-4xl) 0;
  background: var(--surface);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-2xl);
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(61, 170, 140, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-badge.popular {
  background: var(--primary);
}

.pricing-card h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.price {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--spacing-xs);
}

.price span {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: var(--spacing-2xl) 0;
  padding: 0;
}

.pricing-features li {
  padding: var(--spacing-sm) 0;
  color: var(--text-secondary);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ============================================================
   DOWNLOAD SECTION
   ============================================================ */

.download {
  padding: var(--spacing-4xl) 0;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  text-align: center;
}

.download .section-title,
.download .section-subtitle {
  color: white;
}

.download-buttons {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.download-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .download-buttons {
    flex-direction: column;
  }

  .download-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--text-primary);
  color: white;
  padding: var(--spacing-4xl) 0 var(--spacing-2xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.footer-section .logo {
  color: white;
  margin-bottom: var(--spacing-md);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 14px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  font-size: 14px;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.social-links {
  display: flex;
  gap: var(--spacing-lg);
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.social-links a:hover {
  color: white;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: var(--spacing-sm);
}
.mt-2 {
  margin-top: var(--spacing-md);
}
.mt-3 {
  margin-top: var(--spacing-lg);
}
.mt-4 {
  margin-top: var(--spacing-xl);
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: var(--spacing-sm);
}
.mb-2 {
  margin-bottom: var(--spacing-md);
}
.mb-3 {
  margin-bottom: var(--spacing-lg);
}
.mb-4 {
  margin-bottom: var(--spacing-xl);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
  .container {
    padding: 0 var(--spacing-xl);
  }

  .hero-image-wrapper {
    max-width: 500px;
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-lg);
  }

  .hero-content {
    gap: var(--spacing-2xl);
  }

  .pricing-card.featured {
    transform: scale(1.02);
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-2xl: 32px;
    --spacing-3xl: 40px;
    --spacing-4xl: 48px;
  }

  h1 {
    font-size: clamp(28px, 5vw, 40px);
  }

  h2 {
    font-size: clamp(24px, 4vw, 36px);
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
  }

  .feature-card {
    padding: var(--spacing-lg);
  }

  .subject-card {
    padding: var(--spacing-lg);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .download-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   SUPPORT PAGE STYLES
   ============================================================ */

.support-hero {
  padding: var(--spacing-4xl) 0;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  text-align: center;
}

.support-hero h1 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.support-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

.support-content {
  padding: var(--spacing-4xl) 0;
  background: var(--background);
}

.support-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--spacing-3xl);
  max-width: 1200px;
}

.support-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.support-sidebar h3 {
  color: var(--primary);
  margin-bottom: var(--spacing-lg);
}

.faq-section h4 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faq-list {
  list-style: none;
  padding: 0;
}

.faq-list li {
  margin-bottom: var(--spacing-sm);
}

.faq-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  font-size: 14px;
}

.faq-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.support-card h4 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.support-card p {
  font-size: 14px;
  margin: 0;
  color: var(--text-secondary);
}

.support-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.support-card a:hover {
  text-decoration: underline;
}

.support-form-section {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: var(--spacing-2xl);
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--spacing-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 14px;
  transition: var(--transition);
  background: var(--background);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(61, 170, 140, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-primary);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--error);
  background-color: rgba(255, 59, 48, 0.05);
}

.form-group.checkbox {
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.form-group.checkbox input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.form-group.checkbox label {
  margin-bottom: 0;
  cursor: pointer;
  font-weight: 400;
}

.form-note {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: var(--spacing-lg);
}

.success-message {
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  text-align: center;
}

.success-message h3 {
  color: var(--success);
  margin-bottom: var(--spacing-md);
}

.success-message p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.error-message {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid var(--error);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  text-align: center;
}

.error-message h3 {
  color: var(--error);
  margin-bottom: var(--spacing-md);
}

.error-message p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

/* ============================================================
   FAQ SECTION
   ============================================================ */

.faq-full {
  padding: var(--spacing-4xl) 0;
  background: var(--primary-light);
}

.faq-items {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.faq-item {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item.active .faq-header {
  background: var(--primary-light);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  background: var(--background);
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: var(--transition);
}

.faq-header:hover {
  background: var(--surface);
}

.faq-header h3 {
  color: var(--text-primary);
  margin: 0;
  font-size: 16px;
}

.faq-icon {
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-content {
  max-height: 500px;
  overflow: visible;
}

.faq-content p {
  padding: var(--spacing-lg);
  padding-top: 0;
  color: var(--text-secondary);
}

.faq-content ul {
  padding: var(--spacing-lg);
  padding-top: 0;
  margin: 0;
  list-style-position: inside;
}

.faq-content li {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

/* ============================================================
   SUPPORT PAGE RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-sidebar {
    position: static;
    order: 2;
  }

  .support-form-section {
    order: 1;
  }

  .support-sidebar h3 {
    margin-top: var(--spacing-2xl);
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }
}

/* ============================================================
   LEGAL PAGES (TERMS & PRIVACY)
   ============================================================ */

.legal-hero {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  text-align: center;
}

.legal-hero h1 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.legal-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.legal-content {
  padding: var(--spacing-4xl) 0;
  background: var(--background);
}

.legal-document {
  max-width: 900px;
  line-height: 1.8;
}

.toc-section {
  background: var(--surface);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  margin-bottom: var(--spacing-3xl);
}

.toc-section h2 {
  color: var(--primary);
  margin-bottom: var(--spacing-lg);
}

.toc-list {
  list-style: none;
  padding: 0;
}

.toc-list li {
  margin-bottom: var(--spacing-md);
}

.toc-list a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.toc-list a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.legal-section {
  margin-bottom: var(--spacing-3xl);
  padding-bottom: var(--spacing-2xl);
  border-bottom: 1px solid var(--border);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section h2 {
  color: var(--text-primary);
  font-size: 24px;
  margin-bottom: var(--spacing-lg);
  margin-top: 0;
}

.legal-section h3 {
  color: var(--text-primary);
  font-size: 18px;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.legal-section p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.legal-section ul {
  list-style-position: inside;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  padding-left: var(--spacing-md);
}

.legal-section ul li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.8;
}

.legal-section a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-footer-note {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  text-align: center;
  margin-top: var(--spacing-3xl);
}

.legal-footer-note p {
  color: var(--primary-dark);
  margin: 0;
  font-weight: 500;
}

/* ============================================================
   LEGAL PAGES RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .legal-hero {
    padding: var(--spacing-2xl) 0;
  }

  .legal-hero h1 {
    font-size: 32px;
  }

  .legal-content {
    padding: var(--spacing-2xl) 0;
  }

  .toc-section {
    padding: var(--spacing-lg);
  }

  .legal-section h2 {
    font-size: 20px;
  }

  .legal-section h3 {
    font-size: 16px;
  }

  .legal-section ul {
    padding-left: var(--spacing-lg);
  }
}
