/* CHA Landing Page Styles - Matching Marketing Site Design */

:root {
  /* Color System - matching marketing site */
  --background: oklch(0.99 0.005 120);
  --foreground: oklch(0.25 0.01 120);
  --primary: oklch(0.68 0.08 140);
  --primary-foreground: oklch(0.99 0.005 120);
  --muted: oklch(0.96 0.01 120);
  --muted-foreground: oklch(0.55 0.02 120);
  --border: oklch(0.9 0.01 120);
  --input: oklch(0.9 0.01 120);
  --ring: oklch(0.68 0.08 140);
  --radius: 0.75rem;

  /* Semantic colors */
  --success: oklch(0.68 0.08 140);
  --error: oklch(0.577 0.245 27.325);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Navigation */
.navbar {
  border-bottom: 1px solid var(--border);
  background-color: var(--background);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  width: 75px;
  height: 75px;
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 0;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 6rem 0 0;
  }
}

.hero-content {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: oklch(from var(--primary) l c h / 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  position: relative;
  display: flex;
  height: 0.5rem;
  width: 0.5rem;
}

.ping {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background-color: var(--primary);
  opacity: 0.75;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.dot {
  position: relative;
  display: inline-flex;
  border-radius: 9999px;
  height: 0.5rem;
  width: 0.5rem;
  background-color: var(--primary);
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Typography */
.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Form Card */
.form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  margin-bottom: 0;
}

.interest-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

.optional {
  color: var(--muted-foreground);
  font-weight: 400;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: 3rem;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  background-color: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px oklch(from var(--ring) l c h / 0.1);
}

.form-textarea {
  height: auto;
  resize: vertical;
  font-family: inherit;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: calc(var(--radius) - 2px);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-family: inherit;
}

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

.btn-sm {
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
}

.btn-lg {
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

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

.btn-primary:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px oklch(from var(--primary) l c h / 0.3);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

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

.btn-outline:hover:not(:disabled) {
  background-color: var(--muted);
}

.btn-loader {
  animation: spin 1s linear infinite;
}

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

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

/* Error Message */
.error-message {
  padding: 0.75rem 1rem;
  background-color: oklch(from var(--error) l c h / 0.1);
  color: var(--error);
  border: 1px solid oklch(from var(--error) l c h / 0.2);
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
}

/* Existing Code Notice */
.existing-code-notice {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

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

/* Value Props Section */
.value-section {
  padding: 2rem 0 4rem;
  background-color: oklch(from var(--muted) l c h / 0.3);
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .value-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  text-align: center;
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.value-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.value-tagline {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
}

.value-tagline h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .value-tagline h2 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .value-tagline h2 {
    font-size: 2.5rem;
  }
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background-color: oklch(from var(--muted) l c h / 0.3);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 60px;
  height: 60px;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}

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

/* Contact Footer */
.contact-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  background: var(--muted);
  border-radius: 12px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted-foreground);
  font-size: 0.95em;
  border: 1px solid var(--border);
}

.contact-footer p {
  margin: 8px 0;
  line-height: 1.8;
  text-align: center;
  width: 100%;
}

.contact-footer strong {
  font-weight: 600;
  font-size: 1.1em;
  color: var(--foreground);
}

.contact-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.contact-footer a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
  opacity: 0.8;
}