@import url("https://fonts.googleapis.com/css2?family=Mada:wght@300..900&display=swap");

:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #eeeeee;
  --accent-ink: #0b5bd9;
  --row-hover: #f8fafc;
  --chip: #eef2ff;
  --accent: #4f46e5;
  --accent-hover: #3730a3;
  --accent-light: #f0f0ff;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Mada", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: "Mada", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.hero {
  padding: 160px 0 120px;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Email Generator */
.email-generator {
  background: var(--card);
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  margin: 0 auto 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.email-display {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 2px solid var(--accent-light);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.email-text {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: none;
  outline: none;
}

.copy-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

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

.email-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 14px;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

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

/* Features Section */
.features {
  padding: 80px 0;
}

.features h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.features p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 60px;
  font-size: 18px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--card);
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* Comparison Table */
.comparison {
  padding: 80px 0;
  background: #f8fafc;
}

.comparison h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 60px;
}

.comparison-table {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.table-header {
  background: var(--accent);
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 20px;
  font-weight: 700;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.table-row:last-child {
  border-bottom: none;
}

.check {
  color: #10b981;
  font-weight: 600;
}

.cross {
  color: #ef4444;
  font-weight: 600;
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
}

.testimonials h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 60px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.testimonial {
  background: var(--card);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.testimonial-text {
  color: var(--muted);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
}

/* FAQ */
.faq {
  padding: 80px 0;
  background: #f8fafc;
}

.faq h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 60px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.faq-question {
  padding: 24px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--muted);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.email-form {
  margin-bottom: 3rem;
}
.form-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}
.input-group {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  gap: 0.5rem;
}
.input-group.error {
  border: 1px solid red;
  border-radius: 5px;
}

.error-message {
  color: red;
  font-size: 13px;
  margin-top: 5px;
}
.email-input {
  background: rgba(0, 0, 0, 0);
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  width: 100%;
  outline: none;
  color: #333;
}
.email-input::-moz-placeholder {
  color: #999;
}
.email-input::placeholder {
  color: #999;
}
.at-symbol {
  font-size: 1.5rem;
  font-weight: bold;
  color: #666;
  margin: 0 0.5rem;
}
.domain-select {
  background: rgba(0, 0, 0, 0);
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  width: 100%;
  outline: none;
  cursor: pointer;
  color: #333;
}
.create-btn {
  background: #ff6b6b;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}
.create-btn:hover {
  background: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

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

  .hero p {
    font-size: 16px;
  }

  .email-generator {
    padding: 24px;
  }

  .email-display {
    flex-direction: column;
    gap: 16px;
  }

  .email-actions {
    flex-direction: column;
  }

  .table-header,
  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .table-header div:nth-child(2),
  .table-header div:nth-child(3),
  .table-row div:nth-child(2),
  .table-row div:nth-child(3) {
    display: none;
  }
}
