/* IndiePipeline Landing Page Styles */

:root {
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-secondary: #0f172a;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --radius: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: white;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 10rem 2rem 6rem;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Features Section */
.features {
  padding: 6rem 2rem;
  background: var(--color-bg-alt);
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.feature-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--color-text-light);
}

/* Integration Section */
.integration {
  padding: 6rem 2rem;
  text-align: center;
}

.integration h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.integration > p {
  color: var(--color-text-light);
  margin-bottom: 3rem;
}

.integration-options {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.integration-card {
  padding: 2rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.integration-card h3 {
  margin-bottom: 1rem;
}

.integration-card code {
  display: block;
  padding: 1rem;
  background: var(--color-secondary);
  color: var(--color-success);
  border-radius: var(--radius);
  font-family: 'Fira Code', 'Consolas', monospace;
  margin-bottom: 1rem;
}

.integration-card p {
  color: var(--color-text-light);
}

/* Signup Section */
.signup {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
}

.signup h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.signup > p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.signup-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
}

.signup-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
}

.signup-form input:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

.signup-form .btn {
  white-space: nowrap;
}

.signup-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  color: var(--color-text);
  text-align: center;
}

.modal-content h2 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.modal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.modal-content p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.modal-content code {
  display: block;
  padding: 1rem;
  background: var(--color-secondary);
  color: var(--color-success);
  border-radius: var(--radius);
  font-family: 'Fira Code', 'Consolas', monospace;
  margin-bottom: 1rem;
  word-break: break-all;
}

.modal-content code.api-key {
  font-size: 1.125rem;
  padding: 1.5rem;
}

.modal-content .btn {
  margin: 0.5rem;
}

/* Pricing Section */
.pricing {
  padding: 6rem 2rem;
  background: var(--color-bg-alt);
}

.pricing h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.pricing-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-light);
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-card li {
  padding: 0.5rem 0;
  color: var(--color-text-light);
}

.pricing-card li::before {
  content: '✓';
  color: var(--color-success);
  margin-right: 0.5rem;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
}

/* Footer */
footer {
  background: var(--color-secondary);
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: #94a3b8;
  display: block;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-form input,
  .signup-form .btn {
    width: 100%;
  }
}
