:root {
  color-scheme: light;
  --bg: #f6f2ef;
  --card: #ffffff;
  --ink: #1b1b1f;
  --muted: #5c5a5f;
  --accent: #ed6f3f;
  --accent-dark: #c4542a;
  --border: #e2d9d5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.app {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.eyebrow {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  margin: 0 0 16px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
}

.hero-card {
  background: linear-gradient(160deg, #fff5ee 0%, #ffffff 100%);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 20px;
  width: min(360px, 100%);
  box-shadow: 0 16px 40px rgba(80, 60, 50, 0.08);
}

.hero-title {
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--accent-dark);
}

.hero-message {
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 0 0 20px;
}

.section {
  margin-bottom: 48px;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.section-title p {
  margin: 0 0 24px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 16px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 16px rgba(33, 20, 16, 0.05);
}

.card .tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
}

.card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.future {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 24px;
  color: var(--muted);
}

.future ul {
  margin: 0;
  padding-left: 20px;
}

button {
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 10px 18px;
}

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

button.primary:hover {
  background: var(--accent-dark);
}

button.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 16, 16, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  max-width: 820px;
  width: 100%;
  background: #ffffff;
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(24, 20, 18, 0.25);
}

.modal-header h2 {
  margin: 0 0 8px;
}

.modal-header p {
  margin: 0 0 20px;
  color: var(--muted);
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.domain-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff9f5;
  cursor: pointer;
  transition: all 0.2s ease;
}

.domain-card h4 {
  margin: 0 0 6px;
}

.domain-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.domain-card.selected {
  border-color: var(--accent);
  background: #fff0e8;
  box-shadow: 0 10px 20px rgba(237, 111, 63, 0.12);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card {
    width: 100%;
  }
}
