/*
 * JSM Labs - Static Site Styles
 */

/* Base Styles */
:root {
  /* Light theme variables */
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --primary: #7e22ce;
  --primary-foreground: #fafafa;
  --secondary: #f4f4f5;
  --secondary-foreground: #1a1a1a;
  --muted: #f4f4f5;
  --muted-foreground: #757575;
  --accent: #f3e8ff;
  --accent-foreground: #1a1a1a;
  --destructive: #ef4444;
  --destructive-foreground: #fafafa;
  --border: #e4e4e7;
  --input: #e4e4e7;
  --ring: #7e22ce;
  --radius: 0.5rem;

  /* RGB values for opacity */
  --background-rgb: 255, 255, 255;
  --foreground-rgb: 10, 10, 10;
  --primary-rgb: 126, 34, 206;
  --accent-rgb: 243, 232, 255;
  --muted-rgb: 244, 244, 245;
  --border-rgb: 228, 228, 231;
}

.dark-theme {
  /* Dark theme variables */
  --background: #0a0a0a;
  --foreground: #fafafa;
  --card: #0f0f0f;
  --card-foreground: #fafafa;
  --primary: #7e22ce;
  --primary-foreground: #fafafa;
  --secondary: #27272a;
  --secondary-foreground: #fafafa;
  --muted: #141414;
  --muted-foreground: #a5a5a5;
  --accent: #4c1d95;
  --accent-foreground: #fafafa;
  --destructive: #7f1d1d;
  --destructive-foreground: #fafafa;
  --border: #27272a;
  --input: #27272a;
  --ring: #7e22ce;

  /* RGB values for opacity */
  --background-rgb: 10, 10, 10;
  --foreground-rgb: 250, 250, 250;
  --primary-rgb: 126, 34, 206;
  --accent-rgb: 76, 29, 149;
  --muted-rgb: 20, 20, 20;
  --border-rgb: 39, 39, 42;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  color: var(--foreground);
  background-color: var(--background);
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

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

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(var(--background-rgb), 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(var(--border-rgb), 0.1);
  z-index: 50;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
}

.logo-img {
  height: 150px;
  width: auto;
  margin-right: 0.75rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  color: var(--foreground);
  opacity: 0.8;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--foreground);
  opacity: 1;
}

.nav-mobile {
  display: none;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  color: var(--foreground);
  background: none;
  border: none;
  cursor: pointer;
}

.close-icon {
  display: none;
}

.mobile-menu {
  display: none;
  background-color: rgba(var(--background-rgb), 0.95);
  backdrop-filter: blur(10px);
}

.mobile-menu.active {
  display: block;
}

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

.mobile-nav-link {
  color: var(--foreground);
  opacity: 0.8;
  font-size: 1.125rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  text-align: left;
  transition: color 0.3s;
}

.mobile-nav-link:hover {
  color: var(--foreground);
  opacity: 1;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

.light-theme .light-icon,
.dark-theme .dark-icon {
  display: none;
}

.light-theme .dark-icon,
.dark-theme .light-icon {
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

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

.btn-primary:hover {
  background-color: color-mix(in srgb, var(--primary) 90%, black);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid rgba(var(--foreground-rgb), 0.2);
}

.btn-outline:hover {
  background-color: rgba(var(--accent-rgb), 0.05);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

.btn-icon:hover {
  background-color: rgba(var(--accent-rgb), 0.05);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.gradient-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, var(--background), color-mix(in srgb, var(--primary) 20%, var(--background)));
  z-index: -1;
}

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

.hero-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.label-line {
  height: 1px;
  width: 3rem;
  background-color: var(--primary);
}

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

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--foreground);
  opacity: 0.7;
  margin-bottom: 3rem;
  max-width: 48rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.decorative-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

/* Problem Statement Section */
.problem-section {
  padding: 6rem 0;
  background-color: var(--background);
  border-bottom: 1px solid rgba(var(--border-rgb), 0.1);
}

.problem-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 64rem;
  margin: 0 auto;
}

.problem-column {
  flex: 1;
}

.section-title {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

.section-text {
  color: var(--foreground);
  opacity: 0.7;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.accent-line {
  height: 0.25rem;
  width: 5rem;
  border-radius: 9999px;
}

.accent-red {
  background-color: rgba(239, 68, 68, 0.8);
}

.accent-purple {
  background-color: rgba(126, 34, 206, 0.8);
}

/* How It Works Section */
.how-section {
  padding: 6rem 0;
  background-color: var(--muted);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.section-label span {
  color: var(--primary);
  font-weight: 500;
  font-size: 1.5rem;
}

.section-title-lg {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--foreground);
  opacity: 0.7;
  max-width: 36rem;
  margin: 0 auto;
}

.steps-container {
  max-width: 48rem;
  margin: 0 auto;
}

.step {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  gap: 2rem;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.3;
  flex-shrink: 0;
  width: 25%;
}

.step-content {
  flex-grow: 1;
  width: 75%;
}

.step-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.step-description {
  color: var(--foreground);
  opacity: 0.7;
  font-size: 1.125rem;
  line-height: 1.6;
}

.step-line {
  position: absolute;
  left: 2.5rem;
  top: 100%;
  height: 4rem;
  width: 1px;
  background-color: var(--primary);
  opacity: 0.2;
}

/* Use Cases Section */
.use-cases-section {
  padding: 6rem 0;
  background-color: var(--background);
  border-bottom: 1px solid rgba(var(--border-rgb), 0.1);
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* About Section Paragraphs */
.about-paragraph {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--foreground);
  opacity: 0.85;
  max-width: 48rem;
  margin: 0 auto 1.5rem;
  text-align: left;
  padding: 0 1rem;
  letter-spacing: 0.01em;
  text-indent: 1rem;
  border-left: 3px solid var(--primary);
  padding-left: 1.5rem;
  background-color: rgba(var(--accent-rgb), 0.05);
  padding: 1.5rem 2rem;
  border-radius: 0.5rem;
}

.about-paragraph:last-child {
  margin-bottom: 0;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  max-width: 48rem;
  margin: 0 auto;
  position: relative;
}

.use-case-card {
  background-color: rgba(var(--muted-rgb), 0.5);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: background-color 0.3s, transform 0.5s ease;
  opacity: 0;
  transform: translateY(50px);
}

.use-case-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.use-cases-container {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  padding-bottom: 2rem;
}

.use-case-card:hover {
  background-color: var(--muted);
}

.use-case-icon {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.use-case-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.use-case-description {
  color: var(--foreground);
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.use-case-metrics {
  list-style: none;
}

.use-case-metrics li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  opacity: 0.6;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.metric-dot {
  height: 0.25rem;
  width: 0.25rem;
  border-radius: 50%;
  background-color: var(--primary);
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background-color: var(--background);
}

.cta-box {
  max-width: 48rem;
  margin: 0 auto 2rem;
  background: linear-gradient(to bottom right, rgba(var(--primary-rgb), 0.5), var(--background));
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 1rem;
  padding: 2rem;
}

/* Contact Info Section */
.contact-info {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--foreground);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  width: 100%;
  background-color: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--border-rgb), 0.5);
}

.contact-link:hover {
  background-color: rgba(var(--primary-rgb), 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-link span {
  font-size: 1rem;
  font-weight: 500;
}

@media (max-width: 767px) {
  .contact-info {
    padding: 0;
  }
}

.cta-header {
  text-align: center;
  margin-bottom: 3rem;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.cta-subtitle {
  font-size: 1.125rem;
  color: var(--foreground);
  opacity: 0.7;
  max-width: 36rem;
  margin: 0 auto;
}

.cta-form {
  max-width: 32rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  margin-bottom: 1rem;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

@media (max-width: 767px) {
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
}

.form-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--foreground);
  opacity: 0.5;
  margin-top: 1rem;
}

/* Success Page */
.success-section {
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin-top: 5rem;
}

.success-card {
  max-width: 600px;
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.success-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.success-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.success-message {
  font-size: 1.125rem;
  color: var(--foreground);
  opacity: 0.7;
  margin-bottom: 2rem;
}

/* Policy Pages (Privacy Policy & Terms of Service) */
.policy-section {
  padding: 8rem 0 4rem;
}

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

.policy-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.policy-content {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.policy-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--primary);
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--foreground);
}

.policy-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.policy-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.policy-content a {
  color: var(--primary);
  text-decoration: none;
}

.policy-content a:hover {
  text-decoration: underline;
}

.policy-date {
  margin-top: 2rem;
  font-style: italic;
  color: var(--foreground);
  opacity: 0.6;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  margin-top: 2rem;
  transition: color 0.3s;
}

.back-link:hover {
  text-decoration: underline;
}

/* Footer Section */
.footer-section {
  /* Reduced padding slightly */
  padding: 3rem 0 2rem; /* Adjusted bottom padding */
  background-color: var(--muted);
  border-top: 1px solid rgba(var(--border-rgb), 0.1);
}

.footer-section .section-header {
  /* Reduced bottom margin */
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  /* Reduced bottom margin */
  margin-bottom: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.25rem;
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.3);
}

/* Removed styles for .footer-section .decorative-line */

.copyright {
  text-align: center;
  font-size: 0.875rem;
  color: var(--foreground);
  opacity: 0.6;
  /* Removed margin-top, relying on spacing from social links */
  margin-top: 0;
}

/* New styles for footer links */
.footer-links {
  text-align: center;
  margin-top: 0.75rem; /* Space between copyright and links */
}

.footer-links a {
  color: var(--muted-foreground); /* Using muted color for less emphasis */
  font-size: 0.875rem;
  text-decoration: none;
  margin: 0 0.5rem; /* Space between links */
  transition: color 0.3s ease;
}

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


/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.4);
}

/* Helper Classes */
.text-center {
  text-align: center;
}

/* Media Queries */
@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }

  .hero-buttons {
    flex-direction: row;
  }

  .problem-content {
    flex-direction: row;
  }

  .use-cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-box {
    padding: 3rem;
  }
}

@media (max-width: 767px) {
  .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: flex;
  }

  .menu-open .menu-icon {
    display: none;
  }

  .menu-open .close-icon {
    display: inline-block;
  }
}