
/* /src/routes/landing.css */
/* Landing page styles – scoped under .landing to avoid affecting other routes */

.landing {
  --primary: #3aceef;
  --primary-dark: #0f172a;
  --bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --card-bg: #f8fafc;
  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

@media (min-width: 768px) {
  .landing .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .landing .container {
    padding: 0 2rem;
  }
}

.landing nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.landing nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.landing .logo {
  font-weight: 700;
  font-size: 1.5rem;
  font-family: "Space Mono", monospace;
  letter-spacing: -0.02em;
}

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

.landing nav .nav-links {
  display: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .landing nav .nav-links {
    display: flex;
  }
}

.landing nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.landing nav a:hover {
  color: var(--primary);
}

.landing .hero {
  padding-top: 8rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.landing .hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(58, 206, 239, 0.05) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.landing .hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .landing .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.landing .hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-family: "Space Mono", monospace;
}

@media (min-width: 768px) {
  .landing .hero h1 {
    font-size: 3rem;
  }
}

.landing .hero h1 .highlight {
  color: var(--primary);
}

.landing .hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.landing .button-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .landing .button-group {
    flex-direction: row;
  }
}

.landing .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

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

.landing .btn-primary:hover {
  background-color: #2ab8dd;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(58, 206, 239, 0.2);
}

.landing .btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background-color: transparent;
}

.landing .btn-outline:hover {
  background-color: #f1f5f9;
  border-color: var(--primary);
}

.landing .stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.landing .stat-item strong {
  display: block;
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.landing .hero-image {
  position: relative;
  height: 400px;
}

.landing .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(58, 206, 239, 0.4);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.landing section {
  padding: 5rem 0;
}

.landing section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  margin-bottom: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .landing section h2 {
    font-size: 3rem;
  }
}

.landing section p {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

.landing .problem-section {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(248, 250, 252, 0.5) 100%
  );
}

.landing .problem-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: left;
  margin-top: 2rem;
}

.landing .problem-box p {
  text-align: left;
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.8;
}

.landing .problem-box strong {
  color: var(--primary);
}

.landing .steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .landing .steps {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.landing .step {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s;
}

.landing .step:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(58, 206, 239, 0.1);
}

.landing .step-number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.landing .step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.landing .step p {
  color: var(--text-muted);
  text-align: left;
}

.landing .gallery-image {
  margin-top: 3rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.landing .gallery-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(58, 206, 239, 0.4);
}

.landing .features-section {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(248, 250, 252, 0.5) 100%
  );
}

.landing .features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .landing .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.landing .feature-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s;
}

.landing .feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(58, 206, 239, 0.15);
}

.landing .feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.landing .feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.landing .feature-card p {
  color: var(--text-muted);
  text-align: left;
}

.landing .use-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .landing .use-cases-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.landing .use-case-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  font-weight: 600;
}

.landing .use-case-card:hover {
  border-color: var(--primary);
}

.landing .faq-section {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(248, 250, 252, 0.5) 100%
  );
}

.landing .faq-container {
  max-width: 800px;
  margin: 3rem auto 0;
}

.landing .faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s;
}

.landing .faq-item:hover {
  border-color: var(--primary);
}

.landing .faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  background-color: var(--card-bg);
  border: none;
  width: 100%;
  text-align: left;
  transition: all 0.3s;
  font: inherit;
  color: inherit;
}

.landing .faq-question:hover {
  color: var(--primary);
}

.landing .faq-toggle {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s;
}

.landing .faq-item.open .faq-toggle {
  transform: rotate(180deg);
}

.landing .faq-answer {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.landing .faq-item.open .faq-answer {
  display: block;
}

.landing .faq-item.open {
  background-color: #f1f5f9;
  border-color: var(--primary);
}

.landing .cta-section {
  position: relative;
  overflow: hidden;
}

.landing .cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(58, 206, 239, 0.05) 0%,
    transparent 50%,
    rgba(58, 206, 239, 0.05) 100%
  );
  pointer-events: none;
}

.landing .cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.landing .cta-content h2 {
  margin-bottom: 1rem;
}

.landing .cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.landing .email-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

@media (min-width: 640px) {
  .landing .email-form {
    flex-direction: row;
  }
}

.landing .email-form input {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  background-color: white;
  color: var(--text);
}

.landing .email-form input::placeholder {
  color: var(--text-light);
}

.landing .email-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58, 206, 239, 0.1);
}

.landing .cta-subtext {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.landing footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background-color: var(--card-bg);
}

.landing .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .landing .footer-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.landing .footer-section h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.landing .footer-section ul {
  list-style: none;
}

.landing .footer-section ul li {
  margin-bottom: 0.5rem;
}

.landing .footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

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

.landing .footer-logo {
  font-weight: 700;
  font-size: 1.125rem;
  font-family: "Space Mono", monospace;
  margin-bottom: 0.5rem;
}

.landing .footer-logo span {
  color: var(--primary);
}

.landing .footer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.landing .footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.landing .fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.landing .fade-in-delay-1 {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.landing .fade-in-delay-2 {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.landing .fade-in-delay-3 {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}
