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

:root {
  --primary: #E02424;
  --primary-light: rgba(224, 36, 36, 0.1);
  --primary-hover: rgba(224, 36, 36, 0.9);
  --bg-dark: #05070B;
  --bg-card: rgba(16, 19, 25, 0.95);
  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-card: rgba(255, 255, 255, 0.2);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #101319 100%);
  color: var(--text-white);
  min-height: 100vh;
  line-height: 1.5;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 11, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
  gap: 1rem;
}

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

.logo {
  height: 2rem;
  cursor: pointer;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.btn-ghost {
  background: transparent;
  color: var(--text-white);
}

.btn-ghost:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.w-full {
  width: 100%;
}

.main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

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

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 auto;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}

@media (min-width: 768px) {
  .pricing-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

.card {
  position: relative;
  background: var(--bg-card);
  border-radius: 0.5rem;
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--border-card);
  backdrop-filter: blur(8px);
  overflow: visible;
}

.card-popular {
  border-top-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(224, 36, 36, 0.2);
}

.badge-popular {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.card-header {
  text-align: center;
  padding: 2rem 1.5rem 1rem;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-white);
}

.period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.card-content {
  padding: 0 1.5rem 1.5rem;
}

.features-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--primary-light);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--primary);
}

.comparison-section {
  margin-bottom: 4rem;
}

.comparison-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  font-weight: 500;
  color: var(--text-white);
}

.comparison-table th.feature-col {
  text-align: left;
  color: var(--text-muted);
}

.comparison-table th.highlight {
  color: var(--primary);
}

.comparison-table td {
  color: var(--text-white);
}

.comparison-table td:first-child {
  text-align: left;
  color: var(--text-muted);
}

.comparison-table td.highlight {
  background: rgba(224, 36, 36, 0.05);
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.comparison-table tbody tr:hover td.highlight {
  background: rgba(224, 36, 36, 0.1);
}

.check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background: rgba(224, 36, 36, 0.2);
  border-radius: 50%;
  color: var(--primary);
}

.x-icon {
  color: rgba(255, 255, 255, 0.3);
}

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

/* Signup Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-top: 3px solid var(--primary);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-white);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.modal-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-subtitle span {
  color: var(--primary);
  font-weight: 600;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

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

.optional-label {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.form-group input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-white);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(224, 36, 36, 0.2);
}

.error-message {
  color: var(--primary);
  font-size: 0.875rem;
  text-align: center;
  padding: 0.5rem;
  background: rgba(224, 36, 36, 0.1);
  border-radius: 6px;
}

.modal-footer-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

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

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