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

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --accent: #10b981;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-light: #f3f4f6;
  --border: #e5e7eb;
  --success: #10b981;
  --error: #ef4444;
  --gold: #f59e0b;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-links a {
  margin-left: 1.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

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

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

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 1rem;
  background: linear-gradient(135deg, #1e1b4b 0%, var(--primary) 50%, #7c3aed 100%);
  color: white;
}

.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.about-strip {
  text-align: center;
  padding: 2rem;
  background: #fef3c7;
  border-bottom: 1px solid #fbbf24;
}

.about-strip p { max-width: 700px; margin: 0 auto; font-size: 1.05rem; }

/* Services Grid */
.services-grid { padding: 4rem 1rem; }
.services-grid h2 { text-align: center; font-size: 2rem; margin-bottom: 2rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: var(--primary);
}

.service-card.always-free { border-color: var(--accent); }
.service-card.always-free:hover { box-shadow: 0 8px 25px rgba(16,185,129,0.2); }

.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1rem; }

.free-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.service-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.service-actions .btn {
  flex: 1;
  padding: 0.65rem 0.9rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Why section */
.why { padding: 4rem 1rem; background: var(--bg); text-align: center; }
.why h2 { font-size: 2rem; margin-bottom: 2rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature { padding: 1.5rem; }
.feature h3 { margin-bottom: 0.5rem; color: var(--primary); }

/* Pricing FAB */
.pricing-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
}

.pricing-fab-btn {
  background: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(79,70,229,0.4);
  transition: all 0.2s;
  display: block;
}

.pricing-fab-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* Service Hero */
.service-hero {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover { color: var(--primary); }

.service-hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.service-hero p { color: var(--text-light); margin-bottom: 1.5rem; }

/* Pricing */
.pricing-section { padding: 3rem 1rem; }
.pricing-section h2 { text-align: center; font-size: 2rem; margin-bottom: 1rem; }

.pricing-note {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-light);
  padding: 1rem;
  background: #fef3c7;
  border-radius: 8px;
  border-left: 4px solid var(--gold);
}

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

.pricing-grid.small {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

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

.pricing-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.pricing-card .price { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.pricing-card .price span { font-size: 0.9rem; font-weight: 400; color: var(--text-light); }

.pricing-card ul { list-style: none; margin-bottom: 1.5rem; text-align: left; }
.pricing-card ul li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.pricing-card ul li:last-child { border-bottom: none; }

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

.always-free-banner {
  text-align: center;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.always-free-banner h3 { font-size: 1.5rem; color: #065f46; margin-bottom: 0.5rem; }
.always-free-banner p { color: #047857; margin-bottom: 1rem; }
.small-note { font-size: 0.85rem; color: var(--text-light) !important; }

/* Register */
.register-container {
  max-width: 500px;
  margin: 2rem auto;
  background: var(--bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.register-container h2 { text-align: center; margin-bottom: 1rem; }

.hosting-note {
  background: #fef3c7;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.plan-selector { margin-bottom: 1.5rem; }

.plan-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.plan-option:hover, .plan-option.selected { border-color: var(--primary); }
.plan-option input { margin-right: 1rem; }

.plan-details strong { display: block; }
.plan-details span { font-size: 0.85rem; color: var(--text-light); }

.register-form .form-group { margin-bottom: 1rem; }
.register-form label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
}

.register-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.register-form .checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.register-form .checkbox a { color: var(--primary); }
.register-form button { width: 100%; margin-top: 1rem; }

.error {
  background: #fef2f2;
  color: var(--error);
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
}

.hidden { display: none; }

/* Success */
.success-container {
  max-width: 600px;
  margin: 3rem auto;
  text-align: center;
  background: var(--bg);
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.success-icon { font-size: 4rem; color: var(--success); margin-bottom: 1rem; }
.service-links { margin-top: 2rem; }
.service-links p { margin-bottom: 1rem; color: var(--text-light); }

/* Terms/Privacy */
.terms-container, .privacy-container {
  max-width: 800px;
  margin: 2rem auto;
  background: var(--bg);
  padding: 2rem;
  border-radius: 12px;
}

.terms-container h1, .privacy-container h1 { margin-bottom: 0.5rem; }
.last-updated { color: var(--text-light); margin-bottom: 2rem; }
.terms-container section, .privacy-container section { margin-bottom: 2rem; }
.terms-container h2, .privacy-container h2 { color: var(--primary); margin-bottom: 0.5rem; }
.terms-container ul, .privacy-container ul { margin-left: 1.5rem; }
.terms-container p, .privacy-container p { margin-bottom: 0.5rem; }
.terms-container a, .privacy-container a { color: var(--primary); }

/* About page */
.about-page { max-width: 800px; margin: 2rem auto; padding: 0 1rem; }
.about-section { margin-bottom: 2.5rem; }
.about-section h2 { color: var(--primary); margin-bottom: 1rem; }
.about-section ul { margin-left: 1.5rem; margin-bottom: 1rem; }

.services-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.services-table th, .services-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.services-table th { background: var(--bg-light); font-weight: 600; }

/* Pricing page */
.pricing-page { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }
.pricing-page h1 { text-align: center; font-size: 2.5rem; margin-bottom: 0.5rem; }
.pricing-intro { text-align: center; max-width: 700px; margin: 0 auto 3rem; color: var(--text-light); }

.pricing-service { margin-bottom: 3rem; }
.pricing-service h2 { text-align: center; margin-bottom: 0.5rem; }
.service-url { font-size: 0.85rem; color: var(--text-light); font-weight: 400; }
.premium-note { text-align: center; color: var(--text-light); font-style: italic; margin-bottom: 1.5rem; }
.always-free-section { text-align: center; }

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

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

.ai-assistant {
  position: fixed;
  left: 2rem;
  bottom: 2rem;
  z-index: 120;
}

.ai-toggle {
  background: #111827;
  color: white;
  border: 0;
  border-radius: 30px;
  padding: 1rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(17,24,39,0.3);
}

.ai-panel {
  width: min(360px, calc(100vw - 2rem));
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 45px rgba(0,0,0,0.18);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.ai-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.ai-panel-header button {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.ai-note {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.ai-panel textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  resize: vertical;
  margin-bottom: 0.75rem;
}

.ai-reply {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 0.75rem;
  max-height: 220px;
  overflow: auto;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .pricing-grid, .pricing-grid.small { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr; }
  .ai-assistant { left: 1rem; right: 1rem; bottom: 1rem; }
  .pricing-fab { right: 1rem; bottom: 5rem; }
}

@media (max-width: 480px) {
  .pricing-grid, .pricing-grid.small { grid-template-columns: 1fr; }
  .navbar { flex-direction: column; gap: 0.5rem; }
  .nav-links a { margin-left: 0.75rem; }
}
